LPC51U68 Multi channels ADC DMA transfer

Document created by Dawei You Employee on Jan 3, 2020
Version 1Show Document
  • View in full screen mode

Hi:

 

Since LPC series ADC has sequence function, so implement multi-channel ADC transfer is easy.

But use DMA is also meaning, so there are two demos to show how to use such applications

1.lpc_multi-channels_adc_dma_sw_trg

Use SW trigger multi channels ADC transfer, but use DMA to transfer result to result array.

use don't need to care the channel result register, but fetch data from global data register;

 

2.lpc_multi-channels_adc_dma_hw_trg

for many cases, user need to trigger ADC multi channels transfer periodly, and collect enough data for processing.

so this demo use SCT_OUT7 to trigger ADC Sequence A for 6 channels, then after 1024 rounds, generate DMA interrupt to process all 6*1024 data array.

 

all demos are implemented on SDK2.6.0 

1 person found this helpful

Outcomes