Professional Documents
Culture Documents
Big Endian To Little Endian Data Conversion: Using 3.3V Bus Switches
Big Endian To Little Endian Data Conversion: Using 3.3V Bus Switches
Application Description
Often, based on the application, it is required to convert Big Endian into Little Endian formatting or visa versa. Figure 2 show how Pericoms 3.3V Mux/Demux Bus Switches can be used to perform the required conversion. In the example, the PI3B16233 is a bidirectional device and can be easily controlled to convert from one format to the other. Given a double word that is located on the input of the A ports, the PI3B16233 can Mux the word over the B side in the desired order (see Figure 2.)
M+1 8 7
M 0
M 31 24 23
M+1 16 15
M+2 8 7
M+3 0
DOUBLE WORD (32-BIT) IN BIG-ENDIAN FORMAT M = Most Significant Memory Location or Word
PI3B16233
M3 D24 - D31 8 M3 M0 M2 D16 - D23 8 M2 M1 M0 M2 M1 M3
Intel CPU
Little Endian (Low Order Byte At Starting Address)
Memory
PI3B16233
M1 D8 - D15 8 M2 M0 D0 - D7 8 M3 M1 M2 M3 M0
Motorola CPU
Big Endian (High Order Byte At Starting Address)
09/16/99