ADC with multi-channel works and DMA

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

ADC with multi-channel works and DMA

Jump to solution
1,231 Views
hanchengyang
Contributor II

Hello everyone,

 

I am working on a project which needs take care of many analog inputs, now I am using the the stupid method : configure to channel X -> wait for interrupt -> change to next channel ...

Is there any example that ADC refreshes certain array frequently without interrupting CPU ??

 

Best regards,

YANG Hancheng

Labels (1)
1 Solution
1,000 Views
DavidS
NXP Employee
NXP Employee

Hi YANG Hancheng,

We don not have specific example for your environment but there is good appnote that goes over using DMA for reading many ADC channel's.

http://cache.freescale.com/files/32bit/doc/app_note/AN4590.pdf

Regards,

David

View solution in original post

4 Replies
1,000 Views
hanchengyang
Contributor II

I forgot to mention that I am using KDS 3.0.1 with PEx.

0 Kudos
1,001 Views
DavidS
NXP Employee
NXP Employee

Hi YANG Hancheng,

We don not have specific example for your environment but there is good appnote that goes over using DMA for reading many ADC channel's.

http://cache.freescale.com/files/32bit/doc/app_note/AN4590.pdf

Regards,

David

999 Views
hanchengyang
Contributor II

Thanks a lot, I have just successfully configured DMA in ProcessorExpert for 12 channels continuous sampling with the help of your application note. Maybe I will wrote a guide for others.

Regards,

Hancheng

0 Kudos
999 Views
DavidS
NXP Employee
NXP Employee

Hi Hancheng,

Congratulations on your efforts!

If you have time to document (and/or share) I am sure others would appreciate and learn from it.

Regards,

David

0 Kudos