![GigaDevice Semiconductor GD32E23 Series User Manual Download Page 290](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794290.webp)
GD32E23x User Manual
290
14.2.
General level0 timer (TIMERx, x=2)
14.2.1.
Overview
The general level0 timer module (TIMER2) 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.
14.2.2.
Characteristics
Total channel num: 4.
Counter width: 16 bits.
Clock source of timer is selectable: 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.
14.2.3.
Block diagram
Figure 14-31. General Level 0 timer block diagram
provides details on the internal
configuration of the general level0 timer.