Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 2 months ago.
How to read two ADCs (FRDM-K64F)
The K64F has two ADCs on board. I'd like to connect one permanently to a pin to handle an audio stream in real time, while the other I want to switch between a number of analogue pins in slow time which have analogue control voltages on them.
However, AnalogIn has no way of specifying which of the ADCs to connect to a given pin.
How can I do this? Thank you!! :-)
1 Answer
5 years, 2 months ago.
Hi Steve,
There is way to set the pin: AnalogIn ain0(A0); AnalogIn ain1(A1);
I hope this helps.
Regards, Pekka
Thanks for replying, Pekka. I don't think I worded my question very well. Take this line:
AnalogIn ain0(A0)
Which of the two ADCs will be connected to A0?
What I want to do is use one of the ADCs for the audio input pin, and the other ADC for the three control voltages. I don't know how to ensure this.
posted by 02 Oct 2019