www.geehy.com Page 216
Field Name R/W
Description
0
UEG
W
Update Event Generate
0: Invalid
1: Initialize the counter and generate the update event
This bit is set to 1 by software, and cleared by hardware.
Note: When an update event is generated, the counter of the prescaler will be
cleared, but the prescaler factor remains unchanged.
In the count-down mode,
the counter reads the value of TMRx_AUTORLD; in center-aligned mode or
count-up mode, the counter will be cleared.
15:1
Reserved
Note: The state of external I/O pin connected to the standard OCx channel
depends on the state of the OCx channel and the GPIO and AFIO registers.
Counter register (TMRx_CNT)
Offset address: 0x24
Reset value: 0x0000
Field
Name
R/W
Description
15:0
CNT
R/W
Counter Value
Prescaler register (TMRx_PSC)
Offset address: 0x28
Reset value: 0x0000
Field
Name
R/W
Description
15:0
PSC
R/W
Prescaler Value
Clock frequency of counter (CK_CNT)
=
f
CK_PSC
/(PSC+1).
Auto reload register (TMRx_AUTORLD)
Offset address: 0x2C
Reset value: 0xFFFF
Field
Name
R/W
Description
15:0
AUTORLD R/W
Auto Reload Value
When the value of auto reload is empty, the counter will not count.