PIC14000
Two registers PREFA (9Bh) and PREFB (9Ch) are
used to select the reference output voltages. The
PREFx<7:3> bits select the output from the coarse lad-
der, while PREFx<2:0> bits are for the fine-tune adjust-
ment. Table 9-1 and Table 9-2 show the reference
decoding.
These voltages are visible at either RC0/REFA or
RD3/REFB pins by setting the CMAOE (CMCON<1>)
or CMBOE (CMCON<5>) bits. Setting CMxOE does
not affect the reference voltages. It only enables the pin
function regardless of the port TRIS register setting.
These outputs are not buffered, so they cannot directly
drive any DC loads.
The reference outputs are also connected to two inde-
pendent comparators, COMPA and COMPB. Thus, the
references can be used to set the comparator trip-
points. The A/D converter can also monitor the refer-
ence outputs via A/D channels 8 and 9. Refer to
Section 8 for the description of the A/D operation.
The programmable reference output is designed to
track the output from the level shift network. However,
there will always be some mismatch due to component
drift. For best accuracy, the A/D should be used to peri-
odically calibrate the references to the desired
set-point.
FIGURE 9-3: COMPARATOR AND PROGRAMMABLE REFERENCE BLOCK DIAGRAM
(ONE OF TWO SHOWN)
CMOFF
~5 µA
~0.85V
PREFx<7:3>
Coarse Adjust
Analog
Mux
(1 of 32)
~0.15V
Analog
Mux
(1 of 32)
PREFx<7:3>
Programmable
Reference
From AN1 Level
Shift Network
CMBOE
From AN5 Level
Shift Network
Channel B only
Fine Tune Adjust
Analog
Mux
(1-of-8)
RC0/REFA or
RD3/REFB
PREFx<2:0>
CMxOE
To A/D
Converter
To CMxOUT bit,
_
CMCON register
+
CPOLx
From Other
Comparator
RC1/CMPA or
RD2/CMPB
CMIF bit
PIR1<7>
DS40122B-page 68
Preliminary
© 1996 Microchip Technology Inc.