|
SH7616 Datasheet, PDF (166/935 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7600 Series | |||
|
◁ |
Section 4 Exception Handling
4.6.3 Instructions in Repeat Loops
If a repeat loop comprises up to three instructions, neither exceptions nor interrupts are accepted.
If a repeat loop contains four or more instructions, neither exceptions nor interrupts are accepted
during the execution cycle of the first instruction or the last three instructions. If a repeat loop
contains four or more instructions, address errors only are accepted during the execution cycle of
the fourth from last instruction. For more information, see the SH-1/SH-2/SH-DSP Software
Manual.
A. All interrupts and address errors are accepted.
B. Address errors only are accepted.
C. No interrupts or address errors are accepted.
When RC ⥠1
(1) One instruction
âA
instr0
âB
Start (End): instr1 â C
instr2 â A
(2) Two instructions
âA
instr0
âB
Start: instr1 â C
End: instr2 â C
instr3 â A
(4) Four or more instructions
âA
instr0 â A or C (on return from instr n)
Start:instr1 â A
:
:
:
âA
instr n-3
âB
instr n-2 â C
instr n-1 â C
End: instr n â C
instr n+1 â A
(3) Three instructions
âA
instr0
âB
Start: instr1 â C
instr2 â C
End: instr3 â C
instr4 â A
When RC = 0
All interrupts and address errors are accepted.
Figure 4.1 Interrupt Acceptance Restrictions in Repeat Mode
Rev. 2.00 Mar 09, 2006 page 140 of 906
REJ09B0292-0200
|
▷ |