22.1
Block Diagram
Figure 22-1. Analog Comparator Module Block Diagram
C2+
C2-
output
+ve input (alternate)
+ve input
interrupt
-ve input
reference input
Comparator 2
ACSTAT2
ACCTL2
C1-
C1+
output
+ve input (alternate)
+ve input
interrupt
-ve input
reference input
Comparator 1
ACSTAT1
ACCTL1
Voltage
Ref
ACREFCTL
output
+ve input (alternate)
+ve input
interrupt
-ve input
reference input
Comparator 0
ACSTAT0
ACCTL0
C0+
Internal
Bus
C0-
C0o
trigger
trigger
trigger
trigger
trigger
trigger
Interrupt Control
ACRIS
ACMIS
ACINTEN
Interrupt
Module
Status
ACMPPP
C1o
C2o
Note:
This block diagram depicts the maximum number of analog comparators and comparator outputs
for the family of microcontrollers; the number for this specific device may vary. See page 1667 for
what is included on this device.
22.2
Signal Description
The following table lists the external signals of the Analog Comparators and describes the function
of each. The Analog Comparator output signals are alternate functions for some GPIO signals and
default to be GPIO signals at reset. The column in the table below titled "Pin Mux/Pin Assignment"
lists the possible GPIO pin placements for the Analog Comparator signals. The
AFSEL
bit in the
GPIO Alternate Function Select (GPIOAFSEL)
register (page 770) should be set to choose the
Analog Comparator function. The number in parentheses is the encoding that must be programmed
into the
PMCn
field in the
GPIO Port Control (GPIOPCTL)
register (page 787) to assign the Analog
Comparator signal to the specified GPIO port pin. The positive and negative input signals are
configured by clearing the
DEN
bit in the
GPIO Digital Enable (GPIODEN)
register. For more
information on configuring GPIOs, see “General-Purpose Input/Outputs (GPIOs)” on page 742.
Table 22-1. Analog Comparators Signals (128TQFP)
Description
Buffer Type
Pin Type
Pin Mux / Pin
Assignment
Pin Number
Pin Name
Analog comparator 0 positive input.
Analog
I
PC6
23
C0+
June 18, 2014
1654
Texas Instruments-Production Data
Analog Comparators