ADC reading Port Init dependency

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ADC reading Port Init dependency

ソリューションへジャンプ
1,414件の閲覧回数
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 解決策
1,362件の閲覧回数
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 返信
1,363件の閲覧回数
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