![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 228](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630228.webp)
www.geehy.com Page 227
Counter register (TMRx_CNT)
Offset address: 0x24
Reset value: 0x0000
Field
Name
R/W
Description
15:0
CNT
R/W Counter Value
31:16
CNT
R/W Counter Value
(only TMR2/TMR5)
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.
31:16 AUTORLD R/W Auto Reload Value
(only TMR2/TMR5)
Channel 1 capture/compare register (TMRx_CC1)
Offset address: 0x34
Reset value: 0x0000
Field
Name
R/W
Description
15:0
CC1
R/W
Capture/Compare Channel 1 Value
When the capture/compare channel 1 is configured as input mode:
CC1 contains the counter value transmitted by the last input capture channel
1 event.
When the capture/compare channel 1 is configured as output mode:
CC1 contains the current load capture/compare register value
Compare the value CC1 of the capture and compare channel 1 with the
value CNT of the counter to generate the output signal on OC1.
When the output compare preload is disabled (OC1PEN=0 for TMRx_CCM1
register), the written value will immediately affect the output comparison
results;
If the output compare preload is enabled (OC1PEN=1 for TMRx_CCM1
register), the written value will affect the output compare result when an
update event is generated.
31:16
CC1
R/W Capture/Compare Channel 1 Value
(only TMR2/TMR5)
Channel 2 capture/compare register (TMRx_CC2)
Offset address: 0x38
Reset value: 0x0000