35
Model 9002
Appendix B
Appendix B
Binary/Decimal/Hex Review
When remotely programming the Model 9002, you must convert a decimal number to a 10-bit binary number and
then convert it into a hex code. This review describes the formulas and procedures that are used to make such
conversions.
B.1 - Decimal to Binary
A decimal number is converted to a binary number by using an algorithm which performs repeated division by two,
and then multiplies the remainder by two to determine the value of the binary data bits.
Therefore, the 10-bit binary equivalent to the decimal number 999 is:
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
1111100111
25 Locust St, Haverhill, Massachusetts 01830 • Tel: 800/252-7074, 978/374-0761 • FAX: 978/521-1839
e-mail: sales@freqdev.com • Web Address: http://www.freqdev.com
Conversion of Decimal 999 to Binary 1111100111
Number Decimal Remainder Value Binary
999 N R 2xR Bit
N/2= 499 0.5 1 D0
249 0.5 1 D1
124 0.5 1 D2
62 0 0 D3
31 0 0 D4
15 0.5 1 D5
7 0.5 1 D6
3 0.5 1 D7
1 0.5 1 D8
0 0.5 1 D9
Conversion of Decimal 224 to Binary 0011100000
Number Decimal Remainder Value Binary
224 N R 2xR Bit
N/2= 112 0 0 D0
56 0 0 D1
28 0 0 D2
14 0 0 D3
70 0D4
3 0.5 1 D5
1 0.5 1 D6
0 0.5 1 D7
00 0D8
00 0D9