SLAU846B June 2023 – November 2024 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3519
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 27-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 |