RX610 Group
9. Exceptions
R01UH0032EJ0120 Rev.1.20
Page 211 of 1006
Feb 20, 2013
9.5.5
Non-Maskable Interrupt
1.
The value of the processor status word (PSW) is saved on the stack (ISP).
2.
The processor mode select bit (PM), the stack pointer select bit (U), and the interrupt enable bit (I) in the PSW are
cleared to 0.
3.
If the interrupt was generated during the execution of an RMPA, SCMPU, SMOVB, SMOVF, SMOVU, SSTR,
SUNTIL, or SWHILE instruction, the value of the program counter (PC) for that instruction is saved on the stack
(ISP). For other instructions, the PC value of the next instruction is saved.
4.
The processor interrupt priority level bits (IPL[2:0]) in the PSW are set to 111b.
5.
The address of the processing routine is fetched from the vector address, FFFFFFF8h.
6.
The PC is set to the fetched address and the processing branches to the start of the exception handling routine.
9.5.6
Interrupts
1.
The value of the processor status word (PSW) is saved on the stack (ISP) or, for the fast interrupt, in the backup
PSW (BPSW).
2.
The processor mode select bit (PM), the stack pointer select bit (U), and the interrupt enable bit (I) in the PSW are
cleared to 0.
3.
If the interrupt was generated during the execution of an RMPA, SCMPU, SMOVB, SMOVF, SMOVU, SSTR,
SUNTIL, or SWHILE instruction, the value of the program counter (PC) for that instruction is saved. For other
instructions, the PC value of the next instruction is saved. Saving of the PC is in the backup PC (BPC) for fast
interrupts.
4.
The processor interrupt priority level bits (IPL[2:0]) in the PSW indicate the interrupt priority level of the interrupt.
5.
The address of the processing routine for an interrupt source other than the fast interrupt is fetched from the
relocatable vector table. For the fast interrupt, the address is fetched from the fast interrupt vector register (FINTV).
6.
The PC is set to the fetched address and processing branches to the start of the exception handling routine.
9.5.7
Unconditional Trap
1.
The value in the processor status word (PSW) is saved on the stack (ISP).
2.
The processor mode select bit (PM), the stack pointer select bit (U), and the interrupt enable bit (I) in the PSW are
cleared to 0.
3.
The value of the program counter (PC) for the next instruction is saved on the stack (ISP).
4.
For the INT instruction, the value at the vector corresponding to the INT instruction number is fetched from the
relocatable vector table.
For the BRK instruction, the value at the vector from the start address is fetched from the relocatable vector table.
5.
The PC is set to the fetched address and the processing branches to the start of the exception handling routine.