Software Development
FM4 S6E2H-Series Starter Kit Guide, Doc. No. 002-11387 Rev. **
36
5. Run the program and the ADC value will be displayed in the Serial Port Viewer window.
Figure 4-2: ADC value
6. Turn the potentiometer, the ADC values will change accordingly.
4.2.2 Direct Memory Access
(
DMA)
4.2.2.1 Project Description
This project demonstrates DMA operation of the S6E2HG device. The program configures DMA
to move the data from
au32SourceData
(source array) to
au32DestinationData
(destination
array), and then compares the content of the arrays to verify the data.
4.2.2.2 Hardware Connection
No specific hardware connections are required for this project. All connections are hardwired on
the board.
4.2.2.3 Verify Output
4.2.2.3.1 Instructions for IAR Embedded Workbench
1. Power the FM4 S6E2H-Series Starter board from CN3 using a USB cable, refer to
2. Open the project file
in IAR Embedded Workbench from the following directory on your
PC:
IAR project: <User_Directory>:
\FM4 S6E2H-Series Starter Kit_Ver01\Firmware
\Demo Projects\s6e2hg_dma\IAR\s6e2hg_dma.eww.
3. Build the project and download the code into the S6E2HG device.