ADC reading Port Init dependency

cancel
Showing results for 
Search instead for 
Did you mean: 

ADC reading Port Init dependency

Jump to solution
329 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
1 Solution
277 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
278 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