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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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 

标签 (1)
附件
评论

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%3E%E5%9F%BA%E4%BA%8E%20NXP%20MCUxpresso%20SDK%20%E7%9A%84%20ADC-DMA%20%E5%A4%9A%E9%80%9A%E9%81%93%E8%A7%A6%E5%8F%91%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%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3EHi%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E6%9C%AC%E5%B8%96%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8DMA%E5%AF%B9%E5%A4%9A%E9%80%9A%E9%81%93ADC%E8%BF%9B%E8%A1%8C%E9%87%87%E6%A0%B7%E3%80%82%E5%B9%BB%E7%81%AF%E7%89%87%E6%98%AF%E4%B8%AD%E6%96%87%E7%9A%84%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E5%AF%B9%E4%BA%8E%E4%B8%8D%E5%90%8C%E7%9A%84%20MCU%20%E7%B3%BB%E5%88%97%EF%BC%8CKinetis%20%E5%92%8C%20LPC%20%E5%85%B7%E6%9C%89%E4%B8%8D%E5%90%8C%E7%9A%84%20ADC%20%E5%92%8C%20DMA%20%E7%B3%BB%E7%BB%9F%E3%80%82%E4%BB%A5KE15%E5%92%8CLPC51U68%E4%B8%BA%E4%BE%8B%EF%BC%8C%E4%BB%8B%E7%BB%8D%E5%A6%82%E4%BD%95%E5%90%AF%E7%94%A8%E5%90%84%E7%A7%8DADC%E5%92%8CDMA%E8%A7%A6%E5%8F%91%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E1.KE15%3A%E4%B8%89%E4%B8%AA%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%E5%8C%85%E6%8B%AC%EF%BC%9A%3C%2FP%3E%3CP%3E1.1%20LPIT%20HW%20%E8%A7%A6%E5%8F%91%20ADC%20%E5%92%8C%20DMA%20%E4%BC%A0%E8%BE%93%EF%BC%8C%E5%90%AF%E7%94%A8%E4%B8%AD%E6%96%AD%E4%BB%A5%E8%8E%B7%E5%8F%96%20ADC%20%E5%80%BC%EF%BC%9B%3C%2FP%3E%3CP%3E1.2%20%3CSPAN%3ELPIT%20HW%20%E8%A7%A6%E5%8F%91%20ADC%20%E5%92%8C%20DMA%20%E4%BC%A0%E8%BE%93%EF%BC%8CDMA%20%E5%B0%86%E8%87%AA%E5%8A%A8%E8%A7%A6%E5%8F%91%E4%B8%8B%E4%B8%80%E6%AC%A1%E4%BC%A0%E8%BE%93%EF%BC%9B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E1.3%20%E8%BD%AF%E4%BB%B6%E8%A7%A6%E5%8F%91%E5%A4%9AADC%E5%92%8CDMA%E4%BC%A0%E8%BE%93%EF%BC%9B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E2.LPC51U68%EF%BC%9A%E4%B8%A4%E4%B8%AA%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%E5%8C%85%E6%8B%AC%EF%BC%9A%3C%2FP%3E%3CP%3E2.1%3CSPAN%3E%E8%BD%AF%E4%BB%B6%E8%A7%A6%E5%8F%91%E5%A4%9AADC%E5%92%8CDMA%E4%BC%A0%E8%BE%93%EF%BC%9B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E2.2%20SCT%20%3CSPAN%3EHW%20%E8%A7%A6%E5%8F%91%20ADC%20%E5%92%8C%20DMA%20%E4%BC%A0%E8%BE%93%EF%BC%8CDMA%20%E5%B0%86%E8%87%AA%E5%8A%A8%E8%A7%A6%E5%8F%91%E4%B8%8B%E4%B8%80%E6%AC%A1%E4%BC%A0%E8%BE%93%EF%BC%9B%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%3E%E4%BA%A7%E5%93%81%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%3E%E4%BA%A7%E5%93%81%E7%B1%BB%E5%88%AB%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%3E%E6%81%A9%E6%99%BA%E6%B5%A6%E9%83%A8%E4%BB%B6%E7%BC%96%E5%8F%B7%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%20%7C%20Kinetis%20KE1xZ%2032%20%E4%BD%8D%205V%20MCU%EF%BC%8C%E5%B8%A6%E8%A7%A6%E6%91%B8%E7%95%8C%E9%9D%A2%20%7C%20NXP%3C%2FA%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%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%E8%BD%AF%E4%BB%B6%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%205px%3B%20height%3A%2024px%3B%22%3E%E6%81%A9%E6%99%BA%E6%B5%A6%E6%A0%87%E5%87%86SDK%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%3E%E6%AC%A2%E8%BF%8E%20%7C%20MCUXpresso%20SDK%20%E6%9E%84%E5%BB%BA%E5%99%A8%3C%2FA%3E%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%3E%E5%B7%A5%E5%85%B7%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%3E%E6%81%A9%E6%99%BA%E6%B5%A6%E5%BC%80%E5%8F%91%E6%9D%BF%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%E5%BC%80%E5%8F%91%E6%9D%BF%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%E5%B9%B3%E5%8F%B0%7CFreedom%E5%BC%80%E5%8F%91%E6%9D%BF%7CNXP%3C%2FA%3E%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%E6%9D%BF%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%3E%E9%80%82%E7%94%A8%E4%BA%8E%20LPC51U68%20MCU%20%E7%9A%84%20LPCXpresso51U68%20%E5%BC%80%E5%8F%91%E6%9D%BF%20%7C%20NXP%3C%2FA%3E%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%3E%E6%8A%80%E6%9C%AF%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9F%BA%E4%BA%8E%20NXP%20MCUxpresso%20SDK%20%E7%9A%84%20ADC-DMA%20%E5%A4%9A%E9%80%9A%E9%81%93%E8%A7%A6%E5%8F%91%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%3E%E8%BF%99%E5%BE%88%E6%9C%89%E8%B6%A3%E3%80%82%3CBR%20%2F%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E5%9C%A8%20KE1x%20%E5%92%8C%20KV3x%20%E5%A4%84%E7%90%86%E5%99%A8%E4%B8%8A%E5%AE%9E%E7%8E%B0%E4%BA%86%E8%AF%A5%E4%BB%A3%E7%A0%81%EF%BC%8C%E5%B9%B6%E4%B8%94%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%AE%BE%E7%BD%AE%E4%BB%A3%E7%A0%81%E4%B8%8D%E6%98%AF%E9%82%A3%E4%B9%88%E7%AE%80%E5%8D%95%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E6%83%B3%E7%9F%A5%E9%81%93%E6%98%AF%E5%90%A6%E6%9C%89%E4%BA%BA%E4%B8%BA%20ADC0%20%E5%92%8C%20ADC1%20%E5%AE%9E%E7%8E%B0%E4%BA%86%20ADC%20DMA%20%E5%A4%9A%E9%80%9A%E9%81%93%E8%AF%BB%E5%8F%96%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%B0%A2%E8%B0%A2%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E
无评分
版本历史
最后更新:
‎07-26-2020 06:20 AM
更新人: