ADC reading Port Init dependency

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

ADC reading Port Init dependency

跳至解决方案
1,034 次查看
rijil_kp
Contributor III

I want to read an ADC channel reading from one of my pin (example PTC19).

In order to do this should I do the port initialization of PTC19?. or can I read ADC just configuring ADC module only?.

标记 (3)
0 项奖励
回复
1 解答
982 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Rijil,

by default, pins with analog function (ADC or CMP) are configured as analog pins. Pins without analog function are disabled (the only exceptions are JTAG pins).

So, it's not necessary to configure the pins if the pins are in default reset state (PORT_PCRn[MUX] = 0).

pastedImage_647.png

Regards,

Lukas

在原帖中查看解决方案

1 回复
983 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Rijil,

by default, pins with analog function (ADC or CMP) are configured as analog pins. Pins without analog function are disabled (the only exceptions are JTAG pins).

So, it's not necessary to configure the pins if the pins are in default reset state (PORT_PCRn[MUX] = 0).

pastedImage_647.png

Regards,

Lukas