UG-549
ADuCM310 Hardware Reference Manual
Rev. C | Page 178 of 192
PULSE WIDTH MODULATION (PWM)
PWM FEATURES
The
features an 8-channel PWM interface.
PWM OVERVIEW
The
integrates an 8-channel PWM interface. Eight channels are grouped as four pairs (0 to 3). The first two pairs of PWM
outputs (PWM0 PWM1, PWM2, and PWM3) can be configured to drive an H-bridge. On power-up, the PWM outputs default to H-bridge
mode. In standard mode, the user has control over the period of each pair of outputs and over the duty cycle of each individual output. The
PWM trip interrupt can be cleared by writing 1 to PWMICLR[4]. When using the PWM trip interrupt, the PWM interrupt must be cleared
before exiting the ISR, to prevent the generation of multiple interrupts.
Table 269. PWM Channel Grouping
Port Name
Description
PWM Mode Available
PWM0
High-side PWM output for Pair 0
H-bridge and standard
PWM1
Low-side PWM output for Pair 0
H-bridge and standard
PWM2
High-side PWM output for Pair 1
H-bridge and standard
PWM3
Low-side PWM output for Pair 1
H-bridge and standard
PWM4
High-side PWM output for Pair 2
Standard
PWM5
Low-side PWM output for Pair 2
Standard
PWM6
High-side PWM output for Pair 3
Standard
PWM7
Low-side PWM output for Pair 3
Standard
PWM OPERATION
In all modes, the PWMxCOMx MMRs control the point at which the PWM output changes state. The PWM clock is selectable via
PWMCON0 with one of the following values: UCLK divided by 2, 4, 8, 16, 32, 64, 128, or 256.
The length of the PWM period is defined by PWMxLEN. Each pair has an associated counter.
The PWM waveforms are set by the count value of the 16-bit timer and the compare register contents.
The low-side waveform, PWM1, goes high when the timer count reaches PWM0LEN, and it goes low when the timer count reaches the
value held in PWM0COM2 or when the high-side waveform PWM0 goes low.
The high-side waveform, PWM0, goes high when the timer count reaches the value held in PWM0COM0, and it goes low when the timer
count reaches the value held in PWM0COM1.
Note that the high-side PWM output for each channel must have a high duration period greater than or equal to the high period duration
of the low-side output. For example, the high period for PWM0 must be equal to or greater than the high period of PWM1.
HIGH SIDE (PWM0)
LOW SIDE (PWM1)
PWM0COM2
PWM0COM1
PWM0COM0
PWM0LEN
1
1461-
029
Figure 31. Waveform of PWM Channel Pair in Standard Mode