0% found this document useful (0 votes)
16 views32 pages

Mod 3 4

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 32

MODULE 3

SEQUENTIAL CIRCUITS

1. Name the flip flop used for data storage.


SR Flip Flop,D Flip Flop,JK flip flop,T flip flop
2. List two types of sequential circuit based on timing of signals.
Asynchronous Ripple counters, Synchronous counters
3. What are flip flops?Give examples
SR Flip Flop,D Flip Flop,JK flip flop,T flip flop
4. Define latch.

5. Compare Sequential and combinational circuit.

Digital Computer Principles Page 1


6. Differentiate synchronous and asynchronous sequential circuits.

Asynchronous Ripple counters Synchronous counters


The delay time of all flip flops are The clock pulses are applied to all flip
added. Therefore there is flops simultaneously.Hence there is
considerable propagation delay. minimum propagation delay.
Frequency of operation is lesser than Frequency of operation can be much
in a synchronous counter. higher than that in ripple counter.
The maximum frequency depends on The maximum frequency does not
modulus. depends on modulus.
Circuit is simple. Circuit is complex.
Minimum number of logic devices are The number of logic devices required
needed. is more than in ripple counter.
Less costly than synchronous counter More costly than ripple counter
7. Construct a D latch using a gated SR latch.
E D Qn Qn+1 State
1 0 0 0 RESET
1 0 1 0
1 1 0 1 SET
1 1 1 1
0 X 0 0 No
0 X 1 1 Change
8. Design SR latch using NAND gate.

E S R Qn Qn+1 State
1 0 0 0 0 No Change
1 0 0 1 1
1 0 1 0 0 Reset
1 0 1 1 0
1 1 0 0 1 Set
1 1 0 1 1
1 1 1 0 x Invalid or
1 1 1 1 x Indeterminate

Digital Computer Principles Page 2


9. Write short note on D flip flop .Draw the logic symbol and truth table for a D
flip flop. Or Explain the working of a D flip flop.

Clk D Qn Qn+1 State


1 0 0 0 RESET
1 0 1 0
1 1 0 1 SET
1 1 1 1
0 X 0 0 No
0 X 1 1 Change

10. Demonstrate a JK flip flop with truth table.

Clk J K Qn Qn+1 State


1 0 0 0 0 No
1 0 0 1 1 Change
1 0 1 0 0 Reset
1 0 1 1 0
1 1 0 0 1 Set
1 1 0 1 1
1 1 1 0 1 Toggle
1 1 1 1 0

Digital Computer Principles Page 3


11. Explain the working of a T flip flop with logic diagram and truth table.

Clk D Qn Qn+1 State


1 0 0 0 No
1 0 1 1 Change
1 1 0 1 Toggle
1 1 1 0
0 X 0 0 No
0 X 1 1 Change

12. Design JK flip flop using D flip flop and verify it using characteristics table and
equation.

13. Construct a T flip flop using a JK flip flop with truth table

J and K are the actual inputs of the flip flop and T is taken as the external input for
conversion. Four combinations are produced with T and Qp. J and K are expressed in
terms of T and Qp.

Digital Computer Principles Page 4


14. Using suitable example explain race condition .How can it be avoided.

Consider, for example, that the inputs are J = K = 1 and Q = 1, and a pulse as shown
above is applied at the clock input. After a time interval ∆t equal to the propagation
delay through two NAND gates in series, the outputs will change to Q = 0. So now
we have J = K = 1 and Q = 0. After another time interval of ∆t the output will change
back to Q = 1. Hence, we conclude that for the time duration of tp of the clock pulse,
the output will oscillate between 0 and 1. Hence, at the end of the clock pulse, the
value of the output is not certain. This situation is referred to as a race-around
condition.

Generally, the propagation delay of TTL gates is of the order of nanoseconds. So if


the clock pulse is of the order of microseconds, then the output will change
thousands of times within the clock pulse. This race-around condition can be
avoided if tp < ∆t < T. Due to the small propagation delay of the ICs it may be difficult
to satisfy the above condition. A more practical way to avoid the problem is to use
the master-slave (M-S) configuration

Digital Computer Principles Page 5


15. Explain the working of JK master slave flip flop with logic diagram.

The input signals J and K are connected to the gated “master” SR flip flop which
“locks” the input condition while the clock (Clk) input is “HIGH” at logic level “1”.

As the clock input of the “slave” flip flop is the inverse (complement) of the “master”
clock input, the “slave” SR flip flop does not toggle.

The outputs from the “master” flip flop are only “seen” by the gated “slave” flip flop
when the clock input goes “LOW” to logic level “0”.

