ADC reading Port Init dependency

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

ADC reading Port Init dependency

Jump to solution
942 Views
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?.

Tags (3)
0 Kudos
Reply
1 Solution
890 Views
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

View solution in original post

1 Reply
891 Views
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