���}��RDC1610c shadow memory ����63919���Pע�^���� |
---|
������� |
1�� |
![]() |
RDC1610c shadow memory ![]()
10.1.3 A user guide to use shadow memory
(a) Set Bus Control Register [1:0] (EAh)= 01b (DMA mode). (b) Configure the DMA source address to be the DMA destination address. (c) Configure the DMA Transfer Count (d) Register according to the transfer size you need. (e) After DMA is transferred, set Bus Control Register [1:0] (EAh) to 2��b10 (Shadow mode). (f) If the system is 8-bit boot mode, remember to switch to 16-bit mode after shadowing. Otherwise the code fetching from SDRAM will still be 8-bit mode. ���aƬ�ࣺ unsigned cnt; unsigned seg; asm cli outport (BCR, 0x8001); for (seg = 0xe; seg <= 0xf; seg++) { cnt = 0; outport (DMA0SRCH, seg); outport (DMA0SRCL, 0); outport (DMA0DSTH, seg); outport (DMA0DSTL, 0); outport (DMA0TCNT, 0xffff); outport (DMA0CR, START_DMA); while (inport(DMA0TCNT)) if (cnt++ > 1000) goto done; } outport (BCR, 0X8003); outport (AUXCR, inport(AUXCR) | ~(0x80)); /* Enable 16-bit bus width */ asm sti return 0; done: asm sti printf ("error: can not Shadow memory\n"); return -1; ��ʲô�� bus width to 16 ��0xfff2 USIZE λ�岻�������� |
�������� | ���� | �؏� ![]() |
x10 |
2�� |
![]() |
![]()
USIZE��read only�
|
�������� | ���� | �؏� ![]() |
���� |
3�� |
![]() |
![]()
(f) If the system is 8-bit boot mode, remember to switch to 16-bit mode after shadowing. Otherwise the
code fetching from SDRAM will still be 8-bit mode. ���̎������ |
�������� | ���� | �؏� ![]() |
x10 |
4�� |
![]() |
![]()
�҂���ETR232i����Ҫ�@�ӵ�shadow������Ҫ�댍�Fʲô���ܣ�
|
�������� | ���� | �؏� ![]() |