Renesas SH7781 User Manual

Page 129

Advertising
background image

5. Exception Handling

Rev.1.00 Jan. 10, 2008 Page 99 of 1658

REJ09B0261-0100

Execute next instruction

Is highest-

priority exception

re-exception

type?

Cancel instruction execution

result

Yes

Yes

Yes

No

No

No

No

Yes

SSR

← SR

SPC

← PC

SGR

← R15

EXPEVT/INTEVT

← exception code

SR.{MD,RB,BL}

← 111

SR.IMASK

← received interuupt level (*)

PC

← (CBCR.UBDE=1 && User_Break?

DBR: (VBR + Offset))

Interrupt

requested?

General

exception requested?

Reset

requested?

EXPEVT

← exception code

SR. {MD, RB, BL, FD, IMASK}

← 11101111

PC

← H'A000 0000

Note: * When the exception of the highest priority is an interrupt.

Whether IMASK is updated or not can be set by software.
"Accepted interrupt level" is B'1111 for NMI.

Figure 5.1 Instruction Execution and Exception Handling

Advertising