3 ms·
I have a fair bit of Microchip experience, things to consider: - You must set the AD1PCFGH or ANSEL bits to enable ADC functionality on a pin. - There's nothi
by salomon812 10y ago
I have a fair bit of Microchip experience, things to consider:
- You must set the AD1PCFGH or ANSEL bits to enable ADC functionality on a pin.
- There's nothing stopping you from accidentally configuring the pin as a digital output (it might even be helpful for some applications to measure the actual output from a digital output). Check the value of the TRIS register for that pin (and ODC register if it has it)
- Often there is a "Configuring Analog Port" section in the I/O Port section of the chip's datasheet.
Good luck!
- mindcruzer 10y agoI'm not sure if by "microchip" OP means MicroChip the manufacturer, or just micro-chip in the more generic sense.
- aerovistae 10y agoYes, I meant it in the generic sense, I'm sorry for the ambiguity. I didn't realize there was a manufacturer called MicroChip until this thread.