366
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
9:8
CLKD[1:0]
Clock division
CLKD[1:0] indicates the division ratio between CK_INT (timer clock) and t
DTS
(clock used for
dead-time generator and digital filters (ETR, TIx))
00: t
DTS
= t
CK_INT
01: t
DTS
= 2 × t
CK_INT
10: t
DTS
= 4 × t
CK_INT
11: Reserved, do not use this configuration
7
ARPEN
ARPEN: Auto-reload preload enable
0: Shadow register disable for TIMx_AR register
1: Shadow register enable for TIMx_AR register
6:5
CAMSEL[1:0]
Center-aligned mode selection
00: Edge-aligned mode. TIMx_CTRL1.DIR specifies up-counting or down-counting.
01: Center-aligned mode 1. The counter counts in center-aligned mode, and the output compare
interrupt flag bit is set to 1 when down-counting.
10: Center-aligned mode 2. The counter counts in center-aligned mode, and the output compare
interrupt flag bit is set to 1 when up-counting.
11: Center-aligned mode 3. The counter counts in center-aligned mode, and the output compare
interrupt flag bit is set to 1 when up-counting or down-counting.
Note: Switching from edge-aligned mode to center-aligned mode is not allowed when the counter
is still enabled (TIMx_CTRL1.CNTEN = 1).
4
DIR
Direction
0: Up-counting
1: Down-counting
Note: This bit is read-only when the counter is configured in center-aligned mode or encoder
mode.
3
ONEPM
One-pulse mode
0: Disable one-pulse mode, the counter counts are not affected when an update event occurs.
1: Enable one-pulse mode, the counter stops counting when the next update event occurs
(clearing TIMx_CTRL1.CNTEN bit)
2
UPRS
Update request source
This bit is used to select the UEV event sources by software.
0: If update interrupt or DMA request is enabled, any of the following events will generate an
update interrupt or DMA request:
–
Counter overflow/underflow
–
The TIMx_EVTGEN.UDGN bit is set
–
Update generation from the slave mode controller
1: If update interrupt or DMA request is enabled, only counter overflow/underflow will generate
update interrupt or DMA request