Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
206
10.4
Registers
The physical base address of all the timers is 0x4000_2000 in KM4 and 0x4800_2000 in KM0. Each timer has 128 bytes space for register
setting.
Table 10-4 TIM0~TIM5 address table
Name
Address Offset
TIM0
0x000 ~ 0x07F
TIM1
0x080 ~ 0x0FF
TIM2
0x100 ~ 0x17F
TIM3
0x180 ~ 0x1FF
TIM4
0x200 ~ 0x27F
TIM5
0x280 ~ 0x2FF
10.4.1
TIM0/TIM1/TIM2/TIM3 Registers
The details of TIM0/TIM1/TIM2/TIM3 registers are listed in Table 10-5.
Table 10-5 TIM0/TIM1/TIM2/TIM3 memory map
Name
Address Offset
Access
Description
TIMx_EN
0x00
R/W
TIMx enable register
TIMx_CR
0x04
R/W
TIMx control register
TIMx_DIER
0x08
R/W
TIMx interrupt enable register
TIMx_SR
0x0C
R/W
TIMx status register
TIMx_EGR
0x10
W
TIMx event generation register
TIMx_CNT
0x14
R/W
TIMx counter register
RSVD
0x18
N/A
Reserved
TIMx_ARR
0x1C
R/W
TIMx auto-reload register
RSVD
0x20~0x7F
N/A
Reserved
10.4.1.1
TIMx Enable Register (TIMx_EN)
Name:
TIMx enable register (x = {0, 1, 2, 3})
Address offset:
0x00
Reset value:
0x00000000
Read/write access:
read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
CNT_STS
R
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RSVD
CNT_RUN
RSVD
CNT_STOP
CNT_START
R
W
W
Bit
Name
Access Reset Description
31:17
RSVD
N/A
-
Reserved
16
CNT_STS
R
0
Counter working status
0: Counter is stopped.
1: Counter is working.
15:9
RSVD
N/A
-
Reserved
8
CNT_RUN
R
0
Counter run status
0: Counter is disabled.
1: Counter is enabled.
7:2
RSVD
N/A
-
Reserved
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03