DocID13284 Rev 2 361/564
UM0404 XBUS pulse width modulation module
XPWM_Period
Mode1
= 2 x ([XPPx] + 1)
The Figure 147 illustrates the operation and output waveforms of a XPWM channel in mode
1 for different values in the pulse width register. This mode is referred to as Center Aligned
PWM, because the value in the pulse width shadow register effects both edges of the output
signal symmetrically.
Figure 154. Operation and output waveform in mode 1
18.1.3 Burst mode
Burst mode is selected by setting bit PB01 in register XPWMCON1 to ‘1’. This mode
combines the signals from XPWM channels 0 and 1 onto the port pin of channel 0.
The output of channel 0 is replaced with the logical AND of channels 0 and 1. The output of
channel 1 can still be used at its associated output pin (if enabled).
Each of the two channels can either operate in mode 0 or 1.
Note: It is guaranteed by design, that no spurious spikes will occur at the output pin of channel 0 in
this mode. The output of the AND gate will be transferred to the output pin synchronously to
internal clocks.
XORing of the PWM signal and the port output latch value is done after the ANDing of
channel 0 and 1 (see Figure 148).
1
7
6
5
3
4
2
1
0
1
0
XPPx
Period=7
XPTx Count
Value
XPWx Pulse
Width=0
XPWx=1
XPWx=2
XPWx=4
XPWx=6
XPWx=7
XPWx=8
Latch Shadow Registers
Interrupt Reques
Change Count
LSR
Duty Cycle
100%
87.5%
75%
50%
25%
12.5%
0%
0
2
7
6
5
4
3
2
1
Direction
LSR