AT32F421
Series Reference Manual
2022.11.11
Page 273
Rev 2.02
counting by setting the TMR1_PAUSE in the DEBUG module.
14.6.4 TMR1 registers
These peripheral registers must be accessed by word (32 bits).
TMR1 register are mapped into a 16-bit addressable space.
Table 14-16 TMR1 register map and reset value
Register
Offset
Reset value
TMR1_CTRL1
0x00
0x0000
TMR1_CTRL2
0x04
0x0000
TMR1_STCTRL
0x08
0x0000
TMR1_IDEN
0x0C
0x0000
TMR1_ISTS
0x10
0x0000
TMR1_SWEVT
0x14
0x0000
TMR1_CM1
0x18
0x0000
TMR1_CM2
0x1C
0x0000
TMR1_CCTRL
0x20
0x0000
TMR1_CVAL
0x24
0x0000
TMR1_DIV
0x28
0x0000
TMR1_PR
0x2C
0x0000
TMR1_RPR
0x30
0x0000
TMR1_C1DT
0x34
0x0000
TMR1_C2DT
0x38
0x0000
TMR1_C3DT
0x3C
0x0000
TMR1_C4DT
0x40
0x0000
TMR1_BRK
0x44
0x0000
TMR1_DMACTRL
0x48
0x0000
TMR1_DMADT
0x4C
0x0000
14.6.4.1 TMR1 control register1 (TMR1_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 division
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: 5
TWCMSEL
0x0
rw
Two-way counting mode selection
00: One-way counting mode, depending on the OWCDIR
bit
01: Two-way counting mode1, count up and down
alternately, the output flag bit is set only when the counter
counts down
10: Two-way counting mode2, count up and down
alternately, the output flag bit is set only when the counter
counts up
11: Two-way counting mode3, count up and down
alternately, the output flag bit is set when the counter