A96G140/A96G148/A96A148 User’s manual
12. Timer 0/1/2/3/4/5
147
12.6.4
16-bit timer 5 block diagram
In this section, a 16-bit timer 5 is described in a block diagram.
T5MS[1:0]
T5POL
Reload
A Match
T5CC
T5EN
P
r
e
s
c
a
l
e
r
fx
M
U
X
fx/2
fx/4
fx/32
fx/128
fx/512
fx/8
fx/1
Comparator
16-bit Cou nte r
T5CNTH/T5CNTL
16-bit B Data Re gister
T5BDRH/T5BDRL
Clear
B Match
Buffer Reg ister B
Comparator
16-bit A Data Re gister
T5ADRH/T5ADRL
T5IFR
S/W
Clear
To i nte rrupt
block
A Match
Buffer Reg ister A
Reload
Pulse
Gen erator
T5O
R
EINT5
T5CNTR
T5EN
3
T5CK[2:0]
Clear
EIPOL0H[3:2]
FLAG5
(EIFLAG0.5)
INT_ACK
Clear
To i nte rrupt
block
2
2
T5MS[1:0]
2
HIRC
A Match
T5CC
T5EN
A Match
T5CC
T5EN
PWM5O
Figure 77. 16-bit Timer 5 Block Diagram
12.6.5
Register map
Table 25. TIMER 5 Register Map
Name
Address
Direction
Default
Description
T5ADRH
1012H
R/W
FFH
Timer 5 A Data High Register
T5ADRL
1013H
R/W
FFH
Timer 5 A Data Low Register
T5BDRH
1014H
R/W
FFH
Timer 5 B Data High Register
T5BDRL
1015H
R/W
FFH
Timer 5 B Data Low Register
T5CRH
1010H
R/W
00H
Timer 5 Control High Register
T5CRL
1011H
R/W
00H
Timer 5 Control Low Register
12.6.6
Register description