Professional Documents
Culture Documents
Computer Concepts
Dr Aftab Khan
Department of Computer Science
aftab.khan@aiou.edu.pk
Basics of Digital Computer Unit-3
Numbering System:
Decimal Numbering System ….Human
0123456789
Decimal System:
Consists of 10 symbols or digits.
Total number of symbols is called base
Here total number of digits or symbols are 10
i.e. from 0 9
Decimal system is positional system
Decimal means 10. Decimal System is the
numbering system used by humans, which is
based on 10 digits.
Binary System:
This system is used by computer system.
It consists of (0, 1) such is called OFF and ON.
The following coding system is used by
computer for alphanumeric data in binary
system
ASCII: American Standard Code for Information Interchange
EBCDIC: Extended Binary Coded Decimal Interchange Code
ANSI: American National Standards Institute
Unicode: Industry standard for the consistent
representation and handling of text expressed in most of
the world's writing systems.
Binary to Decimal:
Binary System:
Convert From Decimal To Binary
We can convert a decimal number into a
binary number by repeatedly dividing the
base ten number by two. Then, write the
remainders from the bottom to the top as
the answer:
Binary System:
Example:
Write each of the following base ten
numbers as a binary number:
a) 510
b) 7810
Binary System:
Solution:
a)
Binary System:
Solution:
b)
Octal System:
Consists of 8 digits or symbols i.e. from 07
It base is 8 these numbers are represented
with base 8 like (765)8
Octal, like an octopus' eight legs, means eight and
therefore there are eight numbers to use from zero to
seven.
The column weights are 1, 8, 64, 512, etc. The weights
are derived by taking the base number to the power of
the column, 80=1, 81=8, 82=64, 83=512, etc.
Now we can do the same exercise as in the last
chapter to convert an octal number to decimal.
Octal to decimal
Decimal to Octal
Hexadecimal System:
This numbering system consists of 16 digits
i.e. 015
This system is introduced for representing
large numbers.
This number system is used for memory
address representation.
Where octal used 3 bits the hexadecimal
system used 4 bits to represent one number.
Hexadecimal to Decimal
Decimal to Hexadecimal
Conversion Rules:
2 50
Decimal to Binary:
2 25-0
(50)10 (?)2---(110010)2
2 12-1
2 6-0
2 3-0
1-1
Decimal to Octal:
8 50
(50)10 (?)8 ---(62)8
6-2
Decimal to Hexadecimal: 16 50
(50)10 (?)16 ---(32)16
3-2
3576 Introduction to Computer Concepts 17
Basics of Digital Computer Unit-3
Truth Table
Logic Gates: Symbolical Representation
1. OR Gate:
2. AND Gate:
3. Not Gate:
4. NAND Gate:
5. NOR Gate:
6. XOR Gate:
7. XNOR Gate:
3576 Introduction to Computer Concepts 18
Basics of Digital Computer Unit-3
Boolean Algebra:
To reduce logical expressions is the
mathematics of logical expressions,
introduced by George Boole in 1854 and
known today as Boolean Algebra.
The rules of Boolean Algebra are simple
and straight-forward.
Can be applied to any logical expression.
The resulting reduced expression can then
be readily tested with a Truth Table, to verify
that the reduction was valid.
Logical Operations:
Addition (OR):
Multiplication (AND):
Complement (NOT):
OR operations:
Truth Table:
A truth table shows how a logic circuit's output
responds to various combinations of the inputs,
using logic 1 for true and logic 0 for false.
All permutations of the inputs are listed on the
left, and the output of the circuit is listed on the
right.
The desired output can be achieved by a
combination of logic gates.
A truth table for two inputs is on next slide, but it
can be extended to any number of inputs.
The input columns are usually constructed in the
order of binary counting with a number of bits
equal to the number of inputs.