ADC and External Vref

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
barryw
Posts: 13
Joined: Wed Jun 24, 2009 2:05 pm

ADC and External Vref

Post by barryw »

Hi, Got a small problem in that the Vcc of my PIC is unstable so I need to use an external Reference voltage for my ADC ( this a battery powered circuit)
so how do I set up my ADC to use Vref+ on AN3, I am assuming that it will have to be done with a "C" statement. The PIC is a 18F819 and only AN0 & AN1 will be analog inputs. Is there an example of the code required?
Thanks

Barry W

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ADC and External Vref

Post by Benj »

Hello Barry,

Go into the properties for the ADC component and you will be given an option to enable the +Vref functionality. If you also provide a correct voltage for your Vref in the properties then the read as string and read as voltage will also work correctly.

Post Reply