9.2 Comparator Function
The comparator is an analog comparator module (
) and the output is asynchronous to the system
clock. The truth table for the comparator is shown in
.
Comparator
A
B
Output
Figure 9-2. Comparator
Table 9-1. Comparator Truth Table
Voltages
Output
Voltage A > Voltage B
1
Voltage B > Voltage A
0
There is no definition for the condition Voltage A = Voltage B, since there is hysteresis in the response of the
comparator output. Refer to the device data sheet for the value of this hysteresis. This also limits the sensitivity
of the comparator output to noise on the input voltages.
The output state of the comparator, after qualification, is reflected by the COMPSTS bit in the COMPSTS
register. The COMPSTS register will not update if the module clock is not enabled.
9.3 DAC Reference
Each comparator block contains an internal 10-bit voltage DAC reference that can used to supply the inverting
input (B side input) of the comparator. The voltage output of the DAC is controlled by the DACVAL bit field in the
DACVAL register. The output of the DAC is given by the equation:
DACVAL * (VDDA-VSSA)
1023
V =
Since the DAC is also in the analog domain it does not require a clock to maintain its voltage output. A clock is
required, however, to modify the digital inputs that control the DAC.
Comparator (COMP)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
561
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......