18f46k22 and analogue inputs
Posted: Sun Jan 22, 2017 7:17 pm
I have a problem with the 18f46k22 chip and reading an analogue input as a 10 bit resolution ( 0 - 1024).
Microchip specify the analogue inputs a being 10 bit.
However if I read it as an integer, I only get a value of 0 thru to 255. Which is a byte.
I am using an external voltage ref set to 1.5 V.
Any help would be appreciated.
Microchip specify the analogue inputs a being 10 bit.
However if I read it as an integer, I only get a value of 0 thru to 255. Which is a byte.
I am using an external voltage ref set to 1.5 V.
Any help would be appreciated.