![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 252](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630252.webp)
www.geehy.com Page 251
Register name
Description
Offset address
TMR11_OPT
Option register
0x50
TMR10/11/13/14 register functional description
Control register 1 (TMRx_CTRL1)
Offset address: 0x00
Reset value: 0x0000
Field
Name
R/W
Description
0
CNTEN
R/W
Counter Enable
0: Disable
1: Enable
When the timer is configured as external clock, gated mode and encoder
mode, it is required to write 1 to the bit by software to start regular work;
when it is configured as the trigger mode, it can be written to 1 by hardware.
1
UD
R/W
Update Disable
Update event can cause AUTORLD, PSC and CCx to generate the value
of update setting.
0: Update event is allowed (UEV)
An update event can occur in any of the following situations:
The counter overruns/underruns;
Set UEG bit;
Update generated by slave mode controller.
1: Update event is disabled
2
URSSEL R/W
Update Request Source Select
If interrupt or DMA is enabled, the update event can generate update
interrupt or DMA request. Different update request sources can be selected
through this bit.
0: The counter overruns or underruns
Set UEG bit
Update generated by slave mode controller
1: The counter overruns or underruns
6:3
Reserved
7
ARPEN
R/W
Auto-reload Preload Enable
When the buffer is disabled, the program modification TMRx_AUTORLD
will immediately modify the values loaded to the counter; when the buffer is
enabled, the program modification TMRx_AUTORLD will modify the values
loaded to the counter in the next update event.
0: Disable
1: Enable
9:8
CLKDIV
R/W
Clock Divide Factor
For the configuration of dead time and digital filter, CK_INT provides the
clock, and the dead time and the clock of the digital filter can be adjusted
by setting this bit.
00
:
t
DTS
=t
CK_INT
01
:
t
DTS
=2×t
CK_INT
10
:
t
DTS=
4×t
CK_INT