ADC reference

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

Moderator: Benj

Post Reply
Derrihj
Posts: 348
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 67 times
Been thanked: 33 times
Contact:

ADC reference

Post by Derrihj »

Hi Flowcoders, hope u are all fine and all is well with you, I have 3 questions (1) Is it ok to use 1.1v VRef+ pin reference on more than a single ADC on the same device? (2) Is it ok if i use 1.1v VRef+ pin reference on one ADC and then i use default 5v on other two or more ADC on the same device? (3) If i measure say 4.969v as reference voltage as my project is running instead of 5v then i set that 4.969v in my code. Question is, do i even need to set 4.969v in the component properties for example, VRef voltage to 496.9v also?

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: ADC reference

Post by medelec35 »

Hi. Derrihj.
All good thank you, except for hurting my back lifting.
All on the mend though.
How are you doing?
Derrihj wrote:
Mon Jun 07, 2021 9:20 pm
(1) Is it ok to use 1.1v VRef+ pin reference on more than a single ADC on the same device?
Yes, you can set Vref on one or more ADC's
Derrihj wrote:
Mon Jun 07, 2021 9:20 pm
(2) Is it ok if i use 1.1v VRef+ pin reference on one ADC and then i use default 5v on other two or more ADC on the same device?
Also, Yes as you can select the Vref or VCC on any of the ADC pins.
Derrihj wrote:
Mon Jun 07, 2021 9:20 pm
If i measure say 4.969v as reference voltage as my project is running instead of 5v then i set that 4.969v in my code. Question is, do i even need to set 4.969v in the component properties, for example, VRef voltage to 496.9v also?
The actual x10 mV Vref set within properties is for simulation only. It will not affect hardware.
Therefore if the actual hardware is 4.969V, you will not have to adjust the 500 within properties to 497.
Martin

Post Reply