Kane Industries C6713CPU User Manual Page 22

  • Download
  • Add to my manuals
  • Print
  • Page
    / 54
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 21
H
ARDWARE
R
EFERENCE
G
UIDE
MICRO
-
LINE
C6713CPU
Date : 28 November 2005
Doc. no. : C6713CPU_HRG
Iss./Rev : 1.1
Page : 22
3.7 Endianness
When data is transferred between the C6713CPU board and external hardware over the micro-
line
®
connector it is important to know how data is stored in memory.
The C6713CPU is configured for little endian operation. This means, less significant bytes are
stored first (at lower addresses).
8 bit write to memory
Data to be stored C-code result in memory
12
*(char *)0x8000000 = 0x12
8000 0000h
12
16 bit write to memory
Data to be stored C-code result in memory
12 34
*(short *)0x8000000 = 0x1234
8000 0000h
34
8000 0001h
12
32 bit write to memory
Data to be stored C-code result in memory
12 34 56 78
*(int *)0x8000000 = 0x12345678
8000 0000h
78
8000 0001h
56
8000 0002h
34
8000 0003h
12
Figure 5: Data representation in memory in little endian configuration
Page view 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 53 54

Comments to this Manuals

No comments