Hi:
This thread mainly introduces how to sample multi channels ADC with DMA. The slides is in Chinese.
For different MCU family, Kinetis & LPC has different ADC & DMA system. There takes KE15 & LPC51U68 for example, introduce how to enable various ADC & DMA trigger solution.
1.KE15:Three sample projects include:
1.1 LPIT HW trigger ADC & DMA transfer, enable interrupt for get ADC value;
1.2 LPIT HW trigger ADC & DMA transfer, DMA will automatically trigger next transfer;
1.3 Software trigger multi-ADC & DMA transfer;
2.LPC51U68: Two sample projects include:
2.1 Software trigger multi-ADC & DMA transfer;
2.2 SCT HW trigger ADC & DMA transfer, DMA will automatically trigger next transfer;
Products
Product Category | NXP Part Number | URL |
---|---|---|
MCU | KE15 | Arm Cortex-M0+|Kinetis KE1xZ 32-bit 5V MCUs with Touch Interface | NXP |
MCU | LPC51U68 | |
MCUXpresso SDK Software | NXP standard SDK |
Tools
NXP Development Board | URL |
---|---|
FRDM-KE15Z Freedom Board | |
LPCXpresso51U68 board |
This is very interesting.
I've implemented the code on KE1x and KV3x processors and it works like a charm.
The setup code is not so easy, so I was wondering if anyone implemented the ADC DMA multichannel reading for both ADC0 and ADC1.
Thanks.