A96G150 User's manual
12. Timer 0/1/2/3/4/5
135
12.4.1
16-bit timer/counter mode
16-bit timer/counter mode is selected by control registers, and the 16-bit timer/counter has counter
registers and data registers as shown in Figure 50. The counter register is increased by internal or
external clock input. Timer 3 can use the input clock with one of 1, 2, 4, 8, 64, 512 and 2048 prescaler
division rates (T3CK[2:0]). When the values of T3CNTH/T3CNTL and T3ADRH/T3ADRL are identical
to each other in timer 3, a match signal is generated and the interrupt of Timer 3 occurs. The
T3CNTH/T3CNTL values are automatically cleared by the match signal. It can be cleared by software
(T3CC) too.
External clock (EC3) counts up the timer at the rising edge. If the EC3 is selected as a clock source by
T3CK[2:0], EC3 port should be set as an input port by configuring P16 IO bit.
T3EN
T3CRH
1
ADDRES S:1000H
INITIAL VALUE : 0000_0000B
T3MS[1:0]
T3POL
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
16-bit Cou nte r
T3CNTH/T3CNTL
Clear
Edg e
Detector
T3ECE
EC3
Comparator
16-bit A Data Re gister
T3ADRH/T3ADRL
T3IFR
INT_ACK
Clear
To i nte rrupt
block
A Match
Buffer Reg ister A
A Match
T3CC
Reload
Pulse
Gen erator
T3O
R
T3EN
2
–
T3MS1
T3MS0
–
–
–
T3CC
–
0
0
–
–
–
X
T3CK2
T3CRL
X
ADDRES S:1001H
INITIAL VALUE : 0000_0000B
T3CK1
T3CK0
T3IFR
–
T3POL
T3ECE T3CNTR
X
X
X
–
X
X
X
T3EN
3
T3CK[2:0]
PWM3O
Figure 50. 16-bit Timer/Counter Mode of Timer 3
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...