English
Language : 

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