iMX6 (ULL) - Is there an interrupt function for ADC channels?

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

iMX6 (ULL) - Is there an interrupt function for ADC channels?

987 Views
jana_beck
Contributor II

Hello!
I am trying to read 32 analog voltage levels.
I was thinking of using four analog multiplexer like 74HC4051
and connect each to one ADC channel (so four ADC channels in total).

Constantly polling through these 32 analog voltage levels is not a great option and will keep the CPU unnecessarily busy.
What I really want to detect is voltage level changes only, which will occur not too often, every few minutes max. 

So my question is, can I use the pins dedicated for ADC channels on the iMX6ULL (or other iMX6 versions) as interrupts somehow?


0 Kudos
3 Replies

963 Views
weidong_sun
NXP TechSupport
NXP TechSupport

ADC1 & ADC2 have their own interrupt source respectively.

weidong_sun_0-1610345640440.png

 

Regards,

Weidong

0 Kudos

982 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

 

You need to convert 32 channels of analog to digital, the number of channels is too much, it is not the best to use this kind of solution. Because you have to guarantee the performance of your program. It is recommended that you use two 16-channel analog input ADC chips, or one 32-channel input ADC chip. Use eCSPI interface to link with i.mx6ULL.

 

Hope the idea is helpful to you.

Have a nice day!

B.R

Weidong

0 Kudos

966 Views
jana_beck
Contributor II

Hello,
thank you for your reply.
Is there an interrupt function on the iMX6 ADC interface?

I need to find a way around polling. An external ADC with interrupt function will work too.

Thanks,
Jana

0 Kudos