HT46R63 Holtek Semiconductor Inc., HT46R63 Datasheet - Page 11

no-image

HT46R63

Manufacturer Part Number
HT46R63
Description
Ht46r63/ht46c63 -- A/d With Lcd Type 8-bit Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT46R63
Manufacturer:
VXIS
Quantity:
3 621
Part Number:
HT46R63
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
All these kinds of interrupts have the wake-up capability.
As an interrupt is serviced, a control transfer occurs by
pushing the program counter onto the stack and then
branching to subroutines at specified location(s) in the
program memory. Only the program counter is pushed
onto the stack. If the contents of the register or status
register are altered by the interrupt service program,
which corrupts the desired control sequence, the pro-
grammer should save these contents first.
External interrupts are triggered by a high to low and/or
low to high transition of INT0/INT1 and the related inter-
rupt request flag (bit 4/5 of INTC0 ) will be set. When the
interrupt is enabled, the stack is not full and the external
interrupt is active, a subroutine call to location
004H/008H will occur. The external interrupt request
flag and EMI bits will cleared to disable other interrupts.
The internal timer/event counter interrupt is initialized by
setting the timer/event counter interrupt request flag (bit
6 of INTC0), caused by a timer overflow. When the inter-
rupt is enabled, the stack is not full and the timer/event
counter interrupt request flag is set, a subroutine call to
location 00CH will occur. The related interrupt request
flag will be reset and the EMI bit cleared to disable fur-
ther interrupts.
The time base time-out interrupt is initialized by setting
the time base time-out interrupt request flag (bit 4 of
INTC1), caused by a time base time-out. When the in-
terrupt is enabled, the stack is not full and the time base
time-out interrupt request flag is set, a subroutine call to
location 010H will occur. The related interrupt request
flag will be reset and the EMI bit cleared to disable fur-
ther interrupts.
The A/D converter end-of-conversion interrupt is initial-
ized by setting the A/D end-of-conversion interrupt re-
quest flag (bit 5 of INTC1), caused by an end of A/D
conversion. When the interrupt is enabled, the stack is
not full and the end of A/D conversion interrupt request
flag is set, a subroutine call to location 014H will occur.
The related interrupt request flag will be reset and the
EMI bit cleared to disable further interrupts.
The real time clock time-out interrupt is initialized by set-
ting the real time clock interrupt request flag (bit 6 of
INTC1), caused by a RTC time-out. When the interrupt
is enabled, the stack is not full and the RTC time-out in-
terrupt request flag is set, a subroutine call to location
018H will occur. The related interrupt request flag will be
reset and the EMI bit cleared to disable further inter-
rupts.
Rev. 2.30
11
During the execution of an interrupt subroutine, other in-
terrupt acknowledgments are held until the RETI in-
struction is executed or the EMI bit and the related
interrupt control bit are set to 1 (of course, if the stack
is not full). To return from the interrupt subroutine, RET
or RETI may be invoked. RETI will set the EMI bit to
enable an interrupt service, but RET will not.
Interrupts, occurring in the interval between rising edge
of two consecutive T2 pulses, will be serviced on the
later of the two T2 pulses, if the corresponding interrupts
are enabled. In the case of simultaneous requests the
priorities in the follow table apply. These can be masked
by clearing the EMI bit.
The external interrupt 0/1 request flags (EI0F/EI1F),
timer/event counter interrupt request flag (TF), time
base interrupt request flag (TBF), A/D converter inter-
rupt request flag (ADF), RTC interrupt request flag
(RTF), enable external interrupt 0/1 (EE0I/EE1I), enable
timer/event counter interrupt bit (ETI), enable time base
interrupt (ETBI), enable A/D converter interrupt (EADI),
enable RTC interrupt (ERTI) and enable master inter-
rupt bit(EMI) constitute interrupt control registers
(INTC0/INTC1) which is located at 0BH/1EH in the data
memory. EMI, EE0I, EE1I, ETI, EADI and ERTI are used
to control the enabling/disabling of interrupts. These bits
prevent the requested interrupts from being serviced.
Once the interrupt request flags (EI0F, EI1F, TF, TBF,
ADF, RTF) are set, they will remain in the INTC0/INTC1
until the interrupts are serviced or cleared by software
instructions.
It is suggested that a program does not use the call
within a interrupt subroutine. It because interrupts often
occur in an unpredictable manner or need to be serviced
immediately in some applications. If only one stack is
left and enabling the interrupt is not well controlled, the
original control sequence will be damaged once the
tions of INTC0 and INTC1 registers are as shown.
CALL operates in the interrupt subroutine. The defini-
External Interrupt 0
External Interrupt 1
Timer/Event Counter Overflow
Interrupt
Time Base Time-out Interrupt
End of A/D Conversion Interrupt
RTC Time-out Interrupt
Interrupt Source
HT46R63/HT46C63
Priority
1
2
3
4
5
6
March 22, 2006
Vector
00CH
004H
008H
010H
014H
018H

Related parts for HT46R63