Programming Models
3-126 ADSP-214xx SHARC Processor Hardware Reference
SDRAM Controller
This section describes software programming steps required for the suc-
cessful operation of the SDC.
Power-Up Sequence
After reset, the SDCLK is running with the default PLL settings. However,
the SDC must be configured and initialized. In order to set up the SDC
and start the SDRAM power-up sequence for the SDRAMs, use the fol-
lowing procedure. Note that the registers must be programmed in order.
1. Chose a valid CCLK to SDCLK clock ratio in the PMCTL register.
2. Wait at least 15 core clock cycles until the new SDCLK frequency has
been settled up correctly.
3. Assign external banks to SDC in the EPCTL register.
4. Wait at least 8 core clock cycles (effect latency).
5. Program the refresh counter in the SDRRC register.
6. Define global control for SDC and SDRAM based on speed and
SDRAM specifications in the SDCTL register.
7. Once the SDPSS bit in the SDCTL register is set to 1, a dummy access
is required to start the power-up sequence.
The SDRAM is ready for access.
The
SDRS bit (bit 3) of the SDRAM control status register can be checked
to determine the current state of the SDC. If this bit is set, the SDRAM
power-up sequence has not been initiated.