Finally, the fields of the SDRAM configuration
register (SDRAM_CR) must be programmed as described in Table 24-30 to properly interface with the K4S641632H-TC(L)70 device. Based on these
settings, a value of 4720h must be written to the SDRAM_CR. Figure 24-19 shows how the SDRAM_CR must be programmed. The EMIF is now ready to perform read
and write accesses to the SDRAM.
Table 24-30 SDRAM_CR Field Values For EMIF
to K4S641632H-TC(L)70 Interface
| Field |
Value |
Purpose |
| SR |
0 |
To avoid placing the EMIF into the self-refresh state |
| NM |
1 |
To configure the EMIF for a 16-bit data bus |
| CL |
011b |
To select a CAS latency of 3 |
| BIT11_9LOCK |
1 |
To allow the CL field to be written |
| IBANK |
010b |
To select 4 internal SDRAM banks |
| PAGESIZE |
0 |
To select a page size of 256 words |
Figure 24-19 SDRAM
Configuration Register (SDRAM_CR) | SR | Reserved | Reserved | Reserved |
| Reserved | NM | Reserved | Reserved | CL | BIT11_9LOCK |
| Reserved | IBANK | Reserved | PAGESIZE |