Hello,
We are using the PIC16F18856 in 4x4mm UQFN package.
Port RA5 works when we program it as digital input…..reads it fine whether input is high or low. Port RA5 also works when we program it as digital output….gives a square wave output fine.
However, when we program the pin as an analog (ADC) input..it reads it but the 9th bit (dec 256) of the ADRES register is strangely always set high)….so for example even when we have a grounded input to the pin as an ADC, it reads 0x0100 instead of zero.
PIC16F18856 datasheet
https://www.microchip.com/wwwproducts/en/PIC16F18856
We are using the PIC16F18856 in 4x4mm UQFN package.
Port RA5 works when we program it as digital input…..reads it fine whether input is high or low. Port RA5 also works when we program it as digital output….gives a square wave output fine.
However, when we program the pin as an analog (ADC) input..it reads it but the 9th bit (dec 256) of the ADRES register is strangely always set high)….so for example even when we have a grounded input to the pin as an ADC, it reads 0x0100 instead of zero.
PIC16F18856 datasheet
https://www.microchip.com/wwwproducts/en/PIC16F18856