Mechnotes: Electrical and Electronics Engineering
Mechnotes: Electrical and Electronics Engineering
Mechnotes: Electrical and Electronics Engineering
Prepared by:
Dr. S. Thamizharasan, Associate Professor / EEE
Mr. P. Sivaprakasam, Assistant Professor / EEE
Mr.A. Janagiraman, Assistant Professor/ EEE
es
5. ELECTRONICS (IC 555& COUNTERS)
Advantages of ICs - pin configurations of 555 IC - Design of Astable and mono-stable
multivibrator using 555 IC - Design of counters using FF-UP/DOWN counters– -Ring counters -
ot
Multiplexes –De-multiplexes
N
Part –A (2 Marks)
1. What do you mean by Mono-stable multi-vibrator (NOV/2014)
h
es
10. What are the types of shift registers? (APRIL/2012)
Serial In serial out shift register
Serial in parallel out shift register
ot
Parallel in serial out shift register
Parallel in parallel out shift register
Bidirectional shift register
N
Part- B (11 Marks)
h
INTEGRATED CIRCUIT(IC)
ec
“An IC is an Electronic circuit in which the active and passive components are fabricated
on a tiny single chip of silicon”
M
Advantages OF ICs
1. Draw and explain the functional diagram of a 555 timer. (NOV/2012) (NOV/2014)
PIN CONFIGURATIONS OF IC 555
es
ot
Pin diagram of IC555
Pin Functions
N
Pin: 1: Ground (GND): All voltages are measured with respect to this terminal.
Pin: 2: Trigger: It is the external input that will be applied to the inverting input of the lower
comparator & will be compared with (1/3) Vcc coming from the potential divider network.
h
Pin: 3: Output: Complement of the output of the flip-flop acts as the final output of timer as it
ec
passes through a power amplifier which is an inverter. Load can either be connected between
pin 3 & ground or pin 3 & Vcc.
Pin: 4: Reset: This is an input to the timing device which provides a mechanism to reset the
flip-flop in a manner which overrides the effect of any instruction coming to the FF from
M
lower comparator. This is effective when the reset input is less than 0.4V.When not used it is
returned to Vcc.
Pin: 5: Control Voltage input: Generally the fixed voltages of (1/3)Vcc&(2/3)Vcc also aid in
determining the timing interval. The control voltage at 5 can be used when it is required to
vary the time & also in such cases when the reference level at V- of the UC is other than
2/3Vcc.Generally when not used a capacitor of 0.01uF should be connected between 5 &
ground to bypass noise or ripple from the supply.
Pin: 6: Threshold: An external voltage by means of a timing capacitor & resistor is applied to
this pin. When this voltage is greater than (2/)3Vcc output of UC is 1 which is given to the set
input of FF thereby setting the FF making Q=1 & Q=0.
Pin:7: Discharge: This pin is connected to the collector of the discharge transistor Q1.When Q
output of the FF is 1,then Transistor Q1 is on due to sufficient base drive hence driving
transistor into saturation. When output of the FF is low Transistor Q1 is off hence acting as a
open circuit to any external device connected to it.
Pin: 8: +Vcc (Power Supply): It can work with any supply voltage between 5 & 18V.
es
Monostable multi-vibrator.
Astable multi-vibrator.
ot
2. Explain the operation of monostable multi-vibrator. (APRIL/2013)
N
MONOSTABLE MULTIVIBRATOR
h
A monostable multi-vibrator is a regenerative comparator having one stable state & one quasi
stable state. The IC555 timer can be operated as a monostable Multi Vibrator by connecting an
ec
This circuit has only one stable state (0 state) .Whenever an external trigger is applied, it
produces a pulse at the output & returns back to its stable state. The duration of the pulse depends on
the values of R &C. It is also called as Mono shot or one shot MV.
es
Working:
Initially, let output be 0, then Q of FF is high & it holds the transistor Q1 on, thus clamping
the external timing capacitor to ground. As the input trigger passes through Vcc/3, the FF is reset &
ot
hence Q=0.This makes Q1 off & the short circuit across timing capacitor is released, & now output is
high. Now the timing cycle begins, charging capacitor C towards Vcc through R with a time constant
N
RC. After a time period T when the capacitor Voltage just exceeds 2/3Vcc (as compared in UC), the
UC output becomes 1 & sets the FF output to 1.Therefore Q=1.Now transistor q1 turns on (saturates),
h
thereby discharging the capacitor rapidly to ground potential. Output also returns to 0 state.
ec
M
es
Now even if Reset is released output will remain low till the next negative going trigger pulse
comes along. ot
Applications of Monostable Multivibrator
Frequency Divider
N
Since the application of a trigger pulse causes output to go to high state, by adjusting time
interval of input trigger to be less than the pulse width of the monostable multi-vibrator, it can be
h
Pulse Stretcher
es
3. Draw the block diagram of an Astable multi-vibrator using 555 timer and derive an
expression for its frequency of oscillation. (11) (NOV/2014)
ot(or)
Explain in detail about the Astable multi-vibrator. (APRIL/2012)
(or)
N
Explain the operation of Astable multi-vibrator with neat sketch. (NOV/2013)
(or)
h
An Astable multi-vibrator is a regenerative comparator having no stable states but two quasi
stable states. It is also called free-running multi-vibrator, because it does not require an external
M
trigger pulse to change its output. The output continuously alternates between high & low states.
The time period for which the output remains in either of the states is determined by two timing
resistors & a capacitor that are externally connected to the circuit.
Working:
ot
Comparing monostable operation, timing resistor is now split into two parts Ra & Rb. Pin 7,
collector of discharging transistor Q1 is connected to the junction of Ra & Rb. Assume initially output
N
is high. Output of FF, Q=0. The discharge transistor Q1 is off .Now the external timing capacitor
charges towards Vcc with a time constant (Ra+ Rb) C. As the capacitor Voltage rises just above
2/3Vcc, the output of UC becomes 1 & that of LC becomes 0 thereby setting the output of control FF
h
to 1.Hence final output at pin 3 becomes 0. Now the discharge transistor Q1 is on & the capacitor
ec
discharges with a time constant (Rb)C.As the capacitor voltage just reaches below 1/3Vcc LC is
triggered on & output of UC becomes 0 thereby making the output of FF 0 & final output high. This
unclamps the timing capacitor C which now starts getting charged again repetitively.
M
Expression for T
The instantaneous voltage across the capacitor is given by,
Vc=Vf + (Vi – Vf)e-τ /T
es
Therefore,
Vc=0+ (2/3Vcc-0) e-t/RbC
ot
But
Vc=1/3Vcc at t=TD, the discharging time.
N
Therefore,
1/3Vcc=0+(2/3Vcc-0)e-TD/RbC
h
e-TD/RbC=1/2
ec
TD/RbC=0.693
TD=0.693RbC
T=TC+TD
M
T=0.693(Ra+2Rb) C
f=1/T=1.45/(Ra+2Rb)C
Duty Cycle
The ratio of the time duration for which the output is high to the total time period T is called
the duty cycle of the Astable multi-vibrator denoted by D.
D=TC/T
D = (Ra+Rb)/ (Ra+2Rb)
NOTE:
D can never be equal to or less than 0.5 for any combination of Ra & Rb ,& it is always greater
than 0.5
To obtain a duty cycle of 50%, Ra=0 which results in an additional current through transistor
Q1 hence damaging the transistor.
es
TC=0.693RaC
TC=0.693RbC
ot
T= 0.693(Ra+Rb) C
The timing capacitance should be larger than 500pF to keep stray capacitances
negligible.
The resistors should be greater than 1KΏ to limit the current & should not be
larger than 3.3MΏ (the sum in case of Astable )
M
es
The 555 Astable multi-vibrators can be used to generate a free running ramp by replacing the
timing resistors Ra & Rb with a current mirror as shown below. Here the current mirror acts as a
constant current source & charges the capacitor C linearly towards Vcc. When the capacitor voltage
ot
rises above 2/3Vcc the UC sets the FF output to 1 which in turn turns on the discharge transistor Q1
on. Thus, the capacitor discharges rapidly through transistor Q1.When the capacitor voltage drops
below 1/3vcc LC output resets the FF output to 0 which causes the discharge transistor to turn off &
N
as a result the capacitor C begins to charge again.
h
The charging & discharging of the capacitor repeats continually resulting in the waveform
shown in fig. Also Tc>>TD because the capacitor discharges through the on transistor whose
ec
resistance is very small. Hence T=Tc. During the charging time Tc, the capacitor voltage changes by
1/3Vcc due to the flow of the constant current Ic. The charge acquired by the capacitor C as a result of
the constant current Ic flowing for a time tc is given by,
M
Q=Ictc
The charge acquired by a capacitor of capacitance C is also given by
Q=CV
Where, V is the change in voltage across the capacitor.
In this case, since V=1/3Vcc we have
Q=1/3Vcc
Hence, from equations (13) & (14), we get
tcIc=1/3VccC
The period of the free running ramp is T=tc& therefore,
T=tc=VccC/3Ic
Where the constant current Ic is given by,
Ic=Vcc-VBE/R
The free running frequency of the ramp generator is thus
f=1/T=3Ic/Vcc C
TP=1ms=1.1RC
Let C=0.1µF
5. A 555 monostable multi-vibrator is used to divide a 1 KHz input signal by 3.If R=20K,
calculate the required value of C.
For a divide by 3 circuit, TP should be greater than 2Tt but less than 3Tt.Let us take TP=2.2Tt
Therefore TP=2.2*1ms=2.2ms
Thus C=TP/1.1R=2.2*10-3/1.1*20*103=0.1µF
es
6. Design a 555 mono-stable circuit that stretches the width of a narrow pulse from 1µs to
100µs.
7. Design a 555 timer astable multivibrator for an output frequency of 1 KHz & duty cycle of
ec
60%.
TC=TD=0.6*1ms=0.6ms
TD=T- TC = (1-0.6)ms=0.4ms
Rb=TD/0.693C
Let C=0.1µF
Ra=TC/0.693C - Rb
3.06K Ώ.
COUNTERS
A counter is a device which stores (and sometimes displays) the number of times a particular
event or process has occurred, often in relationship to a clock signal. In practice, there are two types
of counters:
Counters can be implemented easily using register-type circuits such as the flip-flop. The types of
counters are
Asynchronous (ripple) counter – changing state bits are used as clocks to subsequent
state flip-flops
Synchronous counter – all state bits change under control of a single clock
Decade counter – counts through ten states per stage
Up–down counter – counts both up and down, under command of a control input
Ring counter – formed by a shift register with feedback connection in a ring
Johnson counter – a twisted ring counter
Cascaded counter
es
Up Down counters
A circuit of a 3-bit synchronous up-down counter and a table of its sequence are shown below. It
ot
is used to control the direction of the counter through a certain sequence.
h N
ec
Synchronous counter
M
Bit Sequence
For both the UP and DOWN sequences, Q0 toggles on each clock pulse.
For the UP sequence, Q1 changes state on the next clock pulse when Q0=1.
For the DOWN sequence, Q1 changes state on the next clock pulse when Q0=0.
For the UP sequence, Q2 changes state on the next clock pulse when Q0=Q1=1.
For the DOWN sequence, Q2 changes state on the next clock pulse when Q0=Q1=0.
These characteristics are implemented with the AND, OR & NOT logic connected as shown
in the logic diagram above.
Shift registers
In digital circuits, a shift register is a cascade of flip flops, sharing the same clock, which has the
output of anyone but the last flip-flop connected to the "data" input of the next one in the chain,
resulting in a circuit that shifts by one position the one-dimensional "bit array" stored in it, shifting in
the data present at its input and shifting out the last bit in the array, when enabled to do so by a
transition of the clock input. A shift register may be multidimensional; such that its "data in" input
and stage outputs are themselves bit arrays: this is implemented simply by running several shift
registers of the same bit-length in parallel. Shift registers can have both parallel and serial inputs and
outputs. These are often configured as serial-in, parallel-out (SIPO) or as parallel-in, serial-out
(PISO). There are also types that have both serial and parallel input and types with serial and parallel
output. There are also bi-directional shift registers which allow shifting in both directions: L→R or
R→L. The serial input and last output of a shift register can also be connected together to create a
circular shift register.
11. Explain the working of serial in – serial out shift register with logic diagram. (NOV/2012)
es
Serial-In, Serial-Out (SISO)
Serial-IN Serial-OUT register is simplest kind of shift registers. The data string is presented at
'Data In', and is shifted right one stage each time 'Data Advance' is brought high. At each advance,
ot
the bit on the far left (i.e. 'Data In') is shifted into the first flip-flop's output. The bit on the far right
(i.e. 'Data Out') is shifted out and lost. The data are stored after each flip-flop on the 'Q' output, so
there are four storage 'slots' available in this arrangement; hence it is a 4-Bit Register. To give an idea
N
of the shifting pattern, imagine that the register holds 0000 (so all storage slots are empty). As 'Data
In' presents 1,0,1,1,0,0,0,0 (in that order, with a pulse at 'Data Advance' each time. This is called
h
clocking or strobing) to the register, this is the result. The left hand column corresponds to the left-
most flip-flop's output pin, and so on. So the serial output of the entire register is 10110000.
ec
0 0 0 0
M
1 0 0 0
0 1 0 0
1 0 1 0
1 1 0 1
0 1 1 0
0 0 1 1
0 0 0 1
0 0 0 0
4 Bit Sequence of Serial In Serial Out Shift Register
This configuration allows conversion from serial to parallel format. Data is input serially. Once
the data has been input, it may be either read off at each output simultaneously, or it can be shifted
out and replaced.
This configuration has the data input on lines D1 through D4 in parallel format. To write the data
to the register, the Write/Shift control line must be held LOW. To shift the data, the Write/Shift
control line is brought HIGH and the registers are clocked. The arrangement now acts as a PISO
shift register, with D1 as the Data Input. However, as long as the number of clock cycles is not more
than the length of the data-string, the Data Output, Q, will be the parallel data read off in order.
es
ot
h N
ec
For parallel in - parallel out shift registers, all data bits appear on the parallel outputs
immediately following the simultaneous entry of the data bits. The following circuit is a four-bit
parallel in - parallel out shift register constructed by D flip-flops.
es
12. Explain in detail about BCD counter
BCD Counter
Binary-coded-decimal (BCD) counters consists of two modulo-10 counters, one for each BCD
digit, implemented using the parallel load four-bit counter. It is necessary to reset the four flip-flops
ot
after the count of 9 has been obtained. Thus the Load input to each stage is equal to 1 when Q3 = Q0
= 1, which causes 0s to be loaded into the flip-flops at the next positive edge of the clock signal.
N
Whenever the count in stage 0, BCD 0, reaches 9 it is necessary to enable the second stage so that it
will be incremented when the next clock pulse arrives.
h
ec
M
BCD Counter
This is accomplished by keeping the Enable signal for BCD1 low at all times except when BCD0 = 9.
It has to be possible to clear the contents of the counter by activating some control signal. Two OR
gates are included in the circuit for this purpose. The control input clear can be used to load 0s into
the counter. Clear is active when high. In any digital system there is usually one or more clock
signals used to drive all synchronous circuitry. Counters can be used to count the number of pulses
in any signal that may be used in place of the clock signal.
Multiplexors
“The multiplexor (mux), provides the function of a rotary switch, selecting one of several
inputs to connect to a single output. The multiplexor is often referred to as a selector.”
A mux acts like a rotary switch connecting one of several inputs to a single output. The
selection of which input to connect to the output is determined by additional inputs called select or
control lines. The input selected is determined by the binary equivalent of the value placed on the
select lines. For example, consider a mux that selects one of four inputs to connect to the output. This
is referred to as a 4-to-l mux. To select one of four inputs, there must be four unique combination of
the select lines. This requires two select lines providing the four unique combinations 00, 01, 10, and
11. A select-line combination of 00 would select input 0, select-line combination 01 would select
input I, and so on.
S1 S2 F
0 0 D0
0 1 D1
es
1 0 D2
1 1 D3
for the remaining input combinations. This is implemented by the following expression:
ec
The figure shown below is a NAND-gate implementation of a 4-to-l multiplexor. To better illustrate
the function of the multiplexor as a complete "unit," all variable complement! have been generated
M
internally. Since the multiplexor function is so useful, many TTL chips exist that perform the
equivalent operation of the circuit shown in below figure. For example, the 7415; contains two 4-to-l
multiplexors, the 74151 contains one 8-to-l multiplexor, and the( 74157 contains four 2-to-l
multiplexors. A multiplexor is typically shown in a circuit as a single functional unit, not as the gates
comprising the circuit. A typical representation of a 4-to-l multiplexor is shown in below figure.
The Demultiplexor
“The demultiplexor (demux), provides the inverse function, connecting a single input to
one of several outputs. The demultiplexor is often referred to as a decoder.”
The demultiplexer connects one input to one of several outputs. The output is selected via
select lines as it is with the mux. The most common use of a demultiplexer is as a decoder. In fact,
demuxes are typically referred to as decoders. A decoder sets the output line selected by the select
lines to 0. This function is easily implemented with the demux by tying the data input line to 0.
es
To illustrate the behavior of a demux, consider the operation of a demux that connects one
input to one of four outputs. This is referred to as a l-to-4 demultiplexer. Used as a decoder, it is
ot
referred to as a 2-to-4 decoder since two select lines select one of four outputs. The operation of this
demux is illustrated in the below table. This truth table shows the four outputs of the demux as a
function of the data in D 1 and select lines.
N
Notice that the default state of an output is 1. Therefore, any outputs not selected will be 1.
Thus, as table shown below illustrates, when the data in D1 input is 1, all outputs will be 1 regardless
h
A decoder sets the output selected by the select-line inputs to 0. As can be seen in the below
table, this is accomplished by tying the data input to 0. Thus the data input can be thought of as an
active-low enable for the decoder. If this enable is not low, the decoder will not function (all outputs
M
will always be 1). Often decoders will have more than one enable line, requiring all enable lines to be
properly enabled before the decoder functions.
The functions illustrated in the below table can be expressed algebraically as:
FO = D1 S 2 S1
F1 = D1 S 2 S1
F2 = D1 S 2 S1
F3 = D1 S 2 S1
D1 S2 S1 F0 F1 F2 F3
0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
1 X X 1 1 1 1
The figure shown above is a NAND-gate implementation of the l-to-4 demux (2-to-4 decoder). As
ot
with multiplexors, the demultiplexor circuit is available in several variations on standard TTL chips.
For example, the 74138 contains one l-to-8 demux (3-to-8 decoder), and the 74139 contains two l-to-
4 demuxes (2-to-4 decoders).
N
As with the multiplexor, a demux is typically shown in a circuit as a separate functional unit, not as
the gates comprising the demux. Shown in the above figure are typical demux and decoder
h
representations of the circuit in figure. Note the presence of active-low indicators at the enable input
and each of the outputs on the decoder representation. This indicates the decoder is enabled with a
ec
Used in tandem, a mux-demux combination can be used for serial communication to reduce
the number of wires required to pass data. The pair can be used in a similar manner to run
multidigital displays such as those found in calculators. Muxes are often used in digital circuits to
control signal and data routing. For example, a multiplexor can be used to select the input to a
particular register from one of several sources. Decoders are often used in computers to provide
address decoding. Based on certain address lines, the decoder can provide enable signals to the
proper memory chips. In addition, both muxes and demuxes can be used to evaluate simple boolean
expressions using less hardware than if individual logic gates were used.
es
ot
N
A 4 –bit counter using D- flip-flop
h
ec
M
As shown in the above truth table, the ring counter has only 4 valid states, i.e. 1000, 0100, 0010 and
0001. The ring counter can hang or enter into anyone of the invalid state due to noise or any other
condition without returning to the main counting sequence. Hence, it is a must to design ring counters
which are self- correcting and capable of recovering from invalid states to valid states.
Reference:
1. I. Albert Malvino and David Bates, “Electronic Principles”, 7th Edition, Tata Mc-Graw Hill, New Delhi,
2006.
2. Ramakant A Gayakward, Operational Amplifiers and Linear Integrated circuits, 4th Edition, PHI
Learning, Delhi, 2009.