HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 128

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Table 3.7
Note: In table 3.7, the following symbols are used.
7. Repeat counter and repeat control
Rev. 1.00, 02/04, page 90 of 804
RptDtct
RptDtct1 RptDtct1 + 4
RptDtct2 ―
RptDtct3 ―
 PC relative addressing instructions
The CPU always executes a program with comparing the repeat end register (RE) and the
program counter (PC). If the PC matches the RE while the RC[11:0] bits of the SR register are
other than 0, the repeat control function is initiated.
 If RC ≥ 2, a control is passed to a repeat start instruction after a repeat end instruction has
 If RC == 1, the RC is decremented to 0 at the completion of the repeat end instruction and
 If RC == 0, the repeat control function is not initiated even if a repeat detection instruction
MOV.A @(disp, PC), Rn
MOV.W @(disp, PC), Rn
MOV.L @(disp, PC), Rn
(Including the case when the MOV #imm,Rn is extended to MOV.W @(disp, PC), Rn or
MOV.L @(disp, PC), Rn)
been executed. The RC is decremented by 1 at the completion of the repeat end instruction.
In this case, restrictions (a) to (f) are also applied.
a control is passed to the subsequent instruction. In this case, restrictions (a) to (f) are also
applied.
is executed. The repeat loop is executed once as normal instructions and a control is not be
passed to a repeat start instruction even if a repeat end instruction is executed.
RptDtct:
RptDtct1:
RptDtct2:
RptDtct3:
1
RptDtct + 4
PC Value during Repeat Control (When RC[11:0] ≥ 2)
An address of the repeat detection instruction
An address of the instruction one instruction following the repeat start
instruction (In a repeat loop consisting of one to three instructions, RptStart is
a repeat start instruction)
An address of the instruction two instruction following the repeat start
instruction
An address of the instruction three instruction following the repeat start
instruction
Number of Instructions in Repeat Loop
2
RptDtct + 4
RptDtct1+ 4
RptDtct1+ 4
3
RptDtct + 4
RptDtct1 + 4
RptDtct1 + 4
RptDtct1 + 4
≥4
RptDtct +4
RptDtct1 + 4
RS
RS + 2

Related parts for HD6417660