GD32F403xx User Manual
373
Figure 16-60. Timing chart of PSC value change from 0 to 2
TIMER_CK
CEN
PSC_CLK
CNT_REG
Reload Pulse
Prescaler CNT
Prescaler
shadow
94
95
96
97
98
99
0
2
0
2
0
1
2
0
1
2
0
1
PSC value
UPG
0
2
0
1
2
Counter up counting
In this mode, the counter counts up continuously from 0 to the counter-reload value, which is
def ined in the TIMERx_CAR register, in a count-up direction. Once the counter reaches the
counter reload value, the counter will start counting up f rom 0 again. The update event is
generated at each counter overflow. The counting direction bit DIR in the TIMERx_CTL1
register should be set to 0 f or the up counting mode.
When the update event is set by the UPG bit in the TIMERx_SWEVG register, the counter
value will be initialized to 0 and generates an update event.
If the UPDIS bit in TIMERx_CTL0 register is set, the update event is disabled.
When an update event occurs, all the shadow registers (counter auto reload register,
prescaler register) are updated.
The following figures show some examples of the counter behavior for different clock
prescaler factor when TIMERx_CAR=0x99.
Содержание 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 ...