SDAA032 July 2025 TDA4VE-Q1
The CMPA register holds the compare value that defines the duty cycle of the PWM output. For example, in up-count mode, an active-high PWM waveform can go high at zero and low when TBCNT matches CMPA. The same logic applies to CMPB for independent or complementary control of a second output.
Importantly, CMPA can be updated in two ways:
Shadow loading is enabled through the CMPCTL register, and is essential for synchronizing updates with the PWM cycle.