|
SH7729R Datasheet, PDF (175/855 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series | |||
|
◁ |
Exception Type
General interrupt requests
(cont)
Exception Event
External hardware interrupts (cont):
IRL3âIRL0 = 0010
IRL3âIRL0 = 0011
IRL3âIRL0 = 0100
IRL3âIRL0 = 0101
IRL3âIRL0 = 0110
IRL3âIRL0 = 0111
IRL3âIRL0 = 1000
IRL3âIRL0 = 1001
IRL3âIRL0 = 1010
IRL3âIRL0 = 1011
IRL3âIRL0 = 1100
IRL3âIRL0 = 1101
IRL3âIRL0 = 1110
Exception Code
H'240
H'260
H'280
H'2A0
H'2C0
H'2E0
H'300
H'320
H'340
H'360
H'380
H'3A0
H'3C0
4.2.5 Exception Request Masks
When the BL bit in SR is 0, exceptions and interrupts are accepted.
If a general exception event occurs when the BL bit in SR is 1, the CPUâs internal registers are set
to their post-reset state, other module registers retain their contents prior to the general exception,
and a branch is made to the same address (H'A0000000) as for a reset.
If a general interrupt occurs when BL = 1, the request is masked (held pending) and not accepted
until the BL bit is cleared to 0 by software. For reentrant exception handling, SPC and SSR must
be saved and the BL bit in SR cleared to 0.
4.2.6 Returning from Exception Handling
The RTE instruction is used to return from exception handling. When RTE is executed, the SPC
value is set in PC, and the SSR value in SR, and the return from exception handling is performed
by branching to the SPC address.
If SPC and SSR have been saved in external memory, set the BL bit in SR to 1, then restore SPC
and SSR, and issue an RTE instruction.
Rev. 5.0, 09/03, page 129 of 806
|
▷ |