stack and then branching to subroutines at the
specified location(s) in the program memory.
Only the program counter is pushed onto the
stack. The programmer must save the contents
of the register or status register (STATUS) in
advance if they are altered by an interrupt ser-
vice program which corrupts the desired con-
trol sequence.
External interrupts are triggered by a high to
low transition of INT. The related interrupt re-
quest flag (EIF; bit 4 of INTC) are also set.
When an interrupt is enabled, the stack is not
full and the external interrupt is active, a sub-
routine call to location 04H will occur. The in-
terrupt request flag (EIF) and EMI bits will be
cleared to disable other interrupts.
The sampling rate counter interrupt is initial-
ized by setting a sampling rate counter inter-
rupt request flag (SRF; bit 5 of INTC), which is
caused by a timer overflow. When an interrupt
is enabled, the stack is not full and the SRF bit
is set, a subroutine call to location 08H will oc-
cur. The related interrupt request flag (SRF)
will be reset and the EMI bit be cleared to dis-
able further interrupts.
Register
Bit No.
Label
0
1
2
3
INTC
(0BH)
4
5
6
7
The internal timer/event counter interrupt is
initialized by setting a timer/event counter in-
terrupt request flag (TF; bit 6 of INTC), which
is caused by a timer overflow. When an inter-
rupt is enabled, the stack is not full and the TF
bit is set, a subroutine call to location 0CH will
occur. The related interrupt request flag (TF)
will be reset and the EMI bit will be cleared to
disable further interrupts.
During the execution of an interrupt subrou-
tine, other interrupt acknowledgments are all
held until the ²RETI² instruction is executed or
the EMI bit and the related interrupt control
bit are set to 1 (if the stack is not full). To return
from an 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 an interval between the
rising edges of two consecutive T2 pulses will be
serviced at the latter of the two T2 pulses if the
corresponding interrupts are enabled. In the
case of simultaneous requests, they can be
masked by resetting the EMI bit. The following
table illustrates the priority of applying the si-
multaneous requests:
Controls a master (global) interrupt
EMI
(1=enabled; 0=disabled)
Controls an external interrupt
EEI
(1=enabled; 0=disabled)
Controls a sampling rate counter interrupt
ESI
(1=enabled; 0=disabled)
Controls a timer/event counter interrupt
ETI
(1=enabled; 0=disabled)
External interrupt request flag
EIF
(1=active; 0=inactive)
Sampling rate counter request flag
SRF
(1=active; 0=inactive)
Internal timer/event counter request flag
TF
(1=active; 0=inactive)
¾
Unused bit, read as ²0²
INTC register
13
HT827A0
Function
March 15, 2000
Need help?
Do you have a question about the HT827A0 and is the answer not in the manual?
Questions and answers