When the clock is “LOW”, the outputs from the “master” flip flop are latched and any
additional changes to its inputs are ignored. The gated “slave” flip flop now
responds to the state of its inputs passed over by the “master” section.

Then on the “Low-to-High” transition of the clock pulse the inputs of the “master”
flip flop are fed through to the gated inputs of the “slave” flip flop and on the “High-
to-Low” transition the same inputs are reflected on the output of the “slave” making
this type of flip flop edge or pulse-triggered.

Then, the circuit accepts input data when the clock signal is “HIGH”, and passes the
data to the output on the falling-edge of the clock signal. In other words, the Master-
Slave JK Flip flop is a “Synchronous” device as it only passes data with the timing of
the clock signal.

16. Explain different types of shift registers with data shifting diagrams.

Digital Computer Principles Page 6


SISO-In the serial mode, the registers have a single serial input and a single serial
output. The information is transferred one bit at a time while registers are shifted in
the same direction.

SIPO-data bits are entered serially in the same manner as discussed in the last
section. The difference is the way in which the data bits are taken out parallel from
the register.

Digital Computer Principles Page 7


PISO- data bits are entered parallel and outputs are taken out serially.

PIPO- all data bits appear on the parallel outputs immediately following the
simultaneous entry of the data bits.

Digital Computer Principles Page 8


17. Explain the working of a parallel in serial out shift register.

The parallel data is loaded into the register simultaneously and is shifted out of the
register serially one bit at a time under clock control.

Digital Computer Principles Page 9


18. Draw a 2 bit or MOD 4 asynchronous counter.

Digital Computer Principles Page 10


19. Draw a 3 bit or MOD 8 asynchronous counter using T flip flop.

20. Design a MOD 6 asynchronous circuit

Clk Q0 Q1 Q2
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1

21. Design and implement a MOD 10 or Decade asynchronous counter using T flip
flop and explain its working.

Digital Computer Principles Page 11


22. Design and implement a MOD 16 or 4 bit asynchronous counter using flip flop
and explain its working.

CLK Q0 Q1 Q2 Q3
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 0
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1

Digital Computer Principles Page 12


23. Design a synchronous 3 bit or MOD 8 up counter.

Clk Q0 Q1 Q2
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1

24. Design a synchronous 3 bit down counter.

Clk Q0 Q1 Q2
0 0 0 0
1 1 1 1
2 1 1 0
3 1 0 1
4 1 0 0
5 0 1 1
6 0 1 0
7 0 0 1

25. Design a synchronous MOD 6 counter using JK flip flop.

Clk Q0 Q1 Q2
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1

Digital Computer Principles Page 13


26. Design a synchronous MOD 16 or four 4 counter using JK flip flop

CLK Q0 Q1 Q2 Q3
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 0
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1

Digital Computer Principles Page 14


27. Design a synchronous MOD 10 or Decade counter using JK flip flop

28. Explain the working of 3 bit Johnson counter using JK flip flop.

Johnson counters are a variation of standard ring counters, with the inverted output of the
last stage fed back to the input of the first stage. They are also known as twisted ring
counters. An n-stage Johnson counter yields a count sequence of length 2n, so it may be
considered to be a mod-2n counter.

Digital Computer Principles Page 15


1.Since the J input of flip flop A is 1,the 1st shift pulse sets the A flip flop and other flip flop
remain rest as the J inputs of these flip flops are 0 and K inputs are 1.

2.When the 2nd shift pulse is applied, since QB is still 1,flip flop A remains set and flip flop
B is set,while flip flop C and D remains reset.

3.During the 3rd shift pulse flip flop C also sets,while flip flops A and B already set but flip
flop D remains reset.

4.During the 4th pulse ,flip flop D also sets while flip flops, A,B and C are already set.

Clock QD QC QB QA
pulse
1 0 0 0 0
2 0 0 0 1
3 0 0 1 1
4 0 1 1 1
5 1 1 1 1
6 1 1 1 0
7 1 1 0 0
8 1 0 0 0

Digital Computer Principles Page 16


29. Explain the working of a 4 bit ring counter. Or Design a 4 bit ring counter.Also
represent it using timing diagram and state diagram.

A ring counter is basically a circulating shift register in which the output of the most
significant stage is fed back to the input of the least significant stage. The following
is a 4-bit ring counter constructed from JK flip-flops. The output of each stage is
shifted into the next stage on the positive edge of a clock pulse. If the CLEAR signal
is high, all the flipflops except the first one FF0 are reset to 0. FF0 is preset to 1
instead.

1.The Q4 and ̅̅̅̅ outputs of the last flip flops are connected respectively,to the J and K
inputs of flip flop A.

