GD32F10x User Manual
299
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.
4
DIR
Direction
0: Count up
1: Count down
If the timer work in center-aligned mode or encoder mode, this bit is read only.
3
SPM
Single pulse mode.
0: Single pulse mode disable. The counter continues after update event.
1: Single pulse mode enable. The counter counts until the next update event occurs.
2
UPS
Update source
This bit is used to select the update event sources by software.
0: These events generate update interrupts or DMA requests:
The UPG bit is set
The counter generates an overflow or underflow event
The restart mode generates an update event.
1: This event generates update interrupts or DMA requests:
The counter generates an overflow or underflow event
1
UPDIS
Update disable.
This bit is used to enable or disable the update event generation.
0: Update event enable. When an update event occurs, the corresponding shadow
registers are loaded with their preloaded values. These events generate update
event:
The UPG bit is set
The counter generates an overflow or underflow event
The restart mode generates an update event.
1: Update event disable.
Note:
When this bit is set to 1, setting UPG bit or the restart mode does not generate
an update event, but the counter and prescaler are initialized.
0
CEN
Counter enable
0: Counter disable
1: Counter enable
The CEN bit must be set by software when timer works in external clock, pause
mode and encoder mode.
Control register 1 (TIMERx_CTL1)
Address offset: 0x04
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit)
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...