GD32E23x User Manual
348
14.4.
General level3 timer (TIMERx, x=14)
14.4.1.
Overview
The general level3 timer module (TIMER14) is a two-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 level3 timer has a 16-bit counter that can
be used as an unsigned counter.
In addition, the general level3 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.
Timers are completely independent with each other, but they may be synchronized to
provide a larger timer with their counters incrementing in unison.
14.4.2.
Characteristics
Total channel num: 2.
Counter width: 16 bits.
Clock source of timer is selectable:
internal clock, internal trigger, external input.
Counter modes: count up only.
Programmable prescaler: 16 bits.The factor can be changed ongoing.
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 event, trigger event, compare/capture event,
and break input.
Daisy chaining of timer modules allows a single timer to start multiple timers.
Timer synchronization allows selected timers to start counting on the same clock cycle.
Timer Master-slave management.
14.4.3.
Block diagram
Figure 14-53. General level3 timer block diagram
provides details of the internal
configuration of the general level3 timer.