![background image](http://html1.mh-extra.com/html/blue-chip/aop-12d/aop-12d_user-manual_2775478036.webp)
Page 30
Appendix A
Page 30
01270146.doc
Blue Chip Technology Ltd.
The following diagram illustrates this.
BIT No
7
6
5
4
3
2
1
0
DECIMAL VALUE
128
64
32
16
8
4
2
1
To determine the decimal value of a binary pattern, add up the decimal number
of each column containing a binary “1”.
BIT No
7
6
5
4
3
2
1
0
DECIMAL VALUE
128
64
32
16
8
4
2
1
BINARY NUMBER
1
1
0
0
0
1
1
0
The above example shows the binary pattern that is equivalent to 198
Decimal
.
The binary string defining a Byte can be unwieldy. To make it less error prone,
the 8 bits forming a byte are divided into two groups of 4 bits, known as
NIBBLES. With four bits there are 16 possible numeric combinations
(including zero). A convenient method of representing each nibble is to use the
hexadecimal base 16 system.
When converting binary to hex, the byte is divided into nibbles each represented
by a single hex digit. This technique is applied to the selection of the base
address for the circuit board. The following diagram illustrates the construction
of a hex number.
BIT No
7
6
5
4
3
2
1
0
NIBBLE VALUE
8
4
2
1
8
4
2
1
BINARY NUMBER
1
1
0
0
0
1
1
0
ÀÄÄÄ-ÄÂÄÄÄÄÄÄÄÙÀÄÄÄÄÄÂÄÄÄÄÄÄÙ
HEXADECIMAL:
C
6
Hexadecimal upper nibble = (1 x 8) + (1 x 4) + (0 x 2) + (0 x 1) = 12
lower nibble = (0 x 8) + (1 x 4) + (1 x 2) + (0 x 1) = 6
The resulting value is C6
Hex
, since 12
Decimal
is C
Hex
.
Содержание AOP-12D
Страница 1: ...AOP 12D Multi Function Analogue Output Card User Manual...
Страница 2: ......