HD6417320 RENESAS [Renesas Technology Corp], HD6417320 Datasheet - Page 155

no-image

HD6417320

Manufacturer Part Number
HD6417320
Description
Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Table 3.4 shows the addresses to be specified in the repeat start register (RS) and repeat end
register (RE).
Table 3.4
Note: The terms used above in table 3.2, are defined as follows.
(2)
To describe a repeat loop, the RS and RE registers must be specified appropriately by the LDRS
and LDRS instructions and then the number of repetitions must be specified by the SERTC
instruction. An 8-bit immediate data or a general register can be used as an operand of the SETRC
instruction. To specify the RC as a value greater than 256, use SETRC Rm type instructions.
Table 3.5
RS
RE
Instruction
LDRS @(disp,PC)
LDRE @(disp,PC)
SETRC #imm
SETRC Rm
Repeat Control Instructions and Repeat Control Macros
1
RptStart0 + 8
RptStart0 + 4
RptStart: Address of the repeat start instruction
RptStart0: Address of the instruction one instruction prior to the repeat start instruction
RptEnd3: Address of the instruction three instructions prior to the repeat end instruction
RS and RE Setting Rule
Repeat Control Instructions
Operation
Calculates (disp x 2 + PC) and stores the result to the
RS register
Calculates (disp x 2 + PC) and stores the result to the
RE register
Sets 8-bit immediate data imm to the RC[11:0] bits of
the SR register and sets the information related to the
number of repetitions to the RF[1:0] bits of the SR.
RC[11:0] can be specified as 0 to 255.
Sets the[11:0] bits of the Rm register to the RC[11:0]
bits of the SR register and sets the information related
to the number of repetitions to the RF[1:0] bits of the
SR.
RC[11:0] can be specified as 0 to 4095.
2
RptStart0 + 6
RptStart0 + 4
Number of Instructions in Repeat Loop
3
RptStart0 + 4
RptStart0 + 4
Rev. 3.00 Jan. 18, 2008 Page 93 of 1458
Section 3 DSP Operating Unit
≥4
RptStart
RptEnd3 + 4
Number of
Execution States
1
1
1
1
REJ09B0033-0300

Related parts for HD6417320