« Previous | Next»

(Little) Endianess Guide for Atmel AVR

Posted by coldtobi | 5 Jul, 2007, 16:59

As 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

 Little Endianbig Endianess


Electronics and Atmel AVR, Tips and Tricks | Comments (2) | Trackbacks (0)

Related Articles:

2 Comments | "(Little) Endianess Guide for Atmel AVR" »

  1. asd : asd

    09/04/2011, at 05:26 [ Reply ]

    thanks for share here
  2. Siddhu : Thanks

    08/02/2014, at 07:15 [ Reply ]

    I was looking for this .