Fundamental Unit-1
Fundamental Unit-1
What is Computer ? - A computer is an electronic device machine that accepts data as input,
processes that data using programs, and outputs the processed data. It can can perform arithmetic or
logical operations.
Speed:-
It can process millions of instruction in seconds.
Same calculation that would have taken hours and day to complete can be completed in a
few seconds.
The speed of computer is calculated in (MIPS) (millions of instruction per second)
Automation :
Perform all work automatically.
Accuracy:-
A computer provides a high degree of accuracy.
Every calculation is performer with the same accuracy.
Diligence:-
Computer can work for hours without any break or boredom.
It does not get tried .It can perform complex.
Calculation with the same speed and accuracy from the start till the end.
Storage capacity/(memory)
Computer can store very large amount of data
We have many storage devices like Hard Disk, CD, DVD , Pen drive
Versatility :-
Computers can be used to perform different types of tasks.
Low Cost & Reduced Size /Compactness :-
Day by day computer size is decreasing with new technology.
Low cost and high performance.
Reliability:-
Computer will not do mistaken.
they are a lot reliable than humans.
It we give wrong input can we recalled at any time.
Power of remembering :-
The data stored in the computer can we recalled at any time.
Adaptability :
It means the quality of it to complete a different type of tasks: simple as well as complex.
Limitation of Computer
Lack of common-sense
Computers function based on the stored programme(s)
Zero IQ(Intelligence Quotient )
They are unable to see and think the actions to perform in a particular situation
Lack of Decision-making
The computer system does not have the ability to make decisions on their own because they
do not possess all the essentials of decision-making.
Depend on users input.
Computer depends on input instruction like program(s)
No Feeling
Lack of feelings organs like available in human
Depend on users input.
Computer have no imagination.
Cannot detect error in logic.
Float (floating point) Number with a decimal point 3.15, 9.06, 00.13
Types of Computers
Digital Computer
A computer that represents discrete(digital) information by numerical (binary) digits is called a
digital computer , or we say a computer that performs calculations and logical operations with
quantities represented as digit, usually in the binary number system. It is used for processing data
represented by discrete, localized physical signals, as the presence or absence of electric current.
• Micro Computer
• Mini Computer
• Mainframe Computer
• Super Computer
Micro Computer:
Micro Computer are small low cast and single user digital computers. It is a device
with microprocessor,Input unit ,storage unit and output unit. Microcomputer
Computer formerly a commonly used term for Personal Computers particularly any
of class of any small digital computers. Its CPU contained on a single integrated
semi conductor chip. IBM PC based on Pentium microprocessor and Apple
Macintosh are some Examples of microcomputers. Microcomputers include desktop
computers, notebook computers or laptop,tablet compute, handheld computer, smartphones and
notebook.
IBM PC
Mini Computer:
A minicomputer is a type of computer that possesses most of the features and capabilities of a large
computer but is smaller in physical size. A minicomputer fills the space between the mainframe and
microcomputer, and is smaller than the former but larger than the latter. Minicomputer are still
recognized as being able to process large amounts of data. It is a class of small computers that was
introduced into the world in the mid-1960s. A minicomputer is a computer which has all the
features of a large size computer, but its size is smaller than those. A minicomputer lies between the
mainframe and the microcomputer because its size is smaller than the former one and larger than
the latter one. Minicomputers are mainly multi-users systems where more than one user can work
simultaneously. Minicomputers can do time-sharing, batch processing, and online processing. Mini
computer examples: IBM’s AS/400e, Honeywell200, TI-990
History of Minicomputer
The term minicomputer was come to know in the 1960s and through that time only the small
computers are made by making the use of transistors and core memory technologies. The first
minicomputer which was developed was known as Digital Equipment Corporation, which was
made by using transistors and it costs from the US $16000.
Uses of minicomputer
Each person using a minicomputer has their own terminal attached by wires or via a modem to the
computer proper. (A terminal isn't a computer-it's basically just a keyboard and a monitor) The
minicomputer spends a little bit of time on one person's task, then moves on to the next, and so on,
juggling the work based on which jobs it thinks are most important.
Process control
Minicomputers are primarily used by the companies for the manufacturing control of the process.
Process Control has two primary functions- data acquisition and feedback.
Ex:- factories make use of minicomputers to control the manufacturing process. If any problem
appears in any part of the process, then it recognizes the change and made required adjustments.
Data management
Minicomputers that we use for the data management can do any task regarding data like it can take,
restore or generate data.
Communication
Minicomputers act as an interface between the human operator and a larger processor. The user can
run operations such as error checking with the help of minicomputer and then can use the device for
making adjustments also.
The other uses are as follows:
• They are also used for scientific computations.
• Used for business-transaction processing.
• Used for database management.
• Used for file handling.
• Used for engineering computations.
Characteristics of a minicomputer
• Its size is smaller than a mainframe or supercomputer.
• It is less expensive than mainframe or supercomputer.
• It is less powerful than mainframe or supercomputer and more powerful than microcomputers and
workstations.
• It can do several tasks at once.
• It can be used by many people at one time.
• It is used by small enterprises.
Applications of minicomputer
1 Minicomputer was used in business accounting.
2 A network of minicomputers can be created which allows a large library with its different-2
branches to build its own internal network and this network is more powerful than those handled by
large-scale computer installations.
3 It is used by the various sub-departments of the companies so that they can unload the task of
mainframe computers.
Advantages of minicomputer
• They are easy to use.
• They can fit anywhere.
• They are small and very portable.
• They are easy to carry.
• As compared to their size, they are fast.
• They hold a charge for a long time.
• They did not require a carefully controlled operational environment.
• They are more reliable.
Disadvantages of minicomputer
• The user may not be familiar with the operating system.
Mainframe Computer:
Mainframes are a type of computer that generally are known
for their large size, amount of storage, processing power and
high level of reliability. They are primarily used by large
organizations for mission-critical applications requiring high
volumes of data processing. Main frame computers generally
require special attention and are kept in a controlled
atmosphere. They are multi-tasking and generally used in areas
where large database are maintained example as government
agency or airline industry. Examples:-IBM LinuxONE
A mainframe has an enormous storage space on disk and tape (like thousands of kilobytes,
measured in gigabytes), and an enormous amount of main memory. Theoretically, it works a lot
faster than the fastest personal computer. A mainframe also costs big bucks, from half a million or
so on up.
In today’s world where all the business, transactions, communications are real time. So to perform
all this task, a powerful computer require on the server side, which processes the instructions and
provides the output in seconds. According to the usage of computers in today’s world, we can
categories computer in Supercomputer, Mainframe Computer, and Mini Computer and
microcomputer categories. A mainframe computer is the fastest computer after supercomputer to
execute complex and lengthy calculations. A mainframe computer is more powerful than Mini and
Microcomputer, but less powerful than Supercomputer. A mainframe computer is used in the large
organization.
A mainframe computer is a combination of memory (RAM) and many processors. It acts as a
central processing unit for many workstations and terminals connected with it. A mainframe
computer is used to process the large and huge amount of data in petabytes. It can control thousands
of user ’s. Name ‘Mainframe’ means that a frame for holding a number of processors and main
memory. Mainframe computer plays a significant role in e-business where hundreds to thousands of
people connect to a server to precede their request in a real time. Similarly, In banking, government,
education system mainframe computer play a valuable role.
All mainframes are multi-tasking, multi-user machines, meaning they are designed so many
different people can work on many different problems, all at the same time. Mainframe computer
initially created in early 1950’s. Initially, the size was too big because of the vacuum tube. But after
the invention of transistors main frame computer size get reduced.
Mainframes serve most often as information stores and processors. An army of smaller computers is
connected to the mainframe. These smaller computers are not in the same room; they may be
connected through phone lines across the world. Ordinary people in the company never touch the
mainframe itself. Instead, they interact with the computer using a terminal, which is more or less a
keyboard and a monitor connected to the mainframe with wires, or by modem over the phone lines.
People use the smaller computers and get information from and send information to the mainframe.
IBM manufactured many mainframe computers for commercial, scientific and engineering use with
different serial numbers. IBM manufactured 700 and 7000 series models with use of vacuum tube
and transistors. In 1964, System/360 was manufactured for both commercial and scientific users. S/
360 was the first computer to offer microcode. Microcode functionality makes the system
modifiable without changing the computer. Now the customer can create their own application
according to requirement. In 2000, Z-Series was introduced by IBM. Z-series computers are very
powerful to process the instruction.
Components of Mainframe computer
CPU: CPU contains the processors, memory, control circuits, and interfaces for channels. A channel
is an independent path between I/O devices and memory. This path is used for data movements and
for controlling the computer components.
Controllers: Channels are used to connect devices with control units. Channel is also known as a
bus. In Mainframe computer, the different control unit (internal circuit and logic) is used for
different -different devices like tape, disk. Control unit is further connected with storage unit.
Cluster controller: Cluster controller is a device to connect channel terminal to host system. Cluster
controls have two types
I/O channels: During I/O connectivity, we used some term like IOCDS, ESCON, FICON, CHIPD’s
having unique definitions and purpose.
ICODS: ICODS stands for I/O control data set. It is a control file in I/O layer to translate physical
I/O address into device address.
ESCON (Enterprise Systems Connection): is a first IBM and vendor product for connecting more
than one mainframe computer and with locally attached workstations. It is Fiber Optic channel to
transfer the data with the maximum speed of 17 MBPS. We can extend the local to mainframe
network up to 60 km. It has some limitations regarding speed and network area. To make it better
IBM next version was FICON. FICON (fiber connector) is used to increase the transfer speed of
ESCON channel. One Ficon connector is equal to eight ESCON connector.
Multiprocessors: Multiprocessors indicate that number of processors. Multiple processors in
mainframe computer used some Prefix Storage Area to process the data (For error handling and
interrupt handling).Using special instruction set processor can communicate with another processor
using special instruction set.
The advantage of mainframe computer
Mainframe computer has many advantages as well as disadvantages. From the last 50 years, there
was a great revolution in mainframe computer in all field like size, processing speed, data transfer
speed, security, and flexibility.
• Mainframe computer provides a great security against the attack of viruses, warm, spyware,
malware. Encryption technique like file encryption, dataset and file encryption, network encryption,
clustering encryption empower security.
• Mainframe computers are compatible with all types of software and hardware. Because different
user connects with servers along with different hardware and software on their system. They can
easily communicate with server-side without any interrupt.
• Mainframe computer deals with thousands of users to execute their instructions simultaneously.
And can store
• Without disturbing process on the computer, we can add storage, processors or memory and
extend its capability.
Disadvantage
• A mainframe computer is expensive. It is not easy to purchase a mainframe as a comparison to the
microcomputer. The microcomputer is handled by the single user, but mainframe handled many
users. Installation is not easy.
Hybrid Computer
A hybrid computer is a computing system that combines both digital and analog components.
Traditionally, the analog components of the computer handle complex mathematical computations.
The digital components take care of logical and numerical operations, in addition to serving as the
controller for the system. For examples: Computer used in hospitals to measure the heartbeat of the
patient. Devices used in petrol pump. In scientific applications or in controlling industrial processes.
General-Purpose Computers
Personal computers, including desktops, notebooks, smartphones and tablets, are all examples of
general-purpose computers. A general purpose computer is used for different programs(software)
for different functions. It can be used to do a lot of things. ENIAC, in full Electronic Numerical
Integrator and Computer, the first programmable general-purpose electronic digital computer, built
during World War II by the United States. Most computers in use today are General-Purpose
computers - those built for a great variety of processing jobs. Simply by using a general purpose
computer and different software, various tasks can be accomplished, including writing and editing
(word processing), manipulating facts in a data base, tracking manufacturing inventory, making
scientific calculations, or even controlling organization’s security system, electricity consumption,
and building temperature. General purpose computers are designed to perform a wide variety of
functions and operations. A general purpose computer is able to perform a wide variety of
operations because it can store and execute different programs in its internal storage.
FORECASTING SIMULATORS
Weather forecasting simulators is the technology of science that invented by human to predict the
weather with the aid of computer simulators. It can be done by collecting the data for the current
state of the atmosphere. The data such as wind speed, temperature, humidity and others are
collected. The data collected will then entered into the computer. In the computer, the data will be
use in the calculation to predict the weather based on the current state of the
atmosphere. For the calculation, the equation that created based on the understanding of
atmospheric such as thermodynamic equation is used. Therefore, the weather that forecasted is obey
the law of thermodynamics
which define the fundamental physical quantities which are energy, temperature and entropy . The
mathematical modelling is done with the aid of computer.
GPS NAVIGATOR
Global Positioning system, GPS, is a navigation system that make up of 24 satellite that placed in
the orbit which provides the exact time and any place in the globe. The satellites embedded with
atomic clock which is known as the most stable and most accurate time and frequency. Any
deviation from true and accurate time is corrected daily to ensure the accurateness. Normally the
GPS receiver have less accurate and less stable time.
SMART WATCH
A smart watch is a computerized watch that not only used for timekeeping. The smart watch
nowadays playing the role of the personnel assistant of the users that can be used to perform basic
tasks which helps the users in daily life. In fact, the smart watch at the early stage can be used
perform some basic tasks such as calculations. most of the smart watch can be used to even run the
mobile apps since it uses the mobile operating system. Due to this, the smart
watch can perform most of the functions same like the mobile phone. Some of the smart watch can
even be used to make an d answer the incoming phone calls. Not only that, the smart watch can be
used to help the users in their daily activities such as remind the users to carry out their task
(reminders), personnel heath care (record the sleeping time, measure the pulse rate),
alarm (to alert) and others.
Biometric system : It is use for attendance or trace presence of any person using thumb, RF(radio
frequency) id or face recognizer using cc(close circuit)tv camera.
SPEED
In terms of speed, the special purpose computer tends to be perform faster compared to the general
purpose computer. This is because the special purpose computer only needs to handle one specific
task while the general
purpose computer needs to handle more than one task.
COST
In term of cost, the special purpose computer tends to be more expensive compare to the general
purpose computer. This is because the computer is specially designed for one task only and involve
the more complicated processes compared to the general purpose computer.
RELIABILITY
In terms of reliability, the special purpose computer tends to be more reliable compared to general
purpose computer. A reliable product is totally with zero error. The probability of the special
purpose computer to make error is much lower since they only handle one task unlike the general
purpose computer.
MAINTENANCE
The maintenance is meant by keeping the any devices in a good state. The special purpose computer
easier to be maintained compared to general purpose computer since they handled only single task.
However, the process to
repair them is more difficult compared to general purpose computer since it involves the
complicated processes.
Generation of Computers
There are five generations of computers.
1. FIRST GENERATION
Vacuum tube technology
Unreliable
Supported Machine language only Figure : Vacume Tube
Very costly
Generate lot of heat
Slow Input/Output device
Huge size
Need of A.C.
Non portable
Consumed lot of electricity
Some computer of this generation were:
ENIAC
EDVAC
UNIVAC IBM-701
IBM-650
Introduction:
1. 1946-1959 is the period of first generation computer.
2. J.P.Eckert and J.W.Mauchy invented the first successful electronic computer
called ENIAC(Electronic Numeric Integrated And Calculator).
Few Examples are:
1. ENIAC (Electronic Numeric
Integrated And Calculator)
2. EDVAC (Electronic Discrete
Variable Automatic Computer)
3. UNIVAC (Universal Automatic
Computer)
4. IBM-701 (International Business
Machine)
5. IBM-650 Figure : First Generation Computer
Advantages:
1. It made use of vacuum tubes which are the only electronic component
available during those days.
2. These computers could calculate in milliseconds.
Disadvantages:
1. These were very big in size, weight was about 30 tones.
2. These computers were based on vacuum tubes.
3. These computers were very costly.
4. It could store only a small amount of information due to the presence of
magnetic drums.
5. As the invention of first generation computers involves vacuum tubes, so
another disadvantage of these computers was, vacuum tubes require a large
cooling system.
6. Very less work efficiency.
7. Limited programming capabilities and punch cards were used to take inputs.
8. Large amount of energy consumption.
9. Not reliable and constant maintenance is required.
2. SECOND GENERATION
Use of transistors
Reliable as compared to First generation computers
Smaller size as compared to First generation
computers
Generate less heat as compared to First generation
computers
Consumed less electricity as compared to First
generation computers
Faster than first generation computers
Still very costly
A.C. needed
Support machine and assmebly languages
Some computer of this generation were:
IBM 1620
IBM 7094
CDC 1604
CDC 3600
UNIVAC 1108
Introduction:
1. 1959-1965 is the period of second-generation computer.
2. 3.Second generation computers were based on Transistor instead of vacuum
tubes.
Few Examples are:
1. Honeywell 400
2. IBM 7094
3. CDC 1604 (Control Data Corporation)
4. CDC 3600
5. UNIVAC 1108
Advantages:
1. Due to the presence of transistors instead of vacuum
tubes, the size of electron component decreased. This
resulted in reducing the size of a computer as compared to
first generation computers.
2. Less energy and not produce as much heat as the first generation.
3. Assembly language and punch cards were used for input.
4. Low cost than first generation computers.
5. Better speed, calculate data in microseconds.
6. Better portability as compared to first generation
Disadvantages:
1. A cooling system was required.
2. Constant maintenance was required.
3. Only used for specific purposes.
3. THIRD GENERATION
IC used
More reliable
Smaller size Generate less heat
Faster
Lesser maintenance
Still costly
A.C needed
Consumed lesser electricity
Support high level language
Some computer of this generation were:
IBM-360 series
Honeywell-6000 series
PDP(Personal Data Processor)
IBM-370/168
TDC-316
Introduction:
1. 1965-1971 is the period of third generation computer.
2. These computers were based on Integrated circuits.
3. IC (Integrated Circut) was invented by Robert Noyce and Jack Kilby In 1958-
1959.
4. IC was a single component containing number of transistors.
Few Examples are:
1. PDP-8
2. PDP-11
3. ICL 2900
4. IBM 360
5. IBM 370
Advantages:
1. These computers were cheaper as
compared to second-generation
computers.
2. They were fast and reliable.
3. Use of IC in the computer provides the small size of the computer.
4. IC not only reduce the size of the computer but it also improves the
performance of the computer as compared to previous computers.
5. This generation of computers has big storage capacity.
6. Instead of punch cards, mouse and keyboard are used for input.
7. They used an operating system for better resource management and used the
concept of time-sharing and multiple programming.
8. These computers reduce the computational time from microseconds to
nanoseconds.
Disadvantages:
1. IC chips are difficult to maintain.
2. The highly sophisticated technology required for the manufacturing of IC
chips.
3. Air conditioning is required.
4. FOURTH GENERATION
Limitation of microcomputer
Not use as server – Microcomputer memory is less or limited so we can,t use as server for
operate maximum number of system.
Least powerful: Microcomputer have low computational power as compared to mini,
mainframe and supercomputers.
Less storage: Microcomputer have less storage and for storage large data you will need extra
storage devices.
Weak in performance: Many microcomputer have low processor that will effect computer
performance e.g. playing games and running big software is difficult .
Difficult to upgrade: Microcomputer’s have different motherboards for every type of
processor so it is difficult to upgrade PC for high performance.
Lack of security : Hackers can hack your computer if it is connected to the Internet and your
sensitive data can be stolen or loss by virus attack , antivirus help us but limited or more
expensive for high security it also .
Number System
2 125 Remainder
2 62 1
2 31 0
2 15 1
2 7 1
2 3 1
2 1 1
0 1
So answer is (125)10=(1111101)2
Divide the given number (129) with the base of convert number(Octal : 8)
8 129 Remainder
8 16 1
8 2 0
0 2
So answer is (129)10=(201)8
16 1212 Remainder
16 75 C
16 4 B
0 4
So answer is (1212)10=(4BC)16
(125)10=(1111101)2
For floating number multiply the base number and remove the integer part, perform this till not get
0 at last or value repeated. If we not get 0 then we can’t get accurate answer, we find only nearest
value.
(.25)10 = (?)2
.25 Integer part
.25x2
0.5X2 0
1.0 1
0
(.25)10 = (.01)2
So answer is (125.25)2=(1111101.01)2
1’s Compliment – It is binary number system which use for subtract the binary with addition. In 1’s
compliment 0 compliment is 1 and 1 compliment is 0.
Example : find the compliment of binary number 11001
110011 ---->> 1’s compliment = 001100
Example : Subtract the binary number 1110011 with 11111 using 1’s complement.
Solution- First equal the bit size with add 0 left side because both number should be in same size.
Find the 1’s compliment of negative number and add the number. If subtract the big number to
small number then we get extra bit. Add extra bit to result and get answer . If subtract small number
to big number then we not get extra bit so again find 1’s compliment of result and we get answer
but it is negative number.
1110011
- 0011111 first equal the bit size with add 0 , the 1’s compliment of negative
number of 0011111 is 1100000
1110011
+ 1100000
extra bit 11010011
1010011
+ 1
1010100 (Answer)
Example : Subtract the binary number 11111 with 1110011using 1’s complement.
0011111
- 1110011 first equal the bit size with add 0 , the 1’s compliment of negative number of
1110011 is 0001100
0011111
+ 0001100
0101011
No extra bit find so again find 1’s compliment of result so - 1010100(Answer but negative)
2’s Compliment
Addition 1 in 1’s compliment is known as 2’s compliment. It is also use subtract the binary number
with addition. The subtract procedure is same as 1’s compliment. But If subtract big no. to small the
get extra bit and ignore the extra bit for get answer and it is denote positive number. If subtract
small to big number the extra bit not found, for answer find 2’s compliment of result it denote
negative number.
Example : Subtract the binary number 1110011 with 11111 using 2’s complement.
1110011
- 0011111 first equal the bit size with add 0 , find the 2’s compliment of negative
number of 0011111
1’s compliment = 1100000
+ 1
2’s compliment 1100001
1110011
+ 1100001
extra bit 11010100 Ignore extra bit ( 1010100 Answer )
Example : Subtract the binary number 11111 with 1110011using 2’s complement.
0011111
- 1110011 first equal the bit size with add 0 , 2’s compliment of negative number of
1110011 is
0011111
+ 0001101
0101100 No extra bit find so find-out 2’s compliment of result
Binary Code
When numbers, letters or words are represented by a specific group of symbols, it is said that the
number, letter or word is being encoded. The group of symbols is called as a code. The digital data
is represented, stored and transmitted as group of binary bits. This group is also called as binary
code. The binary code is represented by the number as well as alphanumeric letter.
Advantages of Binary Code
Following is the list of advantages that binary code offers.
Binary codes are suitable for the computer applications.
Binary codes are suitable for the digital communications.
Binary codes make the analysis and designing of digital circuits if we use the binary codes.
Since only 0 & 1 are being used, implementation becomes easy.
Classification of binary codes
The codes are broadly categorized into following four categories.
Weighted Codes
Non-Weighted Codes
Binary Coded Decimal Code
Alphanumeric Codes
Error Detecting Codes
Error Correcting Codes
Weighted Codes
Weighted binary codes are those binary codes which obey
the positional weight principle. Each position of the
number represents a specific weight. Several systems of
the codes are used to express the decimal digits 0 through
9. In these codes each decimal digit is represented by a
group of four bits.
Non-Weighted Codes
In this type of binary codes, the positional weights are not assigned. The examples of non-weighted
codes are Excess-3 code and Gray code.
Excess-3 code
The Excess-3 code is also called as XS-3 code. It is non-weighted code used to express decimal
numbers. The Excess-3 code words are derived from the 8421 BCD code words adding (0011)2 or
(3)10 to each code word in 8421. The excess-3 codes are obtained as follows −
Example
Gray Code
It is the non-weighted code and it is not arithmetic codes. That means there are no specific weights
assigned to the bit position. It has a very special feature that, only one bit will change each time the
decimal number is incremented as shown in fig. As only one bit changes at a time, the gray code is
called as a unit distance code. The gray code is a cyclic code. Gray code cannot be used for
arithmetic operation.
Application of Gray code
Gray code is popularly used in the shaft position encoders.
A shaft position encoder produces a code word which represents the angular position of the
shaft.
Binary Coded Decimal (BCD) code
In this code each decimal digit is represented by a 4-bit binary number. BCD is a way to express
each of the decimal digits with a binary code. In the BCD, with four bits we can represent sixteen
numbers (0000 to 1111). But in BCD code only first ten of these are used (0000 to 1001). The
remaining six code combinations i.e. 1010 to 1111 are invalid in BCD.
Advantages of BCD Codes
It is very similar to decimal system.
ASCII Code - ( ASCII - American Standard Code for Information Interchange) is a character
encoding standard for electronic communication. The purpose of ASCII is to create a standard for
character-sets used in electronic equipment's. ASCII codes represent text in computers,
telecommunications equipment, and other devices. Most modern character-encoding schemes are
based on ASCII. ASCII was developed from telegraph code. Its first commercial use was as a
seven-bit teleprinter code promoted by Bell data services. The first edition of the standard was
published in 1963. It was developed under the protection of a committee of the American Standards
Association (ASA).
EBCDIC code :
Extended binary coded decimal interchange code is an 8-bit binary code for numeric and
alphanumeric characters. It was developed and used in 1963 and 1964 by IBM . It is a coding
representation in which symbols, letters and numbers are presented in binary language.
It is an eight-bit character encoding, developed separately from the seven-bit ASCII encoding
scheme. It was created to extend the existing Binary-Coded Decimal (BCD) Interchange Code
Logic gate
Digital electronic circuits operate with voltages of two logic levels namely Logic Low and Logic
High. The range of voltages corresponding to Logic Low is represented with ‘0’. Similarly, the
range of voltages corresponding to Logic High is represented with ‘1’.
The basic digital electronic circuit that has one or more inputs and single output is known as Logic
gate. Hence, the Logic gates are the building blocks of any digital system. We can classify these
Logic gates into the following three categories.
Basic gates
Universal gates
Special gates
Now, let us discuss about the Logic gates come under each category one by one.
Basic Gates
In earlier chapters, we learnt that the Boolean functions can be represented either in sum of products
form or in product of sums form based on the requirement. So, we can implement these Boolean
functions by using basic gates. The basic gates are AND, OR & NOT gates.
AND gate
An AND gate is a digital circuit that has two or more inputs and produces an output, which is the
logical AND of all those inputs. It is optional to represent the Logical AND with the symbol ‘.’.
The following table shows the truth table of 2-input AND gate.
A B Y = A.B
0 0 0
0 1 0
1 0 0
1 1 1
Here A, B are the inputs and Y is the output of two input AND gate. If both inputs are ‘1’, then only
the output, Y is ‘1’. For remaining combinations of inputs, the output, Y is ‘0’.
The following figure shows the symbol of an AND gate, which is having two inputs A, B and one
output, Y.
A Y = A’
0 1
1 0
Here A and Y are the input and output of NOT gate respectively. If the input, A is ‘0’, then the
output, Y is ‘1’. Similarly, if the input, A is ‘1’, then the output, Y is ‘0’.
The following figure shows the symbol of NOT gate, which is having one input, A and one output,
Y.
This NOT gate produces an output Y which is the complement of input, A.
Universal gates - NAND & NOR gates are called as universal gates. Because we can implement
any Boolean function, which is in sum of products form by using NAND gates alone. Similarly, we
can implement any Boolean function, which is in product of sums form by using NOR gates alone.
NAND gate
NAND gate is a digital circuit that has two or more inputs and produces an output, which is the
inversion of logical AND of all those inputs.
The following table shows the truth table of 2-input NAND gate.
A B A.B Y = (A.B)’
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
Here A, B are the inputs and Y is the output of two input NAND gate. When both inputs are ‘1’, the
output, Y is ‘0’. If at least one of the input is zero, then the output, Y is ‘1’. This is just opposite to
that of two input AND gate operation.
The following image shows the symbol of NAND gate, which is having two inputs A, B and one
output, Y.
NAND gate operation is same as that of AND gate followed by an inverter. That’s why the NAND
gate symbol is represented like that.
NOR gate
NOR gate is a digital circuit that has two or more inputs and produces an output, which is the
inversion of logical OR of all those inputs.
The following table shows the truth table of 2-input NOR gate
A B A+B Y = (A+B)’
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
Here A, B are the inputs and Y is the output. If both inputs are ‘0’, then the output, Y is ‘1’. If at
least one of the input is ‘1’, then the output, Y is ‘0’. This is just opposite to that of two input OR
gate operation.
The following figure shows the symbol of NOR gate, which is having two inputs A, B and one
output, Y.
NOR gate operation is same as that of OR gate followed by an inverter. That’s why the NOR gate
symbol is represented like that.
Assignment Questions
Q 1. Write the characteristics and capability of computer.
Q2. Draw the block diagram of computer and explain it.
Q3. What do you mean by data processing ? Explain the different types of data processing system.
Q4. Explain the types of computer.
Q5. Discuss about the general and special purpose computer.
Q6. Explain the generation of computer and their characteristics.
Q7. Discuss the limitation of micro computer.
Q8. Explain the all number system.
Q9. Convert the following numbers
(i) (125)10=(?)2 (ii) (125)10=(?)8 (iii) (1212)10=(?)16 (iv) (1011001)2=(?)8 (iv) (1110101)2=(?)16
Q.10. What is 1’s and 2’s compliment ?
Q.11 Subtract the binary number using 2’s compliment .
1101110
- 10101
Q12. Explain the different types of binary codes.
Q13. What is logic gates ? Explain all logic gates with their truth table .