English
Language : 

HMS87C5216 Datasheet, PDF (53/76 Pages) List of Unclassifed Manufacturers – CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER FOR UR(Universal Remocon) & WIRELESS KEYBOARD
-Maximum 12 machine cycle (When execute DIV
instruction)
-Minimum 0 machine cycle
*Interrupt preprocess step is 8 machine cycle
HMS87C5216
*Interrupt overhead
-Maximum 1 + 12 + 8 = 21 machine cycle
-Minimum 1 + 0 + 8 = 9 machine cycle
(3) The valid timing after executing Interrupt control instructions
I flag is valid just after executing of EI/DI on the contrary. In-
terrupt Enable register is valid one instruction after controlling in-
terrupt Enable Register.
13.4 INTERRUPT PROCESSING SEQUENCE
When an interrupt is accepted, the on-going process is stopped
and the interrupt service routine is executed. After the interrupt
service routine is completed it is necessary to restore everything
to the state before the interrupt occured.As soon as an interrupt is
accepted, the content of the program counter and PSW are save-
din the stack area. At the same time, the content of the vector ad-
dress corresponding to the accepted interrupt, which is in the
interrupt vector table, enters into the program counter and inter-
rupt service is executed. In order to execute the interrupt service
routine, it is necessary to write the jump addresses in the vector
table (FFE0 h ~ FFFF h) corresponding to each interrupt
* Interrupt Processing Step
1) Store upper byte of Program Counter, SP <= SP
2) Store lower byte of Program Counter, SP <= SP - 1
3) Store Program Status Word, SP <= SP - 2
4) After resetting of I-flag, clear accepted Interrupt Request Flag.
(Set B-flag for BRK Instruction)
5) Call Interrupt service routine
clock
SYNC
R/W
internal
addr bus
internal
data bus
internal
READ
internal
WRITE
Interrupt Process Step
ISR
*1
*2 *3
PC
SP SP-1
SP-2
LVA HVA new PC
↑↑↑↑↑
OP
OP PCH PCL PSW
CODE CODE
↑
``L``
vector
↑
``H``
vector
*1 ISR
*2 LVA
*3 HVA
: Interrupt Service
Routine
: Low Vector Address
: High Vector Address
Figure 13-3 Interrupt Procesing Step Timing
13.5 SOFTWARE INTERRUPT (Interrupt by Break (BRK) Instruction)
Software interrupt is available just by writing ``Break(BRK)`` in-
struction. The values of PC and PSW is stacked by BRK instruc-
tion and then B flag of PSW is set and I flag is reset.
SEP. 2004 Ver 1.01