GMS81508B HYNIX [Hynix Semiconductor], GMS81508B Datasheet - Page 46

no-image

GMS81508B

Manufacturer Part Number
GMS81508B
Description
HYUNDAI MICRO ELECTRONICS 8-BIT SINGLE-CHIP MICROCONTROLLERS
Manufacturer
HYNIX [Hynix Semiconductor]
Datasheet
HYUNDAI MicroElectronics
11.3 8-bit Capture Mode
The Timer 0 capture mode is set by bit CAP0 of timer
mode register TM0 (bit CAP2 of timer mode register TM2
for Timer 2) as shown in Figure 21. In this mode, Timer 1
still operates as an 8-bit timer/counter.
As mentioned above, not only Timer 0 but Timer 2 can also
be used as a capture mode.
In 8-bit capture mode, Timer 1 and Timer 3 are can not be
used as a capture mode.
The Timer/Counter register is incremented in response in-
ternal or external input. This counting function is same
with normal timer mode, but Timer interrupt is not gener-
ated. Timer/Counter still does the above, but with the add-
ed feature that a edge transition at external input INTn pin
DEC. 1999 Ver 1.04
INT0 PIN
EC0 PIN
XIN PIN
Edge Detector
TM0
IEDS[1:0]
“01”
“10”
“11”
16
64
4
CAP0
7
1
T0SL[1:0]
“00”
“01”
“10”
“11”
MUX
T1ST
X
6
To TIMER1
Figure 11-9 8-bit Capture Mode
TIMER 0
T1SL1 T1SL0
5
01 or 10 or 11
T0CN
4
BTCL
T0ST
X
3
This figure is a example of using the Timer0.
In the Timer2, operation is same like Timer0, each registers and
flags may be changed with for Timer2.
T0CN
Capture
2
causes the current value in the Timer counter register
(T0,T2), to be captured into registers CDRn (CDR0,
CDR2), respectively. After captured, Timer counter regis-
ter is cleared and restarts by hardware.
Note: The CDRn and TDRn are in same address.In the
capture mode, reading operation is read the CDRn, not
TDRn because path is opened to the CDRn.
It has three transition modes: "falling edge", "rising edge",
"both edge" which are selected by interrupt edge selection
register IEDS. Refer to “16.4 External Interrupt” on page
61. In addition, the transition at INTn pin generate an inter-
rupt.
X
T0SL1
CDR0 (8-bit)
X means don’t care
T0 (8-bit)
1
X
T0ST
T0SL0
0: Stop
1: Clear and start
0
X
ADDRESS: 0E2
INITIAL VALUE: 00
INT0IF
GMS81508B/16B/24B
H
INT0
INTERRUPT
H
43

Related parts for GMS81508B