2.The preset input of flip flop A is connected to the reset inputs of flip flops for
first,second,third.
If we place only one of the flip flops in the set state and the others in the reset state
and then apply clock pulses,the logic 1 will advance by one flip flop around the ring
for each clock pulse and the logic 1 will return to the original flip flop after exactly
four clock pulses,as there are only 4 flip flops in the ring.

Digital Computer Principles Page 17


Timing Diagram

A3 A2 A1 A0
0 0 0 1
0 0 1 0
0 1 0 0
1 0 0 0

Digital Computer Principles Page 18


MODULE 4
A/D,D/A,MEMORY AND PROGRAMMABLE LOGIC DEVICES

1. Name an error detecting code.(OCT 16)


Hamming Code
2. A group of 4 bits is called a byte and group of 8 bits is called nibble.(APR 17)
3. What is hamming code, also specify its applications. )(APR 19)
It is a code to detect error and correction .It is a single error correction
4. What is PAL? .(OCT 18)
PAL is a programmable logic device that has Programmable AND array & fixed OR
array.

5. What is PLA?

PLA is a programmable logic device that has both Programmable AND array &
Programmable OR array. Hence, it is the most flexible PLD.

6. What is meant by resolution in DAC? (APR18)


Resolution of DAC is defined as the smallest change that can occur in the analog
output as a result of a change in digital input.
7. Describe the need of DAC and ADC in digital system. (APR 17)
DAC
Microprocessors can only perform complex processing on digitized signals.
When signals are in digital form they are less susceptible to the deleterious effects of
additive noise.
ADC Provides a link between the analog world of transducers and the digital world
of signal processing and data handling.

Digital Computer Principles Page 19


ADC
To display the digital output of a digital system in analog form
To reconstruct the analog signal
To synthesize the speed ,video signals etc

8. List and explain various DAC specifications. (APR 17)(APR 19) (APR18)(OCT
17) (OCT 16)

Accuracy: Accuracy indicates how close the measured value is to the true value.
The most common factors for specifying accuracy are full scale error or Gain error
and linearity error.
Full Scale error is the maximum deviation of the output value from its
expected(ideal) value expressed in percentage of full-scale.
Gain Error: Difference in slope of the ideal curve and the actual DAC output.
Linearity error is the maximum deviation in step size from the ideal step size.
More expensive DACs have full scale and linearity errors as low as .001% of full
scale.

Offset Voltage: Ideally, the output of a DAC will be zero volts when binary inputs
are are all 0s.
In practice, there will be a very small output voltage called offset voltage or offset
error
Resolution of DAC is defined as the smallest change that can occur in the analog
output as a result of a change in digital input.
⮚ The resolution is always equal to the weight of the LSB and is also known as the step
size,since it is the amount of VO that will change when the digital input data goes
from one step to the next.
Settling time:The time required for the output of the DAC to settle within (1/2)LSB
of the final value for a given digital input

9. Explain a weighted resistor type DAC. (OCT 16)

• If R is any arbitrary resistance selected to suit the impedance level of the circuit
• Resistance from LSB are R,R/2,R/ ,R/ ,R/ ,R/ ,R/
• The current I to the non Inverting terminal is
• I=VR( + + + + + + )

• = ( s6+ s5+ s4+ s3+ s2+ s1+ s0)


• The output voltage V0
• V0=-IRf = ( s6+ s5+ s4+ s3+ s2+ s1+ s0)

Digital Computer Principles Page 20


10. Explain a 4 bit DAC with neat block diagram. (APR 17)
or
11. Explain a R-2R ladder DAC.(OCT 18) (APR18)

• The operation of the circuit assume that the terminal B0 is connected to VR and all
other terminals namely B1,B2,B3 are connected to ground.

• Applying Thevenin’s successively to the nodes a0,a1,a2,a3 with respect to ground .

Digital Computer Principles Page 21


• The current i obtained

• i= ( )

• The output voltage of the OP AMP

• ( )

• =- ( B3+ B0)

12. Explain the working of counter ramp type ADC with diagram. (APR18) )(OCT
17)

Operation

Let VA is the analog input voltage to be converted,

Digital Computer Principles Page 22


1.A START pulse is applied to reset the counter to zero.The HIGH at start also inhibits clock
pulses from passing through the AND gate into the counter.

2.With all 0s at its input,the DAC’s output will be VAX=0V.Since VA>VAX,the comparator
output ̅̅̅̅̅̅ will be HIGH.

3.When START returns to LOW the AND gate is enabled and clock pulses get through to the
counter.

4.This continues until VAX reaches a step that exceeds VA by an account equal to or greater
than VT.At this point ̅̅̅̅̅̅ will go to LOW and inhibit the flow of pulses into the counter and
the counter will stop counting.

5.The conversion process is now complete as signaled by the HIGH to LOW transition at
̅̅̅̅̅̅ and the contents of the counter are the digital representation of VA.

