Digital Electronics & Computer Fundamentals Theory.
Digital Electronics & Computer Fundamentals Theory.
Gate is a circuit with one or more input singles but only one output signal. It is
used to construct a logical circuits which are the building blocks of a computer.
Therefore it is necessary to study the basic operation of gates and logical circuits.
This chapter discusses various number systems, gates and concepts needed to
understand computer operation.
1.1 Number System: In general, in any number system there is an ordered set
of symbols known as digits with rules defined for performing arithmetic operations
like addition, subtraction, multiplication and division. A collection of these
digits makes a number which in general has two parts – integer and fractional,
set a part by a radix point ( . ), that is
(N)b = dn-1, dn-2 ---- d2 , ...... d1 , ........ d0 . d-1 , d-2...... d-f ..... d-m
Interger portion redix fractional portion
point
The digits in a number are placed side by side and each position in the number is
assigned a weight or index. Table 1.1 gives the details of commonly used number
systems.
1.2. Binary number system: The number system with base (or radix ) two is
known as the binary number system. Only two symbols are used to represent
2 Digital Electronics and Computer Fundamentals
numbers in this system and these are 0 and 1. these are known as bits. It is a
positional system, that is every position is assigned a specific weight.
Table 1.2 illustrates counting in binary number system. The corresponding decimal
numbers are given in the right – hand column. Similar to decimal number system
the left – most bit is known as most significant bit ( MSB) and the right – most
bit is known as the least significant bit(LSB). Any number of Os can be
added to the left of the number without changing the value of the number. A
group of four bits is known as nibble and a group of eight bits is known as a
byte.
0 0 0 0 0 0
0 0 0 1 0 1
0 0 1 0 0 2
0 0 1 1 0 3
0 1 0 0 0 4
0 1 0 1 0 5
0 1 1 0 0 6
0 1 1 1 0 7
1 0 0 0 0 8
1 0 0 1 0 9
1 0 1 0 1 0
1 0 1 1 1 1
1 1 0 0 1 2
1 1 0 1 1 3
1 1 1 0 1 4
1 1 1 1 1 5
Table 1.2 4- bit binary numbers and their corresponding decimal numbers.
The decimal equivalent of a binary number equals the sum of all binary
number equal the sum of all binary digits multiplied by their weights.
4) 1 x 8 +1 x 4 + 2 x 0 + 1 x 1 = 13 add weights
1 1 1 0 1 0 1
64 32 16 8 4 2 1 Æ117
1x 2 5 + 0 x 2 4 + 1x 2 3 + 1x 2 2 + 0 x 21 + 1x 2 0 + 1x 2 −1
+ 0 x 2 −2 + 1x 2 −3 + 0 x 2 −4 + 1x 2 −5
1 1 1
= 32 + 0 + 8 + 4 + 0 + 1 + +0 + + 0 +
2 8 32
= (45.65625)10
2 |13
2| 6 − 1
2| 3 − 0
2|1 − 1
2| 0 − 1
13 = 1 1 0 1 Read down to up of remainders which is
10 2
equalent to binary number.
In this final division, 2 does not divide into therefore, the quotient is 0 with a
remainder of 1.
2 | 23
2 |11 − 1
2| 5 − 1
2| 2 − 1
2 |1 − 0
2| 0 − 1
Solution:
0.65625 0.31250 0.62500 0.25000
X 2 X 2 X 2 X 2
1.31250 0.62500 1.25000 0.50000
1 0 1 0
0.50000
X 2
1.00000
Example 1.6: Express the following decimal numbers in the binary form.
a)25.5 b) 10.625
Solution:
a) Integer part:
6 Digital Electronics and Computer Fundamentals
2 | 25
2 |12 − 1
2| 6 − 0
2| 3 − 0
2 |1 − 1
2| 0 − 1
Read down to up
Fraction part 0. 5
X 2
1. 0
1
i.e 0 . 5 10 = 0.12
Fractional part.
0.625 0.250 0.500
X2 X2 X2
1.250 0.500 1.000
1 0 1
i.e 10.625 = 1010.101
10 2
1.3. Binary Arithmetic : We all are familiar with the arithmetic operations such
as additions, subtraction, multiplication and division of decimal numbers. Similar
operations can be performed on binary numbers. Binary arithmetic is much
simpler than decimal arithmetic because here only two digits, 0 and 1 are involved.
Number Systems and Digital Circuits 7
Binary addition: The rules of binary addition are given in the following table.
Solution:i) 1 0 1 1 ii) 0 1 0 1
(+) 1 1 0 0 (+) 1 1 1 1
->1 0 1 1 1 Carry 1 0 1 0 0
Binary subtraction: The rules of binary subtraction are given in the table.
minus end 0 1 1 0
subtrats end -0 -1 -0 -1
difference 0 0 1 1
The first three rules are the same as in decimal subtraction. The last rule requires
a borrow from the next most significant place. The minuend is then binary 10
and the subtrahend is 1 with a difference of 1.
1 0 1 0 0 1 1 1 1 0
8 Digital Electronics and Computer Fundamentals
Binary multiplication:
Multiplied 0 1 0 1
Multiplier X 0 X 0 X 1 X 1
Product 0 0 0 1
Sol: i) 1 1 0 1 X 1 0 1 ii) 1 0 0 1 X 1 1 0 1
1101 1001
0000 0000
1101 1001
111 1001
10110001 11 10 101
Binary division: Binary division is obtained using the same procedure as decimal
division. An example of binary division is given below.
Octal number system : The number system with base ( or redixy) eight is
known as the octal number system. In this system eight symbols, 0, 1 , 2
,3,4,5,6, and 7 are used to represent the number. Similar to decimal and binary
number systems, it is also a positional system and has, in general, two parts :
Integer and fractional , set a part by a radix point. For example ( 6327. 4051)8
is an octal number. Using the weights it can be written as.
Using the above procedure, an octal number can be converted into an equivalent
decimal number. The conversion from decimal to octal is similar to the conversion
procedure from decimal to binary. The only difference is that number 8 is used
tin place of 2 for division in the case of integers and for multiplication in the case
of fractional numbers.
Example 1.13
a) Convert 247 into octal
10
b) convert0.6875 into octal
10
c) convert 3287.5100098 into octal
10
Solution
8 | 247 Quotient Remainder
8 | 30 − 7 30 7
8|3 − 6 3 6
8|0 − 3 0 3
Read the number from down to up reminder part 3 6 7
b) 0.6 8 7 5 0.5000
X8 X8
5.5 0 0 0 4. 0 0 0 0
0. 5 1 0 0 0 9 8 0.0 8 0 0 7 8 4 0.6406272
X8 X8 X8
4. 0 8 0 0 7 8 4 0.6406272 5. 1250176
4 0 5
0.1250176
X8
1.0001408
Therefore 3287.5100098 = 6327. 4051
10 8
Octal to binary: Octal numbers can be converted into equivalent binary numbers
by replacing each octal digit by its 3 – bit binary equivalent. The following table
1.3 gives octal
14 12 001100
15 13 001101
16 14 001110
17 15 001111
12 Digital Electronics and Computer Fundamentals
Solution: From the above table, the binary equivalents of 7, 3 and 6 are 111,
011 & 110 respectively. Therefore 736 8 = 1 1 1 0 1 1 1 1 0 2
Binary to octal: Binary numbers can be converted into equivalent octal numbers
by making groups of three bits starting from LSB and moving towards MSB for
integer part of the number and then replacing each group of three bits by its
octal representation. For fractional part the groupings of three bits are made
starting from the binary point.
Example 1. 17: convert the following decimal number into hexadecimal number.
Solution:
5 F
Thus 95 = 5F
10 16
For the fractional part, the above procedure is repeated starting from the bit
next to the binary point and moving towards the right.
Number Systems and Digital Circuits 15
Example 1.19. Convert the following binary numbers to their equivalent hex
numbers.
a) 10100110101111
b) 0.00011110101101.
Solution:
a) 101001101011112 = 0010
{ 1001
{ 1011
{ 1111
{
2 9 A F
∴ 101001101011112 = 29 AF16
b) 0.000111101011012 = 01
.0001
23 1110
{ 1011
{ 0100
{
1 E B 4
1.5. The ASCII code: To get information into and out of a computers, we need
to use numbers, letters, and other symbols. This implies some kind of alphanumeric
code for the I/O unit of a computer. At one time, every manufacturer had a
different code, which led to all kinds of confusion. Eventually, industry settle on
a input – output code known as the American Standard code for Information
Interchange ( abbreviated ASCII). This code allows manufacturers , to
standerdize I/O hardware such as keyboards, Printers, video displays, and so
on.
Table shows the ASCII code. Read the table the same as a graph. For instance
the letter A has an xxx of 100 and an X X X X of 0001. Its ASCII code is
3 2 1 0
100 0001 ( A)
Table includes the ASCII code for lowercase letters. The letter is coded as.
110 0001 (a)
1.6. Logic gates: Circuits used to process digital signals are called logic gates.
Logic symbols are used to identify these circuits. They have one or more input
signals but only one output signal. Gates are often called logic circuits because
they can be analyzed with Boolean algebra
INVERTERS:
An inverter is a gate with only one input signal and one out put signal; the out put
state is always the opposite of the input state :
Number Systems and Digital Circuits 17
Transistor Inverter
Fig. 1.1 shows a transistor inverter. This common – emitter amplifier switches
between cut off and saturation when V in is low ( approximately ) , the transistor
cuts off and Vout is high(1). On the other hand, a high Vin saturates the transistor,
forcing Vout to go low.
Table 1.5. summarizes the operation a low input produces a high outputs and a
high input results in a low output. Table 1.5 gives the same information in binary
form; binary 0 stands for low voltage and binary 1 for high voltage.
An inverter is also called a NOT gate because the output is not the same as the
input. The output is sometimes called the complement ( opposite) of the input.
Table 1.5 truth table of Not gate
V V V V
IN OUT IN OUT
Low High 0 1
High Low 1 0
V V Fig. No.1.1
IN OUT
Logic Symbol
OR gates
The OR gate has two or more input signals but only one output signal. If any
input signal is high, the output signal is high.
Diode OR Gate
Fig. 1.2 shows one way to build an orgate. If both inputs are low , the output
is low. If either input is high, the diode with the high input conducts and the
output is high. Because of the two inputs, we call this circuit a 2 – input OR
gate.
A
V0
B
Fig. No.1.2
18 Digital Electronics and Computer Fundamentals
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
Table 1.6 summarizes the action; binary 0 stands for 10 w voltage and binary 1
for high voltage. Notice that one or more high inputs produces a high output;
this is why circuit is called an OR gate.
An OR gate can have as many inputs as desired; add one diode for each
additional input. Three diodes results in a 3 – input OR gate. No matter how
many inputs, OR gates always produce high output when one or more inputs
are high Fig. Shows the logic symbols for 2 and 3 OR gates.
A A
Y B Y
B C
Fig.No.1.3(a) Fig.No.1.3(b)
Its logical equation is given by
Y = A or B or C ---------- or N
= A + B + C + --------- + N
AND GATES:
The And gate has two or more input signals but only one output signal. All
inputs must be high to get a high output.
5V
A
Y
B
Fig. No. 1.4
Fig. 1.3 shows one way to build on AND gate. In this circuit the inputs can be
either low or high . when both inputs are low, both diodes conduct and pull the
output down to a low voltage. If one of the inputs is low and the other high, the
diode with the low input conducts and this pulls the output down to a low
voltage. The diode with the high input is reverse biased or cut off.
When both inputs are high both diodes are cut off since three is no current in the
resistor, the supply voltage pulls the output up to a high voltage ( + 5V)
0 0 0
0 1 0 A
1 0 0 B Y
C
1 1 1
Fig No. 1.5
Table 1.7 summarize the action. As usual , binary zero stands for low voltage
and binary 1 for high voltage. As you see, A and B must be high to got a high
output; this is why the circuit is called an AND gate.
AND gates can have as many inputs as desired ; add one diode for each additional
input. Three diodes, result in an 3 – input and gate; No matter how many
inputs, and gate has, the action can be summarized like this; all inputs must be
high to get a high output for shows the logical symbols for 2 and 3 input and
gates. Its logical equation is given by
Y = A x B x C …………
Y = A.B.C …………N inputs
= ABC …………N inputs
20 Digital Electronics and Computer Fundamentals
NOR gates:
The NOR gate has tow or more input signals but only one output signal. All
inputs must be low to get a high output?
Fig . 1.4 NOR gate : a) logical meaning; b) standard symbol two – input gates
Fig. 1.4 b) is the standard symbol for a NOR gate. Notice that the inverter
triangle has been deleted and the small circle OR bubble moved to the OR gate
output. With fig 1.4 a) and b) the following ideas are clear. If both inputs are
low, the final output is high. If one input is low and the other high, the output is
low. and if both inputs are high. The output is low Table 1.8. two input NOR
gate
A B Y=A + B
0 0 1
0 1 0
1 0 0
1 1 0
Table. 1.8. summarizes the circuit action. The NOR gate recognizes only the
input word whose bits are all Os in other words, all inputs must be low to get a
high output. The Boolean equation for a 2 – input NOR gate is
Y=A+B
Read this as “Y” equals NOT, A or B”. If you use this equation, remember
that the OR is done first, then the inversion.
Regardless of how many inputs a NOR gate has, it is still logically equivalent to
an OR gate followed by an inverter. Therefore, the boolean equation is
Number Systems and Digital Circuits 21
Y = A+B+C+………. + N
NAND GATES:
The NAND gate has two or more input signals but only one output signal. All
input signals must be high to get a low output.
A
B Y Y = ABC
C logical meaning
Fig 1.5 a) shows the logical structure of a NAND gate an gate followed by an
inverter. Therefore, the final output is NOT the AND of the inputs. Now the
circuit is referred to as a NAND gate.
Fig. 1.5 b) is the standard symbol for a NAND gate. The inverter triangle has
been deleted and the bubble moved inputs are low the result of anding is
low; therefore , the final inverted output is high only when all inputs are high
does the AND ing produce a high signal; then the final output is low.
Table 1.9 summarizes the action of a 2 – input NAND gate. As shown, the
NAND gate Recognizes any input word with one or more Os that is one or
more low inputs produce a high output. The Boolean equation for a 2 – input
NAND gate is.
A B AB
0 0 1
Y = AB 0 1 1
1 0 1
1 1 0
22 Digital Electronics and Computer Fundamentals
Read high as “Y equals NOT, AB” if you use this equation remember that the
AND ing is done first then the inversion.
Regardless of how many inputs a NAN D gate has, it’s still logically equivalent
to an AND gate followed by an inverter. Therefore, the Boolean equation is
Y = ABC … N
Note : The NAND and NOR operation have become very popular and are
widely used, because either NAND or NOR are sufficient for the realization of
any logical expression. Because of this reason NAND and nor gates are known
as universal gates.
A
Y = AB + AB
B
The above fig shows one way to build an exclusive – OR – gate, abbreviated
EX-OR. The upper and gate forms the produce AB, and the lower and gate
gives AB. The Boolean equation is
Y = AB + AB
In EXCLUSIVE - OR gate as got output, If and only if the two inputs are
different then only there is a output. If both inputs are equal there is no output.
A B AB + AB
0 0 0
0 1 1
1 0 1
1 1 0
Number Systems and Digital Circuits 23
In Boolean algebra the sign (+) stands for EX - OR addition this means the
above equation can be written.
Y = AB + AB
Read this as “Y equals A EX - OR B”
A
Y =AB + AB
B
Because of the inversion on the output side, the truth table of an xnor gate is the
complement of an xor truth table. As shown in table.1.11 the output is high
when the inputs are the same.
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
Y = AB + AB
All the logic functions introduced are commercially available in integrated circuit
(IC) form. For example, available in 14 – pin DIP). It has four identical,
independent requires a + 56 V d.c. supply ( to be connected between Vcc and
GND Pins) for operation of gates. Table gives connections , electrical
characteristics, etc can be obtained from manufactures data catalogues.
24 Digital Electronics and Computer Fundamentals
IC NO. DESCRIPTION
7400 Quad 2 - input Nand gates
7402 Quad 2 - input Nor gates
7404 Hex inverters
7408 Quad 2 - input and gates
7432 Quad 2 - input or gates
7486 Quad Ex - or gats
74135 Quad Ex - or / nor gatse
14 13 12 11 10 9 8
1 2 3 4 5 6 7
Fig. No. 1.9
Block Diagram of 7400 IC
Some of available IC gates
1.8. HALF ADDER : A logical circuit for addition of two one bit numbers is
referred
to as an half – adder. fig.1.10 shows how to build a half adder. Here A and B
are two inputs. The output of the EX - OR gate is called the SUM. While the
output of the AND gate is the CARRY
The AND gate produces a high output only when both inputs are high. The
exclusive – or gate produces a high output if either input, but not both is high.
Table 1.12 shows the truth table of a half adder.
A B CARRY SUM
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Number Systems and Digital Circuits 25
A
AB= carry
B
sum = AB+AB
When you examine each entry in table you can know the fact that a half – adder
performs binary addition. It does electronically when we do mentally when we
odd 2 bits. Here is the action, entry by entry.
Applications for the half – adder are limited. We need a circuit that can add
3 – bits at a time.
1.10. Full adder : A logic circuit that can odd 3 bits at a time is to referred to
as a full adder. The third bit is the carry from, a lower column. Fig 1.11. shows
how to build a full adder. The output of the EX – OR gate is called the sum.
While the output of the orgate is the carry.
A B C
Carry
SUM
A B C CARRY SUM
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
Table 1.13 shows the truth table of a full adder. When you examine each entry
in table you can see that a full adder performs. Binary addition on 3 bits.
A B Difference Borrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Number Systems and Digital Circuits 27
PROBLEMS
1. Convert the following binary numbers to decimal numbers
a) 0011 b) 110011
6. If you cascade seven inverters, does the overall circuit act like
an inverter or non inverter?
2.0.Introduction :
2.2. RS LATCHES:
A flip flop is a device with two stable states; it remains in one of these states until
triggered into the other. The RS latch/flip-flop , discussed in this section, is one
of the simplest flip-flop.
Transistor Latch:
In fig 2.1 a each collection drives the opposite has through a 100 kΩ resister. In
this circuit, one of the transistors is saturated and the other is cut off. For instance,
if the right transistor is saturated, its collector voltage is approximately OV. This
means that there is no base abive for the left transistor so it cuts off and its
collector voltage approaches. + 5 . V this high voltage produces enough base
current in the right transistor to sustain its saturation. The overall circuit is latched
with the left transistor cut off ( dark shading ) and the right transistor saturated.
O is approximately OV.
By a similar arguments, if the left transistor is saturated, the right transistor is cut
off fig b illustrates this other state. Q is approximately 5 V for this condition.
Output Q can be low or high binary 0 or 1.
30 Digital Electronics and Computer Fundamentals
+5V +5V
5k 5k
SK SK Rc SK SK Rc
RB RB RB RB
RB RB
100k 100k
S trigger inputs
R
Fig. No.2.2
Once set, the output will remain a 1 even though the S input goes back to OV a
high reset input R drives the high right transistor into saturation. Once this
happens the circuit latches and Q = 0.
Truth Table:
Table 2.1 summarizes the operation of the transistor latch. With both control
inputs low no change can occur in the output and the circuit remains latched in
the last state.
Flip-Flops, Registors, Counters 31
R S Q COMMENTS
0 0 NC No Changes
0 1 1 Set
1 0 0 Reset
1 1 * Race
When R is low and S is high, the circuit sets the Q output to a high. One the
other hand, if R is high and S is low the Q output resets to a low.
S Q
RACE CONDITION
R Q-
Fig. No.2.3
Look at the last entry in table 7.1 R and S are simultaneously. This is called a
race condition; it is never used because it leads to unpredictable operation.
If both control inputs are high both transistors saturated when the R and S inputs
return to low, both transistor try to come out of saturation. It is a race between
the transistors to see which one desaturates first. The faster transistor ( the one
with the shorter saturation delay time) will win the race and latch the circuit. If
the faster transistor is on the left side of fig C, the Q output will be 10 W. If the
faster transistor is on the right side, the Q output will go high.
NOR LATCHES:
A discrete circuit like Fig. 2.1 C is rarely used because we are in the age of
integrated circuits. Now a days you build Rs. Latches with nor gates or NAND
gates.
R
Q
S Q-
Fig. No.2.4
32 Digital Electronics and Computer Fundamentals
It is the most basic and useful sequential logic circuit. It is called the R – S flip
– flop because it has two inputs. The S( set ) and R ( reset ) inputs. The two
outputs denoted by Q and Q are complementary to each other. Whenever, Q is
at the state 1 , the Q is at the state 0 and vice versa.
R S Q COMMENTS
0 0 NC No Changes
0 1 1 Set
1 0 0 Reset
1 1 * Race
As shown in table a low R and a low S give us the inactive state; that is
remain circuit remains in the same state. A low R and a high S represent the set
state, while a high R and a low S give the reset state. Finally, a high R and a high
S produce a race conditions therefore, we must avoid R = S = 1 when using a
NOR latch.
NAND LATCHES:
A slightly different latch can be constructed by using NAND gates as shown in
figure 2.3 to understand how this circuit functions, recall that a low on any input
to a nand gate will force its output high. Thus a low R and high S set a Q to low
and Q = 0 A high R and low S reset Q to low.
Because of NAND gate inversion, the in active and race conditions are reversed.
R Q R S Q Comments
Q
0 0 * Race
Q-
0 1 1 Set
S 1 0 0 Reset
Fig. No.2.5
1 1 NC No Changes
Two different methods for constructing an RS flip – flop were discussed in the
previous section with NOR gate and NAND gate realization. Both of these RS
flip – flops or latches, are said to be “transparent “; that is any change in input at
R or S is transmitted immediately to the output at Q and Q thus they acts as
short term memory.
It is possible to store or clock the flip – flop in order to store information ( set it
or reset it ) at any time, and then hold the stored information for any desired
period of time. This flip – flop is called clocked RS flip – flop.
The circuit of a clocked RS flip – flop is shown in figure 2.6 with its symbol and
truth table.
R R1
Q
CLK
Q-
S1
S
Fig. No. 2.6
CLK R S Q
0 0 0 NC
0 0 1 NC
0 1 0 NC
0 1 1 NC
1 0 0 NC
1 0 1 1
1 1 0 0
1 1 1 * ( Race)
34 Digital Electronics and Computer Fundamentals
Fig. 2.4 clocked RS flip – flop x symbol and its truth table
It consists of two additional and gates added at the input of R S flip – flop.
In addition to control inputs R and S, there is a clock input CK.
The output of the two and circuits ( S1 and R1 ) will be 0 as long as CK = 0. then
the state of the flip – flop will remain unchanged and if S = 0 , R = 1 then S = 0
R = 1 and the flip – flop is reset to 0. On the other hand if S = 1 , R = 0 then
S =1 R = 1 and the flip flop is set to 1. the presence of R1 =1 and S1 =1 , will
however , results in an undetermined state.
JK FLIP – FLOP
Fig. 2.5 shows one way to build a JK flip – flop the variables J and K are called
control inputs because they determine what the flip – flop does on the arrival of
a positive clock edge.
J
S Q
CLK
R Q
K
CLK K L Q
0 X X NC
1 X X NC
X X NC
X 0 0 NC
0 1 0
1 0 1
1 1 Toggle
Inactiver: When J and K are both low, both AND gates are disabled and the
circuit is inactive at all times including the rising edge of the clock.
Reset : When J is low and K is high, the upper gate is disabled; so there is no
way to set the flip - flop. The only possibility is reset. When Q is high, the lower
gate passes a reset trigger as soon as the next positive clock edge arrives. This
forces Q to become low. Therefore, J=0 and K=1 means that the next positive
clock edge resets the flip-flop.
Set: When J is high and K is low, the lower gate is disabled; So it is impossible
to reset the flip-flop. But you can set the flip-flop as follows. When Q is low, Q
is high; therefore, the upper gate passes a set trigger on the positive clock edge.
This drives Q into the high state. That is , J=1 and K =0 means that the next
positive clock edge sets the flip - flop.
Toggle: When J and K both are high ( notice taht this is the forbidden state with
an RS flip - flop), it is possible to set or reset the flip - flop. If Q is high, the lower
gate passes a reset trigger on the next positive clock edge. When Q is low, the
upper gate passes a set trigger on the next positive clock edge. Either way Q
changes to the compliment of the last state. Therefore, J =1 and K=1 means
that the flip - flop will toggle on the next positive clock edge.
(“toggle” means switch to opposite state)
Fig. 2.8. shows the logic diagram of JK master - slave flip - flop; symbol and its
truth table.
CLK J K Q
X 0 0 NC
0 1 0
1 0 1
1 1 Toggle
36 Digital Electronics and Computer Fundamentals
J Q S J Q
Master Slave
F.F F.F
R
K Q K Q
Logic diagram
J Q
M/S
K Q
LLR
Symbol Fig No. 2.8
Set: To start tghe analysis, let’s assume low Q and high Q. For an input
condition of high J, law K and high CLK, the master goes into the set state,
producing high S and Low R. Nothing happens to the Q and Q outputs because
the slave is inactive while the clock is high. When the clock goes low, the high
S and low R forces tghe slave into the set state, producing a high Q and a low
Q.
Reset: When the slave is set, Q is high and Q is low. for the input condition of
low J, high K and high CLK, tghe master will reset, forling S to go low and R
to go hig. again, no changes can occur in Q and Q because tghe slave is in
active while the clock is high. When the clock returns to low state, the low S
and high R forces the slave to reset.
Toggle: If the J and K inputs are both high, the master toggles once while the
clock is high and then slave toggles once when the clock goes low.
The basic idea behind the master slave flip - flop is that, every action the
master slave flip - flop is that, every action of the master with high CLK is
copied by teh slave when CLK goes low. It is used to avoid reacing condition.
Flip-Flops, Registors, Counters 37
D Flip - flop: We will modify the design of Rs flopo flop to eliminate the possibility
of a raced condition. the rsult is a new kind of flip - flop known as D loatch.
D R
Q
D Q
0 0
1 1
Q
S
1) latch
2) Registers
3) Counters
4) Memory ( RAM)
2.3. Need for a Register: As discussed in previous section a flip – flop can
store
1 – bit of digital information ( 1 or 0 ) it is also referred to as a 1- bit register.
But in digital system a situation will a raise to store more than 1 – bit of
information. For example, the binary number 0101 is called as 4 bit binary
number. A 4 – bit register is needed to store this 4 bit binary number. There are
4 flip flop’s in an 4 bit register 8 flip flops in an 8 bit register, and so on.
The 8 bit and 16 bit registers are extensively used as a part of CPU of a
8/ 16 – bit microprocessors. They are involved in all mathematical / logical
operations that can be performed by CPU and in storing the information
temporarily.
38 Digital Electronics and Computer Fundamentals
Types of Register :
E
Registers are classified depending upon the way in which data are entered and
retrieved. There are four possible modes of operation :
1. Serial in – serial out
2. Serial in – parallel out
3. Parallel in – serial out
4. Parallel in – parallel out
1 2 3 4 5 6 7 8
A B C D E F G H
a b c d e f g h
i i i i
A (8) s B A (16)
s s s B
t t t t
e e e e
r r r r
The eight wires represented by this arrow are called a data bus. The double
arrow shown in fig. 2. 10 (b) means 16 – bits of data can be shifted in parallel
from A to B or from B to A. this is a 16 – bit bi-directional data bus.
Q3 D3 Q2 D1 Q1 D1 Q0 D0
CLK
2.5. Shift Registers: Registers in which data are entered obtain out in serial
form are called as shift Registers. It moves the stored bits in the right direction
( right - shift – register ) or in the left direction ( left – shift register ) with the
occurrence of clock pulses. This bit shifting is essential for certain arithmetic and
logical operations used in micro processors.
2.6. Left – shift register: Fig. 2.12 is a shift left register. As shown dim sets
up the right flip – flop. Q sets up the second flip – flop Q the third, and so on.
When the positive clock strikes the stored bits move one position to the left.
Q1 D1 Din
Q3 D3 Q2 D1 Q0 D0
CLK
As an example , consider
40 Digital Electronics and Computer Fundamentals
This new word means D as well as D now equal 1. when the next clock pulse
hits, the Q flip – flop sets and the stored word becomes Q = 0011
One the arrival of third clock pulse Q becomes. Q = 0111 and the fourth clock
pulse gives Q = 1111.
Right – Shift Register: Fig. 2.12 is a shift right register. As shown each Q
output sets up the D input of the preceding flip flop. When the positive clock
pulse arrives, the stored bits move one position to the right.
Q3 D3 Q2 D1 Q1 D1 Q0 D0
Din
This new word means D as well as D1 now equals 1 . when the next
clock pulse hits, the Q2 flip – flop sets and the stored word becomes Q = 1100
The third clock pulse give Q = 1110 and the forth clock pulse give Q = 1111.
A B C D E n
|H 1 2 3 4 5 6
L
0000
(Begin) 0001 0010 0011 0100 0101 0110 0110
(End)
A clock having a small circle (bubble) in the input side would count clock
transitions form high to low. Since clock pulses occur at know intervals, the
counter can be used as an instrument for measuring time and therefore frequency.
There are basically two different types of counters synchronous and
Asynchronous.
High
Q3 J3 Q2 J2 Q1 J1 Q0 J0
Q3 K3 Q2 K2 Q1 K1 Q0 K0
CLR
The above waveforms shows the action of counter. Let’s assume that all
the flip – flops are reset to produce 0 outputs. If we consider A output as least
– significant Bit (L.S.B) and C the most – significant Bit ( MSB) then the contents
of the counter is CBA = 000
For every clock transition flip flop A will change state. This is indicated
by arrows ( ) on the time line. Thus at point a on the time line A goes high, at
42 Digital Electronics and Computer Fundamentals
Since A acts as clock for B, for each negative transition in A , flip – flop
B will toggle. Thus at point b on the time line B goes high; it then goes low at d
and toggles back high again at pint F.
If we observe the output condition of all flip flop it is the binary number
equivalent to the number of negative clock transitions that are occurring. Prior
to point A, the output is CBA = 000 at point a it changes to CBA = 001, at
point b it changes to 010, and so on. That is counter content advances on count
with each negative clock transition. It is summarized in the truth table.
The following fig. 2.15 shows how to build a synchronous counter with
positive – edge triggered flip – flop. Here the clock pulses drive all the flip –
flop in parallel.
The J and K inputs of Q0 flip – flop are tied to a high voltage. Therefore,
Flip-Flops, Registors, Counters 43
it responds to each positive clock edge. But he remaining flip flops can responds
to the tve clock edge with certain conditions. The Q1 flip flop toggles on the tve
clock edge only when Q0 is 1. the Q2 flip flop toggles only when Q1 , Q0 and
are 1 s. the Q3 a flip flop toggles only when Q2 ,Q1 and Q0 are 1. That is , a
flip - flop toggles on the next tve clock edge if all lower bits are1s.
Here is the counting action. A low CLR reset the counter. Q = 0000.
When the CLR goes high, the counter is ready to go. The first + ve clock edge
sets Q, therefore Q = 0001.
Since Q is now 1 , the Q flip – flop toggles on the next positive clock
edge. When the second + ve clock edge arrives, Q and Q simultaneously toggle
and the o/p word becomes , Q = 0010. the third + ve clock edge advances the
count by 1; and the o/p world becomes , Q = 0011. Because Q and Q are
now is, the Q, Q and Q flip – flops are toggled on the next + ve clock edge(
fourth clock pulse) and the output word becomes Q = 0100.
For successive + ve clock edges Q words are 0101, 0110, 0111 and so
up to 1111. the next + ve clock edge reset the counter and cycle repeats.
Ring Counter: A ring counter is a shift – left register because the bits are
shifted left one position per positive clock edge. But the final output is feedback
to the Do input. This kind of action is known as “rotate left” the bits are shifted
left and fed back to the input.
The following figure is a ring counter built with D flip flops. The Q0
output sets the D1 input the Q1 output sets the D2 input, and so on.
Q3 J3 Q2 J2 Q1 J1 Q0 PR J0
Q3 K3 Q2 K2 Q1 K1 Q0 K0
CLR
The second positive clock edge causes another rotate left and o/p word
becomes Q = 0100.
The fourth positive clock edge starts the cycle and rotate left produces
Q = 0001.
The stored 1 bit follows a circular path. This is why the circuit is called a
ring counter. By adding more flip – flops we can build a ring counter of any
length.
The counter can be reset, if the AND gate output is low. This can be
happened with a low CLR or low Y. Initially low CLR produce Q = 0000.
when CLR is high, the counter is ready and count sequence progress.
The output of the NAND gate is, Y = Q3 Q1. This output is high for the
first nine states ( 0000 to 1001). Nothing happens when the circuit is counting
from 0 to 9. on the tenth clock pulse, the Q word becomes; Q = 1010, which
means that Q3 and Q1 are high. Then immediately Y goes low, forcing the
counter to reset to Q = 0000.
High
Q3 J3 Q2 J2 Q1 J1 Q0 PR J0
CLK
Q3 K3 Q2 K2 Q1 K1 Q0 K0
CLR
d 1 0 0 4
K K K K K K K K K K
Time e 1 0 1 5
f 1 1 0 6
g 1 1 1 7
Cock
h 0 0 0 0
A
B
C
There are n input lines. There is a single output line which is connected to
the computer. By applying control signals on the C bus , the switch will connect
to one of the input lines. Then the data from that input line is entered into the
computer. Change in the control signals will connect a different input. Thus,
46 Digital Electronics and Computer Fundamentals
C C
n
n One
One output
input output
output lines
lines line
line
Encoder: Any information entered into a digital system must be in the form of
digital number. A circuit that changes data into an required digital form is called
an encoder. The following is the encoder which will change a decimal number
into its binary equivalent. It may be used with keyboard. For example, when
you press the number 4 on a key board, it will produce a high on s /p line 4 of
the encoder. The all other input lines are to be low., this will results in encoder
output as binary number 0100 which is binary equivalent of decimal number 4.
0 0
1 1
2 2
3 A A 3
B Decimal Decimal
inputs
Decimal 4 B 4
C outputs inputs
Decimal
inputs 5 C 5
6 D D 6
7 7
8 8
9 9
Decoder : Taking digital information from the output of a computer and changing
it into decimal form is done with a circuit called decoder. The decoder as
shown in fig. 2. 19 (b) will accept a 4 – bit binary number and indicate its
Flip-Flops, Registors, Counters 47
decimal equivalent between 0 and 9. as shown the binary input 0110 will cause
output line 6 to be high, while all other output lines remain low.
1. What is a latch ?
2. What is a flip – flop?
3. Name the types of flip – flops ?
4. Give the applications of flip – flops ?
5. What is a register ?
6. What are the types of Register ?
7. What are the applications of Registers?
8. What is a counter?
9. What is a ring counter?
10. What is a decade – counter?
11. What are the applications of counters?
12. What is Multiplexer?
13. What is Demultiplexer?
14. What is a decoder?
15. What is a encoder?
3- SEMICONDUCTOR MEMORIES
3.0.Introduction:
RAM
Random Access Memory
SRAM SRAM
Static RAM Dynamic RAM
Bipolar MOS DOS
ROM
Read Only Memory
SRAM EEPROM
EPROM
Programmable Electrically
Erasable
ROM erasable PROM
Fig. No. 3.1 Bipolar MOS
PROM
MOS
MOS
Semiconductor Memories 49
Moving storing the data into memory is called write operation. Copying /
detecting data from memory, without destroying the contents, is called read
operation. The read/ write memory is most often called a RAM( Random Access
Memory) Generally RAM is volatile, which means it will be lost its data if the
power to the IC is turned off for even an instant.
RAM s are further subdivided into two groups namely static RAM and
Dynamic RAM. The static RAM retains stored information indefinitely as long
as the IC is powered. A dynamic RAM, on the other hand, does not retain
stored data indefinitely. The stored data must be stored again ( refreshed)
periodically. SRAMS are used in high – speed operations such as cache memory.
DRAMS are used as the bulk of the memory.
R0 0 0111
R1 1 1000
R2 2 1011
R3 3 1100
R4 4 0110
R5 5 1001
R6 6 0011
R7 7 1100
R0
R0
R0
R0
R0
R0
R0
R0
D3 D2 D1 D0
PROMS AND EPROMS: The term ROM is generally reserved for memory
chips that are programmed by the manufacturer. You have to send a list of data
to be stored in the different memory locations to the manufacturer, who then
produce a mask. Now the user can be able to read the stored. Data from the
ROM.
Static RAM: The figure shows one of the flip flops used in a static MOSRAM.
Q1 and Q2 acts like switches. Q3 and Q4 are active leads which means they
behave like resistors. The Circuit action is similar to the transistor latch discussed
in chapter2. Either Q1 is cut off or vice versa. A static RAM will contain
thousands of flip – flop like this. As long as power is applied, the flip flop
remains latched and can store the bit indefinitely. Sense
line
Storage
Q3 Q4 Capacitor
X X
Q2
Q1 Control
line
Dynamic RAM: Figure shown one of the memory elements( called calls) in a
dynamic RAM. When the sense and control lines go high, the MOSFET conducts
and charges the capacitor. When the sense and control – lines go low, the
MOSFET opens and the capacitor retains its charge. In this way, it can store 1
bit. A dynamic RAM may contain thousand of memory cells like this.
Since only a single MOSFET and capacitor are needed, the dynamic RAM
contains more memory cells than a static RAM of the same physical size. The
disadvantage of dynamic RAM is the need to refresh the capacitor charge every
few milliseconds.
Word Length: The number of bits stored in a memory location is called its
word length. It will depend upon the number of flip – flops in a row of the
register. Generally 4, 8 and 16 size of memory locations are available in
Semiconductor Memories 53
semiconductor memories.
C= MxN
Where, C is the no. of memory locations and
N is the no of bits in each memory location.
The commonly used values of the number of memory location are 64, 256, 512,
1024, 2048, 4096 and the number of bits in each memory location( i.e. word
length) are 1,4 and 8.
Address: The different memory locations in a memory chip are identified by its
unique address. This unique address is identified by placing appropriate 0 s and
1s on the address pins. For accessing any one of M memory locations,
P address lines are required , where 2p = m. This set of P lines is called address
bus. For example , a ROM with 256 memory locations can be accessed with 8
address lines. ( 28 = 256)
Write operation: Moving 1 storing the data into the selected memory location
is called write operation. For writing a word into a particular memory location,
the following sequence of operations is to be performed.
1) The chip select signal is applied to the CS terminal.
2) Place the DATA to be stored on the data – input terminals.
3) Place the ADDRESS of the desired memory location on
the address – input terminal.
4) Finally apply a write command signal to the write control
input terminal.
In response to the above operations, the information memory location is
cleared off and the information present on the DATA input terminal is stored.
In response to the above operations, the data from the addressed memory
location appears on the DATA – OUTPUT terminal.
Write cycle Time ( TWC) This is the minimum amount of time for which the
valid address must be present for writing a word in the memory. That is, it is the
minimum time required between two successive write operations.
Read cycle time ( TRC) : This is the maximum time amount of time for which
the valid address must be present for reading a word from the memory. That is,
it is the minimum time required between two successive read operations.
1) RAMS are used for temporary storage of user programs and data.
2) SRAMS are used for cache memory.
3) ROMs are most often used of storing permanent instruction
necessary for stratup and operation of a computer.
4) In micro controllers for specialized applications.
Semiconductor Memories 55
1) What is a memory
2) What is semiconductor memory?
3) What are the types of memories?
4) What is a ROM and RAM?
5) What is EPROM?
6) What is the difference between SRAM and DRAM?
7) What is a cache memory?
8) What is a word length.
9) What is a write operation?
10) What is a read operation?
11) What is a access time.
12) What are the advantages of semi conductor memories?
13) Give the applications of memories?
Long answer questions:
4 – A/ D AND D/ A CONVERTERS
4.0. Introduction: Digital systems are widely used in many applications such as
communication , control , computers, instrumentations…… etc. In many of
these applications , the signals are available only in analog form , but not in digital
form. Hence by using digital hardware. These analog signals have to be converted
into digital form. The process of converting analog signals into digital form is
known as analog to digital conversion ( A/D). the system which is used for this
process is known as ‘A/D converter ( ADC)
4.1 Need for A/D and D/A conversion: In many of the applications digital
systems must be interfaced with analog equipment. In such cases, the digital
system is needed for A/D and D/A converters ; for the communication or the
data transfer with analog equipment.
1) In the Fig. 2.1 shows a typical situation in which the digital system has
analog inputs and outputs.
Thus the above situation necessitate A/D and D/A converters along with
the digital system.
Voltage 1s Resistive
switches 2s summing
with 4s network Amplifiers Analog
output
Reference 8s
Voltage
source
4.3 Counter type A/D converter: The block diagram of a counter type 4 –
bit A/D converter is shown in the fig below. It employs a voltage comparator, an
and gate a BCD counter and a D/A converter. Digital input
8s 4s 2s 1s
D 3 D2 D1 D0
AND
CLK BCD
Counter
Ananlog input
Voltage
Compar
atore
D/A
Coun
ter
Operation : Let the counter begin RESET and the output of the D/A converter
is zero. Apply the analog voltage at the input. If the analog input voltage at A is
grater than the voltage at the input B of the comparator, then the output of the
comparator switches to a high state and enables the AND gate. The clock pulse
is allowed to increase or advance the count of the BCD counter through its
binary states. The counter continues to advance from one binary state to the
next producing successively higher steps and the count will be displayed at the
digital or binary output as D D D D. the count on the counter increases until the
feed back voltage from the D/A converter increases becomes greater than the
analog input voltage. Whenever the voltage at B is greater than at A, the
comparator output will go low and disables the AND gate. It results the cutting
off the clock pulses to stop the counter. The state of the counter at this point
equals the number of steps in the reference voltage or feed back voltage at
which the comparison occurs voltage. Note that for each of sample of analog
voltage, the counter must count from zero up to point at which the feed
back voltage reaches the analog input voltage.
Thus A/D converter produces the digital output of an analog input voltage.
bit and 16 – bit conversions, this means a maximum of 16, 256 and 4096 counter
states are required respectively.
2) For each sample of analog voltage, the counter must count from zero up to
the point at which the feed back voltage reaches the analog input voltage.
(MSB)
(LSB)
R1
2R 2R 2R 2R
2 R1 R2 R3 R4
2R
R-2 Resistive Summing
Amplifier
A B C D
Vp
(LSB)
2R 2R 2R 2R (MSB)
2R R R R
A1 B1 C1 D1
B C D C D
A 2R B
R R R R R R R R
2R 2R 2R 2R 2R
B1
A
1
D 1
B1 C1 C1 D1
D
2R
D D 2R
R R VR
VR
24
23
C1 D1 D1
Fig. No. 4.5
Analog – To – Digital (A/.D) Conversion : Much of the information provided
in a digital system exists first in analog form requiring conversion to digital. The
process of converting analog signal into digital is known as ‘Analog – to –
digital[ A/D ]conversion’ there are many methods for A/D conversion with
varying conversion rate with varying conversion rates, cost and susceptibility to
noise. In this section we shall examine the major methods which are used in
various applications these are counter method and successive approximation
method.
A/D, D/A Converters 61
Rf V Rf VR Rf VR Rf VR
V0 = − . R4 So + S1 + S2 + . S3
3R 2 3R 2 3
3R 2 2
3R 21
V0 =−
Rf VLR 3
3R 2 4
[
2 S 3 + 2 2 S 2 + 21 S1 + 2 0 S 0]
( where minus sign indicates the phase inversion )
Thus , by using the above expression; the analog output voltage is determined
for various switch positions of the digital input.
Microprocessors
Data
Bus 8 bits 16 bits 16 bits 16 bits 32bits 32bits 64 bits 64 bits 64bits
With
Address
Bus 16bits 20 bits 20bits 24bits 32bits 32bits 32bits 36 bits 36 bits
Width
Memory
Size 64 KB 1 MB 1 MB 16 MB 32 MB 4GB 4 GB 4 GB 4 GB
Clock
Frequency 3 mHz 5mHz 6mHz 12mHz 33mHz 66mHz 200mHz 266mHz 266mHz
75
62 Digital Electronics and Computer Fundamentals
5 – FUNDAMENTALS OF COMPUTERS
Introduction: The computers is making an impact on every aspect of our lives.
They have been in general use since 1950s. formerly, they were large, expensive
and used only by government agencies, big universities and large corporations.
The size and shape of the computer has changed in the past few years because
of a device called “ Microprocessor”. A computer designed using
microprocessor is called a “Microcomputer”. This chapter introduces the basic
structure of a computer, that is its basic components and interaction between
them.
A set of instructions written for the computer to perform a task is called a program
and a group of programs is called software.
program data
memory memory
Memory
Fig. No. 5.1
How the computer works can be explained briefly in the following manner.
Both program and data are fed into the CPU and transferred to their respective
memory
locations. The CPU reads instructions from the memory and performs the task
specified by the instruction on the data. This action of CPU on the data is called
Fundamentals of Computer 63
execution. After the completion of execution, the results are transferred to the
output of the computer.
The input and output devices are known as Peripherals. The control unit is a
part of CPU and has a function to control various operations in the microcomputer.
Memory: Memory is like the page of note book with space for a fixed number
of binary numbers on each line. Generally each line has space for eight binary
bits. The user writes the necessary instructions and data in memory. He asks
the computer to perform the given task and find an answer. But, here also a
quation araises. How does he can enter those instructions and data into the
computer’s memory? The answers are input and output( I./O) devices.
Input/ Output: The user can enter instructions and data into memory through
input devices such as a keyboard, A/D converters and so on. The ASCII
keyboard is similar to a typewriter keyboard and it is used to enter programs in
an English – like language.
After performing the given task, the result from CPU can be taken through
output devices such as printer, Cathode Ray Tube and Magnetic Tape.
Now the Quation is; where the computer processes data. This is done with the
group of logic circuits called Central Processing Unit( CPU)
In addition to working Registers and ALU, The CPU consists instruction decoder,
counters and control lines. The control Unit provides the necessary in the
microcomputer. It controls the flow of data between the Micro processor and
64 Digital Electronics and Computer Fundamentals
Memory: The memory block shown in fig. 5.1 has two sections: Read Only
Memory ( ROM) and Read write Memory(R/WM), popularly known as Random
Access Memory ( RAM). The Monitor programs of a microcomputer are
generally stored in the ROM. The Read/ write memory is also known as user
memory. It is used to store user programs and data. The memory functions are,
5.4 Functions of I/O Devices: Input / Output devices are the two basic
components that can provide a link between a computer and outside world.
They are normally abbreviated as I/O devices. An input device allows data and
information to enter into a micro computer in a machine readable form ( binary
word). An output device receives information from the micro computer and
present into a form which can easily be read by people.
computer.
3) It sends data in binary form to the computer for further processing.
The generally used input devices are keyboard, mouse, floppy disk, OMR Sheets,
Scanner, microphone and web camera.
The functions of output devices are,
The number of bits in a word or word length for a given computer( or) processor
) is fixed and words are formed through various combinations of these bits.
5.6 Functional Blocks of CPU: The main functioning unit of any computer
system is called the Central Processing Unit. The primary functions of CPU are
already discussed in section 5.3. The major functional blocks includes the various
registers, the arithmetic and logic unit, the instruction decoder, the important
control and timing section, along with inputs and outputs as shown in fig. 5.2
66 Digital Electronics and Computer Fundamentals
Temporary
Arithmetic and register
logi unit
Internal bus
Internal bus
Accemulator
Buffer / lach
Buffer
Program Counter
Instruction Instruction
decoder register
CPU
Fig. No. 5.2
b) Arithmetic logic Unit: This unit is used to Perform all the arithmetic and
logic operations, such as additions, multiplication , comparison etc.
c) Control Unit: This unit coordinates the activities of the all other units in the
system. Its main functions are,
RAM’s Memory:
SIMM: Signal Inline Memory Module (SIMM) is one of the most commonly
used form of memory. SIMM RAM sticks came in either 30 pin SIMM has 8-
bits data bus where 72 – pin SIMM has 32- bit data bus.
DIMM; Dual Inline Memory Module is other type of memory used in these
days. It is available in 168 or 184 pin configuration. The data bus width is 64
bits wide.
RIMM: Rambus Inline memory module. These are used for high – end version
processors and available in 184 pin package.
data address
Cache Memory
Address data
Processor
Floppy Disks: The most common storage medium used on small computers in
s floppy disk. It is a flexible plastic disk coated with magnetic material and
looks like a phonograph record. Information can be recorded or read by inserting
it into a disk drive connected to the computer. The disks are permanently
erased in stiff paper jackets for protection and easy handling. An opening is
provided in the jacket to facilitate reading and writing of information.
Hard Disk: Another magnetic media suitable for storing large volumes of
information is the hard disk. A hard disk pack consist of two or more magnetic
plates fixed to a spindle, one below the other with a set read/ write heads as
shown in fig. 5. the disk pack is permanently sealed inside a casing to protect it
from dust and other contaminations.
Hard disks possess a number of advantages compared to floppy disks.
1. They can hold much larger volume of information.
2. They are very fast in reading and writing.
3. The not susceptible to dust and static electricity.
4. Storage capacity ranges 10 MB to 80 MB.
70 Digital Electronics and Computer Fundamentals
Computer Generations:
First Generation 1946 – 1955
Second Generation 1956 – 1965
Third Generation 1966 – 1975
Fourth Generation 1976 – present.
First Generation: The first generation computers are those in which vaccum
tubes are used. All the first generation computers possessed the following
Fundamentals of Computer 71
1) Large in size
2) Slow operating speeds.
3) Restricted computing capacity.
4) Limited programming capabilities
5) Short life span
6) Complex maintenance schedules
Third Generation: The research in the field of electronics led to the innovation
of the integrated circuits known as IC chips. The use of IC chips in the place of
transistors gave birth to the third generation computers. They were still more
compact, faster and less expensive, than the previous generation.
Fifth generation : Japan and many other countries are working on systems
what are known as expert systems which will considerably improve the man
machine interaction. Such systems would integrate the advancements in both
hardware and software technologies and would facilitate computer aided problem
solving with the help of orgnised information in many specialized areas.
Types of computers:
Based on the operating principles, computers can be classified into one of the
following types.
1. Digital computer
2. Analog computer
3. Hybrid Computer
Classification of computers:
Computers are also available in different sizes and different capabilities. Broadly
they may be categorized as micro computers, mini computers, mainframes and
super computers.
Minicomputers:
A minicomputer is a medium sized computer that is more costly and powerful
than a micro computer. Mini computer is usually designed to serve multiple
users simultaneously. A system that supports multiple users is called
Multiterminal, time sharing system. Minicomputers are the popular data
processing systems.
Fundamentals of Computer 73
Super computer: These have extremely large storage capacities and computing
speeds which are atleast 10 times faster than other computers. The super
computer is used for large scale numerical problems in scientific and engineering
disciplines. These included applications in electronics, production engineering,
weather forecasting, structural analysis, chemistry, medicine and physics.
1. What is a computer?
2. What are the types of computers?
3. What is a microprocessor?
4. What are the functions of the following units?
a) Arithmetic Logic Unit
b) Control Unit
c) Processing Unit
d) I/O Unit
5. What is a memory unit?
6. Explain the term Hardware and software?
5 – FUNDAMENTALS OF COMPUTERS
Introduction: The computers is making an impact on every aspect of our lives.
They have been in general use since 1950s. formerly, they were large, expensive
and used only by government agencies, big universities and large corporations.
The size and shape of the computer has changed in the past few years because
of a device called “ Microprocessor”. A computer designed using
microprocessor is called a “Microcomputer”. This chapter introduces the basic
structure of a computer, that is its basic components and interaction between
them.
A set of instructions written for the computer to perform a task is called a program
and a group of programs is called software.
program data
memory memory
Memory
Fig. No. 5.1
How the computer works can be explained briefly in the following manner.
Both program and data are fed into the CPU and transferred to their respective
memory
locations. The CPU reads instructions from the memory and performs the task
specified by the instruction on the data. This action of CPU on the data is called
Fundamentals of Computer 63
execution. After the completion of execution, the results are transferred to the
output of the computer.
The input and output devices are known as Peripherals. The control unit is a
part of CPU and has a function to control various operations in the microcomputer.
Memory: Memory is like the page of note book with space for a fixed number
of binary numbers on each line. Generally each line has space for eight binary
bits. The user writes the necessary instructions and data in memory. He asks
the computer to perform the given task and find an answer. But, here also a
quation araises. How does he can enter those instructions and data into the
computer’s memory? The answers are input and output( I./O) devices.
Input/ Output: The user can enter instructions and data into memory through
input devices such as a keyboard, A/D converters and so on. The ASCII
keyboard is similar to a typewriter keyboard and it is used to enter programs in
an English – like language.
After performing the given task, the result from CPU can be taken through
output devices such as printer, Cathode Ray Tube and Magnetic Tape.
Now the Quation is; where the computer processes data. This is done with the
group of logic circuits called Central Processing Unit( CPU)
In addition to working Registers and ALU, The CPU consists instruction decoder,
counters and control lines. The control Unit provides the necessary in the
microcomputer. It controls the flow of data between the Micro processor and
64 Digital Electronics and Computer Fundamentals
Memory: The memory block shown in fig. 5.1 has two sections: Read Only
Memory ( ROM) and Read write Memory(R/WM), popularly known as Random
Access Memory ( RAM). The Monitor programs of a microcomputer are
generally stored in the ROM. The Read/ write memory is also known as user
memory. It is used to store user programs and data. The memory functions are,
5.4 Functions of I/O Devices: Input / Output devices are the two basic
components that can provide a link between a computer and outside world.
They are normally abbreviated as I/O devices. An input device allows data and
information to enter into a micro computer in a machine readable form ( binary
word). An output device receives information from the micro computer and
present into a form which can easily be read by people.
computer.
3) It sends data in binary form to the computer for further processing.
The generally used input devices are keyboard, mouse, floppy disk, OMR Sheets,
Scanner, microphone and web camera.
The functions of output devices are,
The number of bits in a word or word length for a given computer( or) processor
) is fixed and words are formed through various combinations of these bits.
5.6 Functional Blocks of CPU: The main functioning unit of any computer
system is called the Central Processing Unit. The primary functions of CPU are
already discussed in section 5.3. The major functional blocks includes the various
registers, the arithmetic and logic unit, the instruction decoder, the important
control and timing section, along with inputs and outputs as shown in fig. 5.2
66 Digital Electronics and Computer Fundamentals
Temporary
Arithmetic and register
logi unit
Internal bus
Internal bus
Accemulator
Buffer / lach
Buffer
Program Counter
Instruction Instruction
decoder register
CPU
Fig. No. 5.2
b) Arithmetic logic Unit: This unit is used to Perform all the arithmetic and
logic operations, such as additions, multiplication , comparison etc.
c) Control Unit: This unit coordinates the activities of the all other units in the
system. Its main functions are,
RAM’s Memory:
SIMM: Signal Inline Memory Module (SIMM) is one of the most commonly
used form of memory. SIMM RAM sticks came in either 30 pin SIMM has 8-
bits data bus where 72 – pin SIMM has 32- bit data bus.
DIMM; Dual Inline Memory Module is other type of memory used in these
days. It is available in 168 or 184 pin configuration. The data bus width is 64
bits wide.
RIMM: Rambus Inline memory module. These are used for high – end version
processors and available in 184 pin package.
data address
Cache Memory
Address data
Processor
Floppy Disks: The most common storage medium used on small computers in
s floppy disk. It is a flexible plastic disk coated with magnetic material and
looks like a phonograph record. Information can be recorded or read by inserting
it into a disk drive connected to the computer. The disks are permanently
erased in stiff paper jackets for protection and easy handling. An opening is
provided in the jacket to facilitate reading and writing of information.
Hard Disk: Another magnetic media suitable for storing large volumes of
information is the hard disk. A hard disk pack consist of two or more magnetic
plates fixed to a spindle, one below the other with a set read/ write heads as
shown in fig. 5. the disk pack is permanently sealed inside a casing to protect it
from dust and other contaminations.
Hard disks possess a number of advantages compared to floppy disks.
1. They can hold much larger volume of information.
2. They are very fast in reading and writing.
3. The not susceptible to dust and static electricity.
4. Storage capacity ranges 10 MB to 80 MB.
70 Digital Electronics and Computer Fundamentals
Computer Generations:
First Generation 1946 – 1955
Second Generation 1956 – 1965
Third Generation 1966 – 1975
Fourth Generation 1976 – present.
First Generation: The first generation computers are those in which vaccum
tubes are used. All the first generation computers possessed the following
Fundamentals of Computer 71
1) Large in size
2) Slow operating speeds.
3) Restricted computing capacity.
4) Limited programming capabilities
5) Short life span
6) Complex maintenance schedules
Third Generation: The research in the field of electronics led to the innovation
of the integrated circuits known as IC chips. The use of IC chips in the place of
transistors gave birth to the third generation computers. They were still more
compact, faster and less expensive, than the previous generation.
Fifth generation : Japan and many other countries are working on systems
what are known as expert systems which will considerably improve the man
machine interaction. Such systems would integrate the advancements in both
hardware and software technologies and would facilitate computer aided problem
solving with the help of orgnised information in many specialized areas.
Types of computers:
Based on the operating principles, computers can be classified into one of the
following types.
1. Digital computer
2. Analog computer
3. Hybrid Computer
Classification of computers:
Computers are also available in different sizes and different capabilities. Broadly
they may be categorized as micro computers, mini computers, mainframes and
super computers.
Minicomputers:
A minicomputer is a medium sized computer that is more costly and powerful
than a micro computer. Mini computer is usually designed to serve multiple
users simultaneously. A system that supports multiple users is called
Multiterminal, time sharing system. Minicomputers are the popular data
processing systems.
Fundamentals of Computer 73
Super computer: These have extremely large storage capacities and computing
speeds which are atleast 10 times faster than other computers. The super
computer is used for large scale numerical problems in scientific and engineering
disciplines. These included applications in electronics, production engineering,
weather forecasting, structural analysis, chemistry, medicine and physics.
1. What is a computer?
2. What are the types of computers?
3. What is a microprocessor?
4. What are the functions of the following units?
a) Arithmetic Logic Unit
b) Control Unit
c) Processing Unit
d) I/O Unit
5. What is a memory unit?
6. Explain the term Hardware and software?
6.0. Introduction: computers need clear – cut instructions to tell them what to
do, how to do and when to do. A set of instructions to carry out these functions
is called a program. A group of such programs that are put into a computer to
operate and control its activity is called the software. These programs must be
in the internal storage ( memory) to execute their instructions.
Operating System:
Definition:
An operating System is a program that acts as an interface between the user and
the computer hardware and controls the execution of all kinds of programs.
application programs
Operating System
Hardware
Need: The hardware consists of central processing unit, input and output devices
and memory. These parts of computer hardware cannot produce any results if
there is no interaction between them. Like any other machine, the computer
system also requires a force or an intermediate operating that can interact
between hardware and user. The force behind it is an operating system.
M
E
The input device M
The Operating System The output device
keyboard O printer / Monitor
R
Y
Single user operating System: A single user OS allows a single user and all
the resources are available to this user at all times.
Multi user operating System: A multi user OS is one that support several
users at a time. Most OS’s for mini computers and mainframe computers are
multi user OS.
Most tasking operating system: A multi tasking OS is the one that supports
several tasks at a time, but only a single user.
c) Time sharing : In time sharing the CPU time is divided among all the
users on a scheduled basis. The basic ideal behind time sharing system is to
allow all user programs to have a brief share of the CPU time in turn. Each user
program, beginning from first program and proceding through the last, is allocated
a very short period of CPU time one by one. This short period of time during
which a user gets the attention of the cpu is known as time slice, time slot or time
quantum and id typically of the order of 10 to 20 milliseconds.
Time sharing reduces CPU idle time and provider advantages of quick response.
1. Primary Name
2. Extension or secondary name
DOS Commands:
1. Internal Commands
2. External Commands
6.3 Internal Commands: The Internal commands are those commands that
are automatically loaded in memory when the operating system DOS is loaded
into the memory.. they are loaded during the booting process. These commands
can be used without the need of nay DOS file or diskette. These commands
are used for common tasks like creating of a file and erasing a file etc.
1) Copy con:
This command is used to create a new file the general syntax of a copy
con command is.
The above example will creates a file named Mpc. Then type the contents
of the file using keyboard and then press F6 button or ctrl + Z (^Z) (for saving)
2) Type :
This command is used to display the content or information of a given
file if file exist.
Now both files will contain same information mec is a duplicate file of mpc file
Syntax : c:\> Ren <old filename > < New filename >
C:\> Ren ravni raju
5) Del: This command is used to delete ( remove) a file from the memory.
6) DIR: This command is used to display all files list the resides in the disk.
Syntax : C:/> DIR
82 Digital Electronics and Computer Fundamentals
a) DIR / P : It is used to display the files list and directories page wise.
d) DIR / OS: This command displays all files, size wise in ascending order.
f) DIR / OD This command display the files list date wise in ascending order.
g) DIR / S: This command displays all files list in specified directory and all its
sub directories
Syntax: C:\> DIR / S
Windows Operating System 83
h) DIR / B : It displays files list in bare format it means it is not displays any
headings and summary information.
Syntax: C:\> DIR / B
i) DIR / L: It displays the first files and directories list in lowercase letters.
j) DIR / 4 It displays the files list year in the created date) with 4 digit format.
Directory: A group of related files and sub directories is called a directory. All
directories in disk are identified by directory names. Directories are used to
organize the files in the disk.
Eg C :\ > MD MECS
C :\ MECS >
84 Digital Electronics and Computer Fundamentals
CD .. :
Eg : C : \ MECS > CD ..
The result of above command is C : \ >
RD : Removing Directory.
PATH: It gives information about the drive and where the data is stored in the
that drive.
DATE: This command is used to display the current date of system it also
allows to modify the current date. It displays the date in American format
( MM: DD: YYYY )
TIME: it is used to display the present time and also provides facility to
change or modify the present time.
Present time is 10 : 30 : 50
Enter New time :
Windows Operating System 85
FORMAT: This command is used to format a disk for use with DOS.
It means it is used to make a disk usable for operating system by dividing the
disk into magnetic tracks and sectors. The number of sectors and tracks depends
on capacity of disk and the version of the DOS. Format command erases all
the data exam the disk. Checks bad area on disk and can delete all data on
disc.
CHKDSK: This command is used to check a disk and displays a status report.
It returns information about the volume serial number, total disk space, space
in hidden files, space in directories and space in user files, space available on
disk total memory and free memory.
Syntax: C : \ > XCOPY < Source > < Destination > [/S] [/E] [/P]
Parameters
Eg:
PRINT: This command is used to print files. The files that are to be printed
must be standard text file and containing data compatible to the printer is printing
the files user can do other tasks. User can also give multiple filenames with the
print command.
DISK COPY : This command is used to more duplicate copy of the disk. It
first formats the large disk. It first formats the target disk and then copies the file
by collecting files from source disk and copies to target disk. It makes the
perfect coy of source disk.
C : \> DISKCOPY A: A:
————————————————————
————————————————————
Insert target disk in drive A :
Press any key to continue.
C : \ > SCANDISK C
C : - parent directory
User 1 – subdirectory
Mpc – subdirectory
The following is procedure to start a window program using start button through
windows 2000 operating system. It is a new operating system, which provides
the features of graphical user interface. The steps involved in invoking a program
are as follows.
1. Point the mouse pointer on start button shown in the fig. 6.2.1
5. Another popup menu will appear in that click on the icon notepad.
This is how you start the application called notepad through the start button.
This program called notepad allows you to type text. We will close it now.
Later in the session we will use it again to create a file
90 Digital Electronics and Computer Fundamentals
Likewise you can open any application through the start button and the
programs group icon.
File: If the data is small then we can use terminals i.e. keyboard and screen for
managing input and output. But if data is large then it becomes difficult in handling
large volumes of data through terminals, also data is lost when either program is
terminated or computer is switched off. This problem can be solved by storing
data on disks and reading data whenever necessary without destroying data.
This can be achieved by concept of file to store data.
In any software a file will not be ready available. The user whenever want to
store any data he has to create a new file and save it.
The space on world where data or text can be stored is called a document.
Hence any file in the MS- WORD is called as a document.
Various operations can be performed on these files. The basic operations are
as follows.
1. Naming a file.
2. Opening a file.
3. reading data from file
4. writing data into file
5. Closing a file.
Windows Operating System 91
For any file inorder to save it a name is needed it is called naming a file.
Inorder to read or write or modify any data in a file the file should be opened
Folder: Folder is a rectangular box, containing all the information about one
object. Folders will be available on the desktop or while clicking on the start
button they will be appeared in subprograms
The folders will be follows in colour and will reside on desktop. These folders
are stored on c – drive or d – drive.
Creating a folder: from the tree pane, select the directory under which you
want to create a sub – directory.
Choose file Æ new Æ folder. On the right pan of the screen a new folder is
created.
Type in the name of the new directory and press enter. You can notice the
change in the tree structure immediately.
Windows explorer is used for viewing all the files on disk and suitable for
locating a particular file.
You can use the find tool to search the entire hard disk for a specified file.
3. Point on the files or folders and then click on it. The following dialog
box will appear.
4. Type in the name of the file to be searched for use * and ? if desired.
5. In ‘Looking’ dialog box, type the name of the directory you want the
file to be searched in.
6. If you want to search down all the subordinate branches from the current
directory to the end of branch, click the ‘Include subfolder’ check
box’
Windows Operating System 93
7. Click on ‘Find now’ window will conduct the search on the current
disk and displays the list of files.
8. To display required file on the screen, click on the scroll down in fig.
The upper band of every window is known termed as a title bar where window
name is displayed. You can move the window around yours desktop, incase it
is not maximized.Title bar is highlighted, when window is active.Window is a
rectangular box that contain application or program. Every group under a
GUI operating has a number of icons. These are enclosed in a frame called
window. Every group has its own window.
Since windows has a multitasking feature, you can have a number of applications
( window) open at a time but can work with just on application at a time i.e.
there can be only one active window at a given time. You can make the window
active by clicking any where within its border.
To Minimize :
Activate the window, by clicking any where in it. Position the mouse
pointer on minimize button click once.
Maximize: Clicking on the maximize button, enlarges the window to fill the
entire screen. When application window is maximized, it covers the entire
desktop.
Click once.
After the window has been maximized, the maximize button changes to restore
button.
Title Bar
Control Box
Menu Bar
Close
Maximise
Minimise
Window
Vertical scroll
bar
To Resize :
Activate the window, by clicking any where on it. Position the mouse
pointer on the restore button. Click once.
7.0 :Introduction
MS-OFFICE
§ MS – Word
§ MS – Excel
§ MS – PowerPoint
§ MS – Access
§ MS – Outlook
§ MS – FrontPage
§ MS – Photo Draw
§ MS – Publisher
MS Word
MS Excel
MS PowerPoint
MS Access
MS Outlook
MS FrontPage
Front Page is a web application that is used to create, view, publish, maintain
and interact web sites and web pages.
MS Photo Draw
MS Publisher
98 Digital Electronics and Computer Fundamentals
Microsoft Word
Every piece of writing is written to be read. A text that is attractive, neat and
organized will attract the attention of a reader. Typewriters were widely used
for typing in order to have a neat and organized text. All of you must have seen
a text being typed on a typewriter. The text is directly typed on the paper. For
correcting any typing errors, the entire text has to be retyped. Hence a lot of
paper is wasted in the process.
However, with the advent of computers, the scene has changed. Now we have
computer software called word processor, which allows you to type text, make
corrections without retyping the entire matter and make the text look attractive
with lots of pictures in-between. You must be wondering how this is possible.
Word Processor
Microsoft Word
Word is a word processing program that is used to compose, edit, save and
print out text documents. It replaces the job of typewriters in smooth and
fast manner in addition to having more features. Basically, Word makes
possible what a typewriter does, but in an efficient and economical way.
The main advantage is, the matter can be changed as many times as we like
and in any format without retyping the text or wasting the stationary.
Word came out with word 6.0 version when it was released for
Windows 3.1. Subsequent versions of Word are word 7.0 (Word’95), Word
8.0 (word’97) and Word 9.0 (word 2000).
1) You can change whatever you want in the text without retyping the
entire text again.
2) Formatting and printing selected text in boldface, italics or underlined.
3) Changing the font and the size of letters of the selected text.
4) Moving or copying selected text to another location within the document
or to another document.
5) Printing selected text in subscript or superscript style.
6) Adding animations to selected text.
7) Searching for a particular word or phrase and replacing it with something
else.
8) Aligning (left, centered, right and justify) selected text.
9) Adjustable line and character spacing.
10) Adjustable page size and margins.
11) Facility to create multiple column text.
12) Spelling and Grammar Checking facility.
13) Facility to define headers and footers.
14) Facility to create footnotes and end notes.
15) Facility to insert images in your document.
16) Tables can be created and included in documents.
17) Multiple documents/files can be merged.
18) Toolbars contains buttons that makes easier to perform some common
tasks by clicking buttons like Saving, Printing or formatting text
19) Text boxes are used to keep text and graphics together.
Features of Word Processing Package 101
20) Mail-merge facility allows you to print the same letter with different
names and addresses that are saved in another file.
Word Components
Word 2000 window contains a menu bar and several toolbars. Most of the
buttons on these toolbars act as shortcuts to the commands in the menus. The
standard window has the following components.
Title Bar: This is the bar at the top of the window containing minimize, restore
or maximize and close buttons. This shows the name of the document and type
of the program.
Menu Bar: This is usually below the title bar that provides access to the word
menus.
Toolbars: Toolbars give quick access to some common commands. Word has
several different toolbars, By default, Word displays the standard and formatting
toolbars.
Ruler: The ruler shows tab, margin and indent settings. There are two rulers
horizontal and vertical ruler. These are located above and then to the left of the
working area.
Working area or Document area: This is space on word where data or text
can be entered or typed.
Insertion Point or Cursor: Insertion Point is the blinking vertical line on the
working area. This is the point where you can start typing text.
Scrollbars: The horizontal and vertical scrollbars let you bring different parts of
102 Digital Electronics and Computer Fundamentals
a document into view. Scrolling is a technique to see top, bottom, left and right
unseen text of the document.
Status bar: Status bar located at the bottom of the window. The status bar tells
you about the current status of the insertion point (cursor) or other items.
View Buttons: View buttons provide quick access to see documents in different
views. These buttons from left are: Normal View, Web Layout View, Print
Layout View and Outline View.
Creating a Document
When you start Word, a new document window opens. If Word already opened
follow the steps below to open a new blank document.
This is blank screen and is similar to a blank page in your note book. This
screen is the first page of your document. This is where you start typing. After
the first page gets over, Word automatically goes to the next page. Your document
can run into as many pages as required.
Features of Word Processing Package 103
The characters you type are inserted in front of a blinking vertical bar called
insertion point. To move the insertion point, you move the mouse pointer and
click at the desired place where you want to insert the text. While typing when
a word doesn’t fit it automatically flows to the beginning of next line. This feature
is called word-wrap. To start a new Paragraph position the insertion point at the
last line of the first paragraph and then press Enter key.
The document you type exists only in computer memory, a temporary storage
area i.e. in the RAM. It is essential that our document should be stored in a
permanent storage device such as hard disk or floppy disk for future retrieval.
This is referred to as “Saving a Document”.
The text typed using word is kept in files called documents. Word provides two
commands in the File menu to save a document namely Save and Save As.
Subsequent saving
1. Choose Open… from the File menu. The Open dialog box will be
displayed
2. Select the desired Drive and Directory in the list box.
3. Choose the desired file.
4. Click on OK or simply double click the desired file.
Editing a Text
The process of changing the appearance of the text, deleting a portion of the
text, duplicating or moving a part of the text, is called Editing. To make these
changes you must first select the portion of text, which needs the change.
In Word, it is very important to know how to select (highlight) text because you
can do so many operations on the selected text.
A line of text Click in the selection bar area before the line
Moving Text
Ctrl + V
Word 2000 remembers all your actions. At any stage, you can undo not only
the latest action but also the number of earlier actions related to editing and
formatting document. Undo cancel (undoes) the last action that you have just
performed. Redo redoes the last action that you have just undone it. Repeat
repeats the last action that you have just done it.
1) Normal View: This view responds faster to typing, editing, and scrolling.
In this view page headers, footers and margins are hidden so that you
can concentrate on text. Automatic page breaks are shown as horizontal
dotted lines. Normal view displays only the horizontal ruler not the vertical
ruler.
To see document in Normal view
a) Select Normal view option from the View menu
b) Clicking Normal View button above left-corner of the status
Features of Word Processing Package 107
bar.
c) Press Alt + V and N from keyboard.
2) Web Layout View: This view displays documents, as it will look on
the web. When a document is open in Web Layout View, Word enlarges
the size of text and wraps lines of text so everything is on the screen
without having to scroll horizontally.
To see document in Web Layout view
a) Select Web Layout view option from the View menu
b) Clicking Web Layout View button above left-corner of the
status bar.
c) Press Alt + V and W from keyboard.
3) Print Layout View: This view shows how text, graphics, and other
elements are positioned on the printed page. This is helpful in editing
headers and footers, adjusting margins, and with columns and drawings
objects.
To see document in Print Layout view
a) Select Print Layout view option from the View menu
b) Clicking Print Layout View button above left-corner of the
status bar.
c) Press Alt + V and P from keyboard.
5) Full Screen View: This view removes all the menus and toolbars as
well as takes up all available space in the Word window. To see a
document in Full Screen, click View menu and select Full Screen option.
When you are in full screen, click Close full screen option or press
Esc. Key on the keyboard to return to the previous view. Keyboard
shortcut: Alt + V + U
7) Print Preview View: This view shows exactly how it will look when it
is printed on. When this view is selected Word resizes the document so
it fits inside the document window. To see a document in this mode
select Print Preview from file menu bar or click Print Preview button
on Standard Toolbar. Keyboard shortcut is: Alt + F + V.
Symbols and special characters that are not available on the keyboard can be
inserted using Symbol feature or Keyboard shortcuts. To display the symbol
dialog box select Symbol from Insert menu or press Alt + I and then S.
Insert a Symbol
Font: Font is a set of characters that make up one member or style of a particular
typeface. A font consists of three elements Type Face, Type Size and Type
Style
Type Face: Type face refers to design of the letters. Times New Roman is the
default type face.
Type Size: Letters can be made larger or smaller as you prefer. Type size
measured in “points”.
Type Style: A type style is a way to enhance text (Eg. Bold, Italic, Underline
etc. )
Special Effects: You can decorate your text, as you want using Font dialog
box. There are different formatting options in the form of check boxes named
under effects. These are
1. Strikethrough: Draws a line through the selected text.
2. Double Strikethrough: Draws a double line through the selected text.
3. Superscript: Raises the selected text above the baseline and changes
it to a smaller size.
112 Digital Electronics and Computer Fundamentals
4. Subscript: Lowers the selected text below the baseline and changes it
to a smaller size.
5. Shadow: Adds a shadow behind the selected text, beneath and to the
right of the text.
6. Outline: Displays the inner and outer borders of each character.
7. Emboss: Makes selected text appear as if it is raised off the page in
relief.
8. Engrave: Makes selected text appear to be imprinted or pressed into
the page.
9. Small caps: Formats selected text as capital letters and reduces their
size.
10. All Caps: Formats selected text as capital letters.
11. Hidden: Prevents selected text from being displayed or printed.
Change Case
Change Case Changes the capitalization of selected text. It is used to change
text from uppercase to lowercase and vice versa.
Procedure:
1. Selected text to be changed.
2. Choose Change Case… option from format menu to displays the
Change Case dialog box. There are five options.
a. Sentence Case: Capitalizes the first letter of the first word in
the selected sentences.
b. Lowercase: Changes all selected text to lowercase letters.
c. Uppercase: Changes all selected to capital letters.
d. Title Case: Capitalizes the first letter of each word in the selected
text.
e. Toggle Case: Changes all uppercase letters to lowercase in
the selection and vice versa.
Paragraph Formatting
In general paragraph is a collection sentences. In Word 2000, a paragraph is
nothing more than a collection of words that ends when you press Enter key.
When you press the Enter key, you are marking the end of a paragraph. Paragraph
formatting affects individual paragraphs.
Alignment
Alignment means an arrangement of text into suitable order in the paragraph. It
shapes whether your text is lined up on the left, right, in the center, or on both
left and right so that it leads to smartening the paragraph. There are four buttons
on the formatting toolbar namely Align Left, Align Right, Center and Justify.
1. Align Left: Aligns the selected text to the left with uneven right edges.
2. Center: Centers the selected text.
3. Align Right: Aligns the selected text to the right with uneven left edges.
4. Justify: Aligns the selected text to both the left and right margins or
indents.
Keyboard Shortcuts
1. Align Left : Ctrl + L
2. Align Right : Ctrl + R
3. Center : Ctrl + E
4. Justify : Ctrl + J
Indentation
Indentation is a process used to leave certain number of blank spaces before
114 Digital Electronics and Computer Fundamentals
the first line, as well as form the right and left margins of paragraph. Indentation
can be classified into four categories Left, Right, First Line and Hanging.
1. Left Indentation: Left Indentation leaves certain number of blank
spaces after the left margin.
2. Right Indentation: Right Indentation leaves certain number of blank
spaces before the right margin.
3. First Line Indentation: First Line Indentation leaves certain number
of blank spaces before the first line of the paragraph.
4. Hanging Indentation: Hanging Indentation leaves certain number of
blank spaces for all lines but the first from the left margin of a paragraph.
Line Spacing
Line spacing determines an amount of vertical spaces among lines in a paragraph.
It allows us to expand or condense the vertical spaces among lines of paragraph.
Line spacing can be set using either the Line spacing box in the paragraph
dialog box or keyboard shortcut or buttons in the formatting toolbar. There are
different line spacing options.
1. Single Line Spacing: This is Word’s default spacing. It accommodates
the largest font in that line, plus a small amount of extra space.
Features of Word Processing Package 115
Keyboard Shortcuts
1. Single Line Spacing : Ctrl + 1
2. 1.5 Line Spacing : Ctrl + 5
3. Double Line Spacing : Ctrl + 2
Bullet is an item used to highlight sections of text into an unordered list, in order
to bring attention to them. It is used make lists of information stand out from the
rest of your document text.
To insert a Bullet or Numbering at the start of a line, just click the Bullets
button or Numbering button on the Formatting toolbar.
116 Digital Electronics and Computer Fundamentals
If you want to put bullets or numbering for created information do the following.
1. Select the items you want to add bullets or numbering to.
2. Click Bullets button to add bullets, click Numbering button to add
numbering.
To create a bulleted or numbered list automatically as you type, type 1 or *
(asterisk), press SPACEBAR or TAB, and then type any text you want. When
you press ENTER to add the next list item, word automatically inserts the next
number or bullet. To finish the list press ENTER twice.
TABS
Tab helps you line up columns of information or indent text within a line or
paragraph. You can add, remove or move tabs as you desire. Each tab position
set on the horizontal ruler is called tab or tab stop. When the tab key on the
keyboard is pressed the insertion point jumps from one tab stop to the next.
Microsoft Word has five kinds of tab stops given below.
1. Left ( L ) : Text extends to the right from the tab stops.
2. Center ( ^ ) : Text is centered at the tab stop.
3. Right ( +) : Text extends to the left from the tab stop.
4. Decimal ( ^ ) : Text before the decimal point extends to the Left,
and text after the decimal point
extends to the right.
5. Bar ( I ) : Inserts a vertical line at the tab stop.
Features of Word Processing Package 117
The tab selector button at the left end of the horizontal ruler is used to select
different tab stops. Click it to cycle through left tab, center tab, right tab, decimal
tab and bar tab. The quickest way to set tabs for the current paragraph or
paragraphs is to use the horizontal ruler.
Page Setup
Page setting means setting the size of a page, margins (left, right, top, bottom
etc.), orientation (portrait or landscape) etc. The Page Setup dialog box helps
you to control page layout to a great extent in Word 2000.
4. Click OK button.
Setting the Page Size: Word 2000 will enable you to change the paper size
to anything you want. When you create a new document, Word picks up a
paper size which is usually the Letter size 8.5 inches wide and 11 inches long or
A4 size.
1. Click on File menu and select Page Setup… option.
2. Click Paper Size tab to bring it to the front.
3. Click the Paper Size drop down arrow and select the required paper
size.
4. Select the page orientation either Portrait or Landscape.
5. Click Ok button.
Inserting Page Breaks: Page break is the point at which one page ends and
another page begins. Page breaks are used to begin a new page of text before
the previous page is filled. Page breaks can be inserted automatically or manually.
When the current page is full, word 2000 automatically starts a new page.
These page breaks are called automatic page breaks. The page breaks inserted
manually are called manual page breaks.
Inserting Page Numbers: Microsoft Word provides facility add page numbers
to the top or bottom of document. Follow these steps to add page numbers
1. Click Insert menu and select the option Page Numbers…
2. Choose the position (bottom or top) from the position list box.
3. Choose the alignment (left, right, center etc.) from the Alignment list
box.
4. Click on OK.
7.8. TABLES
A table is a collection of rows and columns. Each row and column inside a
table is made up of units called cells. A cell is the intersection of rows and
columns. A current cell is where you type a table entry. Tables are often used to
organize and arrange information.
Mail Merge
Mail merge is an ability to create a letter in Word, and then print multiple copies
of that letter, each with a different name and address on it. Mail Merge in Word
may also be used to fill envelopes and labels with data as well. Mail Merge is
the process of taking document and mixing it with another to create an almost
identical bunch of new documents.
Main Document: This is the actual document that you are producing. It can
be a form letter, label or envelope. The main document contains normal text
that stays the same for each copy of the letter.
Data Source: This is the file that stores information to be brought into the main
document. This file contains a collection of names and addresses from which
Features of Word Processing Package 123
7. Click OK button.
8. The main document appears with the new mail merge toolbar.