Lincoln gpdma sleep Example
From Manuals
Compatibility Lincoln 60, Lincoln 60E
This example application demonstrates the how to transfer data while in sleep mode using the General Purpose Direct Memory Access (GPDMA) controller. The GPDMA controller allows peripheral-to-memory, memory-to-peripheral, and memory-to-memory transactions. The GPDMA can operate in sleep mode. Note that: in Sleep mode, the GPDMA cannot access the flash memory. The exampl intializes the source and destinate buffers. Then GPDMA channel 0 is initialized as follows:
- + Channel: 0
- + Transfer size: 0x100
- + Source address: DMA_SRC = LPC_AHBRAM1_BASE = 0x20080000
- + Destination address: DMA_DST = DMA_SRC+DMA_SIZE = 0x20080100
- + Transfer width = WORD
- + Transfer type: M2M (memory-to-memory)
- + No use link list
After the GPDMA is initialized the GPDMA interrupt is enabled then the "CLKPWR_Sleep()" function is called to enter sleep mode. The GPDMA then transfers 2 blocks of data from memory boundary to the other memory boundary in RAM by using interrupt mode while in sleep mode. The first UART, which is connected to the COM1 on the Lincoln microcontroller board, is configured for 115,200 bits per second, and 8-n-1 mode. When the program is started a message will be printed to the terminal.

