Ciprico Rimfire 3880 User Manual Page 177

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 176
User’s Guide 21020285 D
Chapter 8 Details of Usage
Byte and Word Swapping Page 8 - 3
Byte and Word
Swapping
The RF3880 adapter is flexible enough to allow you to request Byte Swapping,
Word Swapping, or both, during transfers of command structures.
This section will first give you some examples to explain why the swapping
feature is offered to you, then provide a perspective on implementation with
the RF3880 for both Command Structures used by the RF3880 (which the
adapter can swap) and data (which needs special software if swapping is
necessary).
Need for
Swapping
The memory architecture of your system depends on the type of processor you
are using. There are several major manufacturers that each use different
arrangements of bytes, words, and double-words in memory. The two most
common formats are: Intel and Motorola. Their differences are illustrated in
the example below:
Example of Memory Differences
If you were to define the following variables in a program:
char byte[] = “test”;
int word[2] = {0x0102, 0x0304};
double dword = 0xAABBCCDD;
They would appear this way in memory (beginning at location n) for each
respective format:
Essentially the two processors store a string of bytes in the same order.
However, the bytes that make up word and double-word information are stored
in an order opposite to each other:
The RF3880 adapter must correctly access the command structures for either
type of processor.
Throughout this manual, the Parameter and Status Blocks that make up the
command structures are represented double-word wide, in Motorola ordering.
If you have an Intel processor, you will need to translate these displays to your
format. The following example will help explain this.
variable Byte # of memory Intel Order Motorola Order
byte n t esttest
word n + 4 02 01040301020304
dword n + 8 DDCCBBAAAABBCCDD
Table 108: Variations in Intel and Motorola Memory
Processor Type
Byte of word or
double-word
Order in memory
Motorola
LSB* stored in highest memory address
MSB* stored in lowest memory address
Intel
LSB stored in lowest memory address
MSB stored in highest memory address
Table 109: Explanation of Memory Storage Differences
Page view 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 229 230

Comments to this Manuals

No comments

Dimplex SI 17CS podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Pompy ciepła Dimplex SI 17CS.
Dostarczamy 1 pdf podręczników Dimplex SI 17CS do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Pompy ciepła Dimplex

Modele Rodzaj dokumentu
SI 14TE Instrukcja Użytkownika   KARTA SI 14TE - Nowoczesne grzanie, 5 strony
SIH 6TE Instrukcja Użytkownika   Arkusz danych Wysokotemperaturowa pompa, 5 strony
WI 14TE Instrukcja Użytkownika   Wasser/Wasser-Wärmepumpe WI 14TE [fr] , 3 strony
SOLCU Instrukcja Użytkownika   LA 20AS - ESK Shop [en] , 6 strony
WI 18TE Instrukcja Użytkownika   DANE TECHNICZNE WI 18TE - pdf, 3 strony
SI 11TE Instrukcja Użytkownika   Sole/Wasser-Wärmepumpe SI 11TE, 3 strony
LIK 8TE Instrukcje Operacyjne     Dimplex LIK 8TE Operating instructions [en] , 44 strony
SI 5TE Instrukcja Użytkownika   KARTA SI 5TE - Nowoczesne grzanie, 5 strony
WI 18TE Instrukcja Użytkownika   WI 9 TE WI 14 TE WI 18 TE WI 22 TE WI 27 TE, 32 strony