Converting Bits To Decimal Values; Converting Decimal Values To Bits; Setting Bit-Mapped S-Registers - 3Com 56K Command Reference Manual

3com officeconnect business modem user guide 56k
Hide thumbs Also See for 56K:
Table of Contents

Advertisement

A-2
A
A: S-R
PPENDIX
EGISTERS
Converting Bits to
Decimal Values
Converting Decimal
Values to Bits
Setting Bit-Mapped
S-Registers
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
0
1
0
0
+ 64
+ 0
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
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
1
1
+ 0
+ 8
+ 4
+ 2
1
+ 1 = 79

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 56K and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Officeconnect 56k business

Table of Contents