UNit7 3
UNit7 3
5
Data transmission in shift register
Serial data
Serial data Serial data input
input output
6
Serial-in, Serial-out, Shift-right, Shift register
To store 4bit 4 D Flip-flops are connected.
Serial Input
1 0 1 0
10 10 10 0
D1 Q1 D2 Q2 D3 Q3 D4 Q4 Serial output
CLK
Data = 1010
9
10
Serial In Parallel Out using DFF(SIPO)
Serial Input QA QB QC QD
D1 Q1 D2 Q2 D3 Q3 D4 Q4
CLK
12
Parallel-in, Parallel-out, Shift register(PIPO)
B0 B1 B2 B3
D0 Q0 D1 Q1 D2 Q2 D3 Q3
CLK
QA QB QC QD
• It is called Buffer register.
•In one clock pulse all bits are stored simultaneously . Only one clock pulse is required.
For description refer this site: http://studytronics.weebly.com/shift-registers.html
13
Parallel-in, Parallel-out, Shift register(PIPO)
14
Parallel-in, Serial-out, Shift register
A 1 B 0 C 1 D 0
01 1
Shift/Load
1 1 1 0 1 1 1 1 1
0 1 0
1
D1 Q1 01 D2 Q2 01 D3 Q3 01 D4 Q4 0
CLK
15
Parallel-in, Serial-out, Shift register
• The input data will enter in parallel that means at a time to all flip flop and output
will
get serially.
• Then all input are feed the inputs of different 4 number of flip flop. With single clock
pulse all data are enter to all 4 flip flops.
• 4 bit parallel in serial out shift register, A, B, C, and D are the four parallel data input
lines and SHIFT / LOAD (SH / LD) is a control input that allows the four bits of data at
A, B, C, and D inputs to enter into the register in parallel or shift the data in serial.
• if SHIFT / LOAD = 0 then data will be stored and
if SHIFT / LOAD = 1 then data will be shifted.
•
16
4 bit Bidirectional shift register
It is the registers which are capable of shifting the data either right or left depending on the
mode selected.
If the mode = 1, the data will be shifted towards the right direction
if the mode = 0, the data will be shifted towards the left direction.
4- D flip-flops which are connected.
The input data is connected at two ends of the circuit and depending on the mode selected only
one and gate is in the active state.
17
4 bit Bidirectional shift register
18
Application of Register
Temporary data storage i.e. Microprocessor.
Data transfer and data manipulation .i.e. multiplication and division
by 2.
Produce time delay to digital circuits.
Used in communication lines where demultiplexing of a data line into
several parallel line is required.
Data Converter.
Ring counter.
Johnson or Twisted ring counter
https://learn.circuitverse.org/docs/seq-msi/registers.html#serial-in-serial-out
19
https://learn.circuitverse.org/docs/seq-msi/counters.html
• Primary purpose is to produce a specified output pattern sequence.
• The total number of states is called its modulus.
•An n-bit counter that counts through all its natural states and does
not skip any of the states has a modulus of 2^n.
23
• Group of flip-flops, count a stream of pulses applied to the
counter’s Clock input.
• The output is a binary value whose value is equal to the
number of pulses received at the CK input.
CLK
QA 0 1 0 1 0
QB 0 1 0
http://falstad.com/circuit/e-counter.html 25
2-bit Ripple Up-Counter- T FF(MOD-4) Negative Edge-triggered
26
2-bit Ripple Up-Counter- T FF(MOD-4) Negative Edge-triggered
27
2-bit Ripple Up-Counter using Negative Edge-triggered Flip-Flop
1 Q1 1 Q2
J1 Q1 J2 Q2
Present State Next State
CLK > FF1 > FF2 CLK
Q2 Q1 Q2 Q1
K1 Q1’ K2 Q2’ 0 0 0 1
0 1 1 0
1 0 1 1
CLK 1 1 0 0
Q1 0 1 0 1 0
Q2 0 1 0
28
2-bit Ripple down-Counter- T FF(MOD-4) Negative Edge-triggered
1 QA 1 QB
T1 Q1 T2 Q2
CLK > FF1 > FF2
Q1’ Q2’
29
2-bit Ripple Down-Counter using Positive Edge-triggered Flip-Flop
1 Q1 1 Q2
J1 Q1 J2 Q2
Present State Next State
CLK > FF1 > FF2 CLK
Q2 Q1 Q2 Q1
0 0 1 1
K1 Q1’ K2 Q2’
1 1 1 0
1 0 0 1
CLK 0 1 0 0
Q1 0 1 0 1 0 1
Q2 0 1 0
30
2-bit Ripple up-Counter using Positive Edge-triggered Flip-Flop
1 Q1 1 Q2
J1 Q1 J2 Q2
K1 Q1’ K2 Q2’
Refer this video link to understand 3 bit and 4 bit negative edge up-counter.
1. https://www.youtube.com/watch?v=ucCtDhYFCJs
2. https://www.youtube.com/watch?v=s1DSZEaCX_g
3. https://www.youtube.com/watch?v=eEeBh8jfDjg
31
Design 4-bit Ripple up -Counter using JK FF. Write its TT and Draw Timing diagram.
Refer Anil K.Maini page no 431
ripple counter type number 74293 IC.→ four-bit binary ripple counter
32
Homewor
1.kDesign 3-bit Ripple up -Counter using T/JK FF. Write its TT and Draw Timing
diagram.(http://www.prajval.in/edudetail/284/2413/%3Cp%3E%3Cstrong%3EDesign-3-bit-ripple-up-counter-using-negative-
edge-triggered-JK-flip-flops-Also-draw-the-waveforms%3C-strong%3E%3C-p%3E-).
1. Design-3-bit-ripple-up-counter-using-negative-edge-triggered-JK-flip-flops-
Also-draw-the-waveforms.
2. Design 3-bit Ripple down -Counter using T/JK FF. Write its TT and Draw Timing
diagram.
3. Design 4-bit Ripple down -Counter using T/JK FF. Write its TT and Draw Timing
diagram.
33
Up/Down counter
2 bit up/down ripple counter
Source: https://player.uacdn.net/lesson-raw/CTESRQVKPN4ZGUOGTTJX/pdf/7718910058.pdf 34
Modulus Ripple Counter
Mod 4 counter → 2 bit counter → 2 FF are required.
Mod 8 counter → 3 bit counter → 3 FF are required.
Mod N counter→ n bit counter → n FF are required.
Modulus counter= Ripple Counter+ Reset Logic(Combinational logic)
https://www.youtube.com/watch?v=5mfN5KdjcQw
35
Design Steps:
1. Determine number of flip-flop.
2. Choose the type of flip-flop.
3. Write the truth table of the counter.
4. Make the Kmap and derive the boolean equation.
5. Design counter.
Mod-6 Asynchronous/Ripple Counter
37
Mod-6 Asynchronous/Ripple Counter
After State
Reset(R)
pulses Q3 Q2 Q1
0 0 0 0 1 1
1 0 0 1 1
2 0 1 0 1
3 0 1 1 1
4 1 0 0 1
5 1 0 1 1
6 1 1 0 0
R = Q3’ + Q2 ’
R = 1 for 000 to 101
R = 0 for 110
R = x for 111
38
Mod-6 Asynchronous Counter
1 Q1 1 Q2 1
Q3
T1 Q1 T2 Q2 T3 Q3
CLK > FF1 > FF2 > FF3
39
Section - 4
http://falstad.com/circuit/e-synccounter.html
Design of Synchronous Counters
Step 1 - Number of flip-flops: Based on the description of the problem, determine the required
number n of the FFs - the smallest value of n is such that the number of states N ≤ 2n and the
desired counting sequence.
Step 2 - State diagram: Draw the state diagram showing all the possible states.
Step 3 - Choice of flip-flops and excitation table: Select the type of flip-flops to be used and
write the excitation table.
Step 4 - Minimal expressions for excitations: K-maps for the excitations of the flip-flops in
terms of the present states and inputs.
Step 5 - Logic Diagram: Draw the logic diagram based on the minimal expressions.
41
Design of Synchronous 3-bit Up Counters
Step 1 - Number of flip-flops:
A 3-bit up-counter requires 3 flip-flops. The counting sequence is 000, 001, 010, 011, 100, 101,
110, 111, 000 …
Step 2 - Draw the state diagram:
000
111 001
110 010
101 011
100
42
43
Design of Synchronous 3-bit Up Counters
Step 3 - Select the type of flip-flops and draw the excitation table:
JK flip-flops are selected and the excitation table of a 3-bit up-counter using J-K flip-flops is
drawn as shown below.
PS NS Required excitations J-K FF Excitation Table
Q3 Q2 Q1 Q3 Q2 Q1 J3 K3 J2 K2 J1 K1 Required
PS NS
0 0 0 0 0 1 0 x 0 x 1 x inputs
0 0 1 0 1 0 0 x 1 x x 1 Qn Qn+1 J K
0 1 0 0 1 1 0 x x 0 1 x 0 0 0 x
0 1 1 1 0 0 1 x x 1 x 1 0 1 1 x
1 0 0 1 0 1 x 0 0 x 1 x 1 0 x 1
1 0 1 1 1 0 x 0 1 x x 1 1 1 x 0
1 1 0 1 1 1 x 0 x 0 1 x
1 1 1 0 0 0 x 1 x 1 x 1
44
Design of Synchronous 3-bit Up Counters
Step 4 - Obtain the minimal expressions:
From excitation table, J1 = K1 = 1.
K – Maps for excitations J3, K3, J2 and K2 and their minimized form are as follows:
Q3Q2 Q3Q2
00 01 11 10 00 01 11 10
Q1 Q1
0 x x 0 x x
1 1 x x 1 x x 1
J3 = Q2Q1 K3 = Q2Q1
45
Design of Synchronous 3-bit Up Counters
Q3Q2 Q3Q2
Q1 00 01 11 10 Q1 00 01 11 10
0 x x 0 x x
1 1 x x 1 1 x 1 1 x
J 2 = Q1 K2 = Q1
46
Design of Synchronous 3-bit Up Counters
Step 5 - Draw the logic diagram:
J1 Q1 J2 Q2 J3 Q3
47
Ring Counter- Shift Register Counters
48
4-bit Ring counter with 4 D flip-flop.
• Straight Ring Counter: One hot Counter : Last flip-flop is connected to the
input of the first flip-flop.
• No of state = No of bits.
49
4-bit Ring counter with 4 D flip-flop.
https://www.researchgate.net/figure/State-diagram-and-implementation-of-a-six-bit-ring-counter-with-D-Flip-flops_fig2_322106955
51
4 bit Twisted Ring Counter
52
4 bit Twisted Ring Counter
To write about advantage ,dis- advantage ,application and working of this counter refer
below link
https://www.geeksforgeeks.org/n-bit-johnson-counter-in-digital-logic/?ref=lbp
53
Decade and BCD Counters
that goes through 10 unique output combinations and then resets as the clock proceeds
further.
MOD-10 counter.
4 flip-flops.
From 16 states any of the six states by using some kind of feedback is skipped.
A decade counter does not necessarily count from 0000 to 1001.
It could even count as 0000, 0001, 0010, 0101, 0110, 1001, 1010, 1100, 1101, 1111, 0000.
BCD counter is a special case of a decade counter.
Counts from 0000 to 1001 and then resets.
54
Designing Counters with Arbitrary Sequences
ALL BELOW LINK WILL BE USEFUL TO UNDERSTAND THE TOPICSO GO THROUGH ALL VIDEOS.
https://www.youtube.com/watch?v=Zce6NlHuvfs
https://www.youtube.com/watch?v=vx4PNd_Hl8U
https://www.youtube.com/watch?v=ruxiO77HL9k
55