SPRUJF2A March 2026 – March 2026 AM13E23019
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 a compare match within the capture/compare block.
The key registers for generation of output signals are:
CCPD: this register configures the direction of the CCP pins as inputs or outputs.
Figure 31-18 shows the TIMx output block diagram.
Signal Generator Actions
Signal Generator Actions from Compare Event 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 Compare Mode Events.
|
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 |