9.1 Introduction
The comparator module is a true analog voltage comparator in the VDDA domain. The core analog circuits
include the comparator, its inputs and outputs, and the internal DAC reference. The supporting digital circuits
include the DAC controls, interface to other on-chip logic, output qualification block, and the programmable
control signals.
9.1.1 Features
The comparator block can monitor two external analog inputs, or monitor one external analog input using the
internal DAC reference for the other input. The output of the comparator can be passed asynchronously, or be
qualified and synchronized to the system clock period. The comparator output is routed to both the ePWM Trip
Zone modules, as well as the GPIO output multiplexer.
9.1.2 Block Diagram
Note
Comparator hysteresis feedback is enabled by default and may interfere with high-impedance
input signals. Use the COMPHYSTCTL register from the ADC module to configure the comparator
hysteresis.
COMPx
+
±
Qualification
~100 k
VDDA
10-bit
DAC
VDDA
EPWM
GPIO Mux
1
0
0
1
SYSCLK
0
1
0
1
COMPxA Pin
COMPxB Pin
COMPCTL[COMPSOURCE]
High-Z
COMPHYSTCTL[COMPx_HYST_DISABLE]
COMPCTL[CMPINV]
Ramp
Generator
DACVAL[9:0]
RAMPSTS[15:6]
COMPCTL[SYNCSEL]
COMPCTL[QUALSEL]
COMPSTS
DACCTL[DACSOURCE]
0
1
0
n-1
1
...
...
PWMSYNC1
PWMSYNC2
PWMSYNCn
DACCTL[RAMPSOURCE]
VSSA
VSSA
Figure 9-1. Comparator Block Diagram
Comparator (COMP)
560
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......