
277
7.3.2
Connection to Little-Endian Devices
The chip provides a conversion function in CS2, CS4 space for connection to and to maintain data
compatibility with devices that use little-endian format (in which the LSB is the 0 position in the
byte data lineup). When the endian specification bit of BCR1 is set to 1, CS2, CS4 space is little-
endian. The relationship between device data width and access unit for little-endian format is
shown in figures 7.5, 7.6, and 7.7. When sharing memory or the like with a little-endian bus
master, the SH7615 connects D31–D24 to the least significant byte (LSB) of the other bus master
and D7–D0 to the most significant byte (MSB), when the bus width is 32 bits. When the width is
16 bits, the SH7615 connects D15–D8 to the least significant byte of the other bus master and D7–
D0 to the most significant byte.
Only data conversion is supported by this function. For this reason, be careful not to place
program code or constants in the CS2, CS4 space. When this function is used, make sure that the
access unit is the same for writing and reading. For example, data written by longword access
should be read by longword access. If the read access unit is different from the write access unit,
an incorrect value will be read.
D31
7
0
7
0
7
0
D23
D15
32-bit external device (little-endian)
D7
D0
15
8
7
0
7
0
7
0
A24
–
A0
000000
000001
000002
000003
000000
000002
000000
Data input/output pin
Byte read/write of address 0
Byte read/write of address 1
Byte read/write of address 2
Byte read/write of address 3
Word read/write of address 0
Word read/write of address 2
Longword read/write of address 0
15
8
7
23
0 15
16
8
31
24
Figure 7.5 32-Bit External Devices and Their Access Units
D15
7
0
D7
16-bit external device (little-endian)
D0
7
7
7
23
8
8
8
7
0
7
0
0
0
0
7
15
15
15
31
16
0
A24
–
A0
000000
000001
000002
000003
000000
000002
000000
000002
Data input/output pin
Byte read/write of address 0
Byte read/write of address 1
Byte read/write of address 2
Byte read/write of address 3
Word read/write of address 0
Word read/write of address 2
Longword read/write of address 0
24
Figure 7.6 16-Bit External Devices and Their Access Units