ADC-DMA multi-channels trigger based on NXP MCUxpresso SDK - KE15&LPC51U68

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC-DMA multi-channels trigger based on NXP MCUxpresso SDK - KE15&LPC51U68

ADC-DMA multi-channels trigger based on NXP MCUxpresso SDK - KE15&LPC51U68

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 CategoryNXP Part NumberURL
MCUKE15Arm Cortex-M0+|Kinetis KE1xZ 32-bit 5V MCUs with Touch Interface | NXP 
MCULPC51U68

LPC51U68 | NXP 

MCUXpresso SDK SoftwareNXP standard SDK

Welcome | MCUXpresso SDK Builder 

 

Tools

NXP Development BoardURL
FRDM-KE15Z Freedom Board

FRDM-KE15Z Platform|Freedom Development Board | NXP 

LPCXpresso51U68 board

LPCXpresso51U68 board for LPC51U68 MCU | NXP 

Labels (1)
Attachments
Comments

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.

%3CLINGO-SUB%20id%3D%22lingo-sub-1118863%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EADC-DMA%20multi-channels%20trigger%20based%20on%20NXP%20MCUxpresso%20SDK%20-%20KE15%26amp%3BLPC51U68%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1118863%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThis%20thread%20mainly%20introduces%20how%20to%20sample%20multi%20channels%20ADC%20with%20DMA.%20The%20slides%20is%20in%20Chinese.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EFor%20different%20MCU%20family%2C%20Kinetis%20%26amp%3B%20LPC%20has%20different%20ADC%20%26amp%3B%20DMA%20system.%20There%20takes%20KE15%20%26amp%3B%20LPC51U68%20for%20example%2C%20introduce%20how%20to%20enable%20various%20ADC%20%26amp%3B%20DMA%20trigger%20solution.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E1.KE15%3AThree%20sample%20projects%20include%3A%3C%2FP%3E%3CP%3E1.1%20LPIT%20HW%20trigger%20ADC%20%26amp%3B%20DMA%20transfer%2C%20enable%20interrupt%20for%20get%20ADC%20value%3B%3C%2FP%3E%3CP%3E1.2%26nbsp%3B%3CSPAN%3ELPIT%20HW%20trigger%20ADC%20%26amp%3B%20DMA%20transfer%2C%20DMA%20will%20automatically%20trigger%20next%20transfer%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E1.3%20Software%20trigger%20multi-ADC%20%26amp%3B%20DMA%20transfer%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E2.LPC51U68%3A%20Two%20sample%20projects%20include%3A%3C%2FP%3E%3CP%3E2.1%26nbsp%3B%3CSPAN%3ESoftware%20trigger%20multi-ADC%20%26amp%3B%20DMA%20transfer%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E2.2%20SCT%3CSPAN%3E%26nbsp%3BHW%20trigger%20ADC%20%26amp%3B%20DMA%20transfer%2C%20DMA%20will%20automatically%20trigger%20next%20transfer%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%20font-size%3A%2030px%3B%22%3E%3CSTRONG%20style%3D%22color%3A%20%23717171%3B%20border%3A%200px%3B%20font-weight%3A%20bold%3B%20font-size%3A%2030px%3B%22%3EProducts%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CTABLE%20class%3D%22j-table%20jiveBorder%22%20style%3D%22border%3A%201px%20solid%20%23c6c6c6%3B%20font-weight%3A%20inherit%3B%20margin%3A%200px%200px%202px%3B%22%20width%3D%22100%25%22%3E%3CTHEAD%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CTR%20style%3D%22background-color%3A%20%23efefef%3B%20font-weight%3A%20inherit%3B%20height%3A%2024px%3B%22%3E%3CTH%20class%3D%22%22%20style%3D%22font-weight%3A%20bold%3B%20padding%3A%205px%3B%20height%3A%2024px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3EProduct%20Category%3C%2FSPAN%3E%3C%2FTH%3E%3CTH%20class%3D%22%22%20style%3D%22font-weight%3A%20bold%3B%20padding%3A%205px%3B%20height%3A%2024px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3ENXP%20Part%20Number%3C%2FSPAN%3E%3C%2FTH%3E%3CTH%20class%3D%22%22%20style%3D%22font-weight%3A%20bold%3B%20padding%3A%205px%3B%20height%3A%2024px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3EURL%3C%2FSPAN%3E%3C%2FTH%3E%3C%2FTR%3E%3C%2FTHEAD%3E%3CTBODY%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CTR%20style%3D%22font-weight%3A%20inherit%3B%20height%3A%2024px%3B%22%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3EMCU%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3EKE15%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3E%3CA%20class%3D%22link-titled%22%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-microcontrollers%2Fgeneral-purpose-mcus%2Fke-series-cortex-m4-m0-plus%2Fup-to-72mhz-5v-main-stream-cm0-plus-mcu-with-nxp-touch-tsi-and-can-control%3AKE1xZ%22%20title%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-microcontrollers%2Fgeneral-purpose-mcus%2Fke-series-cortex-m4-m0-plus%2Fup-to-72mhz-5v-main-stream-cm0-plus-mcu-with-nxp-touch-tsi-and-can-control%3AKE1xZ%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EArm%20Cortex-M0%2B%7CKinetis%20KE1xZ%2032-bit%205V%20MCUs%20with%20Touch%20Interface%20%7C%20NXP%3C%2FA%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%20style%3D%22font-weight%3A%20inherit%3B%20height%3A%2024px%3B%22%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3EMCU%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3ELPC51U68%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3E%3CP%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%20margin%3A%200pt%200px%200pt%200in%3B%22%3E%3CA%20class%3D%22link-titled%22%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-microcontrollers%2Fgeneral-purpose-mcus%2Fhigh-performance-power-efficient-and-cost-sensitive-arm-cortex-m0-plus-mcus%3ALPC51U68%22%20title%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-microcontrollers%2Fgeneral-purpose-mcus%2Fhigh-performance-power-efficient-and-cost-sensitive-arm-cortex-m0-plus-mcus%3ALPC51U68%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ELPC51U68%20%7C%20NXP%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%20style%3D%22font-weight%3A%20inherit%3B%20height%3A%2024px%3B%22%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3EMCUXpresso%20SDK%20Software%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3ENXP%20standard%20SDK%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3E%3CP%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%20margin%3A%200pt%200px%200pt%200in%3B%22%3E%3CA%20class%3D%22link-titled%22%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fwelcome%22%20title%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fwelcome%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EWelcome%20%7C%20MCUXpresso%20SDK%20Builder%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FDIV%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22border%3A%200px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%20font-size%3A%2030px%3B%22%3E%3CSTRONG%20style%3D%22border%3A%200px%3B%20font-weight%3A%20bold%3B%20font-size%3A%2030px%3B%22%3ETools%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%20style%3D%22border%3A%200px%3B%22%3E%3CTABLE%20class%3D%22j-table%20jiveBorder%22%20style%3D%22border%3A%201px%20solid%20%23c6c6c6%3B%20font-weight%3A%20inherit%3B%20margin%3A%200px%200px%202px%3B%22%20width%3D%22100%25%22%3E%3CTHEAD%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CTR%20style%3D%22background-color%3A%20%23efefef%3B%20border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CTH%20class%3D%22%22%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20bold%3B%20padding%3A%205px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3ENXP%20Development%20Board%3C%2FSPAN%3E%3C%2FTH%3E%3CTH%20class%3D%22%22%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20bold%3B%20padding%3A%205px%3B%22%3E%3CSPAN%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%22%3EURL%3C%2FSPAN%3E%3C%2FTH%3E%3C%2FTR%3E%3C%2FTHEAD%3E%3CTBODY%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CTR%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CTD%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20padding%3A%205px%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23333f48%3B%20background-color%3A%20%23ffffff%3B%20font-size%3A%2016px%3B%22%3EFRDM-KE15Z%20Freedom%20Board%3C%2FSPAN%3E%3C%2FTD%3E%3CTD%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20padding%3A%205px%3B%22%3E%3CP%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%20margin%3A%200pt%200px%200pt%200in%3B%22%3E%3CA%20class%3D%22link-titled%22%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdevelopment-boards%2Ffreedom-development-boards%2Fmcu-boards%2Ffreedom-development-platform-for-kinetis-ke1xmcus%3AFRDM-KE15Z%22%20title%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdevelopment-boards%2Ffreedom-development-boards%2Fmcu-boards%2Ffreedom-development-platform-for-kinetis-ke1xmcus%3AFRDM-KE15Z%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EFRDM-KE15Z%20Platform%7CFreedom%20Development%20Board%20%7C%20NXP%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CTD%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20padding%3A%205px%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23333f48%3B%20background-color%3A%20%23ffffff%3B%20font-size%3A%2016px%3B%22%3ELPCXpresso51U68%20board%3C%2FSPAN%3E%3C%2FTD%3E%3CTD%20style%3D%22border%3A%20inherit%20solid%20inherit%3B%20padding%3A%205px%3B%22%3E%3CP%20style%3D%22border%3A%200px%3B%20font-weight%3A%20inherit%3B%20margin%3A%200pt%200px%200pt%200in%3B%22%3E%3CA%20class%3D%22link-titled%22%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-microcontrollers%2Fgeneral-purpose-mcus%2Flpcxpresso51u68-for-the-lpc51u68-mcus%3AOM40005%22%20title%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-microcontrollers%2Fgeneral-purpose-mcus%2Flpcxpresso51u68-for-the-lpc51u68-mcus%3AOM40005%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ELPCXpresso51U68%20board%20for%20LPC51U68%20MCU%20%7C%20NXP%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FDIV%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1118863%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ETechnologies%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1963429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20ADC-DMA%20multi-channels%20trigger%20based%20on%20NXP%20MCUxpresso%20SDK%20-%20KE15%26amp%3BLPC51U68%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1963429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20is%20very%20interesting.%3CBR%20%2F%3EI've%20implemented%20the%20code%20on%20KE1x%20and%20KV3x%20processors%20and%20it%20works%20like%20a%20charm.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20setup%20code%20is%20not%20so%20easy%2C%20so%20I%20was%20wondering%20if%20anyone%20implemented%20the%20ADC%20DMA%20multichannel%20reading%20for%20both%20ADC0%20and%20ADC1.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎07-26-2020 06:20 AM
Updated by: