Software Interrupts; Interrupt Masked Period - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

6.3.8 Software Interrupts

The S1C17 Core provides the int imm5 and intl imm5,imm3 instructions allowing the software to generate
any interrupts. The operand imm5 specifies a vector number (0–31) in the vector table. In addition to this, the intl
instruction has the operand imm3 to specify an interrupt level (0–7) to be set to the IL field in the PSR.
The processor performs the same interrupt handling as that of a hardware interrupt.

6.3.9 Interrupt Masked Period

Address misaligned interrupts, NMIs, debug interrupts, and external maskable interrupts are masked between the
specific instructions listed below and cannot be generated during that period (pending state). When the processor
exits the masked period, the pending interrupt can be accepted.
(1) Between the ext instruction and the next instruction
(2) Between a delayed branch (.d) instruction and the delayed slot instruction that follows
(3) Between the retd instruction and the next instruction (located at the return address)
(4) Between the reti or reti.d
(5) Between the int, ei, di, slp, or halt instruction and the next instruction
(6) Between a conditional jump (jr*) instruction and the next instruction when the condition has not been met
*1 An interrupt that occurs when the reti.d instruction is being executed will be accepted after the delayed slot
instruction that follows and the next instruction (located at the return address) are executed.
|
reti.d
Delayed slot instruction
|
Instruction at return address
Next instruction
*2 The debug interrupt may occur even in the conditions (4) to (6).
S1C17 CORE MANUAL
(Rev. 1.2)
*1
instruction and the next instruction (located at the return address)
Interrupt masked state
Interrupt masked state still continues, so the next instruction will be executed
before interrupts can be generated.
Interrupt mask is released.
Seiko Epson Corporation
6 FUNCTIONS
*2
*2
*2
6-9

Advertisement

Table of Contents
loading

Table of Contents