![NKK SWITCHES IS-Dev Kit-8 Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/nkk-switches/is-dev-kit-8/is-dev-kit-8_user-manual_1697353029.webp)
IS-Dev Kit-8 User Manual
7850 East Gelding Drive • Scottsdale, AZ 85260-3420
IS-Dev Kit 8 Users Manual A.doc
Page 29 of 31
Toll Free
1.877.2BUYNKK (877.228.9655)
•
Phone
480.991.0942
• Fax
480.998.1435
www.nkkswitches.com
1209
Base-2 numbering system (binary)
The numbering system to accommodate the computer logic is called binary or base 2. Each digit of binary can
be 0 or 1.
Table 2, Base-2
Value in base-2
Digit x
10000
1000
100
10
1
Multiplication
for converting to
decimal
2
(N-1)
…
…
2
4
=16 2
3
=8
2
2
=4
2
1
=2
2
0
=1
Digit order
Nth
digit
….
….
Fifth
digit
Fourth
digit
Third
digit
Second
digit
First
digit
Example:
The value of each digit of the Base-2 number 1010 is as follow:
Fourth digit:
1 with (4-1) zero =
1000
Third digit:
0 with (3-1) zero =
0
Second digit:
1 with (2-1) zero =
10
First digit:
0 with (1-1) zero =
0
To convert a base-2 number to decimal, multiply each digit by multiplier and add them together:
Example:
converting base-2 number 1010 to decimal is as follow:
(1 x 8) + (0 x 4) + (1 x 2) + (0 x 1) = 10
To convert a decimal number to base-2 number
---divide the decimal number by 2, the remainder is the first digit of the base-2 number
--- continue dividing quotient by 2 and put the remainder as the next digit until the quotient is equal 0.
Example:
Convert the decimal number 21 to base-2
21 divide by 2 = 10 with 1 remainder First digit = 1
10 divide by 2 = 5 with 0 remainder
Second digit = 0
5 divide by 2 = 2 with 1 remainder
Third digit = 1
2 divide by 2 = 1 with 0 remainder
Fourth digit = 0
1 divide by 2 = 0 with 1 remainder
Fifth digit = 1
21 decimal = 101001 base-2 or binary
The base-2 number 101001 reads as one zero one zero zero one.