18f46k22 and analogue inputs

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times

18f46k22 and analogue inputs

Post by Roy Johnston »

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.

User avatar
QMESAR
Valued Contributor
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

Post by QMESAR »

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 :D

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

Post by Roy Johnston »

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

Post Reply