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

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
An example of the use of modulo addressing is shown below.
The start and end addresses are specified in MS and ME, then the DMX or DMY bit is set to 1.
When the X or Y data transfer instruction specified by the DMX or DMY is executed, the address
register contents before updating are compared with ME*, and if they match, start address MS is
stored in the address register as the value after updating.
When the addressing type of the X/Y data transfer instruction is no-update, the X/Y data transfer
instruction is not returned to MS even if they match ME. When the addressing type of the X/Y
data transfer instruction is addition index register addressing, the address pointed may not match
the address pointer ME, and exceed it. In this case, the address pointer value does not become the
modulo start address.
The maximum modulo size is 64 kbytes. This is sufficient to access the X and Y data memory.
Note: Not only with modulo addressing, but when X and Y data addressing is used, bit 0 is
ignored. 0 must always be written to bit 0 of the address pointer, index register, MS, and
ME.
MOV.L #H’70047000, R10
LDC R10,MOD
STC SR, R10
MOV.L #H’FFFFF3FF, R11;
MOV.L #H’00000400, R12;
AND R11, R10
OR R12, R10
LDC R10, SR
MOV.L #H’A5007000, R4
MOVX.W @R4+,X0
MOVX.W @R4+,X0
MOVX.W @R4+,X0
MOVX.W @R4+,X0
;Specify MS=H’7000 ME = H’7004
;Specify ME:MS to MOD register
;
;
;
; Specify SR.MDX=1,
; R4: H’A5007000→ H’A5007002
; R4: H’A5007002→ H’A5007004
; R4: H’A5007004→ H’A5007000
(Matches to ME and MS is set)
; R4: H’A5007000→ H’A5007002
SR.MDY=0, and X modulo addressing mode
Rev. 3.00 Jan. 18, 2008 Page 109 of 1458
Section 3 DSP Operating Unit
REJ09B0033-0300

Related parts for HD6417320