Byte (8-Bit) Values

Some commands require a 8-bit byte describing the parameter.

In the chapter Command Description, normal 8-bit values are always described as type "byte" in the corresponding parameter tables.

Boolean Bytes

Boolean paramters can only be set to the values 1 (true) and 0 (false).

In the parameter tables of chapter Command Description, boolean bytes are always described as type "bool".

Bit Mask Bytes

In bit mask bytes, every single bit can be interpreted as a boolean flag. Bits not defined in the parameter are ignored (refer to according tables in chapter Command Description).

In parameter tables, byte bit masks are always described as "bits".

Syntax in iLCD Manager XE:

\iCi\36
\iCi\d36
\iCi\x24
\iCi$

All above notations represent the same value (36 resp. 0x25). For certain byte values (e.g. touch field keys) it can be convenient to use the ASCII code of characters (ASCII 0x25 corresponds with '$'). Refer to Syntax used in iLCD Manager XE for further information about these introducters.

The actual bytes sent via the interface can be verified in the "Hex" part of any editor panel. The sequence for the above example would look like this:

[AA][43][69][24]

Signed Bytes

Signed bytes have a value range from decimal –128 to +127. If the value is positive, the hex value is the simple hex representation of the decimal value; if it is negative the calculation can be done as follows:

hex value = hex(256 – abs(value))

This means a value of 0x80 represents decimal –128 and a value 0xFF decimal –1. The decimal value 100 translates to 0x9C.

In parameter tables, signed bytes are always described as "signed byte".

Syntax in iLCD Manager XE:

\iAu\-4
\iAu\d-4
\iAu\xFC

All above notations represent the same value (-4 resp. 0xFC).

The sequence sent via the interface for this example would look like this:

[AA][41][75][FC]