GD32F403xx User Manual
263
Figure 16-11. Repetition timechart for down-counter
CEN
CNT_REG
3
2
1
0
99
98
.
1
0
99
98
.
1
0
Underflow
Overflow
TIMERx_CREP = 0x0
TIMER_CK
99
98
.
1
0
99
98
UPIF
TIMERx_CREP = 0x1
.
1
0
99
98
.
1
0
99
98
UPIF
UPIF
TIMERx_CREP = 0x2
PSC_CLK
Input capture and output compare channels
The advanced timer has four independent channels which can be used as capture inputs or
compare match outputs. Each channel is built around a channel capture compare register
including an input stage, channel controller and an output stage.
◼
Channel input capture function
Channel input capture f unction
allows the channel to perform measurements such as pulse
timing, frequency, period, duty cycle and so on. The input stage consists of a digital filter, a
channel polarity selection, edge detection and a channel prescaler. When a selected edge
occurs on the channel input, the current value of the counter is captured into the
TIMERx_CHxCV register, at the same time the CHxIF bit is set and the channel interrupt is
generated if enabled by CHxIE = 1.
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...