GMS81508B/16B/24B
HYUNDAI MicroElectronics
11.4 16-bit Capture Mode
16-bit capture mode is the same as 8-bit capture, except
that the Timer register is being run will 16 bits.
7
TM0
6
5
4
3
2
1
0
CAP0 T1ST T1SL1 T1SL0 BTCL T0CN T0SL1 T0SL0
T0ST
1
X
0
0
X
X
X
X
ADDRESS: 0E2
H
INITIAL VALUE: 00
H
T0SL[1:0]
Edge Detector
X means don’t care
T0ST
EC0 PIN
÷
4
÷
16
÷
64
“00”
“01”
“10”
“11”
MUX
IEDS[1:0]
T0CN
Capture
TDR1 + TDR0
(16-bit)
“01”
INT0 PIN
“10”
“11”
This figure is a example of using the Timer0, 1.
In the Timer2, 3, operation is same like Timer0,1, each registers and
flags may be changed with for Timer2,3.
Higher byte Lower byte
CAPTURE DATA
INT0IF
INT0
INTERRUPT
0: Stop
1: Clear and start
TDR1 + TDR0
(16-bit)
XIN PIN
TIMER 0 + TIMER 1
→
TIMER 0 (16-bit)
Prescaler
Figure 11-10 16-bit Capture Mode
44
DEC. 1999 Ver 1.04