« 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

Anzeige
 

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

Related Articles:

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

Add comment

 

 This is the ReCaptcha Plugin for Lifetype

Due to German legislation, all comments are moderated. If you get NO error message, your comment is accepted by the system and will be released at the earliest opportunity. Sorry for the inconvenience this might cause.

Inappropiate comments might be edited or not accepted.