some ATD pins used as analog to digtal pins , other unused ATD pins can used as GPIO? I need more IO pins.
Hi,
Yes, you can set some analog pins for ADC and the rest of the port as GPIO.
Please refer to the attached example code, where the I/O are set as follows:
AN0 (pot) analog input,
AN6 digital input
AN7 digital output.
Regards,
Daniel