User Guide
GD32450Z-EVAL
31
5.15. EXMC_SDRAM_DeepSleep
5.15.1. DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use EXMC control the SDRAM
Learn to use deepsleep mode
5.15.2. DEMO running result
GD32450Z-EVAL-V1.1 board has EXMC module to control SDRAM. Before running the
demo, P2,P3,JP16,JP17,JP18 must be fitted to SDRAM, JP13 must be fitted to USART.
Download the program <15_EXMC_SDRAM_DeepSleep> to the EVAL board. This
demo shows how to use SDRAM in the deepsleep mode. Firstly, MCU works in the
normal mode, SDRAM auto-refresh cycles are performed by MCU, we write the specified
data to the SDRAM. Secondly, we make the MCU to deepsleep mode, at the time,
SDRAM auto-refresh cycles are performed by itself and LED2 will light on. Thirdly, press
the user key to wake up MCU, compare the data which read from SDRAM with the write
data, if the test pass, LED1 will be turned on. Otherwise, turn on the LED3. Information
via a HyperTerminal output as following: