15CS21T
15CS21T
15CS21T
Number System
Numbers are extremely important in our personal life. The Abacus is one of the earliest
known calculators. It is used presently also. In 1962 Gottfried Wilhelm von Leibniz
developed a machine which performed all basic arithmetic operations (addition, subtraction,
multiplication and division). New invention was digital system. There are various systems of
arithmetic which are widely used in digital electronics.
1. Binary Number System :- The binary number system is base 2 system using 0 and 1.
2. Octal Number System :- The octal number system is base 8 system using 0 to 7.
3. Decimal Number System :- The decimal number system is base 10 system using 0 - 9
4. Hexadecimal number system:- The hexadecimal number system is base 16 system
using 0 to 9 and A, B, C, D, E & F.
Decimal value 8 4 2 1
1011(2) = 1×2 + 0×2 + 1×2 + 1 × 20
3 2 1
= 8+0+2+1
1011(2) = 11(10)
8 754 -
8 94 - 2
8 11 - 6
1 - 3
754 (10) = 1362 (8)
2314(8) = 010011001100(2)
246.72 (8)=010100110.111010(2)
16 964 -
16 60 - 4
16 3 - 12
Fraction Part Conversion :- The decimal fraction part number is multiplied by 16 and carry is
noted down. This process is cumulative till the desired accuracy is obtained. The carry
reading represents down direction.
Ex (i) 0.0664 (10) = (?) (16)
0.0664 x 16 = 1.0624 – 1
0.0624 x 16 = 0.9984 – 0
0.9984 x 16 = 15.9744 – 15 (F)
0.9744 x 16 = 15.5904 – 15 (F)
0.0664 (10) = 0.10FF (16)
To convert integer hexadecimal number to its corresponding binary number use 2 steps.
i) Convert the given number to its 4 bit binary equivalent.
ii) Combine the 4 bit section by removing the spaces.
FCFD(16)=1111110011111101(2)
155.D1(16)=(1010101010.11010001)(2)
11001011010001(2) =52D1(16)
Following steps should be followed to subtract larger number from smaller number.
1) Get the 1‘s complement of subtrahend.
2) Add 1‘s complement of subtrahend to the minuend.
3) If no carry is generated, take 1‘s complement of the result and place –ve sign to the
result i.e negative.
1101011
0001010
-----------
1110101
-----------
2’s complement
2‘s complement of a binary number is obtained by adding 1 to the 1‘s complement. 2‘s
complement of a number = 1‘s complement + 1 .
Binary No. 1‘s Complement 2‘s Complement
1101 0010 0011
11011 00100 00101
110001 001110 001111
110101
001111
-----------
1000100
------------
Step 3:- Carry is generated, neglect it & the answer is 000100
Following steps should be followed to subtract larger number from smaller number.
1) Get the 2‘s complement of subtrahend.
2) Add 2‘s complement of subtrahend to the minuend.
3) Perform addition if no carry is generated, take 2‘s complement of the result and
place negative sign to the result.
BCD Addition
BCD addition is used to add to 2 BCD numbers.
1) Add two binary numbers using ordinary binary addition.
2) If four bit sum is equal to 0 or less than 9 ,no correction is needed.
3) If four bit sum is greater than 9 or if carry is generated from 4 bit sum, the sum is
invalid.
4) Correct the invalid sum by adding 6 (0110) to the four bit sum.
Ex (i) Perform BCD addition 00110010 + 00011000
00110010
00011000
--------------
010001010 1010 (10>9) is invalid BCD sum
-------------- Add 6 (0110) to the four bit sum
01001010
0110
------------
0101000
-----------
Cross Check 00110010 (BCD) + 00011000 (BCD) = 01010000 (BCD)
32 (10) + 18(10) = 50 (10)
Decimal no. 9 5 8 5
BCD no. 1001 0101 1000 0101
Gray Code
The gray code is a variable weighted & unweight code. There are no specific
weights assign to the bit position. It is arranged and every transition from one value to the
next value involves only 1 bit change. Gray code is also referred as reflected binary, because
the first eight values compare with those of last eight values but it is in reverse order.
The gray code along with corresponding decimal & binary numbers as shown below.
AND Gate:
AND gate performs logical multiplication known as AND function. AND gate has two or more
inputs and a single output. The AND operation produces a HIGH output only if all the inputs
arc HIGH, When one input is HIGH and the other input is HIGH, the output is HIGH. When
any or all inputs are LOW. the output is LOW. The AND operation is implemented by a logic
circuit known as an AND gate.
Truth table for AND Gate with two inputs is as shown below
A B C
(OUTPOUT)
0 0 0
1 0 0
0 1 0
1 1 1
SYMBOL FOR AND GATE Truth table for AND Gate with two inputs
Boolean Expression C = A . B OR C = AB
OR Gate:
OR gate performs logical addition known as OR function.OR gate has two or more inputs
and a single output. The OR operation produces a HIGH output when any of the inputs is
HIGH, When one input is HIGH or the other input is HIGH or both inputs are HIGH, the
output is HIGH. When both inputs are LOW. the output is LOW. The OR operation is
implemented by a logic circuit known as an OR gate.
A B C
(OUTPOUT)
0 0 0
1 0 1
0 1 1
1 1 1
SYMBOL FOR AND GATE Truth table for OR Gate with two inputs
Boolean Expression C = A + B
NAND Gate:
It is a combination of NOT and AND and implies an AND Function with a
complimented output. It is a universal gateused to construct AND gate OR gate,Inverter or
any combination of these. A low output occurs only when all the inputs are high.When any
of the input is low the output will be high.
A B C (OUTPOUT)
0 0 1
1 0 1
0 1 1
1 1 0
SYMBOL FOR NAND GATE Truth table for NAND Gate with two inputs
Boolean Expression C = OR C =
NOR Gate :
It is a combination of NOT and OR and implies an OR Function with a
complimented output. It is a universal gate used to construct AND gate, OR gate, Inverter
or any combination of these. A low output occurs only when any of its inputs are high.
When any of the input is low the output will be high.
A B C (OUTPOUT)
0 0 1
1 0 0
0 1 0
1 1 0
SYMBOL FOR NOR GATE Truth table for NOR Gate with two inputs
Boolean Expression C =
The Exclusive OR Gate :
The abbreviation for Exclusive OR gate is Ex-OR .It has two or more inputs and one
input . A low output occurs only when both inputs are high low. A high output occurs only
when both the input is high or low . Similarly regardless of the number of inputs the
output is high evn when number of inputs are high or when all the inputs are zeroes.
A B C (OUTPUT)
0 0 0
1 0 1
0 1 1
1 1 0
SYMBOL FOR EX-OR GATE Truth table for EX-OR Gate with two inputs
Boolean Expression C = A B
A B C
(OUTPOUT)
0 0 1
1 0 0
0 1 0
1 1 0
SYMBOL FOR EX-NOR GATE Truth table for EX-NOR Gate with two inputs
_____
Boolean Expression C = A B
SUMMARY
Gates are used to control the flow of data from input to output.
In digital system, two voltage levels represents the two binary digits,1 and 0.If the
higher of two voltages represents 1 and the lower voltage represents 0.
The Logic gates are the basic elements that make up a digital system.
The logic gate is a digital circuit with one or more inputs but only one output.
The inverter output is the complement of the Input.
The AND gate output is HIGH only if all the inputs are HIGH.
The OR gate output is HIGH if any of the Inputs is HIGH
The NAND gate output is LOW only if all the inputs arc HIGH
The NOR gate output is LOW if any of the inputs is HIGH
The NOR can be viewed as a negative-AND whose output is HIGH only If all the
inputs are LOW.
The exclusive-OR gate output is HIGH when the inputs are not the same.
The exclusive-NOR gate output is LOW when the inputs are not the same.
Boolean Algebra
It is mathematics of digital system. It is used to simplify Boolean equation to make
simple logic circuit.
Commutative law:
Law 1: A + B = B + A : This states that the order in which the variables are ORed makes
no differenc in the output. The truth tables are identical. Therefore A OR B is same as B
OR A
A B A+B A B A+B
0 0 0 0 0 0
1 0 1 1 0 1
0 1 1 0 1 1
1 1 1 1 1 1
LAW2 : AB =BA : This states that the order in which the variables are ANDed makes no
differenc in the output. The truth tables are identical. Therefore A AND B is same as B
AND A
A B AB A B BA
0 0 0 0 0 0
1 0 0 1 0 0
0 1 0 0 1 0
1 1 1 1 1 1
Associative Law:
Law 1: A+(B+C) = (A+B)+C : This law states that in ORing of several variables ,the result
is the same regardless of the grouping of the variables .For three variables A OR B ORed
with C is same as A ORed with B OR C.
Associative law states A +(B+C) = (A+B)+C
Law 1: A+(B+C) = (A+B)+C : This law states that in ANDing of several variables ,the result
is the same regardless of the grouping of the variables .For three variables A AND B ANDed
with C is same as A ANDed with B AND C.
Associative law states A .(B.C) = (A.B).C
B C AB (AB)C A B C BC A(BC)
0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 1 0 0
0 1 0 0 0 0 1 0 0 0
0 1 1 0 0 0 1 1 1 0
1 0 0 0 0 1 0 0 0 0
1 0 1 0 0 1 0 1 0 0
1 1 0 1 0 1 1 0 0 0
1 1 1 1 1 1 1 1 1 1
Associative law applied to AND
Gate Truth Tables
Distributive Law:
Law 1:Distribution of AND over OR : A(B+C) = AB+AC : This law states that ORing of
several variables and ANDig the result with a single variable is equivalent to ANDing the
lone variable with each of the variables and then ORing products.
Truth Tables
Rule 1: Annulment Law – A term AND´ed with a ―0‖ equals 0 or OR´ed with a ―1‖
will equal 1.
o A . 0 = 0 A variable AND‘ed with 0 is always equal to 0.
o A + 1 = 1 A variable OR‘ed with 1 is always equal to 1.
Rule 2: Identity Law – A term OR´ed with a ―0‖ or AND´ed with a ―1‖ will always
equal that term.
o A + 0 = A A variable OR‘ed with 0 is always equal to the variable.
Demorgan’s theorem
DeMorgan's first theorem is stated as follows:
The complement of a product of variables is equal to the sum of the complements of the
variables.
Stated another way,
The complement of two or more variables ANDed is equivalent to the OR of the com-
plements of the Individual variables.
The formula for expressing this theorem for two variables
AB = A + B
A+B= A.B
Universal Gates:
The output of the NAND gates is (A.B). The second NAND gate then
complements previous A.B .
Double compliment of a quantity is the quantity itself. That is ̿̿̿̿̿̿̿̿̿ = A B.Thus
NAND gates can be comnnected to perform the AND function.
The first two NAND gates invert A and B produce and .The two –input NAND
gate then produces n output of = ̿ + ̿ = A +B
4) NOR gate:
The NOR function using NAND gate is realized as shown below.
_____
= ̿ + ̿ =A+B
Just like the NAND gate ,th NOR gate is also a universal building block.The NOT
function as realized as shown in the figure.
______
Y= = . =
A
A y=
Y=A.B
_______
=( + )
=̿.̿ = A.B
= A+B
A+B
B
_______
( + ) = ̿ .̿ = A.B
When A .B applied to NOR the output would be .
2. Q C.( A C)
Q C.( A C )
Q A.C C.C
Q A.C 0
Q A.C
4. Q A.B.(B C) B.C B
Q A.B.( B C ) B.C B
Q A.B.B A.B.C B.C B
Q A.0 A.B.C B.(C 1)
Q A.B.C B.1
Q A.B.C B
Q B.( A.C 1)
Q B.1
QB
5. Q B.( A C) A A.( A B)
Q B.( A C ) A A.( A B)
Q A.B B.C A A. A A.B
Q A.B B.C A
Q A.( B 1) B.C
Q A B.C
Simplification can begin by combining the first two terms only as follows:
Q A.B.(C C) A.B
Using our sixth identity the term C C 1 so the expression now becomes:
Q A.B.1 A.B
Q A.B A.B
Q A.(B B)
Using our sixth identity the term B B 1 so the expression now becomes:
Q A.1
QA
Start by looking for possible common factors which will leave behind one of our two
key identities inside the bracket, in this case A.B in terms 2 and 3. This gives the following
simplification.
Note: This is only Basic Information for students. Please
refer “Reference Books” prescribed as per syllabus
DEPARTMENT OF TECHNICAL EDUCATION E-CONTENT
Q A.B A.B.(C 1) C
Using our fourth identity the term C 1 1 so the expression now becomes:
Q A.B A.B.1 C
Q A.B A.B C
Again we look for common terms, this time between the first two terms to give the
following:
Q B.( A A) C
Using our sixth identity the term A A 1 so the expression now becomes:
Q B.1 C
Q BC
Q B.C.(C D) C.D C A
Note: This is only Basic Information for students. Please
refer “Reference Books” prescribed as per syllabus
DEPARTMENT OF TECHNICAL EDUCATION E-CONTENT
Q B.C.(C D) C.D C A
Q B.C.C B.C.D C.D C A
Q B.0 B.C.D C.( D 1) A
Q B.C.D C A
Q C.( B.D 1) A
Q C.1 A
QCA
Simplify the expression : Q A.B.C A.C C.( D C ) A
Solution.
Q A.B.C A.C C.( D C ) A
Q A.( B.C C ) C.D C.C A
Q A.( B C ) C.D 0 A
Q A.B A.C C.D A
Q A.( B 1) A.C C.D
Q A A.C C.D
Q A.(1 C ) C.D
Q A C.D
Q A.B.( B C ) B.C B
Q A.B.B A.B.C B.C B
Q A.0 A.B.C B.(C 1)
Q A.B.C B.1
Q A.B.C B
Q B.( A.C 1)
Q B.1
QB
Simplify the expression: Q B.( A C ) A A.( A B)
Q B.( A C ) A A.( A B)
Q A.B B.C A A. A A.B
Q A.B B.C A
Q A.( B 1) B.C
Q A B.C
Q ( A B) ( A.B) A.B
Q ( A B) ( A.B) A.B
Q A B A.B A.B
Q A.(1 B) ( B A.B)
Q A.1 ( B A)
Q A B A
Q B ( A A)
Q B 1
Q 1
Q A.C.B.D C.D
Q A.C.B D C D
Q A.C.B D C
Q ( A C ).B D C
Q A.B B.C D C
Q A.B C.( B 1) D
Q A.B C.1 D
Q A.B C D
Standard form of Boolean expressions
In the previous section we saw how Boolean expressions can be simplified using Boolean
algebra and Boolean theorems. In this section we use basic laws and theorems of Boolean
algebra for simplifying Boolean expressions by two basic forms:
1. Sum of Products form(SOP)
2. Product of Sums form(POS)
It is a group of product term ORed together. That is two or more product terms are sumed
by Boolean addition and resulting expression is SOP. An SOP expression has a single
variable term also
Ex: A+ BC+B D
Some examples of SOP:
Implementation of SOP:
Implemetating an SOP expression requires ORing the outputs of two or more AND gates. A
product term is produced by AND Operation and sum of two or more product items is
produced by OR operation. Thus an SOP expression is implemented by AND-OR logic.
2. (A+B)(B+C+D)
(A+B)(B+C+D)=AB+AC+AD+BB+BC+BD
Standard SOP Expression: In which all the variables in the domain appear in each
product indicates a Standard SOP Expression. An SOP Expression is equal to 1 only if one or
more of the product terms in the expression is equal to 1.
In a Pos expression a single overbar cannot extend ovcr more than one variable..However
morethan one variable can have an overbar
Implementation an POS expression requires ANDing the outputs of two or more OR gates.A
sum term is produced by OR Operation and product of two or more sum items is produced
by AND operation.Thus an POS expression is implemented by OR gates connect to the
inputs of an AND gate
Standard POS Expression: In which all the variables in the domain appear in each sum
indicates a Standard POS Expression.An SOP Expression is equal to 0 only if one or more of
the sum terms in the expression is equal to 0.
Karnaugh MAP:
Karnaugh Map is similar to a truth table because it presents all possible values of input
variables and the resulting output for each value. K Map is an array of cells in which each
cell represents a binary value of the input variables.K Maps can be used with two,three,four
and five variables
Sequential circuits: are the circuits in which the output at any instant of time depends
upon the present values as well as the output values. That is the sequential circuits
have memory elements. Some examples of sequential circuits are fliup-flop, shift
registers counters etc.
Adders:
Digital computers perform a variety of information processing tasks. The basic functions
are various arithmetic operations. The most basic arithmetic operation is addition of two
binary digits
Simple addition consists of four possible elementary operations namely
0 + 0 = 0 sum
0 + 1 = 1 sum
1 + 0 = 1 sum
1 + 1 = 10 sum
↓
Carry
Arithmetic Circiuts:
Half – Adder : A combinational circuit that performs the arithmetic addition of two
binary bits is called a half-Adder. The half adder needs two binary inputs Augend and
addend and produces two binary outputs Sum and Carry.
The Block diagram and truth Table for half adder is as shown below.
The simplified Boolean functions for two outputs can be obtained directly from the
above truth table.
The simplified sum-of-product(SOP) expressions are:
S= AB + AB
C = AB
The Half –adder circuit using Basic gates AND ,OR,and NOT is as shown below:
Full Adder :
A Half-adder has only two inputs and there is no provision to add a carry coming from the
lower order bits when multibit addition is performed. To overcome this a full adder is
designed.
A full- adder is a combinational circuit that performs the arithmetic sum of three input
bits and produce two outputs( SUM and Carry). Two inputs are denoted by A and B ,which
represents two significant bits to be added. The third input Cin represents the carry from
the previous lower order bits.
The logic Diagram and truth Table for full-adder is as shown below.
The eight rows iunder the input variables designate all possible combinations of 1‘s and
0‘s.when all input bits are 0‘s,the output is zero.Ths sum S ,output is equal to 1 when only
one input is equal to 1 or when all inputs are equal to 1.The carry C output has a carry of 1
if two or three inputs are equal to 1.
From th truth table the logic equation for S can be writtern by summing up the inputs
combination for which the sum output is 1.
Cout = (A B) Cin + AB
Implementation of full adder circuit using EX-OR gates ,AND gates and OR gate is shown
below.
Block diagram representation of full adder using two half adder blocks is shown below
A 2 to 4 decoder has two inputs A and B and four outputs (D0 to C3).Based on 2 inputs
one of the four output is selected ,i.e., 2 inputs are decoded into 4 outputs.
From the truth table the logic expressions for the outputs can be written as follows:
D0 = D1 = B
D2 = A D3 = AB
Here 2 inputs are decoded into four outputs, each output representing one of the minterms
of the 2 input variables.
Using the above expressions, the logic circuit for 2 to 4 decoder can be implemented as
shown in the figure below.
3 to 8 decoder:
A 3 to 8 decoder has three inputs A,B,C and eight outputs D0 to d7.Based on 3 inputs one
of the eight output is selected. That is, the 3 inputs are decoded into 8 outputs, where each
output representing one of the minterms of the 3 input variables.
From the truth table the logic expressions for the outputs can be written as follows
D0= D1= C D2= B D3= BC
D4=A D5=A C D6 = AB D7= ABC
Using the above expressions ,the logic circuit for a 3 to 8 decoder can be implemented
using 3 NOT gates and eight 3 –input AND gates as shown in the figure. This application
implements Binary to Octal conversion.The input variables represents a binary number,and
the output will represents the eight digits in the actual numbers system.This decoder is
called as 1-of-8 decoder, since only one of eight output lines is HIGH for a particular input
combination
Applications of Decoders:
1. Decoders are used in counter systems.
2. Decoders are used in Analog-to-Digital Converters
3. Decoders outputs can be used to drive a display system.
Encoders:
Fig. Logic circuit for Decimal to BCD encoder Fig. Logic Symbol for Decimal to BCD
A decimal to BCD encoder converts each of the decimal digits (0 through 9 ) to a binary
code .This encoder has ten inputs(i0 to i9) one for each decimal digit and four outputs
corresponding to the BCD code.
From the Truth Table the output A is HIGH whenever the input 8 or 9 is HIGH.
Therefore A = I8 + I9
B = I4 + I5 + I 6 + I 7
C = I2 + I3 + I 6 + I 7
D = I1 + I 3 + I5 + I7 + I 9
Using above expressions,the Decimal inputs BCD encoder can be implemented as shown in
figure
Digits 0 through 9 with the the possible LE D display elements are as below.
Multiplexers:
Multiplex Means ‗‘many into one ‗‘. A digital multiplexer is a combinational circuit that selects
binary information from one of many input lines and directs it to a single output line. The
selection of a particular input line is controlled by a set of selection lines. There are 2 n input
lines and ‗n ‗selection lines determine input selected. A multiplexer is also called a DATA
SELECTOR since it selects one of many inputs and steers the information to the output.
Multiplexer are used in basic electronic components. They are used in mechanical switches.
When high speed of operation is needed multiplexers are used.
Multiplexer can handle two types of data that is analog and digital. The multiplexer used for
digital transmission are called digital multiplexer.
Multiplexer come in multiple variations.
2:1 multiplexer
4:1 multiplexer
16:1 multiplexer
32:1 multiplexer
The logic symbol of a 4 to 1 multiplexer is as shown below.It has four data input lines
(D0,D1,D2,D3), a single output line (y) and two select lines(S0 an S1) to select one of the
four input lines.
A logical expression for the output in terms of the data input and the selsect inputs can be
derived as follows:
Applications of multiplexer :
A Multiplexer is used in numerous applications like, where multiple data can be transmitted
using a single line.
Communication System – A Multiplexer is used in communication systems, which has a
transmission system and also a communication network. A Multiplexer is used to increase
the efficiency of the communication system by allowing the transmission of data such as
audio & video data from different channels via cables and single lines.
Computer Memory – A Multiplexer is used in computer memory to keep a vast amount of
memory in the system, and also to decrease the number of copper lines necessary to
connect the memory to other parts of the computer.
Telephone Network – A multiplexer is used in telephone networks to integrate the multiple
audio signals on a single line of transmission.
Transmission from the Computer System of a Satellite:
A Multiplexer is used to transmit the data signals from the computer system of a satellite to
the ground system by using a GSM communication
An everyday example of an analog multiplexer is the source selection control on a home
stereo unit.
Multiplexers are used in building digital semiconductors such as CPUs and graphics
controllers.
Applications of Demultiplexers :
Demultiplexer
One to Four demultiplexer ha s single input (D),four outputs(y0 to y3) and two select
inputs(S0 and S1). The logic symbol and truth table is given as below.
From the truth table the data input is connected to output y0 when S1=0 and S1=0
Similarly y0 = D when S1 = 0 and S0 = 0
y1 = D when S1 = 0 and S0 = 1
y2 = D when S1 = 1 and S0 = 0
y3 = D when S1 = 1 and S0 = 1
The expression for the outputs can be written as
Y0 = D y1= S0D
Y2 = S1 0D y3 = S1S0D
Using the above expression a 1 to 4 demux can be implemented as shown above .
Sequential circuits:
The logic circuits whose outputs at any instant of time depend not only on the present
inputs but also on the past outputs are called sequential circuits.
It consists of memory elements capable of storing binary information. The sequential circuit
receives binary information from external inputs.
The block diagram of a sequential circuit is as shown below
Synchronous sequential circuit is a system whose behavior can be defined from the
knowledge of its signals at discrete instant of time. The synchronization is achieved by a
master clock generator which generates periodic clock pulses.
Asynchronous sequential circuit depends upon the order in which input signals change
and can be affected at any instant of time . In asynchronous sequential circuits, events can
occur after one event is completed and there is no need to wait for a clock pulse.
In general , Asynchronous sequential circuits are considerably faster than Synchronous
sequential circuits. but in Asynchronous sequential circuit as events are allowed to occur
without any synchronization the system may become unstable.
Flip flops:
It is a simplest type of sequential circuit. It is the basic memory element or memory
cell which can store 1bit ( A binary either 0 OR 1).It can store binary state(0 OR 1) as long
as power is available to the circuit.It is also known as a latch.
Clock:
In synchronous sequential circuits, the term synchronous means the changes in the
output occur at a specified point is called the clock .The clock is a square wave or
rectangular pulse train.
Types of Triggering:
Based on the specific interval or point in the clock during or at which triggering
of flip flops takes place, it can be classified into two different types.
The flip flops that responds to a clock signal during the time at which clock is in logic
low state are called low level triggered flip flops. This type is identified by a straight lead
with a low state indicator bubble at the clock output .
The draw back of level triggering is that as long as the clock is positive or negative,
the Flip Flop changes its state more than once or many times for the change in inputs. If
the inputs are made stable for the entire clock duration, then the output changes only once.
On the other hand , if the frequency of input change is higher than the input clock
frequency, the output of the flip flop undergoes multiple changes when the clock is positive
or negative.
The flip flops that respond to a clock signal during the high-to-low (-ve edge) transition are
called –ve edge triggering Flip Flops. This type is identified by a clock input with a bubble as
shown below
The cross-coupled connections from the output of one gate to input of other gate constitute
feedback path.
The truth table is as shown below:
(a) (b) NAND-Gate based SR Latch:The NAND-Gate based SR Latch is constructed using
cross coupled NAND gates and its truth table is as shown below.
The clocked SR Flip-Flop circuit diagram using NAND based latch is as shown below.
Operation
S.N. Condition Operation
Jk flip flops:
The basic gated SR NAND flip flop suffers from two basic problems: number one,
the S = 0 and R = 0 condition (S = R = 0) must always be avoided, and number two, if S or
R change state while the enable input is high the correct latching action may not occur.
Then to overcome these two fundamental design problems with the SR flip-flop design, the
JK flip Flop was developed.
The JK flip-flop is the most versatile flip-flop, and the most commonly used flip flop.
The functioning of the JK Flip-Flop is similar to that of the RS flip-flop. Like the RS flip-flop, it
has two data inputs, J and K, and a clock input. It has no undefined states or race condition.
1 J = K = 0 (No change)
When clock = 0, the slave becomes active and master is
inactive. But since the S and R inputs have not changed, the
2 J = 0 and K = 1 (Reset)
Clock = 1 − Master active, slave inactive. Therefore outputs of
3 J = 1 and K = 0 (Set)
Clock = 1 − Master active, slave inactive. Therefore outputs of
4 J = K = 1 (Toggle)
Clock = 1 − Master active, slave inactive. Outputs of master
D-Flip Flop has one input called Delay(D) input and 2 Outputs Q and qbarr . It can be
constructed from SR FF by inserting an inverter between S and R and assigning symbol D to
the S input.
Operation:
When clock input is low , D input has no effect, since S and R inputs of NAND gates 1 and 2
are kept HIGH.
When Clock=1 and D=1 NAND gate1 output goes 0 which is the S input and NAND gate 2
output goes HIGH which is the R input i.e., S=0 and R=1. The NAND based Flip Flop output
will be 1 i.e., it follows D input.
When clock=1 the Q output will take the value of D input. As the transfer of data from the
input D to the output Q is delayed, it is known as Delay(D) Flip Flop. The Delay depends on
the clock
Shift Registers:
A register is a group of flip flops suitable for storing binary information. Each Flip flop is a
binary cell capable of storing 1-bit of information. An n-bit register has a group of n flip
flops and is capable of storing n-bits of information.
The register is mainly used for storing and shifting the binary data entered into it from an
external source.
Types of shift registers:
They are classified into 4 types based on how binary information is entered or shifted out:
1.Serial -in-Serial-Out (SISO)
2.Serial -in-Parallel-Out (SIPO)
3.Parallel -in-Serial-Out (PISO)
4.Parallel-in-Parallel-Out (PIPO)
Operation
Before application of clock signal, let Q3 Q2 Q1 Q0 = 0000 and apply LSB bit of the number
to be entered to Din. So Din = D3 = 1. Apply the clock. On the first falling edge of clock, the
FF-3 is set, and stored word in the register is Q3 Q2 Q1Q0 = 1000.
In this mode, the 4 bit binary input B0, B1, B2, B3 is applied to the data inputs D0, D1,
D2, D3 respectively of the four flip-flops.Data is applied to the input terminals when the clock
pulse is applied.Accordingly input data( D0, D1, D2, D3) are shifted into the
outputs(Q3,Q2,Q1,Q0 )of the Flip Flops.
When shift/Load is low, AND gates 2,4 and 6 are enabled. Allowing the data at
parallel inputs,i.e, B1,B2,B3 to the inputs respective of Flip Flops. The input B0 is directly
connected to the first FF input.
When shift/Load is high, AND gates 2,4 and 6 are disabled and the remaining AND gates 1,3
and 5 are enabled allowing the data bits to shift right from one stage to the next.
The OR gates allow either normal shifting operation or the parallel data entry operation
depending on which AND gates are enabled.
Counters
A counter is a sequential circuit consisting of set of Flip Flops,used to count the sequence of
input pulses presented to it in digital form
3.Modulus counters.
Single mode counter operates in sinlge mode i.e., it counts either in UP or DOWN mode,
where as Multi mode counter operates in both UP and DOWN modes.
Modulus counters are defined based on the number of states they are capable of counting
.Ex. mod 5 counter has 5 states .
All the Flip Flops do not change their states All the Flip Flops change their
2
simultaneously. states simultaneously
The clock is connected to only first Flip Flop and
The clock is connected directly
3 other Flip Flops are triggered by the output of
to all Flip Flops.
previous Flip Flops.
4 It requires minimum hardware. It requires more hardware
Easy to design(It is simplest in term of logical Difficult to design.(complex in
5
operation) terms of logical operations)
They will not suffer from
6 They suffer from Spikes
Spikes
7 Slower operation speed Faster operation speed
8 Also known as serial or Ripple counter Also known as parallel counter
The sequence can be either upward(UP-counter) or
It is possible to design for any
9. downward(down-counter).And it can‘t have any
specified random sequence.
specified random sequence.
ASYNCHRONOUS COUNTERS:
The term Asynchronous refers to events that do not have a fixed time relationship
with each other . It is the one in which the flip flops within the counter do not change the
states at exactly the same time because they dont have common clock pulse.
Ripple or serial counters can be constructed as 2 bit binary counters,3 bit binary counters,4
bit binary counters upto modulus N (< 2n ) .
Mod-Number or MODULUS:
The Mod-number of a counter is the total number of states it sequences through in
each complete cycle.In other words, the number of states through which the counter
passes before returning to the starting state.
Mod-number = 2n where n= Number of flip flops
The maximum binary number counted by the counter is 2n - 1.
Ex. n= 4, 4-flip flop counter
Mod number = 2 4 = 16
Maximum binary number counted by the counter is 24 - 1 = 16 - 1 = 15 .
The below figure shows a 4-bit binary ripple counter constructed using JK flip flops.The
output of FF1 drives FF2, the output of
FF2 drives FF3 and the output of FF3 drives FF4. All the J&K inputs are connected to
Vdd,where each ff toggles on the negative edge of its clock input.
State Q4 Q3 Q2 Q1
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
0 0 0 0 0
SYNCHRONOUS COUNTERS
The speed of operation of asynchronous counter is low because the propagation delay time
of all Flip Flops is cumulative and the total settling time is the product of the total number of
Flip Flops and the propagation delay of a single flip flop.
In synchronous counters the clock pulse is applied to all the flip flops simultaneously. The
speed of operation in synchronous counters is limited by the propagation delay of control
gating and flip flop.
4 BIT SYNCHRONOUS COUNTERS:
A 4-bit (MOD 16) synchronous counter with parallel carry is shown below:
It can be seen that the external clock pulses (pulses to be counted) are fed directly to each
J-K flip-flop in the counter chain and that both the J and K inputs are all tied together, but
only in the first flip-flop, flip-flop A (LSB) are they connected HIGH, logic "1" allowing the
flip-flop to toggle on every clock pulse.
The J and K inputs of flip-flop B are connected to the output "Q" of flip-flop A, but
the J and K inputs of flip-flops C and D are driven from AND gates which are also supplied
with signals from the input and output of the previous stage. If we enable each J-K flip-flop
to toggle based on whether or not all preceding flip-flop outputs (Q) are "HIGH" we can
obtain the same counting sequence as with the asynchronous circuit but without the ripple
effect, since each flip-flop in this circuit will be clocked at exactly the same time. As there is
no propagation delay in synchronous counters because all the counter stages are triggered
in parallel the maximum operating frequency of this type of counter is much higher than
that of a similar asynchronous counter.
Truth table of 4-bit Binary Synchronous Counter is shown below
State Q4 Q3 Q2 Q1
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
0 0 0 0 0
The result is a four-bit synchronous "up" counter. Each of the higher-order flip-flops are
made ready to toggle (both J and K inputs "high") if the Q outputs of all previous flip-flops
are "high." Otherwise, the J and K inputs for that flip-flop will both be "low," placing it into
the "latch" mode where it will maintain its present output state at the next clock pulse. Since
the first (LSB) flip-flop needs to toggle at every clock pulse, its J and K inputs are connected
to Vcc or Vdd, where they will be "high" all the time. The next flip-flop need only "recognize"
that the first flip-flop's Q output is high to be made ready to toggle, so no AND gate is
needed. However, the remaining flip-flops should be made ready to toggle only when all
lower-order output bits are "high," thus the need for AND gates.
To make a synchronous "down" counter, we need to build the circuit to recognize the
appropriate bit patterns predicting each toggle state while counting down. Not surprisingly,
when we examine the four-bit binary count sequence, we see that all preceding bits are
"low" prior to a toggle (following the sequence from bottom to top):
Since each J-K flip-flop comes equipped with a Q' output as well as a Q output, we can use
the Q' outputs to enable the toggle mode on each succeeding flip-flop, being that each Q'
will be "high" every time that the respective Q is "low:"
Taking this idea one step further, we can build a counter circuit with selectable between
"up" and "down" count modes by having dual lines of AND gates detecting the appropriate
bit conditions for an "up" and a "down" counting sequence, respectively, then use OR gates
to combine the AND gate outputs to the J and K inputs of each succeeding flip-flop
Applications of counters
1.The counters in general can be used to measure frequency. For eg, we can use it to count
line frequency.
2. As object counters.
3. In various Analog to Digital converters
4. Used in Timers.
5. can be used as a frequency counter.
6. Counters can also be used as a digital clock- a time clock which displays the time of the
day in hours,minutes and seconds.
Introduction
The term computer is derived from the word compute or calculate. Computer is an
electronic device which is capable of doing computations or calculations with high speed &
accuracy. Charles Babbage was the father of computer. The applications of computers
depends totally on the human creativity & imagination using the artificial intelligence.
Applications of computers include education, government, industries, social science, law,
entertainment, different scientific & research fields.
Characteristics of Computers
The major characteristics of computer are :-
1. Speed
2. Accuracy
3. Reliability
4. Storage Capability
5. Versatility
6. Diligence
Speed :- The processing speed is extremely fast i.e. it can execute million
instructions per seconds. The speed of computer is calculated in megahertz. i.e
One million instructions per second. Presently powerful computers can perform
billions of instructions operation in 1 second.
Accuracy :- . Accuracy of a computer is consistently high and the degree of
accuracy of a particular computer depends on the instructions and the type of
processor. Computer is capable of doing only what is instructed to do, faulty
instructions for processing the data automatically lead to faulty results.
Reliabilty :- Reliability is an attribute of any computer that consistently
performs according to its specifications. It is the measurement of the
performance of the computer.
Storage Capability :- Computers can store large amount of data & it will
provide the information immediately. Storage capacity refers to how much disk
space one or more storage devices provides. It measures how much data a
computer system may contain. For an example, a computer with a 500GB hard
drive has a storage capacity of 500 gigabytes. A network server with four 1TB
drives, has a storage capacity of 4 terabytes.
Versatility:- It performs multiple tasks simultaneously. The group of jobs are
called tasks. More than one process work simultaneously are called
multiprocessing.
Diligence:-A computer does not suffer from limitations associated with living
beings like tiredness and lack of concentration and hence can work for hours at a
stretch without error arising. This characteristic is especially useful for those jobs
where same tasks are done again and again. It can perform long and complex
calculations with same speed and accuracy from the start till the end.
Evolution of Computers
Pebbles‘ are used to represent numbers, they are known to be the earliest
device for computation. Afterwards sand tables were modified extensively & these
modifications device are called as Abacaus. This device allows users to do computations
using a system of sliding beads arranged on a rack. Manipulating beads on the wires carry
out arithmetic operations.
In 1614 John Napier made a more sophisticated computing machine called Napier
bones. It is a small instrument made of ten rods, on which multiplication table was
engraved. Napier also played a key role in the development of logarithms.
In 1620 the inventions of logarithms & development of another invention slide rule.
The two scales enabled the slide rule to perform multiplication & division by a method of
addition & subtraction.
In 1642 Blaise Pascal invented the first functional automatic calculator. It had a
complex arrangement of wheels, gears & windows for the display of numbers.This device
was limited to the addition & subtraction.
In 1694 Von Leibriz extended the Pascal‘s design to perform multiplication,division &
to find square root. This machine was called stepped reckoner.
In 1801 Jacquard invented a powerloom with an automatic card reader are called
Punch Card machine.
In 1822 Charles Babbage devised a calculating machine are called difference engine.
The difference engine can be viewed as a complex Abacus. It was intended to solve
differential equations.
Analytical engine is considered to be the first general purpose programmable
computer. Babbage also designed this device to advance or reverse the flow of punched
cards to permit branching to any desired instruction within a program. This was the
fundamental difference between analytical engine & difference engine. Lady Ada Lovelace
helped him in the development of analytical engine. Babbage never completed the
analytical engine, but his proposal for this device reviewed the basic elements of modern
computers.
In 1896 Hollerith founded the tabulating machine company which was named IBM.
In 1904 Sir John Ambrose Fleming worked to developed the first thermionic valve
are called vacuum tubes. Two element vacuum tubes are called diodes. This is the first
generation of computers.
In 1906 Lee de Forest introduced vacuum tube.
In 1931 Vannevar Bush introduced the differential analyser to solve the differential
equations.
In 1938 Claude Shannon designed the connection between electronic circuits &
Boolean algebra.
Early Computers.
MARK-I Computer from the year 1937 to 1944.It was essentially a serial collection
of electromechanical calculators & had many similarities to Babbage Analytical Machine. It
was capable of performing additions, subtraction, division, multiplication & table reference.
It was extremely slow, noisy & bulky. The length was 50 feet long, 8 feet high & weighted
5 tons.
ABC Computer In 1939 John Vincent Atansoft & Cliffored Berry formulated the
idea of using the binary number system to simplify the construction of an electronic
calculator. They built a first electronic computer named as ABC (Atansoft Berry Cliffored ).It
is considered the first computing machine which introduced the idea of binary arithmetic,
regenerative memory & logic circuits.
COLOSSUS In 1944 British mathematician Alan mathison created a computer called
COLOSSUS which comprised 1800 vacuum tubes. This was the one of the world‘s earliest
working programmable electronic digital computer.
ENIAC In 1946 John Eckert & John Mauchly developed Electronic Numerical
Integrator & Calculator (ENIAC). It embodied all the components & concepts of high
speed,electronic digital computers. This machine discriminate the sign of numbers, compare
quantities & add, sub, multiply, divide & extract square root. ENIAC consist of 108000
vacuum tubes, required around 160 KW of electricity & weighted 30 tons.It had a limited
amount of space to store & manipulate information.
EDVAC John Eckert & John Mauchly proposed the development of Electronic
Discrete variable Automatic Computer (EDVAC). It came into existence in 1949.It was the
first electronic computer to use the stored program concept introduced by John Von
Neuman. It could stop any time & resume again. It contained 4000 vacuum tubes & 1000
crystal diodes.
EDSAC Electronic Delay Storage Automatic Calculator (EDSAC) was BASED ON John Von
Neuman‘s stored program concept. The first successful program was run in 1949 .It used
mercury delay lines for memory & vacuum tubes for logic. It had 3000 vacuum valves
arranged on 12 racks & used tubes filled with mercury for memory. It executed 650
instructions per second & occupied a room measured 5 metres by 4 metres.
UNIVAC Universal Automatic Computer was the first commercially available electronic
computer. It was the first general purpose computer which was designed to handle
numerical & textual information. UNIVAC computed at the speed of around 120-3600
microseconds. Magnetic tapes were used as input & output mediums. At a speed of 13000
caharacters per seconds. The machine was 25 feet by 50 feet in length,contained 5600
tubes,18000 crystals & 300 relays.
Generations of Computers
The word generation is described as a stage of technological development or
innovation. A major technological development resulted in smaller, cheaper, powerful,
efficient & reliable devices. According to the type of processor installed in a machine there
are five generations of computers.
First Generation (1940 -56) – Vacuum Tubes
Second Generation (1956-63)- Transistors
Third Generation (1964- Early 1970) – Integrated Circuits
Fourth Generation ( Early 1970s –Till Date) – Microprocessor
Fifth Generation (Present & Beyond) – Artificial Intelligence
UltraBook
ChromeBook
Classification
Computers can be classified into three categories
Analog Computer
An analog computer is a form of computer that uses continuous physical phenomena such
as electrical, mechanical, or hydraulic quantities to model the problem being solved.
Digital Computer
A computer that performs calculations and logical operations with quantities represented as
digits, usually in the binary number system.
Hybrid Computer (Analog + Digital)
A combination of computers those are capable of inputting and outputting in both digital
and analog signals. A hybrid computer system setup offers a cost effective method of
performing complex simulations.
Digital Computers
Super Computer
The fastest and most powerful type of computer Supercomputers are very expensive and
are employed for specialized applications that require immense amounts of mathematical
calculations. For example, weather forecasting requires a supercomputer. Other uses of
supercomputers include animated graphics, fluid dynamic calculations, nuclear energy
research, and petroleum exploration.
The chief difference between a supercomputer and a mainframe is that a supercomputer
channels all its power into executing a few programs as fast as possible, whereas a
mainframe uses its power to execute many programs concurrently.
Note: This is only Basic Information for students. Please
refer “Reference Books” prescribed as per syllabus
DEPARTMENT OF TECHNICAL EDUCATION E-CONTENT
Mainframe Computer
A very large and expensive computer capable of supporting hundreds, or even thousands, of
users simultaneously. In the hierarchy that starts with a simple microprocessor (in watches,
for example) at the bottom and moves to supercomputers at the top, mainframes are just
below supercomputers. In some ways, mainframes are more powerful than supercomputers
because they support more simultaneous programs. But supercomputers can execute a
single program faster than a mainframe.
Mini Computer
A midsized computer. In size and power, minicomputers lie
between workstations and mainframes. In the past decade, the distinction between large
minicomputers and small mainframes has blurred, however, as has the distinction between
small minicomputers and workstations. But in general, a minicomputer is a multiprocessing
system capable of supporting from 4 to about 200 users simultaneously.
Micro Computer or Personal Computer
• Desktop Computer: a personal or micro-mini computer sufficient to fit on a desk.
• Laptop Computer: a portable computer complete with an integrated screen and
keyboard. It is generally smaller in size than a desktop computer and larger than
a notebook computer.
• Palmtop Computer/Digital Diary /Notebook /PDAs: a hand-sized computer.
Palmtops have no keyboard but the screen serves both as an input and output device.
Workstations
A terminal or desktop computer in a network. In this context, workstation is just a generic
term for a user's machine (client machine) in contrast to a "server" or "mainframe."
Computer System
Input unit
The role of an input in a computer system is to provide data for further processing. An input
consists of data or commands that are entered into the computer system usually via an
input device such as a keyboard, mouse, OMR, barcode reader, scanner etc. The input data
is converted into digital data that can be dealt with by the computer.The input is already in
digtial format, for example when it has been transmitted from another computer but most of
the time it needs to be converted into a digital format before processing can take place.
Examples : Keyboard, Mouse, Touch screen, scanner, joystick etc
Output unit
Output is the stage where the information obtained via processing is presented to the user
in a suitable format. Outputs involve converting digital data into some physical effect that
the person senses with eyes or ears. This means that we might be able to see the output, a
print out or displayed on the computer screen or we can hear the output via music, voice
instructions or a computer generated alarm.
Examples : Monitor, Printer, Speaker.
Memory unit
Memory is a storage unit. It is a unit where all the information & data are
stored. The memory that directly communicates to CPU is called primary memory. There are
two types of memory.
I Primary Memory
Ex :- Random Access Memory ( RAM) ,Read Only Memory (ROM)
II Secondary Memory
Backing storage memory are called secondary memory.
Ex : Magnetic hard Disk, Magnetic Tape, Compact Disk/ Digital versatile Disk, Pen Drive etc
Applications
Business
A computer has high speed of calculation, diligence, accuracy, reliability, or versatility which
made it an integrated part in all business organisations.
Computer is used in business organisations for:
Payroll calculations
Budgeting
Sales analysis
Financial forecasting
ATM machines are making it even easier for customers to deal with banks.
Education
The computer has provided a lot of facilities in the education system.
The computer provides a tool in the education system known as CBE (Computer
Based Education).
CBE involves control, delivery, and evaluation of learning.
The computer education is rapidly increasing the graph of number of computer
students.
There are number of methods in which educational institutions can use computer to
educate the students.
Marketing
In marketing, uses of computer are following:
Advertising - With computers, advertising professionals create art and graphics,
write and revise copy, and print and disseminate ads with the goal of selling more
products.
At Home Shopping - Home shopping has been made possible through use of
computerised catalogues that provide access to product information and permit
direct entry of orders to be filled by the customers.
Health Care
Computers have become important part in hospitals, labs, and dispensaries. The computers
are being used in hospitals to keep the record of patients and medicines. It is also used in
scanning and diagnosing different diseases. ECG, EEG, Ultrasounds and CT Scans etc., are
also done by computerised machines.
Some major fields of health care in which computers are used are:
Diagnostic System - Computers are used to collect data and identify cause of
illness.
Lab-diagnostic System - All tests can be done and reports are prepared by
computer.
Patient Monitoring System - These are used to check patient's signs for
abnormality such as in Cardiac Arrest, ECG etc.
Pharma Information System - Computer checks Drug-Labels, Expiry dates,
harmful drug‘s side effects etc.
Surgery : Nowadays, computers are also used in performing surgery
Engineering Design
Computers are widely used in Engineering purpose.
One of major areas is CAD (Computer aided design). That provides creation and
modification of images. Some fields are:
Structural Engineering - Requires stress and strain analysis for design of Ships,
Buildings, Budgets, Airplanes etc.
Industrial Engineering - Computers deal with design, implementation and
improvement of integrated systems of people, materials and equipments.
Architectural Engineering - Computers help in planning towns, designing
buildings, determining a range of buildings on a site using both 2D and 3D
drawings.
Military
Computers are largely used in defence. Modern tanks, missiles, weapons etc. Military also
employs computerised control systems. Some military areas where a computer has been
used are:
Missile Control
Military Communication
Military Operation and Planning
Smart Weapons
Communication
Communication means to convey a message, an idea, a picture or speech that is received
and understood clearly and correctly by the person for whom it is meant for. Some main
areas in this category are:
E-mail
Chatting
Usenet
FTP
Telnet
Video-conferencing
Government
Computers play an important role in government. Some major fields in this category are:
Budgets
Sales tax department
Income tax department
Male/Female ratio
Computerization of voters lists
Computerization of driving licensing system
Computerization of PAN card
Weather forecasting
Computer Software –
Software :- It is a collection of programs that enable the user to interact with
a computer and its hardware to perform tasks.
Software categories:-
Software is divided into two main categories:
(1) System software: controls the basic functions of a computer and comes
preinstalled with the machine.
Ex : Operating System, Compiler, Loader, Linker, Translator
Machine language,
Programming language that can be directly understood and obeyed by
a machine (computer) without conversion (translation). Different for each
type of CPU, it is the native binary language (comprised of only
two characters: 0 and 1) of the computer and is difficult to be read and
understood by humans.
UNIT – 6 : PERIPHERALS
Input devices:
The devices which are responsible for getting in all kinds of original information into the
computer are called input devices. All input devices are designed to get different types of
data like video, audio, text, Graphics and images into the computer system.
The most common input deviceis a keyboard used for manual data entry process. The keys
are arranged on a standard keyboard can be identified in terms of 5 key groups.
1.Alpha Numeric key
2.Modifier key
3.Functional key
4.cursor movement key
5.Special purpose key
Keyboard consists of electronic circuit to decide which key has been pressed.The keyboard
control electronic circuits it performs major 3 functions
1.Sensing a key pressed.
2.Encode the sensed key.
3.Send the encoded data to computer.
Working of a Keyboard: Inside the keyboard, there are metallic plate, circuit board and
processor, which are responsible for transferring information from the keyboard to the
computer. Depending upon the working principle, there are two main types of keys, namely,
capacitive and hard-contact.
When a key is pressed, the corresponding key switch is activated. The keyboard electronic
circuit make use of matrix scanning technique in order to determine which key has been
pressed. Then a standard 8 bit binary code called as scan code is generated to correspond
to the depressed key value activate key switch .Now this 8 bit scan code is sent into the
computer as an input data.
The keyboard control electronics circuitry not only just senses the pressed key but it also
keep track that when the operator or user releases that key. Each separate key action is
recorded by the keyboard control electronic circuit and sent to the computer as a distinct
scan code. The scan codes are communicated to the processing unit via interrupt
mechanism.
Mouse:
The modern digital system consists of a display screen(VDU),a keyboard for entering
numbers and text matter and a hand held pointing device called as a Mouse. Mouse is a tiny
box resting on a small tracker ball with 2 or 3 buttons on top and a thin flexible cable
connects it to the CPU of computer. Mouse is a graphical input device.
The mouse works by measuring how much it moves in a given direction. A mechanical
mouse has a rubber ball in the bottom. Inside the bottom of the mouse are three rollers. It
is there to hold the ball against the other two rollers. The other two rollers are usually
larger, and of different color. These rollers are mounted at a 90° angle to the one other, one
roller measures how fast the ball is turning horizontally and the other measures how fast it
is turning vertically. When the ball rolls, it turns these two rollers. The rollers are connected
to axles, and the axles are connected to a small sensor that measures how fast the axle is
turning. Both sets of information are passed to the electronics inside the mouse.
Optical mouse:
It uses an infrared light or a light emitting diode(LED) to illuminate the flat surface on which
it is placed and a light sensitive device senses the light reflected from the surface. The
reflected light changes as the mouse rotates.A light sensor senses and allow for generating
pulse outputs. It is a non mechanical device.Clicking,double clicking and dragging graphical
objects are carried out with the left mouse button. Right Clicking can be carrid out with the
right mouse button that opens a short cut menu of properties.
Touch screen:
Touch Screen computer system consists of sensors on the screen outer surface to Locate or
point touch of a finger movement on the screen.The touch screen is touch Panel is a glass
coated with conductor. Electronic sensor circuit are used to detect touch position on the
conductive coating. The touch screen systems like bank AUTOMATIC TELLER MACHINE
accept user choice of account types, transaction type and money withdrawal details etc
It consists of 3 main parts, they are touch sensors, controller and driver software.
Light Pen :-
It is a hand held electro-optical pointing graphical input device that make use of photo
electric detector to select objects or images & drawings on the screen. It is also called
mouse pen.
The light sensitive photodiodes or sensors will capture the light reflection of the screen
objects at the point at which light pen is pointed on the screen.
The movement of the light pen is directed towards the screen will draw the lines or images
at the selected places on the display screen.
They are used where drag-n-drop, point and menu driven selections.
Joystick
It is a thick stick mounted on spherical ball that rotates in a socket to provide right left &
forward & backward movements. It allows to move freely in two directions. The movement
is sensed & conveyed to the system & finally on to the game being played.
It is a gaming device that provides three types of game controls –digital, glide & direct.
The digital control restrict the motion of joystick handle in of two directions. The x-axis
movement
is forward-backward or up-down and y-axis movement is left-right or sliding.
Applications of Joystick
It is used for playing games.
It is used in Flight Simulators.
It is use in Electrical Rail Engines ,Earth Movers & Excavators
Used in Industrial Robot Control.
Used in CAD/CAM Systems.
Scanner
A scanner is a device that captures images from photographic prints, posters, magazine
pages, and similar sources for computer editing and display. Scanners come in hand-held,
feed-in, and flatbed types and for scanning black-and-white only, or color. Very high
resolution scanners are used for scanning for high-resolution printing, but lower resolution
scanners are adequate for capturing images for computer display. Scanners usually come
with software, such as Adobe's Photoshop product, resize and modify a captured image.
There are four different types of optical scanners.
Optical Mark Reader (OMR) :- It detects optically the presence of intended darkened marls
as required responses. It senses a little less light at the darkend. It scans the OMR sheet
quickly and detects the specific darker area.
Bar Code Reader (BCR) :- It is a special type of image scanner. It will convert the printed
images, typed documents, numbers etc into digitized formats that can be recorded. It scans
the bar code image on any of the items. It emits a high intensity beam of red laser beam on
to a printed bar code image.
Flat bed bar code reader & hand held bar code reader are used in food worlds, shops etc.
Web Camera:- A web camera is a video camera that feeds its image in real time to or
through a computer to computer network. When "captured" by the computer, the video may
be saved, viewed or sent on to other networks via systems such as the internet, and email
as an attachment. When sent to a remote location, the video stream may be saved, viewed
or on sent there. Unlike an IP camera a webcam is generally connected by a USB cable, or
similar cable, or built into computer hardware, such as laptops.
The term 'webcam' (a clipped compound) may also be used in its original sense of a video
camera connected to the Web continuously for an indefinite time, rather than for a
particular session, generally supplying a view for anyone who visits its web page over the
Internet. Some of them, for example, those used as online traffic cameras, are expensive,
rugged professional video cameras
Output Devices
An output device is any device used to send data from a computer to another device.
Computer data output that is meant for humans is in the form of audio or video. Most
output devices used by humans are monitors, projectors, speakers, headphones and
printers.
Printers
Printer is an output device, which is used to print information on paper.
There are two types of printers:
Impact Printers
Non-Impact Printers
Impact Printers
The impact printers print the characters by striking them on the tape/ribbon which is then
pressed on the paper.
Characteristics of Impact Printers are the following:
Very low consumable costs
Very noisy
Useful for bulk printing due to low cost
There is physical contact with the paper to produce an image
These printers are of two types
Character printers
Line printers
Character Printers
Character printers are the printers which print one character at a time.
These are further divided into two types:
Dot Matrix Printer(DMP)
Daisy Wheel
Dot matrix printer
In the market one of the most popular printers is Dot Matrix Printer. These printers are
popular because of their ease of printing and economical price. Each character printed is in
form of pattern of dots and head consists of a Matrix of Pins of size (5*7, 7*9, 9*7 or 9*9)
which come out to form a character that is why it is called Dot Matrix Printer.
Advantages
Inexpensive
Widely Used
Other language characters can be printed
Disadvantages
Slow Speed
Poor Quality
Daisy wheel
Head is lying on a wheel and pins corresponding to characters are like petals of Daisy
(flower name) that is why it is called Daisy Wheel Printer. These printers are generally used
for word-processing in offices which require a few letters to be sent here and there with
very nice quality.
Advantages
More reliable than DMP
Better quality
The fonts of character can be easily changed
Disadvantages
Slower than DMP
Noisy
More expensive than DMP
Line Printers
Line printers are the printers which print one line at a time.
Advantages
Very high speed
Disadvantages
Very expensive
Characters fonts cannot be changed
Chain printer
In this printer, chain of character sets are used so it is called Chain Printer. A standard
character set may have 48, 64, or 96 characters.
Advantages
Character fonts can easily be changed.
Different languages can be used with the same printer.
Disadvantages
Noisy
Non-impact Printers
Non-impact printers print the characters without using ribbon. These printers print a
complete page at a time so they are also called as Page Printers.
These printers are of two types
Laser Printers
Inkjet Printers
Characteristics of Non-impact Printers
Faster than impact printers.
They are not noisy.
High quality.
Support many fonts and different character size.
Laser Printers
These are non-impact page printers. They use laser lights to produce the dots needed to
form the characters to be printed on a page.
Advantages
Very high speed
Very high quality output
Give good graphics quality
Support many fonts and different character size
Disadvantages
Expensive.
Cannot be used to produce multiple copies of a document in a single printing.
Inkjet Printers
Inkjet printers are non-impact character printers based on a relatively new technology. They
print characters by spraying small drops of ink onto paper. Inkjet printers produce high
quality output with presentable features.
They make less noise because no hammering is done and these have many styles of printing
modes available. Colour printing is also possible. Some models of Inkjet printers can
produce multiple copies of printing also.
Advantages
High quality printing
More reliable
Disadvantages
Expensive as cost per page is high
Slow as compared to laser printer
Monitors
Monitors, commonly called as Visual Display Unit (VDU), are the main output device of a
computer. It forms images from tiny dots, called pixels that are arranged in a rectangular
form. The sharpness of the image depends upon the number of pixels.
There are two kinds of viewing screen used for monitors.
Cathode-Ray Tube (CRT)
Flat- Panel Display
Cathode-Ray Tube (CRT) Monitor
CRT is an evacuated conical glass tube with phosphorus coated on the inner surface
called screen .A source of electrons called electron gun at one end of the tube emits
electron beam. An oxide coated metal called a cathode is heated by a heating filament.
When the cathode gets heated then it emits electrons continuously. The electrons
emitted by cathode are accelerated by applying a positive voltage to control grid. The
control grid voltage determines the number electrons finally succeed to strike on the
phosphor coated screen. If a negative grid voltage is applied to the control grid then no
electrons are allowed to pass the grid.
The electrons come out of the control grid are further accelerated by an accelerating
anode
To which a positive voltage is applied. Hence accelerated electrons are focussed to
produce a sharp & highly concentrated beam by a focusing structure.
The electron beam intended for striking on a screen finally come out of the hole of
cylindrical metal enclosure of focusing structure.
The total arrangement of electron beam source the cathode, accelerating anode and
focusing assembly is called electron gun.
Finally electron beam passes through a set of horizontal deflection plates & then
vertical deflection plates. The electron beam movement can be controlled along x-axis & y-
axis over the screen surface. The electron beam when it comes out of deflection plates,
further accelerated along the path towards the screen, by applying a high positive voltage to
a inner metallic coating of the conical surface of the CRT screen.
CRT Advantages
1. Resolution and Aspect Ratio. They operate at any resolution, geometry and aspect
ratio without the need for rescaling the image.
2. Highest Resolutions CRTs run at the highest pixel resolutions generally available.
3. Black-Level and Contrast Produce a very dark black and the highest contrast levels
normally available. Suitable for use even in dimly lit or dark environments.
4. Color and Gray-Scale Accuracy CRTs produce the very best color and gray-scale
and are the reference standard for all professional calibrations. They have a perfectly
smooth gray-scale with an infinite number of intensity levels. Other display
technologies are expected to reproduce the natural power-law Gamma curve of a
CRT, but can only do so approximately.
5. Motion Artifacts CRTs have fast response times and no motion artifacts. Best for
rapidly moving or changing images.
6. Cost CRTs are less expensive than comparable displays using other display
technologies.
CRT Disadvantages
1. Sharpness The CRT's Gaussian beam profile produces images with softer edges
that are not as sharp as an LCD at its native resolution. Imperfect focus and color
registration also reduce sharpness. Generally sharper than LCDs at other than native
resolutions.
2. Interference All color CRTs produce annoying Moiré patterns. Many monitors
include Moiré reduction, which normally doesn't eliminate the Moiré interference
patterns entirely.
3. Geometric Distortion Subject to geometric distortion and screen regulation
problems. Also affected by magnetic fields from other equipment including other
CRTs.
4. Brightness Relatively bright but not as bright as LCDs. Not suitable for very
brightly lit environments.
5. Screen Shape Some CRTs have a rounded spherical or cylindrical shape screen.
Newer CRTs are flat.
6. Emissions CRTs give off electric, magnetic and electromagnetic fields. There is
considerable controversy as to whether any of these pose a health hazard,
particularly magnetic fields. The most authoritative scientific studies conclude that
they are not harmful but some people remain unconvinced.
7. Physical They are large, heavy, and bulky. They consume a lot of electricity and
produce a lot of heat.
MEMORY
Introduction
Memory refers to the devices used to store information for use in a computer. The required
storage facilities are provided with separate & dedicated unit are called memory unit. There
are two types of memory i.e primary memory & secondary memory.
Primary Memory :- The primary memory is also called main memory which is required for
execution of the programs. It is a semiconductor memory. It is volatile in nature. Volatile
means contents are lost when the computer is switched off. This memory communicates
directly to the CPU. It is in the form of Integrated Circuits(IC).
Ex. Random Access Memory (RAM)
Read Only Memory (ROM) :- ROM permits read operation only. CPU access the contents
of ROM chips for system routines like BIOS, monitor programs, driver routines, POST
diagnostic routines etc. It is Non-Volatile in nature. It retains stored information even if
there is power failure or switched off or shut down. The stored information can be read
only. The stored contents are not altered.
Types of ROM
There are different types of ROM‘s.
Masked ROM
Programmable ROM (PROM)
Erasable Programmable ROM (EPROM)
Electrically Erasable Programmable ROM (EEPROM)
Flash ROM (Flash BIOS)
Masked ROM :-
ROM memory can be permanent memory i.e. stored contents cannot be altered like Masked
ROM. The contents of ROM are sealed by masking & metallization process used during ROM
chip fabrication, so the contents cannot be erased. It holds pre-programmed set of
instructions. It is the first hard-wired memory device.
Flash ROM :-
The sections of the memory cell called memory blocks can be erased instantaneously
therefore the name flash .It is constantly powered non-volatile memory that can be erased
& reprogrammed in blocks. It is used in digital camera, cell phones& digital setup boxes.
RAM Memory Module Strips (SIMM‘s & DIMM‘s) of the storage sizes are 256MB, 512MB IGB ,
2GB ,4GB....Higher is the capacity of RAM, Higher is the speed of system. RAM is original
place to remember John Von Neumann‘s stored program concept. Modern computers uses
stored program computers. It holds the operating system, compiler, assembler like system
programs.RAM provides faster access to read/write data compared to all the secondary
memory.
Types of RAM :-
RAM can be classified two types.
1) Static RAM (SRAM)
2) Dynamic RAM (DRAM)
There are different types of SRAM. They are Asynchronous SRAM (ASRAM), Burst SRAM
(BSRAM) and Pipeline Burst SRAM (PB SRAM).
Advantages
SRAM is faster access.
It is faster than DRAM.
No memory refreshing required.
Disadvantage
Expensive to use for larger system.
Packing density is low.
High power consumption.
Applications of SRAM
It is used primarily as Cache Memory and in dot matrix printer as printer buffer.
2) Dynamic RAM (DRAM) :- It consist of memory cells with a paired transistor & a
capacitor, requiring constant memory refreshing. It is an array of capacitors that stores
data bit as charge. The presence of charge on the capacitor represents ‗1 ‘ and the absence
of a charge represents ‗0‘.
Advantages :
Low power consumption.
They are cheaper than SRAM.
Higher packing density.
Disadvantages :
DRAM is slower than SRAM.
It requires memory refreshing.
RAM ROM
Secondary Memory:-
Few cheaper storage devices used to serve as a backup for storing the information that is
not currently used by the CPU but is required for future are called secondary memory or
auxiliary memory. This memory can store large amount of data. It is non-volatile in nature.
Manufacturing of these memory storage devices involve very precise & micron-level
tolerances.
Ex. Floppy Disk, Zip Disk, Magnetic Hard Disk, Magnetic Tape ,Optical Disk, Compact Disk
Rom, DVD.
Benefits / Advantages of Secondary Storage:-
1) Non-Volatility nature of secondary storage.
2) Low Cost
3) Portability
4) Ease of use
5) Large storage capacity
6) Reusable
7) Reliability
8) Provides Backup
9) Various Shape & Size
10) Different Types of Access Method
Differences between Primary Memory & Secondary Memory
fast to interact with the micro processor interacting with the micro processor, when
compared with the primary memory.
5 Secondary memory is known as additional
memory or backup memory or auxiliary
Primary memory is known as main memory memory
6 These memories are also called as internal These memories are also called as external
memory memory
7 Primary memory is temporary The secondary memory is permanent
8 Commonly used primary memory (main
memory) available in the range of 512 MB to 8 Generally secondary memories range between
GB RAMs. 80 GB to 4 TB Hard Disc Drives.
9 The primary memory devices are connected to The secondary memory devices are connected
the computer through ―slots‖ to the computer through Cables
10 Memory unit that provides additional backup
storage
Memory unit that communicates directly with Ex. Hard Disk, DVD, Pen Drive, Thumb Drive
the processor.Ex RAM & ROM etc
A magnetic disk is an
electromechanical assembly of rigid aluminium platters, containing flat, thin circular metal
plates or disks coated with magnetic material on both sides. Many disks are mounted on one
spindle with read write heads available for both surfaces of all the disk. The disk assembly is
mounted on a disk drive. The disk drive consist of a motor to rotate the disk assembly at
high speed of 3600 revolutions per minute (rpm), 7200 rpm,10000 rpm & 15000 rpm.
The read/write heads mounted on arm can move in & out radially on the disk surfaces for
reading & writing operations. Data is stored or read on the magnetic recording surfaces of
the disk when the disk rotates at high speed about its axis.
Data bits 0‘s & 1‘s are stored in the magnetized recording surface of the disks along
concentric circles called tracks. A track is further divided into sectors. Each disk platter has
equal number of circular tracks & track location that cuts all platters is called as cylinder. A
sector can store 128 to 1024 bytes of data depending upon its storage organization. Tracks
sectors can be grouped into a segment are called cluster.
Read/Writing head pairs are used for each disk. Read/write head assembly move radially in
& out uniformly over the disk surface. Its positioning mechanism make the read/write head
arms assembly to move horizontal towards center and away from the disk pack.
The data transfer operations of storage & retrieval or read & write on magnetic disk
involve 3 different ways of accessing data on the magnetic disk.
Disk Seek
Rotate the Disk
Perform disk data transfer
The various memory sizes of hard disk are 160GB, 500GB, 1TB etc.
Optical Disk :
Information is written to or read from an optical disk using laser beam. Optical disks are not
suitable memory storage units because their access time is more than that of hard disks.
Their advantage is that they have very high storage capacity.
Types of optical memory are: CD –ROM, CD-R, CD-RW, DVD-ROM, DVD-R and DVD-RW.
Information on a CD-ROM is written at the time of manufacture. CD-R/W of 700 MB are
available.
A DVD-ROM is similar to CD-ROM. It uses shorter wave length of laser beam and hence,
stores more data than CD-ROM.
With every new application and software there is greater demand for memory capacity. It is
the necessity to store large volume of data that has led to the development of optical disk
storage medium. Optical disks can be divided into the following categories:
1. Compact Disk/ Read Only Memory (CD-ROM): CD-ROM disks are made of reflective
metals. CD-ROM is written during the process of manufacturing by high power laser
beam. Here the storage density is very high, storage cost is very low and access time is
relatively fast. Each disk is approximately 4 1/2 inches in diameter and can hold over 600
MB of data. As the CD-ROM can be read only we cannot write or make changes into the
data contained in it.
2. Write Once Read Many (WORM): The inconvenience that we cannot write anything in
to a CD-ROM is avoided in WORM. A WORM allows the user to write data permanently on to
the disk. Once the data is written it can never be erased without physically damaging the
disk. Here data can be recorded from keyboard, video scanner, OCR equipment and other
devices. The advantage of WORM is that it can store vast amount of data amounting to
gigabytes (109 bytes). Any document in a WORM can be accessed very fast, say less than
30 seconds.
3. Erasable Optical Disk: These are optical disks where data can be written, erased and
re-written. This also applies a laser beam to write and re-write the data. These disks may be
used as alternatives to traditional disks. Erasable optical disks are based on a technology
known as magnetic optical (MO). To write a data bit on to the erasable optical disk the MO
drive's laser beam heats a tiny, precisely defined point on the disk's surface and magnetizes
it.
4. Digital Versatile Disk : The term versatile in DVD comes from the fact that it can store
large amount of data & high quality of sound & videos. Double sided double density dual
layer DVD can store upto 17GB of data. A DVD can hold 4.7GB of data which is 7 times of a
normal CD.
Blu-ray or Blu-ray Disc (BD, BRD) is a digital optical data storage format. It was
designed to supersede the DVD format, in that it is capable of storing high-definition video
resolution. The plastic disc is 120 mm in diameter and 1.2 mm thick. Blu-ray Discs contain
25 GB per layer, with dual layer discs (50 GB) being the industry standard for feature-length
video discs. Triple layer discs (100 GB) and quadruple layers (128 GB) are available re-writer
drives. The name "Blu-ray" refers to the blue laser (a violet laser) used to read the disc,
which allows information to be stored at a greater density than is possible with the longer-
wavelength red laser used for DVDs. The main application of Blu-ray is as a medium for
video material such as feature films and physical distribution of video games.
Memory Hierarchy