17.11.2012 Views

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Software Considerations<br />

8. Now that at least one refresh has occurred since SDRAM was last<br />

accessed, it is okay to write to the SDRAM control registers.<br />

a. Program the SDRAM Speed Attributes Register using the<br />

information obtained in steps 3 and 4 and the fact that the<br />

swr_dp and tdp bits should be set to 1’s.<br />

b. Program the SDRAM Base Address Register (Blocks A/B/C/D)<br />

and the SDRAM Base Address Register (Blocks E/F/G/H). Each<br />

block’s base address should be programmed so that it is an even<br />

multiple of its size. (The size information was obtained in step<br />

5). If the isa_hole bit is to be set this may be a good time to do<br />

that also. Refer to the Revision ID/General Control Register<br />

section for more information.<br />

c. Program the SDRAM Enable and Size Register (Blocks<br />

A,B,C,D) and the SDRAM Enable and Size Register (Blocks<br />

E,F,G,H). Use the information from step 5 for this. Only those<br />

blocks that exist should be enabled. Also, only those that exist<br />

should be programmed with a non-zero size.<br />

9. Wait for at least one SDRAM refresh to complete. A simple way to<br />

do this is to wait for the 32-bit counter to increment at least 100<br />

times (refer to the section on the 32-Bit Counter for more<br />

information). Note that the refdis control bit must not be set in the<br />

ECC Control Register.<br />

10. SDRAM is now ready to use.<br />

http://www.motorola.com/computer/literature 3-83<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!