SLAU847D October 2022 – May 2024 MSPM0L1105 , MSPM0L1106 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
The output signal generation unit can be used with the counter and capture/compare modules to generate desired pulse-width modulation (PWM) output waveforms, event signals, synchronized capture inputs, or the counter direction. Many output waveforms are generated from counter events (load, zero, counter direction) and the capture/compare block (compare match).
TIMA and TIMG have many common features in the output generation signal unit. Additionally, TIMA has advanced output generation features such as complimentary output signals, deadband insertion, and fault generation.
Figure 23-27 shows the TIMG output block diagram.
Figure 23-27 shows the TIMA output block diagram.
Signal Generator Actions
Table 23-17 shows the types of signal generator actions capable by the output generator. Signal generator actions are configured in the CCACT_xy[0/1] register for zero, load, and compare events. For types of compare events, see Table 23-15.
Value |
Action |
---|---|
0h |
Event is disabled and a lower priority event is selected if asserting |
1h |
CCP output value is set high |
2h |
CCP output value is set low |
3h |
CCP output value is toggled |
The key registers for generation of output signals are:
CCPD: this register configures the direction of the CCP pins as inputs or outputs.