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?.
Solved! Go to Solution.
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).
Regards,
Lukas
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).
Regards,
Lukas