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.
6 years, 11 months ago. This question has been closed. Reason: Duplicate question
How to set up P26, P25 pad as AIN6 and AIN7 in the 4th function group ?
Hi , a new guy here, hoping to get some help. The Wiznet board I am using is Wizwiki-W7500ECO, and I need to use all its 6 channels of ADC, that is AIN0, 1, 2, 3, 4, 6,7. By default, we get the first 4 channels (AIN0,1,2,3) in the "normal function" group without having to do anything. But the last two channels, AIN6, and AIN7, on pad P26, and P25 are defaulted to be PWM1, 0. What do I have to do in the code to set up the two pads to be analog input (in 4th function group) ? I have already tried the regular method of using statement
analog input
AnalogIn AIN6(P26); // AIN6, K1_3G/AIN6_SPARE AnalogIn AIN7(P25); // AIN7, K2_3G/AIN7_SPARE
That does not work for these two pads. An example code would be very appreciated. h.s.
nobody here ?
posted by h s 26 Jan 2018