![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 216](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630216.webp)
www.geehy.com Page 215
Field
Name
R/W
Description
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
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
4
CNTDIR R/W
Counter Direction.
When the counter is configured in central alignment mode or encoder
mode, the bit is read-only.
0: Count up
1: Count down
6:5
CAMSEL R/W
Center Aligned Mode Select
In the center-aligned mode, the counter counts up and down alternately;
otherwise, it will only count up or down.
Different center-aligned modes
affect the timing of setting the output compare interrupt flag bit of the
output channel to 1; when the counter is disabled (CNTEN=0), select the
center-aligned mode.
00: Edge alignment mode
01: Center-aligned mode 1 (the output compare interrupt flag bit of output
channel is set to 1 when counting down)
10: Center-aligned mode 2 (the output compare interrupt flag bit of output
channel is set to 1 when counting up)
11: Cente-aligned mode 3 (the output compare interrupt flag bit of output
channel is set to 1 when counting up/down)
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.