refVccScaled Constant

Top  Previous  Next

Gets the constant used to select Vcc / 1.6 as the voltage reference.

Syntax

Cell.ADC.refVccScaled

Value

The constant that selects Vcc / 1.6 as the voltage reference.

Remarks

Since this voltage reference is dependent on supply voltage, it may not be very accurate. For example, if you power the WebCell with a 3.3V regulator that has a 5% tolerance, then the reference voltage could be anywhere from 1.96V to 2.17V. You can determine the voltage reference more accurately by using the calibrate function.

Examples

Cell.ADC.reference = Cell.ADC.refVccScaled;

See Also

ref1V Constant, refA0 Constant, refExt Constant