Comparator
C2000 Microcontroller Workshop - Analog-to-Digital Converter 6 - 17
Comparator
Comparator Block Diagram
Comparator
COMP1
10-bit
DAC
AIO2
AIO10
COMP1OUT
COMP3
10-bit
DAC
AIO6
AIO14
COMP3OUT
COMP2
10-bit
DAC
AIO4
AIO12
COMP2OUT
ADC
A0
A1
A2
A3
A4
A5
A6
A7
B0
B1
B2
B3
B4
B5
B6
B7
This device has three analog comparators that share the input pins with the analog-to-digital
converter module. If neither the ADC or comparator input pins are needed, the input pins can be
used as analog I/O pins. As you can see, one of the inputs to the comparator comes directly from
the input pin, and the other input can be taken from the input pin or the 10-bit digital-to-analog
converter. The output of the comparator is fed into the ePWM digital compare sub-module.