|
C8051F80X_14 Datasheet, PDF (65/251 Pages) Silicon Laboratories – Mixed Signal ISP Flash MCU Family | |||
|
◁ |
C8051F80x-83x
12. Comparator0
C8051F80x-83x devices include an on-chip programmable voltage comparator, Comparator0, shown in
Figure 12.1.
The Comparator offers programmable response time and hysteresis, an analog input multiplexer, and two
outputs that are optionally available at the Port pins: a synchronous âlatchedâ output (CP0), or an asyn-
chronous ârawâ output (CP0A). The asynchronous CP0A signal is available even when the system clock is
not active. This allows the Comparator to operate and generate an output with the device in STOP mode.
When assigned to a Port pin, the Comparator output may be configured as open drain or push-pull (see
Section â23.4. Port I/O Initializationâ on page 147). Comparator0 may also be used as a reset source (see
Section â21.5. Comparator0 Resetâ on page 127).
The Comparator0 inputs are selected by the comparator input multiplexer, as detailed in Section
â12.1. Comparator Multiplexerâ on page 69.
CPT0CN
VDD
Comparator
Input Mux
CP0 +
+
CP0 -
-
GND
D SET Q
Q CLR
D SET Q
Q CLR
(SYNCHRONIZER)
CPT0MD
Reset
Decision
Tree
CP0
Crossbar
CP0A
0
CP0RIF
1
0
CP0FIF
1
CP0EN
EA
0
1
CP0
0 Interrupt
1
Figure 12.1. Comparator0 Functional Block Diagram
The Comparator output can be polled in software, used as an interrupt source, and/or routed to a Port pin.
When routed to a Port pin, the Comparator output is available asynchronous or synchronous to the system
clock; the asynchronous output is available even in STOP mode (with no system clock active). When dis-
abled, the Comparator output (if assigned to a Port I/O pin via the Crossbar) defaults to the logic low state,
and the power supply to the comparator is turned off. See Section â23.3. Priority Crossbar Decoderâ on
page 143 for details on configuring Comparator outputs via the digital Crossbar. Comparator inputs can be
externally driven from â0.25 V to (VDD) + 0.25 V without damage or upset. The complete Comparator elec-
trical specifications are given in Section â7. Electrical Characteristicsâ on page 39.
Rev. 1.0
65
|
▷ |