1. Serial communication basics
1.2
Data words
msb
The most significant byte, is the byte with the greatest weight (value).
lsb
The less significant byte, is the byte with the smallest weight (value).
Description
A word contains more than one byte, the first byte is the msb, the last byte is the lsb.
Examples of data words
•
The projector runtime parameter is described using an unsigned double word where 2 bytes (msb ...lsb) represent the value of
the runtime in seconds.
How to calculate the value of a word ?
Lets take the example of a double word returned by the "projector runtime, read" commando.
returned data = Data[0]....Data[3]
value = Data[0]*256
3
4
+ Data[1]*256
+ Data[2]*256 + Data[3].
2
R59770077 RS 232 SERIAL COMMUNICATIONS FOR ICON H250/400 16/02/2007