reference Property

Top  Previous  Next

Gets or sets the source for the ADC voltage reference.

Syntax

Cell.ADC.reference

Property Value

A special value designating one of the voltage references.

Remarks

The voltage reference for the ADC is selected according to this table:

 

Value

Reference Source

Cell.ADC.ref1V

Internal 1.0V reference.

Cell.ADC.refVccScaled

Supply voltage divided by 1.6.

Cell.ADC.refA0

External reference on pin A0.

Cell.ADC.refExt

External reference on pin Aref.

Examples

Cell.ADC.reference = Cell.ADC.ref1V;

See Also

ref1V Constant, refA0 Constant, refExt Constant, refVccScaled Constant