6 years, 3 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.

Question relating to:

WIZnet is a fabless semiconductor company specializing in Hardware TCP/IP Ethernet controller and SoC, with high performance and low cost solution.

nobody here ?

posted by h s 26 Jan 2018