12. Timer 0/1/2/3/4/5
A96G150 User's manual
116
12.2.2
16-bit capture mode
It uses an internal/external clock as a clock source. Basically, the 16-bit timer 1 capture mode has the
same function as the 16-bit timer/counter mode, and the interrupt occurs when T1CNTH/T1CNTL is
equal to T1ADRH/T1ADRL. The T1CNTH, T1CNTL values are automatically cleared by a match signal.
It can be cleared by software (T1CC) too.
A timer interrupt in capture mode is very useful when the pulse width of captured signal is wider than
the maximum period of timer. Capture result is loaded into T1BDRH/T1BDRL.
According to EIPOL1 registers setting, the external interrupt EINT2 function is selected. EINT2 pin must
be set as an input port.
A Match
T1CC
T1EN
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
T1CNTH/T1CNTL
16-bit B Data Re gister
T1BDRH/T1BDRL
Clear
Edg e
Detector
T1ECE
EC1
Comparator
16-bit A Data Re gister
T1ADRH/T1ADRL
T1IFR
INT_ACK
Clear
To i nte rrupt
block
A Match
Buffer Reg ister A
A Match
T1CC
Reload
R
EINT2
T1CNTR
T1EN
3
T1CK[2:0]
Clear
EIPOL1[5:4]
FLAG2
(EIFLAG1.2)
INT_ACK
Clear
To i nte rrupt
block
2
T1MS[1:0]
2
T1EN
T1CRH
1
ADDRES S:BBH
INITIAL VALUE : 0000_0000B
–
T1MS1
T1MS0
–
–
–
T1CC
–
0
1
–
–
–
X
T1CK1
T1CRL
X
ADDRES S:BAH
INITIAL VALUE : 0000_0000B
T1CK1
T1CK0
T1IFR
–
T1POL
T1ECE T1CNTR
X
X
X
–
X
X
X
T1EN
Figure 36. 16-bit Capture Mode of Timer 1
Содержание 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...