C8051F302-GSR Silicon Labs, C8051F302-GSR Datasheet - Page 51

no-image

C8051F302-GSR

Manufacturer Part Number
C8051F302-GSR
Description
8-bit Microcontrollers - MCU 8KB 8ADC 14Pin MCU
Manufacturer
Silicon Labs
Datasheet

Specifications of C8051F302-GSR

Rohs
yes
Core
8051
Data Bus Width
8 bit
Processor Series
C8051
7.
C8051F300/1/2/3/4/5 devices include an on-chip programmable voltage comparator, which is shown in
Figure 7.1. Comparator0 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
asynchronous “raw” output (CP0A). The asynchronous CP0A signal is available even when the system
clock is not active. This allows Comparator0 to operate and generate an output with the device in STOP
mode. When assigned to a Port pin, the Comparator0 output may be configured as open drain or push-pull
(see
source (see
The inputs for Comparator0 are selected in the CPT0MX register (SFR Definition 7.2). The CMX0P1-
CMX0P0 bits select the Comparator0 positive input; the CMX0N1-CMX0N0 bits select the Comparator0
negative input.
Important Note About Comparator Inputs: The Port pins selected as comparator inputs should be con-
figured as analog inputs in their associated Port configuration register, and configured to be skipped by the
Crossbar (for details on Port configuration, see
Section “12.2. Port I/O Initialization” on page
Comparator0
CMX0N1
CMX0N0
CMX0P1
CMX0P0
Section “9.5. Comparator0 Reset” on page
Figure 7.1. Comparator0 Functional Block Diagram
P0.0
P0.2
P0.4
P0.6
P0.1
P0.3
P0.5
P0.7
CP0HYP1
CP0HYP0
CP0HYN1
CP0HYN0
CP0OUT
CP0RIF
CP0EN
CP0FIF
CP0 +
CP0 -
CP0MD1
CP0MD0
Section “12.3. General Purpose Port I/O” on page
Rev. 2.9
+
-
GND
VDD
106). Comparator0 may also be used as a reset
85).
Decision
Reset
Tree
C8051F300/1/2/3/4/5
(SYNCHRONIZER)
D
SET
CLR
Q
Q
D
SET
CLR
Q
Q
Interrupt Flag
Rising-edge
CP0
Crossbar
Interrupt
Logic
Interrupt Flag
Falling-edge
CP0
CP0A
CP0
108).
51

Related parts for C8051F302-GSR