English
Language : 

H49R50A-1 Datasheet, PDF (12/45 Pages) Holtek Semiconductor Inc – LCD Type 8-Bit MCU
HT49R50A-1/HT49C50-1/HT49C50L
External interrupts are triggered by a high to low transi-
tion 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 interrupt is enabled, the stack is not full,
and the external interrupt is active, a subroutine call to
location 04H or 08H occurs. The interrupt request flag
(EIF0 or EIF1) and EMI bits are all cleared to disable
other interrupts.
The internal Timer/Event Counter 0 interrupt is initial-
ized by setting the Timer/Event Counter 0 interrupt re-
quest flag (T0F;bit 6 of INTC0), which is normally
caused by a timer overflow. After the interrupt is en-
abled, and the stack is not full, and the T0F bit is set, a
subroutine call to location 0CH occurs. The related inter-
rupt 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 sub-
routine call location 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 subroutine 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 sig-
nal. After the interrupt 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 disable further inter-
rupts.
During the execution of an interrupt subroutine, other in-
terrupt acknowledgments are all held until the ²RETI² in-
struction 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
priorities in the following table apply. These can be
masked by resetting the EMI bit.
Interrupt Source
External interrupt 0
External interrupt 1
Timer/Event Counter 0 overflow
Timer/Event Counter 1 overflow
Time base interrupt
Real time clock interrupt
Priority Vector
1
04H
2
08H
3
0CH
4
10H
5
14H
6
18H
Bit No.
0
1
2
3
4
5
6
7
Bit No.
0
1
2
3
4
5
6
7
Label
EMI
EEI0
EEI1
ET0I
EIF0
EIF1
T0F
¾
Label
ET1I
ETBI
ERTI
¾
T1F
TBF
RTF
¾
Function
Controls the master (global) interrupt (1=enabled; 0=disabled)
Controls the external interrupt 0 (1=enabled; 0=disabled)
Controls the external interrupt 1 (1=enabled; 0=disabled)
Controls the Timer/Event Counter 0 interrupt (1=enabled; 0=disabled)
External interrupt 0 request flag (1=active; 0=inactive)
External interrupt 1 request flag (1=active; 0=inactive)
Internal Timer/Event Counter 0 request flag (1=active; 0=inactive)
Unused bit, read as ²0²
INTC0 (0BH) Register
Function
Controls the Timer/Event Counter 1 interrupt (1=enabled; 0=disabled)
Controls the time base interrupt (1=enabled; 0:disabled)
Controls the real time clock interrupt (1=enabled; 0:disabled)
Unused bit, read as ²0²
Internal Timer/Event Counter 1 request flag (1=active; 0=inactive)
Time base request flag (1=active; 0=inactive)
Real time clock request flag (1=active; 0=inactive)
Unused bit, read as ²0²
INTC1 (1EH) Register
Rev. 2.00
12
November 29, 2005