A quick course in Binary



Download 2,72 Mb.
bet3/17
Sana03.07.2022
Hajmi2,72 Mb.
#736533
1   2   3   4   5   6   7   8   9   ...   17
Bog'liq
6 bo`lim

A quick course in Binary


Most children learn to count using the base-10 system, but computers (and the Arduino) count using the binary number system. Binary numbers consist of only 1s and 0s—for example, 10101010. In binary, each digit from right to left represents 2 to the power of the column number in which it appears (which increases from right to left). The products in each column are then added to determine the value of the number.
For example, consider the binary number 11111111, as shown in Table 6-1. To convert the number 11111111 in binary to base 10, we add the totals in each column as listed in the bottom row of the table:
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
It is 255. A binary number with eight columns (or bits) holds 1 byte of data; 1 byte of data can have a numerical value between 0 and 255. The leftmost bit is referred to as the Most Significant Bit (MSB), and the rightmost is the Least Significant Bit (LSB).
Binary numbers are great for storing certain types of data, such as on/off patterns for LEDs, true/false settings, and the statuses of digital outputs. Binary numbers are the building blocks of all types of data in computers.
Table 6-1: Binary to base-10 number conversion example

27

26

25

24

23

22

21

20




1

1

1

1

1

1

1

1

Binary

128

64

32

16

8

4

2

1

Base 10

Download 2,72 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   17




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish