C8051F120/1/2/3/4/5/6/7
Rev. 1.2
35
1.10. Comparators and DACs
Each C8051F12x MCU has two 12-bit DACs and two comparators on chip. The MCU data and control interface to
each comparator and DAC is via the Special Function Registers. The MCU can place any DAC or comparator in low
power shutdown mode.
The comparators have software programmable hysteresis and response time. The response time of the comparators
can be adjusted to minimize power consumption, or to maximize speed. Each comparator can generate an interrupt on
its rising edge, falling edge, or both; these interrupts are capable of waking up the MCU from sleep mode. The com-
parators' output state can also be polled in software. The comparator outputs can be programmed to appear on the Port
I/O pins via the Crossbar.
The DACs are voltage output mode, and include a flexible output scheduling mechanism. This scheduling mecha-
nism allows DAC output updates to be forced by a software write or a Timer 2, 3, or 4 overflow. The DAC voltage
reference is supplied via the dedicated VREFD input pin on C8051F120/2/4/6 devices or via the internal voltage ref-
erence on C8051F121/3/5/7 devices. The DACs are useful as references for the comparators or offsets for the differ-
ential inputs of the ADC.
+
-
CP1
CP1+
CP1-
DAC0
DAC1
REF
REF
CP0
CIP-51
and
Interrupt
Handler
CP1
DAC0
DAC1
CP0+
CP0-
CP1
CP0
(Port I/O)
(Port I/O)
+
-
CP0
SFR's
(Data
and
Cntrl)
CROSSBAR
Figure 1.13. Comparator and DAC Diagram
Summary of Contents for C8051F120
Page 2: ...C8051F120 1 2 3 4 5 6 7 2 Rev 1 2 Notes ...
Page 8: ...C8051F120 1 2 3 4 5 6 7 8 Rev 1 2 26 2 Flash Programming Commands 318 26 3 Debug Support 321 ...
Page 16: ...C8051F120 1 2 3 4 5 6 7 16 Rev 1 2 Notes ...
Page 48: ...C8051F120 1 2 3 4 5 6 7 48 Rev 1 2 ...
Page 98: ...C8051F120 1 2 3 4 5 6 7 98 Rev 1 2 ...
Page 106: ...C8051F120 1 2 3 4 5 6 7 106 Rev 1 2 Notes ...
Page 183: ...C8051F120 1 2 3 4 5 6 7 Rev 1 2 183 Notes ...
Page 184: ...C8051F120 1 2 3 4 5 6 7 184 Rev 1 2 ...
Page 214: ...C8051F120 1 2 3 4 5 6 7 214 Rev 1 2 Notes ...