English
Language : 

GMS81C7216 Datasheet, PDF (54/121 Pages) List of Unclassifed Manufacturers – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C7208/7216
13.3 8-bit Capture Mode
The capture mode can be used to measure the pulse width be-
tween two edges. The timer 0 capture mode is set by bit CAP0 of
timer mode register TM0, and the timer 1 capture mode is set by
CAP1 of timer mode register TM1 as shown in Figure 13-10.
Timer 2 and timer 3 have same architecture with timer 0 and timer
1.
The Timer/Counter register is incremented in response internal or
external input. This counting function is same with normal timer
mode, and timer interrupt is generate when timer register T0 (T1,
T2, T3) increase and match TDR0 (TDR1, TDR2, TDR3).
Timer/Counter still does the above, but with the added feature
that a edge transition at external input INTn pin causes the current
.
ftimer=
-------------------------------------f--x--i--n------------------------------------
2 × prescaler value × (TDR + 1)
TM0
TM1
7
6
5
4
3
2
1
0
-
- CAP0 T0CK2 TB0TCCKL1 T0CK0 T0CN T0ST
X
X
1
X
X
X
X
X
- 16BIT0 - CAP1 TB1TCCKL1 T1CK0 T1CN T1ST
X
0
0
1
X
X
X
X
ADDRESS: 0E0H
INITIAL VALUE: 00H
ADDRESS: 0E2H
INITIAL VALUE: 00H
IEDS[1:0]
01
INT0 PIN
10
11
T0CK[2:0]
Edge Detector
EC0 PIN
SCMR[1:0]
fXIN
reserved
0X fEX
1X
÷ 2048
÷ 512
÷ 128
÷ 32
÷8
÷4
÷2
÷1
111
110
101
100
011
010
001
000
MUX
INT0IF
INT0
INTERRUPT
CDCRD0 R(80-bit)
capture
clear
CDT0R0(8(-8b-itb)it)
T0ST
0: Stop
1: Clear and start
clear
T0CN
Comparator
CTDDRR00 ((88--bbiitt))
COMPARE DATA
T0IF
TIMER 0
INTERRUPT
INT1 PIN
01
10
11
IEDS[3:2]
T1CK[1:0]
11
÷ 8 10
÷ 2 01
÷ 1 00
MUX
T1CN
INT1IF
CDCRD0 R(81-bit)
capture
clear
CDT1R0(8(-8b-ibt)it)
T1ST
0: Stop
1: Clear and start
clear
Comparator
CTDDRR10 ((88--bbiitt))
COMPARE DATA
T1IF
INT1
INTERRUPT
TIMER 1
INTERRUPT
Figure 13-10 8-bit Capture Mode (Timer0/Timer1 Case)
50
FEB. 2005 Ver 1.04