GD32F403xx User Manual
281
16.1.5.
TIMERx registers(x=0, 7)
TIMER0 base address: 0x4001 2C00
TIMER7 base address: 0x4001 3400
Control register 0 (TIMERx_CTL0)
Address offset: 0x00
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
CKDIV[1:0]
ARSE
CAM[1:0]
DIR
SPM
UPS
UPDIS
CEN
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
15:10
Reserved
Must be kept at reset value.
9:8
CKDIV[1:0]
Clock division
The CKDIV bits can be configured by software to specify division factor between
the CK_TIMER and the dead -time and digital filter sample clock (DTS).
00: f
DTS
=f
CK_TIMER
01: f
DTS
= f
CK_TIMER
/2
10: f
DTS
= f
CK_TIMER
/4
11: Reserved
7
ARSE
Auto-reload shadow enable
0: The shadow register for TIMERx_CAR register is disabled
1: The shadow register for TIMERx_CAR register is enabled
6:5
CAM[1:0]
Counter aligns mode selection
00: No center-aligned mode (edge-aligned mode). The direction of the counter is
specified by the DIR bit.
01: Center-aligned and counting down assert mode. The counter counts under
center-aligned and channel is configured in output mode (CHxMS=00 in
TIMERx_CHCTL0 register). Only when counting down, CHxF bit can be set.
10: Center-aligned and counting up assert mode. The counter counts under center-
aligned and channel is configured in output mode (CHxMS=00 in TIMERx_CHCTL0
register). Only when counting up, CHxF bit can be set.
11: Center-aligned and counting up/down assert mode. The counter counts under
center-aligned and channel is configured in output mode (CHxMS=00 in
TIMERx_CHCTL0 register). Both when counting up and counting down, CHxF bit
can be set.
After the counter is enabled, cannot be switched from 0x00 to non 0x00.
Содержание 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 ...