A-2 APPENDIX A: S-REGISTERS
Converting Bits to
Decimal Values Starting with a string of eight bits, assign each "1" bit a value based on
its position. Add the values to come up with the final decimal value.
Here’s an example of how bits are convert ed to decimal values:
01001111
Converting Decimal
Values to Bits Convert decimal val ues to bits by find ing the la rg est decim a l equ ivale n t
that is less than the decimal value. Subtract the decimal equivalent and
mark the equivalent bit "1." Continue until the decimal value is zero. See
the example below.
113
113 - 64 = 49
01
49 -32 = 17
011
17 -16 = 1
0111
1 -1 = 0
01110001
Setting Bit-Mapped
S-Registers You can set bit-mapped S-Registers using either bits or decimal values.
While it may be simpler for you to set the bits individually, your modem
displays the S-Register settings in decimal form.
0 10 01111
0+ 64 + 0 + 0 + 8 + 4 + 2 + 1 = 79