Download EMMA Mobile1 Application Note DDR SDRAM Interface

Transcript
APPENDIX A. DDR-SDRAM DRIVER FUNCTION
49/57
A.3.7 Enter Deep Power Down Mode
[Function Name]
em1_ddr_set_DeepPowerDown
[Format]
DRV_RESULT em1_ddr_set_DeepPowerDown (uint ulCsNum);
[Argument]
Parameter
Type
I/O
uICsNum
uint
I
Detail
CS number. Can be set with:
0 – CS0 or
1 – CS1
[Function Return]
DRV_OK;
DRV_ERR_STATE;
[Function Flow]
START
Set CS0/1 Self-Refresh count value
[ MEMC_DDR_CONFIGR2 ]
Enter Deep Power Down mode
[ MEMC_DDR_CONFIGC2 ]
Check the current state of DDR-SDRAM
[ call function: em1_ddr_get_CS_state ]
STATE == SDR_STATE_DEEP_PD ?
NO
YES
Return DRV_OK
Return DRV_ERR_STATE
Figure A-6 Switch to Deep Power Down Mode
[Note]
None
Application Note S19903EJ1V0AN00