Mitsubishi Electric M32R Series User Manual page 52

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

2
(3) Endian
The following shows the generally used endian methods and the M32R family endian.
Big endian
Little endian
Note: Even for bit big endian, H'01 is not B'10000000.
Figure 2.6.4 Endian Methods
MPU name
Endian
(Bit/Byte)
Address
Data
arrangement
Bit number
Ex:0x01234567
Note: The M32R's endian method is big endian for both bit and byte.
Figure 2.6.5 M32R Family Endian
Bit endian
(H'01)
MSB
LSB
B'0000001
D0
D7
MSB
LSB
B'0000001
D7
D0
7700 family
M16C family
Little/Little
+0
+1
+2
+3
MSB
LSB
LL
LH
HL
HH
31-24
23-16
15-8
7-0
.byte 67,45,23,01
2-10
Byte endian
(H'01234567)
MSB
H'01
H'23
HH
MSB
H'45
H'67
LL
Competition
Little/Big
+0
+1
+2
+3
MSB
LSB
HH
HL
LH
LL
31-24
23-16
15-8
7-0
.byte 01,23,45,67
2.6 Data Formats
LSB
H'45
H'67
HL
LH
LL
LSB
H'23
H'01
LH
HL
HH
M32R family
M16 family
Big/Big
+0
+1
+2
+3
MSB
LSB
HH
HL
LH
LL
0-7
8-15
16-23
24-31
.byte 01,23,45,67
Ver.0.10
CPU

Advertisement

Table of Contents
loading

Table of Contents