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?
ADC1 & ADC2 have their own interrupt source respectively.
Regards,
Weidong
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
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