Lecture-2
Lecture-2
NUMBER SYSTEM
Number system is a basis for counting varies items. Modern computers communicate and
operate with binary numbers which use only the digits 0 &1. Basic number system used by
humans is Decimal number system.
For Ex: Let us consider decimal number 18. This number is represented in binary as 10010.
We observe that binary number system take more digits to represent the decimal number.
For large numbers we have to deal with very large binary strings. So this fact gave rise to three
new number systems.
Octal number systems
Hexa Decimal number system
Binary Coded Decimal number(BCD) system
07/01/2024
Transistor register
A register is a string of devices that can store
data like 1100. The transistor on the left is cut
off because the input base voltage is 0V and
the transistor on the right are in saturation.
Four-bit register is shown in figure.
07/01/2024
Bit
It is an abbreviation of the binary digits. A binary number like 1100 has four bits., 110011
has six bits etc. To store large binary number, it needs more transistors. Adding two more
transistor we get six-bit register
Decimal conversion:
⋯ ⋯
m= integer digit
R= base value
a= co-efficient
= (3002)10 (1001101)2
(N)10 = 1×26+ 0×25+0×24+1×23+1×22+0×21+1×20
Hexadecimal to decimal conversion:
= (77)10
(AF16B)16
(N)10 = A×164+F×163+1×162+6×161+B×160
= 10×164+15×163+1×162+6×161+11×160
= (717163)10
07/01/2024
07/01/2024
07/01/2024
Complement′s:
Complements are used in digital computers to simplify the subtraction operation and for
logical manipulation. Simplifying operations leads to simpler, less expensive circuits to
implement the operations. There are two types of complements for each base-r system:
the radix complement and the diminished radix complement. The first is referred to as
the r′s complement and the second as the (r - 1)′s complement. When the value of the
base r is substituted in the name, the two types are referred to as the 2′s complement and
1′s complement for binary numbers and the 10′s complement and 9′s complement for
decimal numbers.
R′s complement
Rn-N
Where,
n= Number of integer digit
N= The number itself
R= base
For example (526.27)
n=3
N= 526.27
R′s complement
Rn-N
07/01/2024
b)
b)