3Com 56K Network Card User Manual


 
A-2
A
PPENDIX
A: S-R
EGISTERS
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 converted to decimal values:
01001111
Converting Decimal
Values to Bits
Convert decimal values to bits by finding the largest decimal equivalent
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 1 0 0 1 1 1 1
0 + 64 + 0 + 0 + 8 + 4 + 2 + 1 = 79