Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20688

BASCOM-AVR : Little Endian Byte Format ??? : REPLY

$
0
0
little and big endian describe the storage of the byte order when multiple bytes are used. So for example dim W as word . W will use 2 bytes which will use address &H100 and &H101. Little endian which bascom uses stores the LSB (least significant byte) at &H100 (the lowest address). Thus if W has a value of 1, the 1 would be placed at address &H100. The bit order itself is not reversed. Thus 1 will be &B00000001 in both little and big endian. That is, to my knowledge. So i wonder if it is just enough when you reverse the byte order? It does not make sense to me that a serial device would mirror all bits? While you can mirror the bits you have no control of the start and stop bits. So in such a case shiftout would work nice.

Viewing all articles
Browse latest Browse all 20688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>