12. Timer 0/1/2/3/4/5
A96G140/A96G148/A96A148 User’s manual
128
12.4.4
16-bit timer 3 block diagram
In this section, a 16-bit timer 3 is described in a block diagram.
T3MS[1:0]
T3POL
Reload
A Match
T3CC
T3EN
P
r
e
s
c
a
l
e
r
fx
M
U
X
fx/2
fx/4
fx/64
fx/512
fx/204 8
fx/8
fx/1
Comparator
16-bit Counte r
T3CNTH/T3CNTL
16-bit B Data Re gister
T3BDRH/T3BDRL
Clear
B Match
Buffer Register B
Comparator
16-bit A Data Re gister
T3ADRH/T3ADRL
T3IFR
INT_ACK
Clear
To i nte rrupt
block
A Match
Buffer Reg ister A
Reload
Pulse
Gen erator
T3O
R
EINT3
T3CNTR
T3EN
Clear
EIPOL0L[7:6]
FLAG3
(EIFLAG0.3)
INT_ACK
Clear
To i nte rrupt
block
2
2
T3MS[1:0]
2
Edg e
Detector
T3ECE
EC3
To Timer 4
block
A Match
T3CC
T3EN
A Match
T3CC
T3EN
3
T3CK[2:0]
PWM3O
Figure 61. 16-bit Timer 3 Block Diagram
12.4.5
Register map
Table 21. TIMER 3 Register Map
Name
Address
Direction
Default
Description
T3ADRH
1002H
R/W
FFH
Timer 3 A Data High Register
T3ADRL
1003H
R/W
FFH
Timer 3 A Data Low Register
T3BDRH
1004H
R/W
FFH
Timer 3 B Data High Register
T3BDRL
1005H
R/W
FFH
Timer 3 B Data Low Register
T3CRH
1000H
R/W
00H
Timer 3 Control High Register
T3CRL
1001H
R/W
00H
Timer 3 Control Low Register
12.4.6
Register description