![ARTERY AT32F435 Series Скачать руководство пользователя страница 289](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592289.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 289
Rev 2.03
Figure 14-438 Example of trigger mode
0
1
2
3
4
5
COUNTER
PR[15:0]
TMR_CLK
0
DIV[15:0]
32
101
STIS[2
:
0]
110
SMSEL[2
:
0]
CI1F1
TMR_EN
6
7
9
10
A
B
...
30
31
0
1
2
3
4
8
32
OVFIF
14.3.3.6 Debug mode
W
hen the microcontroller enters debug mode (Cortex
TM
-M4F core halted), the TMRx counter stops
counting by setting the TMRx_PAUSE in the DEBUG module. Refer to Chapter
14.3.4 TMR9 and TMR12 registers
These peripheral registers must be accessed by word (32 bits).
All TMRx register are mapped into a 16-bit addressable space.
Table 14-8 TMRx register m ap and reset value
Register name
Register
Reset value
TMRx_CTRL1
0x00
0x0000
TMRx_STCTRL
0x08
0x0000
TMRx_IDEN
0x0C
0x0000
TMRx_ISTS
0x10
0x0000
TMRx_SWEVT
0x14
0x0000
TMRx_CM1
0x18
0x0000
TMRx_CCTRL
0x20
0x0000
TMRx_CVAL
0x24
0x0000
TMRx_DIV
0x28
0x0000
TMRx_PR
0x2C
0x0000
TMRx_C1DT
0x34
0x0000 0000
TMRx_C2DT
0x38
0x0000 0000
14.3.4.1 TMR9 and TMR12 control register1 (TMRx_CTRL1)
Bit
Register
Reset value
Type
Description
Bit 15: 10
Reserved
0x00
resd
Kept at its default value
Bit 9: 8
CLKDIV
0x0
rw
Clock divider
00: Normal
01: Divided by 2
10: Divided by 4
11: Reserved
Bit 7
PRBEN
0x0
rw
Period buffer enable
0: Period buffer is disabled
1: Period buffer is enabled
Bit 6: 4
Reserved
0x0
resd
Kept at its default value
Bit 3
OCMEN
0x0
rw
One cycle mode enable
This bit is use to select whether to stop counting at an
update event
0: The counter does not stop at an update event