MC9S12XEP100 ATD pins can use as GPIO?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S12XEP100 ATD pins can use as GPIO?

717 次查看
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 项奖励
回复
1 回复

589 次查看
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 项奖励
回复