A-2APPENDIX A: S-REGISTERS

Converting Bits to

Starting with a string of eight bits, assign each "1" bit a value based on

Decimal Values

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

 

 

 

 

 

 

 

0

1

0

0

1

1

1

1

 

0

+ 64

+ 0

+ 0

+ 8

+ 4

+ 2

+ 1 = 79

Converting Decimal Convert decimal values to bits by finding the largest decimal equivalent

Values to Bits 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-MappedYou can set bit-mapped S-Registers using either bits or decimal values.

S-RegistersWhile it may be simpler for you to set the bits individually, your modem displays the S-Register settings in decimal form.

Page 138
Image 138
3Com 56K manual Converting Bits to, Decimal Values, 01001111, 113