beautypg.com

Rainbow Electronics W90N740 User Manual

Page 22

background image

W90N740

- 18 -

7.2.4 Data Bus Connection with External Memory

7.2.4.1 Memory

formats

The internal architecture is big endian. The little endian mode only support for external memory.
The W90N740 can be configured as big endian or little endian mode by pull up or down the data D14
pin. If D14 is pull-up then it is a little endian mode, otherwise, it is a big endian mode.

Big Endian

In Big endian format, the W90N740 stores the most significant byte of a word at the lowest numbered
byte, and the least significant byte at the highest-numbered byte. So the byte at address 0 of the memory
system connects to data lines 31 through 24.

For a word aligned address A, Fig7.2.2 shows how the word at address A, the half-word at addresses A
and A+2, and the bytes at addresses A, A+1, A+2, and A+3 map on to each other when the LITTLE pin
is Low.

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6

5

4

3

2

1

0

Word at address A

Half-word at address A

Half-word at address A+2

Byte at address A

Byte at address A+1

Byte at address A+2

Byte at address A+3

Fig. 7.2.2 Big endian addresses of bytes and half-words within words

Little Endian

In Little endian format, the lowest addressed byte in a word is considered the least significant byte of the
word and the highest addressed bye is the most significant. So the byte at address 0 of the memory
system connects to data lines 7 through 0.

For a word aligned address A, Fig7.2.3 shows how the word at address A, the half-word at addresses A
and A+2, and the bytes at addresses A, A+1, A+2, and A+3 map on to each other when LITTLE pin is
High.

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6

5

4

3

2

1

0

Word at address A

Half-word at address A+2

Half-word at address A

Byte at address A+3

Byte at address A+2

Byte at address A+1

Byte at address A

Fig. 7.2.3 Little endian addresses of bytes and half-words within words