Information

IRQ
INTERNAL BUS
INP
INM
FILTER_CNT
INV
COUT
COUT
OPE
SE
CMPO to
PAD
(TO OTHER SOC FUNCTIONS))
COUTA
1
WE
0
SE
CGMUX
COS
FILT_PER
+
-
FILT_PER
bus clock
COS
IER/F CFR/F
WINDOW/SAMPLE
1
0
EN,PMODE,HYSCTRL[1:0]
Interrupt
Control
Filter
Block
Window
Control
Polarity
Select
Clock
Prescaler
divided
bus
clock
CMPO
Figure 33-2. Comparator Module Block Diagram
In the CMP block diagram:
The Window Control block is bypassed when CR1[WE] = 0
If CR1[WE] = 1, the comparator output will be sampled on every bus clock when
WINDOW=1 to generate COUTA. Sampling does NOT occur when WINDOW = 0.
The Filter Block is bypassed when not in use.
The Filter Block acts as a simple sampler if the filter is bypassed and
CR0[FILTER_CNT] is set to 0x01.
The Filter Block filters based on multiple samples when the filter is bypassed and
CR0[FILTER_CNT] is set greater than 0x01.
If CR1[SE] = 1, the external SAMPLE input is used as sampling clock
IF CR1[SE] = 0, the divided bus clock is used as sampling clock
Chapter 33 Comparator (CMP)
K10 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 807