SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 234

no-image

SAB80C517-M16

Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
RETI
Function:
Description:
Example:
Operation:
Encoding:
Bytes:
Cycles:
Semiconductor Group
Return from interrupt
RETI pops the high and low-order bytes of the PC successively from the stack, and
restores the interrupt logic to accept additional interrupts at the same priority level
as the one just processed. The stack pointer is left decremented by two. No other
registers are affected; the PSW is not automatically restored to its pre-interrupt
status. Program execution continues at the resulting address, which is generally the
instruction immediately after the point at which the interrupt request was detected.
If a lower or same-level interrupt is pending when the RETI instruction is executed,
that one instruction will be executed before the pending interrupt is processed.
The stack pointer originally contains the value 0B H . An interrupt was detected
during the instruction ending at location 0122 H . Internal RAM locations 0A H and
0B H contain the values 23 H and 01 H , respectively. The instruction
RETI
will leave the stack pointer equal to 09 H and return program execution to location
0123 H .
RETI
(PC15-8)
(SP)
(PC7-0)
(SP)
1
2
0 0 1 1
(SP) – 1
(SP) – 1
((SP))
((SP))
0 0 1 0
235
Instruction Set

Related parts for SAB80C517-M16