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.
1 year, 10 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 year, 9 months ago.
There is way to set the pin: AnalogIn ain0(A0); AnalogIn ain1(A1);
I hope this helps.