AD_RESULT (Write)
The high byte of the A/D result (AD_RESULT) register can be written to set the reference voltage for
the A/D threshold-detection modes.
15
REFV7
REFV6
7
—
—
Bit
Bit
Number
Mnemonic
15:8
REFV7:0
7:0
—
REFV5
REFV4
—
—
Reference Voltage
These bits specify the threshold value. This selects a reference voltage
which is compared with an analog input pin. When the voltage on the
analog input pin crosses over (detect high) or under (detect low) the
threshold value, the A/D conversion complete interrupt pending bit is set.
Use the following formula to determine the value to write this register for
a given threshold voltage.
desired threshold voltage
---------------------------------------------------------------------------------- -
reference voltage
=
Reserved; for compatibility with future devices, write zeros to these bits.
AD_RESULT (Write)
Reset State:
REFV3
REFV2
—
—
Function
×
256
V
ANG ND
–
REF
REGISTERS
Address:
1FAAH
7F80H
8
REFV1
REFV0
0
—
—
C-7