12. Timer 0/1/2/3/4/5
A96G150 User's manual
156
12.6.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 66. The counter register is increased by internal clock
input.
Timer 5 can use the input clock with one of 1, 2, 4, 8, 32, 128, 512 and High Frequency Internal Oscillator
(HSIRC) prescaler division rates (T5CK[2:0]). When the values of T5CNTH/T5CNTL and
T5ADRH/T5ADRL are identical to each other in timer 5, a match signal is generated and the interrupt
of Timer 5 occurs. The T5CNTH/T5CNTL values are automatically cleared by the match signal. It can
be cleared by software (T5CC) too.
T5MS[1:0]
T5POL
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
16-bit Cou nte r
T5CNTH/T5CNTL
Clear
HIRC
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
T5EN
3
T5CK[2:0]
2
A Match
T5CC
T5EN
T5EN
T5CRH
1
ADDRES S:1010H
INITIAL VALUE : 0000_0000B
–
T5MS1
T5MS0
–
–
–
T5CC
–
0
0
–
–
–
X
T5CK2
T5CRL
X
ADDRES S:1011H
INITIAL VALUE : 0000_0000B
T5CK1
T5CK0
T5IFR
–
T5POL
–
T5CNTR
X
X
X
–
X
–
X
PWM5O
Figure 66. 16-bit Timer/Counter Mode of Timer 5
Содержание 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...