GD32W51x User Manual
549
17.3.
General level4 timer (TIMERx, x=15,16)
17.3.1.
Overview
The general level4 timer module (TIMER15, TIMER16) is a one-channel timer that supports
both input capture and output compare. They can generate PWM signals to control motor or
be used for power management applications. The general level4 timer has a 16-bit counter
that can be used as an unsigned counter.
In addition, the general level4 timers can be programmed and be used for counting, their
external events can be used to drive other timers.
Timer also includes a dead-time Insertion module which is suitable for motor control
applications.
17.3.2.
Characteristics
Total channel num: 1.
Counter width: 16 bits.
Source of counter clock: internal clock.
Counter modes: count up only.
Programmable prescaler: 16 bit.The factor can be changed on the go.
Each channel is user-configurable:
input capture mode, output compare mode, programmable PWM mode, single pulse
mode
Programmable dead time insertion.
Auto reload function.
Programmable counter repetition function.
Break input.
Interrupt output or DMA request on: update, compare/capture event, and break input.
17.3.3.
Block diagram
Figure 17-53. General level4 timer block diagram
provides details of the internal