DocID13284 Rev 2 345/564
UM0404 Pulse width modulation module
17 Pulse width modulation module
The Pulse Width Modulation (PWM) Module of the ST10F276 generates up to four
independent PWM signals. The minimum PWM signal frequency depends on the width (16
bits) and the resolution (CLK/1 or CLK/64) of the PWM timers. The maximum PWM signal
frequency assumes that the PWM output signal changes with every cycle of the respective
timer. In a real application, the maximum PWM frequency will depend on the required
resolution of the PWM output signal.
The pulse width modulation module has four independent PWM channels. Each channel
has a 16-bit up/down counter PTx, a 16-bit period register PPx with a shadow latch, a 16-bit
pulse width register PWx with a shadow latch, two comparators, and the necessary control
logic.
The operation of all four channels is controlled by two common control registers,
PWMCON0 and PWMCON1, and the interrupt control and status is handled by one interrupt
control register PWMIC, which is also common for all channels (see Figure 145).