Hi!
I am trying to set up a serial communication between my arduino nano and matlab/simulink.
Problem is, in simulink i have to specify the used byte order. I know arduino (Atmel avrs) use litle endian, however, if i print a binary number to the serial port:
Serial.println(105,BIN);
the arduino serial monitor shows me
1101001
1101001
1101001
1101001
Ok, as far as i understand the leading "0" (which would carry the no-existent '128' value) has been left out by the serial monitor:
MSB -> [0*128] +1*64 +1*32+ 0*16 + 1*8 +0*4 +0*2 +1*1 <-LSB
However, in this order, the MostSignificantBit comes first. Would that not be "Big-Endian" instead of "Little-Endian"? I am confused...
Best regards,
Zero2