PWMSYNC
RAMPSTS
COMPSTS
0x0000
0xFFFF
RAMPMAXREF
RAMPMAXREF
RAMPMAXREF
RAMPMAXREF
Figure 9-4. Ramp Generator Behavior
9.5 Initialization
There are 2 steps that must be performed prior to using the comparator block:
1. Enable the Band Gap inside the ADC by writing a 1 to the ADCBGPWD bit inside ADCCTL1.
2. Enable the comparator block by writing a 1 to the COMPDACEN bit in the COMPCTL register.
9.6 Digital Domain Manipulation
At the output of the comparator there are two more functional blocks that can be used to influence the behavior
of the comparator output. They are:
1. Inverter circuit: Controlled by the CMPINV bit in the COMPCTL register; will apply a logical NOT to the
output of the comparator. This function is asynchronous, while its control requires a clock present in order to
change its value.
2. Qualification block: Controlled by the QUALSEL bit field in the COMPCTL register, and gated by the
SYNCSEL bit in the COMPCTL register. This block can be used as a simple filter to only pass the output of
the comparator once it is synchronized to the system clock. and qualified by the number of system clocks
defined in QUALSEL bit field.
Comparator (COMP)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
563
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......