Compare two input voltages on comparator pins
Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors/ C2802x
Embedded Coder Support Package for Texas Instruments C2000 Processors/ C2803x
Embedded Coder Support Package for Texas Instruments C2000 Processors/ C2806x
Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto™ Processors/ F28M35x/ C28x
Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto Processors/ F28M36x/ C28x
Configure the comparator module to output the comparison result on the comparator pins of the processor.
Select the comparator module to configure. Use only one block per module.
COMPxB to compare the voltage of Input Pin A with Input Pin B
Internal DAC to compare the voltage of Input Pin A with the output of a DAC reference located in the
comparator. For more information, see the “DAC Reference” section of the
TMS320x2802x, 2803x Piccolo Analog-to-Digital Converter (ADC) and
The comparator source outputs 1, if Input Pin A has a value greater than Input Pin B or the 10-bit DAC reference. Otherwise, it outputs 0.
Select this check box to apply a logical NOT to the output of the comparator source. For example, when the comparator source outputs 1, the inverter circuit changes it to 0.
Asynchronous to pass the asynchronous version of the
comparator output. Select
Synchronous to pass the synchronous
version of the comparator output. Selecting
Synchronous enables the
Qualification period option.
Qualify changes in the comparator output before passing them along. The
Passed through setting passes changes in the comparator value
along without qualifying them. The
consecutive clocks settings pass
changes in the comparator value along after receiving the specified number of
consecutive samples with the same value. Use this setting to prevent intermittent and
spurious changes in the comparator output.
Specify the time interval between samples. To inherit sample time from the upstream block, set this parameter to -1.
TMS320x2802x, 2803x Piccolo Analog-to-Digital Converter (ADC) and Comparator, Literature Number: SPRUGE5, from the Texas Instruments Web site.