![Geehy SEMICONDUCTOR APM32F030x4x6x8xC Скачать руководство пользователя страница 203](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629203.webp)
www.geehy.com Page 202
Field
Name
R/W
Description
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
3
SPMEN
R/W
Single Pulse Mode Enable
When an update event is generated, the output level of the channel can be
changed; in this mode, the CNTEN bit will be cleared, the counter will be
stopped, and the output level of the channel will not be changed.
0: Disable
1: Enable
6:4
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
11: Reserved
15:10
Reserved
Control register 2 (TMRx_CTRL2)
Offset address: 0x04
Reset value: 0x0000
Field
Name
R/W
Description
0
CCPEN
R/W
Capture/Compare Preloaded Enable
This bit affects the change of CCxEN, CCxNEN and OCxMOD values. When
preloading is disabled, the program modification will immediately affect the
timer setting; When preloading is enabled, it is only updated after COMG is
set, so as to affect the setting of timer; this bit only works on channels with
complementary output.
0: Disable
1: Enable
1
Reserved
2
CCUSEL
R/W
Capture/compare Control Update Select
Only when the capture/compare preload is enabled (CCPEN=1), it works
only for complementary output channel.
0: It can only be updated by setting COMG bit