12. Timer 0/1/2/3/4/5
A96G150 User's manual
146
12.5.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 58. The counter register is increased by internal or timer
4 A match clock input.
Timer 4 can use the input clock with one of 1, 2, 4, 8, 32, 128, 512 and T3 A Match prescaler division
rates (T4CK[2:0]). When the values of T4CNTH/T4CNTL and T4ADRH/T4ADRL are identical to each
other in timer 4, a match signal is generated and the interrupt of Timer 4 occurs. The T4CNTH/T4CNTL
values are automatically cleared by the match signal. It can be cleared by software (T4CC) too.
T4MS[1:0]
T4POL
A Match
T4CC
T4EN
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
16-bit Cou nte r
T4CNTH/T4CNTL
Clear
T3 A Match
Comparator
16-bit A Data Re gister
T4ADRH/T4ADRL
T4IFR
S/W
Clear
To i nte rrupt
block
A Match
Buffer Reg ister A
Reload
Pulse
Gen erator
T4O
R
T4EN
3
T4CK[2:0]
2
A Match
T4CC
T4EN
T4EN
T4CRH
1
ADDRES S:1008H
INITIAL VALUE : 0000_0000B
–
T4MS1
T4MS0
–
–
–
T4CC
–
0
0
–
–
–
X
T4CK2
T4CRL
X
ADDRES S:1009H
INITIAL VALUE : 0000_0000B
T4CK1
T4CK0
T4IFR
–
T4POL
–
T4CNTR
X
X
X
–
X
–
X
PWM4O
NOTE
: T3 A Match is a pulse for the timer 4 clock source if it is selected
.
Figure 58. 16-bit Timer/Counter Mode of Timer 4
Содержание 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...