Mod 3 4
Mod 3 4
Mod 3 4
SEQUENTIAL CIRCUITS
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
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.
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.
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.
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.
PIPO- all data bits appear on the parallel outputs immediately following the
simultaneous entry of the data bits.
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.
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.
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
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
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
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
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
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.
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
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.
A3 A2 A1 A0
0 0 0 1
0 0 1 0
0 1 0 0
1 0 0 0
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.
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
• 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( + + + + + + )
• 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.
• i= ( )
• ( )
• =- ( B3+ B0)
12. Explain the working of counter ramp type ADC with diagram. (APR18) )(OCT
17)
Operation
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.
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
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.
20. Decode the message “1001001 “ coded in hamming code assuming that at
most a single error occurred in the code.
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)’
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.