English
Language : 

K60P100M100SF2RM Datasheet, PDF (867/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Field
5–3
PSEL
2–0
MSEL
Chapter 35 Comparator (CMP)
CMPx_MUXCR field descriptions (continued)
Plus Input MUX Control
Description
Determines which input is selected for the plus input of the comparator. For INx inputs, refer to CMP, DAC
and ANMUX Blocks Diagram.
NOTE: When an inappropriate operation selects the same input for both MUXes, the comparator
automatically shuts down to prevent itself from becoming a noise generator.
000 IN0
001 IN1
010 IN2
011 IN3
100 IN4
101 IN5
110 IN6
111 IN7
Minus Input MUX Control
Determines which input is selected for the minus input of the comparator. For INx inputs, refer to CMP,
DAC and ANMUX Blocks Diagram.
NOTE: When an inappropriate operation selects the same input for both MUXes, the comparator
automatically shuts down to prevent itself from becoming a noise generator.
000 IN0
001 IN1
010 IN2
011 IN3
100 IN4
101 IN5
110 IN6
111 IN7
35.8 CMP Functional Description
The Comparator can be used to compare two analog input voltages applied to INP and
INM. The analog comparator output (CMPO) is high when the non-inverting input is
greater than the inverting input, and is low when the non-inverting input is less than the
inverting input. This signal can be selectively inverted by setting CR1[INV] = 1.
The SCR[IER], SCR[IEF], and SCR[SMELB] bits are used to select the condition which
will cause the comparator module to assert an interrupt to the processor. SCR[CFF] is set
on a falling edge and SCR[CFR] is set on rising edge of the comparator output. The
(optionally filtered) comparator output can be read directly through the SCR[COUT] bit.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
867