Analogue input always reading 255
Posted: Wed Sep 11, 2019 11:39 am
Hi all,
I am trying to read an analogue input on AN3 on a PIC18F45K22 .
Whatever voltage I put on the input, 0 to 5 V, always reads 255.
(Macro "initialise" is part of a larger project but this bit won't work at all without it)
I've tried a new PIC.
Can someone have a look please?
Thanks,
Dave.
(sorry, forgot file!)
I am trying to read an analogue input on AN3 on a PIC18F45K22 .
Whatever voltage I put on the input, 0 to 5 V, always reads 255.
(Macro "initialise" is part of a larger project but this bit won't work at all without it)
I've tried a new PIC.
Can someone have a look please?
Thanks,
Dave.
(sorry, forgot file!)