21
Pulse-Width Modulation (PWM)
21.1 Introduction
The PWM consists a 8-channel 32-bit Timer/Counter driven by a programmable prescaler. The
function of the PWM is based on the basic Timer. Each timer and counter runs independently.
The PWM can be used to control the width of the pulse, formally the pulse duration, to generate
output waveform or to count the counter triggered by external input.
21.2 Features
Counter or Timer operation can use the peripheral clock, external clock source, or
one of the capture inputs as the clock source.
Eight independent 32-bit Timer/Counter driven by a programmable 6 bits prescaler
runs as the PWM or standard timer if the PWM mode is not enabled.
Eight PWM output waveforms.
Each of Timer/Counter can have different or same clock source.
Counter or timer operation.
Eight capture registers that can take the timer value when an external input signal.
A capture event can generate an interrupt signal optionally.
32-bit match register and limit register.
Match Register 0 ~ 7
Limit Register 0 ~ 7
Timer/Counter control
Register 0 ~ 7
=
Counter
Reset
Timer
Counter 0 ~ 7
Overflow
Overflow
Prescale
Interrupt
Counter 0 ~ 7
Prescale
Register 0 ~ 7
Interrupt Register
W7500x Reference Manual Version1.1.0
=
Capture
Register 0 ~ 7
Capture
Match
Interrupt
Interrupt
Channel 0 PWM output
Channel 0
Dead Zone generator
Channel 1
Dead Zone generator
Channel 1 PWM output
Channel 2 PWM output
Channel 2
Dead Zone generator
Channel 3
Dead Zone generator
Channel 3 PWM output
Channel 4 PWM output
Channel 4
Dead Zone generator
Channel 5
Dead Zone generator
Channel 5 PWM output
Channel 6 PWM output
Channel 6
Dead Zone generator
Channel 7
Dead Zone generator
Channel 7 PWM output
External input
PWM 0
PWM 1
PWM 2
PWM 3
PWM 4
PWM 5
PWM 6
PWM 7
188 / 399