Converting Bits To Decimal Val Uesa-2; Converting Decimal Values To Bi Tsa-2 - 3Com Courier Reference

Us robotics courier network: user guide
Table of Contents

Advertisement

A-2
A
A: S-R
PPENDIX
Converting Bits to
Decimal Values
Converting Decimal
Values to Bit
Setting Bit-Mappe
S-Registers
EGISTERS
Starting with a string of eight bits, assign each "1" bit a value based o
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
+ 64
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.
11
113 - 64 = 49
01
49 -32 = 17
01
17 -16 =
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 mode
displays the S-Register settings in decimal form.
0
0
1
+ 0
+ 0
+ 8
+ 4
1
1
1
+ 2
+ 1 = 79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Courier v.everything

Table of Contents