6.The counter will hold the digital value until the next START pulse initiates a new
conversion.

13. Explain the working of Successive approximation tpeADC with diagram.

Digital Computer Principles Page 23


• The ring counter is initially reset to 0.Normally ring counter is apart of successive
approximation register(SAR).
• The MSB is initially set to 1and the digital equivalent is compared with the unknown
analog input voltage.
• If the analog input voltage is higher than the digital equivalent,the MSB is retained
as 1 and the second MSB is set to 1.Otherwise the MSB is reset to 0 and the second
MSB is set to 1.
• Comparison is made as given in step 2 to decide whether to retain or reset the
second MSB and then the third MSB is set to 1.
• The above process is repeated down to LSB and by this time the converted digital
value is available in the SAR.

14. Categorize and explain different types of ROMS. )(APR 19)


The required paths in a ROM may be programmed in four different ways.
1. Mask programming: fabrication process
2. Read-only memory or PROM: blown fuse /fuse intact
3. Erasable PROM or EPROM: placed under a special ultraviolet light for a given period
of time will erase the pattern in ROM.
4. Electrically-erasable PROM(EEPROM): erased with an electrical signal instead of
ultraviolet light.

15. Explain how memory decoding is performed. .(OCT 18)


or
Explain construction of memory cell with logic diagram. .(OCT 18) )(OCT 17)

The equivalent logic of a binary cell that stores one bit of information is shown
below.
Read/Write = 0, select = 1, input data to S-R latch
Read/Write = 1, select = 1, output data from S-R latch

Digital Computer Principles Page 24


16. Draw an internal logic diagram of 32*8 ROM(OCT 16)

Each output of the decoder represents a memory address.


Each OR gate must be considered as having 32 inputs.
A 2k * n ROM will have an internal k X 2k decoder and n OR gates.

A programmable connection between to lines is logically equivalent to a switch that


can be altered to either be close or open.
Intersection between two lines is sometimes called a cross-point

Digital Computer Principles Page 25


Address 3 = 10110010 is permanent storage using fuse link

1 0 1 1 0 0 1 0

17. Draw and explain two dimensional decoding structure for a 1K memory. (APR
17)

A decoder with k inputs and 2k outputs requires 2k AND gates with k inputs per gate.
Two decoding in a two-dimensional selection scheme can reduce the number of
inputs per gate.
1K-word memory, instead of using a single 10X1024 decoder, we use two 5X32
decoders.

Digital Computer Principles Page 26


18. Explain the technique of error detection and correction using hamming code
with example. (APR 17) )(APR 19)
or
19. Write notes on error correction codes. (APR18)
When data is transmitted through a channel,noise generated by various sources
existing in the channel corrupting it.However,with digital data,if some bits are lost
by noise corruption,there is a probability that the etire data itself may be lost .Data
can be recovered from noise with the help of error detecting and correcting codes.
Hamming code is used to find the error and then correcting it.
 It is protecting the occasional errors in storing and retrieving the binary
information.
 Parity can be checked the error, but it can’t be corrected.
 An error-correcting code generates multiple parity check bits that are stored with
the data word in memory.

20. Decode the message “1001001 “ coded in hamming code assuming that at
most a single error occurred in the code.

Digital Computer Principles Page 27


21. Explain the working of Programmable logic array with example. (OCT 18)

 The product terms are then connected to OR gates to provide the sum of products
for the required Boolean functions.
 The output is inverted when the XOR input is connected to 1 (since x⊕1 = x’). The
output doesn’t change and connect to 0 (since x⊕0 = x).
Example:
F1 = AB’+AC+A’BC’
F2 = (AC+BC)’

Digital Computer Principles Page 28


22. Explain the working of Programmable array logic with example.

 When designing with a PAL, the Boolean functions must be simplified to fit into each
section.
 Unlike the PLA, a product term cannot be shared among two or more OR gates.
Therefore, each function can be simplified by itself without regard to common
product terms.

Digital Computer Principles Page 29


Digital Computer Principles Page 30
Digital Computer Principles Page 31
ANSWER FOR ALL THESE QUESTION ARE IN YOUR NOTE

23. Draw a logic diagram to implement the Boolean functions


F1=
F2= with aPLA programming table. (OCT 16)

24. Draw a logic diagram to implement the Boolean function


F1=
F2= in PLA(APR18)
25. Realize the following functions using a PAL with 4 inputs and 3 wide AND OR
structure along with the PAL programming table. )(APR 19)
F1=
F2=
F3=
F4
26. Develop a programming table for PAL for Boolean functions,
W=
X=
Y=
Z=

Digital Computer Principles Page 32

You might also like