Hexadecimal number system
At the very beginning of the computer development it was realized that people had many difficulties in
handling binary numbers. Because of
that, a new number system which
facilitated work has been established.
This time, it is about number system
using 16 different digits. The first ten
digits are the same as digits we are
used to (0, 1, 2, 3,... 9) but there are
six digits more. In order to keep from making up new symbols, the six letters of alphabet A, B, C, D, E and
F are used. In consequence of that, a hexadecimal number system consisting of digits: 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, A, B, C, D, E, F has been established. What is the purpose of this seemingly bizarre combination? Just
look how perfectly everything fits the story about binary numbers.
The largest number that can be represented by 4 binary digits is the number 1111. It corresponds to the
number 15 in decimal system. That number is in hexadecimal system represented by only one digit F. It is
the largest one-digit number in hexadecimal system. Do you see how skillfully it is used? The largest
number written with eight binary digits is at the same time the largest two-digit hexadecimal number. Have
in mind that the computer uses 8-digit binary numbers. Accidentally?
BCD code
BCD code is actually a binary code for decimal numbers only. It is used to enable electronic circuits to
communicate in decimal number system with peripherals and in binary system within “their own world”. It
consists of 4-digit binary numbers which represent the first ten digits (0, 1, 2, 3 ... 8, 9). Simply, even
though four digits can give total of 16 possible combinations, only first ten are used.
Fig. 5 Showing Representation of Binary Numbers
Fig. 6 Showing Hexadecimal-Binary Number
Teach Yourself PIC Microcontrollers | www.electronicspk.com | 13
Chia sẻ với bạn bè của bạn: |