Lantronix 10 User Manual

Page of 139
Binary to Hex 
UDS-10 User Guide 
9-1 
9. Binary to Hex Conversion 
Many of the Device Server’s configuration procedures require you to assemble a series of 
options (represented as bits) into a complete command (represented as a byte). The resulting 
binary value must be converted to a hexadecimal representation. 
Hexadecimal digits have values ranging from 0 to F, which are represented as 0-9, A (for 10), 
B (for 11), etc. To convert a binary value (for example, 0010 0011) to a hexadecimal 
representation, the upper and lower four bits are treated separately, resulting in a two-digit 
hexadecimal number (in this case, 4C). 
Use the following table to convert values from binary to hexadecimal. 
Table 35 - Binary to Hexadecimal Conversion Table 
Decimal  Binary Hex 
0 0000 
1 0001 
2 0010 
3 0011 
4 0100 
5 0101 
6 0110 
7 0111 
8 1000 
9 1001 
10 1010 
11 1011 
12 1100 
13 1101 
14 1110 
15 1111