SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1
Compare mode is selected when TIMx.CCCTL_xy[0/1].COC = 0. Compare mode is used to generate a compare event to output PWM output signals at specific time intervals. Compare events can be used to generate a timing base internally or generate a PWM output with specific profiles using active, inactive, or toggle action behaviors, and optional deadband insertion.
Many types of compare mode events can be generated based on the configuration of the CC action register CCACT_xy[0/1]:
In TIMA only, an additional internal 5th and 6th CC block (TIMA.CC_45[0/1]) can be used for internal secondary compare events while continuing to use CC channels with dedicated output pins for external PWM signal generation.
Table 15-15 shows the types of compare mode events that can be generated and conditions to generate the events.
Event | Name | Event Condition |
---|---|---|
CCDn (n = CC channel) | Capture/compare down event | When timer is counting down, TIMx.CTR = TIMx.CC_xy[0/1] |
CCUn (n = CC channel) | Capture/compare up event | When timer is counting up, TIMx.CTR = TIMx.CC_xy[0/1] |
CC2Dn (n = CC channel) | Secondary capture/compare down event | Occurs when CC2SELD is configured for the source of the CCDn event |
CC2Un (n = CC channel) | Secondary capture/compare up event | Occurs when CC2SELU is configured for the source of the CCUn event |