1. To provide stable power for controller and memory device, the controller must assert and hold CKE to a logic low level. Then apply stable clock. Note: XDDR2SEL should be High level to hold CKE to low. 2. Set the PhyControl0.ctrl_start_pointand PhyControl0.ctrl_incbit-fields to correct value according to clock frequency. Set the PhyControl0.ctrl_dll_onbit-field to ‘1’ to turn on the PHY DLL. 3. DQS Cleaning: Set the PhyControl1.ctrl_shiftcand PhyControl1.ctrl_offsetcbit-fields to correct value according to clock frequency and memory tAC parameters. 4. Set the PhyControl0.ctrl_startbit-field to ‘1’. 5. Set the ConControl. At this moment, an auto refresh counter should be off. 6. Set the MemControl. At this moment, all power down modes should be off. 7. Set the MemConfig0register. If there are two external memory chips, set the MemConfig1 register. 8. Set the PrechConfigand PwrdnConfigregisters. 9. Set the TimingAref, TimingRow, TimingDataand TimingPowerregisters according to memory AC parameters. 10. If QoS scheme is required, set the QosControl0~15and QosConfig0~15registers. 11. Wait for the PhyStatus0.ctrl_lockedbit-fields to change to ‘1’. Check whether PHY DLL is locked. 12. PHY DLL compensates the changes of delay amountcaused by Process, Voltage and Temperature (PVT) variation during memory operation. Therefore, PHY DLL should not be off for reliable operation. It can be off except runs at low frequency. If off mode is used, set the PhyControl0.ctrl_forcebit-field to correct value according to the PhyStatus0.ctrl_lock_value[9:2]bit-field to fix delay amount. Clear the PhyControl0.ctrl_dll_onbit-field to turn off PHY DLL. 13. Confirm whether stable clock is issued minimum 200us after power on 14. Issue a NOPcommand using the DirectCmdregister to assert and to hold CKE to a logic high level.15. Wait for minimum 400ns. 16. Issue a PALLcommand using the DirectCmdregister. 17. Issue an EMRS2command using the DirectCmdregister to program the operating parameters. 18. Issue an EMRS3command using the DirectCmdregister to program the operating parameters. 19. Issue an EMRScommand using the DirectCmdregister to enable the memory DLLs. 20. Issue a MRScommand using the DirectCmdregister to reset the memory DLL. 21. Issue a PALLcommand using the DirectCmdregister. 22. Issue two Auto Refreshcommands using the DirectCmdregister. 23. Issue a MRScommand using the DirectCmdregister to program the operating parameters without resetting the memory DLL. 24. Wait for minimum 200 clock cycles. 25. Issue an EMRScommand using the DirectCmdregister to program the operating parameters. If OCD calibration is not used, issue an EMRScommand to set OCD Calibration Default. After that, issue an EMRS command to exit OCD Calibration Mode and to program the operating parameters. 26. If there are two external memory chips, perform steps 14~25 for chip1 memory device. 27. Set the ConControlto turn on an auto refresh counter. 28. If power down modes is required, set the MemControlregisters. 15. Wait for minimum 400ns. 16. Issue a PALLcommand using the DirectCmdregister. 17. Issue an EMRS2command using the DirectCmdregister to program the operating parameters. 18. Issue an EMRS3command using the DirectCmdregister to program the operating parameters. 19. Issue an EMRScommand using the DirectCmdregister to enable the memory DLLs. 20. Issue a MRScommand using the DirectCmdregister to reset the memory DLL. 21. Issue a PALLcommand using the DirectCmdregister. 22. Issue two Auto Refreshcommands using the DirectCmdregister. 23. Issue a MRScommand using the DirectCmdregister to program the operating parameters without resetting the memory DLL. 24. Wait for minimum 200 clock cycles. 25. Issue an EMRScommand using the DirectCmdregister to program the operating parameters. If OCD calibration is not used, issue an EMRScommand to set OCD Calibration Default. After that, issue an EMRS command to exit OCD Calibration Mode and to program the operating parameters. 26. If there are two external memory chips, perform steps 14~25 for chip1 memory device. 27. Set the ConControlto turn on an auto refresh counter. 28. If power down modes is required, set the MemControlregisters.
DMC0_CONCONTROL = 0x0FFF2350;/* Auto Refresh Counter should be off */ DMC0_MEMCONTROL = 0x00202430;/* Dynamic power down should be off */ DMC0_MEMCONFIG0 = 0x20E01323;
DMC1_CONCONTROL = 0x0FFF2350;/* Auto Refresh Counter should be off */ DMC1_MEMCONTROL = 0x00202430;/* Dynamic power down should be off */ DMC1_MEMCONFIG0 = 0x40E01323;