(Little) Endianess Guide for Atmel AVR
Posted by coldtobi | 5 Jul, 2007, 16:59As I frequently need that information, also frequently I forget it again. (Usually, the C-Compiler has to care about it, but if you have to take over e.g a serial line, you have to know it.
Atmel AVR Endianess Cheat Sheet:
Example Value: 0x0A0B
All 8-bt AVRs: Little Endian in Memory 0x0B 0x0A (*adr: 0x0B, *(adr+1): 0x0A)
AVR32: Big Endian in Memory 0x0A 0x0B
LittleEndian is popular at Intel CPUs,
Big Endianess e.g at Motorola.
Here are some images from Wikipedia to illustrate the memory layout of the different schemes, with the example 32-bit value 0x0A0B0C0D

Electronics and Atmel AVR, Tips and Tricks | Comments (0) | Trackbacks (0)
Related Articles:
- Preventing PHP RFI with Apache's ReWriteRules
- The legal situation is not so bad, with FON, says FON
- [Updated] La Fonera: A bunch of Autoupdates (to 0.7.2.2)
- Windows Vista Licensing
- Digital Camera Fuji Finepix S9600