MC9S12XEP100 ATD pins can use as GPIO?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S12XEP100 ATD pins can use as GPIO?

348 Views
milkma
Contributor I

some ATD pins used as analog to digtal pins , other unused ATD pins can used as GPIO? I need more  IO pins.

0 Kudos
1 Reply

220 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos