English
Language : 

HMS87C1304A Datasheet, PDF (40/70 Pages) Hynix Semiconductor – CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
HMS87C1304A/HMS87C1302A
HYUNDAI MicroElectronics
timer register T0 (T1) increases and matches TDR0
(TDR1).
This timer interrupt in capture mode is very useful when
the pulse width of captured signal is more wider than the
maximum period of Timer.
For example, in Figure 12-8 , the pulse width of captured
signal is wider than the timer data value (FFH) over 2
times. When external interrupt is occurred, the captured
value (13H) is more little than wanted value. It can be ob-
tained correct value by counting the number of timer over-
flow occurrence.
Timer/Counter still does the above, but with the added fea-
ture that a edge transition at external input INTx pin causes
the current value in the Timer x register (T0,T1), to be cap-
tured into registers CDRx (CDR0, CDR1), respectively.
After captured, Timer x register is cleared and restarts by
hardware.
It has three transition modes: “falling edge”, “rising edge”,
“both edge” which are selected by interrupt edge selection
register IEDS (Refer to External interrupt section). In ad-
dition, the transition at INTx pin generate an interrupt.
Note: The CDRx, TDRx and Tx are in same address. In
the capture mode, reading operation is read the
CDRx, not Tx because path is opened to the CDRx,
and TDRx is only for writing operation.
TM0
TM1
EC0
fxin
INT0
INT1
ADDRESS : D0H
-
-
CAP0 T0CK2 T0CK1 T0CK0 T0CN T0ST
RESET VALUE : --000000
-
-
1
X
X
X
X
X
y POL
16BIT PWME CAP1 T1CK1 T1CK0 T1CN
T1ST
ADDRESS : D2H
RESET VALUE : 00000000
r X
0
0
1
X
X
X
X
ina Edge Detector
T0CK[2:0]
T0ST
0 : Stop
1 : Start
lim ÷ 2
MUX
÷4
÷8
e ÷ 32
r ÷ 128
P ÷ 512
1
CLEAR
T0 (8-bit)
T0CN
CAPTURE
CDR0 (8-bit)
T0IF
COMPARATOR
TDR0 (8-bit)
TIMER 0
INTERRUPT
÷ 2048
INT0IF
INT 0
INTERRUPT
T0ST
IEDS[1:0]
0 : Stop
1 : Start
÷1
1
÷2
MUX
÷8
T1CK[1:0]
T1CN
T1 (8-bit)
CLEAR
T1IF
COMPARATOR
TIMER 1
INTERRUPT
IEDS[3:2]
CAPTURE
CDR1 (8-bit) TDR1 (8-bit)
INT1IF
INT 1
INTERRUPT
Figure 12-6 8-bit Capture Mode
40
Preliminary
Jan. 2001