GD32A50x User Manual
420
18.2.
General level0 timer (TIMERx, x=1)
18.2.1.
Overview
The general level0 timer module (TIMER1) is a four-channel timer that supports input capture
and output compare. They can generate PWM signals to control motor or be used for power
management applications. The general level0 timer has a 16-bit counter that can be used as
an unsigned counter.
In addition, the general level0 timers can be programmed and be used for counting, their
external events can be used to drive other timers.
Timers are completely independent with each other, but they may be synchronized to provide
a larger timer with their counter value increasing in unison.
18.2.2.
Characteristics
Total channel num: 4.
Counter width: 16 bits.
Selectable clock source: internal clock, internal trigger, external input, external trigger.
Multiple counter modes: up counting, down counting and center-aligned counting.
Quadrature decoder: used for motion tracking and determination of both rotation
direction and position.
Hall sensor function: used for 3-phase motor control.
Programmable prescaler: 16 bits. The factor can be changed ongoing.
Each channel is user-configurable: input capture mode, output compare mode,
programmable PWM mode and single pulse mode.
Auto reload function.
Interrupt output or DMA request: update event, trigger event and compare/capture event.
Daisy chaining of timer module allows a single timer to start multiple timers.
Timer synchronization allows the selected timers to start counting on the same clock
cycle.
Timer master-slave management.
18.2.3.
Block diagram
Figure 18-42. General Level 0 timer block diagram
provides details on the internal
configuration of the general level 0 timer.