![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 261](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630261.webp)
www.geehy.com Page 260
Figure 64 Timer Timing Diagram, the internal clock division factor is 1 or 2
CNT_EN
CK_CNT
21
22
23
24
25
26
27
00
01
02
03
04
Counter register
Counter overrun
Update event
CK_PSC
PSC=1
CK_CNT
05
06
0024
0025
0026
0000
0001
0002
0003
Counter overrun
Update event
PSC=2
Counter register
Prescaler PSC
The prescaler is 16 bits and programmable, and it can divide the clock
frequency of the counter to any value between 1 and 65536 (controlled by
TMRx_PSC register), and after frequency division, the clock will drive the
counter CNT to count. The prescaler has a buffer, which can be changed during
running.
Register address mapping
In the following table, all registers of the basic timer are mapped to a 16-bit
addressable (address) space.
Table 74 TMR6/7 Register Address Mapping
Register name
Description
Offset address
TMRx_CTRL1
Control register 1
0x00
TMRx_CTRL2
Control register 2
0x04
TMRx_DIEN
DMA/Interrupt enable register
0x0C
TMRx_STS
State register
0x10