HT49R50 Holtek Semiconductor Inc, HT49R50 Datasheet - Page 15

no-image

HT49R50

Manufacturer Part Number
HT49R50
Description
8-Bit Microcontroller
Manufacturer
Holtek Semiconductor Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT49R50
Manufacturer:
合泰
Quantity:
20 000
Part Number:
HT49R50A-1
Manufacturer:
HOLTEK
Quantity:
4 239
Part Number:
HT49R50A-1
Manufacturer:
SHARP
Quantity:
2 000
Part Number:
HT49R50A-1
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
Company:
Part Number:
HT49R50A-1
Quantity:
12 600
routine at the specified location in the ROM.
Only the contents of the PC is pushed onto the
stack. If the contents of the register or of the
status register (STATUS) is altered by the in-
terrupt service program which corrupts the de-
sired control sequence, the contents should be
saved in advance.
External interrupts are triggered by a high to
low transition of INT0 or INT1, and the related
interrupt request flag (EIF0; bit 4 of INTC0,
EIF1; bit 5 of INTC0) is set as well. After the in-
terrupt is enabled, the stack is not full, and the
external interrupt is active, a subroutine call to
location 04H or 08H occurs. The interrupt re-
quest flag (EIF0 or EIF1) and EMI bits are all
cleared to disable other interrupts.
The internal timer/event counter 0 interrupt is
initialized by setting the timer/event counter 0
interrupt request flag (T0F; bit 6 of INTC0),
which is normally caused by a timer overflow.
After the interrupt is enabled, and the stack is
not full, and the T0F bit is set, a subroutine call
to location 0CH occurs. The related interrupt
request flag (T0F) is reset, and the EMI bit is
cleared to disable further interrupts. The
timer/event counter 1 is operated in the same
manner but its related interrupt request flag is
T1F (bit 4 of INTC1) and its subroutine call lo-
cation is 10H.
The time base interrupt is initialized by setting
the time base interrupt request flag (TBF; bit 5
of INTC1), that is caused by a regular time base
signal. After the interrupt is enabled, and the
stack is not full, and the TBF bit is set, a sub-
routine call to location 14H occurs. The related
interrupt request flag (TBF) is reset and the
EMI bit is cleared to disable further interrupts.
The real time clock interrupt is initialized by
setting the real time clock interrupt request
flag (RTF; bit 6 of INTC1), that is caused by a
regular real time clock signal. After the inter-
rupt is enabled, and the stack is not full, and
the RTF bit is set, a subroutine call to location
18H occurs. The related interrupt request flag
(RTF) is reset and the EMI bit is cleared to dis-
able further interrupts.
During the execution of an interrupt subroutine,
other interrupt acknowledgments are all held
15
until the ²RETI² instruction is executed or the
EMI bit and the related interrupt control bit are
set both to 1 (if the stack is not full). To return
from the interrupt subroutine, ²RET² or ²RETI²
may be invoked. RETI sets the EMI bit and en-
ables an interrupt service, but RET does not.
Interrupts occurring in the interval between
the rising edges of two consecutive T2 pulses
are serviced on the latter of the two T2 pulses if
the corresponding interrupts are enabled. In
the case of simultaneous requests, the priori-
ties in the following table apply. These can be
masked by resetting the EMI bit.
The timer/event counter 0 interrupt request
flag (T0F), external interrupt 1 request flag
(EIF1), external interrupt 0 request flag
(EIF0), enable timer/event counter 0 interrupt
bit (ET0I), enable external interrupt 1 bit
(EEI1), enable external interrupt 0 bit (EEI0),
and enable master interrupt bit (EMI) make up
of the Interrupt Control register 0 (INTC0)
which is located at 0BH in the RAM. The real
time clock interrupt request flag (RTF), time
base interrupt request flag (TBF), timer/event
counter 1 interrupt request flag (T1F), enable
real time clock interrupt bit (ERTI), and enable
time base interrupt bit (ETBI), enable
timer/event counter 1 interrupt bit (ET1I) on
the other hand, constitute the Interrupt Con-
trol register 1 (INTC1) which is located at 1EH
in the RAM. EMI, EEI0, EEI1, ET0I, ET1I,
ETBI, and ERTI are all used to control the en-
able/disable status of interrupts. These bits
prevent the requested interrupt from being ser-
No. Interrupt Source Priority Vector
a
b
d
e
c
f
External interrupt 0
External interrupt 1
Timer/event
counter 0 overflow
Timer/event
counter 1 overflow
Time base
interrupt
Real time clock
interrupt
1
2
3
4
5
6
August 18, 1999
HT49C50
0CH
04H
08H
10H
14H
18H

Related parts for HT49R50