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.
18f46k22 and analogue inputs
Moderator: Benj
-
Roy Johnston
- Flowcode V4 User
- Posts: 220
- Joined: Mon Aug 24, 2009 8:38 am
- Has thanked: 2 times
- Been thanked: 34 times
- QMESAR
- Valued Contributor

- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
Re: 18f46k22 and analogue inputs
Hi
Please post the Flowchart you are using it will help people here to help you, when Microchip specify 10 bit it is 10 bit of that you can be sure
Please post the Flowchart you are using it will help people here to help you, when Microchip specify 10 bit it is 10 bit of that you can be sure
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
Roy Johnston
- Flowcode V4 User
- Posts: 220
- Joined: Mon Aug 24, 2009 8:38 am
- Has thanked: 2 times
- Been thanked: 34 times
Re: 18f46k22 and analogue inputs
Thanks for your reply, I was about to post my flow code. when I realized I had a problem with my code elsewhere, it is working.
thank you
thank you