SPRUJF2A March 2026 – March 2026 AM13E23019
There are five stages to configuring output signal generation in TIMx devices:
Counter and CC Block Event Generation
The counter block contains the counter and produces a load event (L), zero event (Z), and direction of counting based on the counting mode used.
The CC blocks contain the CC register and can generate two types of output signals: compare match events and capture events. Please see Table 31-11 for the compare events that can be generated.
Output Generation, Selection and Inversion
The TIMx.CCACT register specifies the waveform generation of a CCP output depending on the counting mode and counter compare actions.
TIMx.OCTL_xy[0/1].CCPO controls the CCP output selection from the output generation unit, counter events, compare events, capture events, fault events, or signal inputs. The output disable register (ODIS) can optionally disable the CCP output to optionally hold the CCP output low during configuration or shutdown. TIMx.OCTL_xy[0/1].INV controls final inversion options.
Software Force Output
The output of the signal generator can be overwritten in software by setting CCCTL_xy[0/1].SWFRCACT to a nonzero setting.
For more information, see Section 31.1.2.5.3.
Counter Compare Initial Value and Enable
To specify an initial value for the CCP output while the counter is disabled, set OCTL_xy[0/1].CCPIV to 0 for a low value or 1 for a high value. This is useful for applications where CCP outputs need to be in a default state before enabling the counter.
To enable the counter, set TIMx.CTRCTL.EN to 1.