05 Counters & Shift Registers

12 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€64.87
List Price:  €92.68
You save:  €27.80
£56.10
List Price:  £80.15
You save:  £24.04
CA$95.73
List Price:  CA$136.77
You save:  CA$41.03
A$105.62
List Price:  A$150.90
You save:  A$45.27
S$94.82
List Price:  S$135.47
You save:  S$40.64
HK$546.96
List Price:  HK$781.40
You save:  HK$234.44
CHF 63.69
List Price:  CHF 91
You save:  CHF 27.30
NOK kr765.17
List Price:  NOK kr1,093.15
You save:  NOK kr327.97
DKK kr484.68
List Price:  DKK kr692.43
You save:  DKK kr207.75
NZ$116.27
List Price:  NZ$166.11
You save:  NZ$49.83
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,181.33
List Price:  ৳11,688.12
You save:  ৳3,506.78
₹5,847.43
List Price:  ₹8,353.82
You save:  ₹2,506.39
RM331.68
List Price:  RM473.85
You save:  RM142.17
₦104,194.90
List Price:  ₦148,856.25
You save:  ₦44,661.34
₨19,442.91
List Price:  ₨27,776.78
You save:  ₨8,333.86
฿2,558.45
List Price:  ฿3,655.09
You save:  ฿1,096.63
₺2,267.97
List Price:  ₺3,240.09
You save:  ₺972.12
B$360.92
List Price:  B$515.62
You save:  B$154.70
R1,298.69
List Price:  R1,855.35
You save:  R556.66
Лв127.05
List Price:  Лв181.51
You save:  Лв54.46
₩95,963.28
List Price:  ₩137,096.28
You save:  ₩41,133
₪260.58
List Price:  ₪372.28
You save:  ₪111.69
₱4,029.07
List Price:  ₱5,756.07
You save:  ₱1,726.99
¥10,902.69
List Price:  ¥15,575.94
You save:  ¥4,673.25
MX$1,174.46
List Price:  MX$1,677.87
You save:  MX$503.41
QR255.17
List Price:  QR364.55
You save:  QR109.37
P950.08
List Price:  P1,357.32
You save:  P407.23
KSh9,195.33
List Price:  KSh13,136.75
You save:  KSh3,941.42
E£3,312.04
List Price:  E£4,731.69
You save:  E£1,419.65
ብር4,015.16
List Price:  ብር5,736.19
You save:  ብር1,721.02
Kz58,375.85
List Price:  Kz83,397.65
You save:  Kz25,021.80
CLP$64,711.15
List Price:  CLP$92,448.46
You save:  CLP$27,737.31
CN¥505.79
List Price:  CN¥722.59
You save:  CN¥216.80
RD$4,068.93
List Price:  RD$5,813.01
You save:  RD$1,744.07
DA9,407.80
List Price:  DA13,440.29
You save:  DA4,032.49
FJ$158.92
List Price:  FJ$227.04
You save:  FJ$68.12
Q543.32
List Price:  Q776.21
You save:  Q232.88
GY$14,629.88
List Price:  GY$20,900.72
You save:  GY$6,270.84
ISK kr9,750.65
List Price:  ISK kr13,930.10
You save:  ISK kr4,179.44
DH700.98
List Price:  DH1,001.44
You save:  DH300.46
L1,241.18
List Price:  L1,773.19
You save:  L532.01
ден3,997.25
List Price:  ден5,710.60
You save:  ден1,713.35
MOP$562.78
List Price:  MOP$804.01
You save:  MOP$241.22
N$1,286.15
List Price:  N$1,837.44
You save:  N$551.28
C$2,574.22
List Price:  C$3,677.62
You save:  C$1,103.39
रु9,342.46
List Price:  रु13,346.95
You save:  रु4,004.48
S/258.07
List Price:  S/368.69
You save:  S/110.62
K271.37
List Price:  K387.68
You save:  K116.31
SAR262.49
List Price:  SAR375.01
You save:  SAR112.51
ZK1,914.19
List Price:  ZK2,734.67
You save:  ZK820.48
L323.44
List Price:  L462.08
You save:  L138.63
Kč1,618.95
List Price:  Kč2,312.89
You save:  Kč693.93
Ft25,197.33
List Price:  Ft35,997.73
You save:  Ft10,800.40
SEK kr760.36
List Price:  SEK kr1,086.27
You save:  SEK kr325.91
ARS$61,709.50
List Price:  ARS$88,160.22
You save:  ARS$26,450.71
Bs483.18
List Price:  Bs690.29
You save:  Bs207.10
COP$272,025.83
List Price:  COP$388,624.98
You save:  COP$116,599.15
₡35,836.73
List Price:  ₡51,197.52
You save:  ₡15,360.79
L1,728.26
List Price:  L2,469.04
You save:  L740.78
₲524,126.44
List Price:  ₲748,784.15
You save:  ₲224,657.71
$U2,694.96
List Price:  $U3,850.11
You save:  $U1,155.14
zł279.64
List Price:  zł399.51
You save:  zł119.86
Already have an account? Log In

Transcript

Chapter Five counters and shift registers. If we examine a four bit binary count sequence from 0000 to 1111, a definite pattern will be evident in the oscillations of the bits between zero and one. Let me describe that a little bit further Note how the least significant bit toggles between zero and one for every step in the count sequence. While each succeeding bit toggles at one half the frequency of the one before the most significant bits only toggles once during the entire 16 step count sequence of transitions between 700 sorry, seven which is 01. One, one, and eight, which is 1000. If we wanted to design a digital circuit to count in four bit binary, all we'd have to do is design a series of frequency divider circuits.

Each circuit dividing the frequency of the square wave pulse by a factor of two. JK flip flops are ideally suited for this task, because they have the ability to toggle their input states at the command of a clock pulse. When both J and K inputs are made high or a one. Let's have a look at that. So here we have a JK flip flop that is connected such that the J and the K are being held in the one logic position by the power supply DDD. If you would And hence the clock pulse coming in, which we call signal a is going to be clocking the JK flip flop to exactly flip flop every time that there is a positive going signal coming into the clock pulse.

If we consider the two signals, one coming into the clock input being signal a and then we measure signal be coming out the other side. It would look like this over a period of time. And it represents basically a two bit binary number signal a being the least significant bit and signal B being the most significant bit. We see that the count sequence however is backwards as you start to go from left to right, you'll see the bits will be changing from one one to one zero to 01 and back to 00 again Although this may not be counting in the right direction, it is as least it is counting and it could be considered a counter. This is how I JK flip flops can be used for counting. However, we would like it to count in a positive direction and we're going to have a look at that in the next.

So now we're going to look at a four bit up counter. And in this case you have four JK flip flops that are being held the inputs are being held to JK inputs are being held at logic one level so they will act as a toggling device. That is when the clock pulse hits the C input whether it's positive going or negative going depending on what it's looking for. It will toggle each one of the The JK flip flops to the next position or the inverse position. If we used flip flops with negative edge triggering, and the bubbles are indicating that on the input, and we're only using the last three JK flip flops as negative triggered JK flip flops, we could connect the clock input of each flip flop to the Q output of the flip flop before it so that when a bit before it changes from a one to zero, the falling edge of that signal would clock the next flip flop to toggle to the next bit.

This circuit would yield the following output waveforms when the when clocked by a repetitive source of pulses from an oscillator the first flip flop the watch With the q naught output has a positive edge triggering clock input. So it toggles with each rising edge of the clock signal as indicated by the other arrows. In the pulse diagram each succeeding output bit is toggled by the action of the preceding bit, transitioning from high to low. This is the pattern necessary to generate an up count sequence. The D flip flop is our simplest form of serial in serial out shift register, it is a single bit shift register, and the data coming in on D can be shifted to Q. When the clock pulse goes from zero to one.

It's a positive going triggers flip flop. So in its simplistic form, this is a shift register the all the data that's coming in on D, whether it's synchronized, the clock or not, will be shifted over to Q on the next positive going signal that the clock puts into it. If the clock is stopped, in other words, it doesn't have any more triggering, the data that last came through will be stored at the queue position. This is in its simplest form, a single bit serial in serial out shift register. If we cascade these units together, which we will look at in a minute, they will hold more than one bit of data shifting down the system. Here we have a little bit more sophisticated shift register.

It is a might be considered a three bit shift register. And it's just three d flip flops that are cascaded together, the output of one q output of one is input to the D input of the next one down the line and the Q output of that one is put into the D input of the next one down the line. As the data starts to come in from the first flip flop D, def clock pulse going from positive to negative, we'll shift that the data from D to QA. This the data that's on cue, cue a bit before the pulse that's on D will be shifted to QB. And the data that's on the D for QC will be shifted to QC on that clock pulse. So if you consider a series of ones and zeros being on the D input sore the queue outputs that in that data will be shifted from left to right turn from left to right with each positive going clock pulse, and that will happen continually as long as the clock is pulsing, you can control that shift and there are several ways of doing it and there are sophisticated ways of doing it, but the here is a simplistic way is a simple end gate and the clock can be coming in to the end gate and you can have it enable coming into that end gate so that the data will not be shifted unless the Enable pulse or the Enable is at a one level.

Once that enable input to the end gate goes one then all the clock pulses will go through to the clock inputs to the shift registers and all the data from the D will be shown through to the queues so that the data we say is shifted serially down the line. Here we have a three bit shift register made up this type of JK flip flops. They are cascaded together. In other words, the Q output of one is the J input of the subsequent one down the line and the not q output of one is connected to the K input of the next shift register down the line. And you can cascade as many of these as you want together. We're only going to look at three bits just to get a feel for it.

But you could keep on cascading multiple flip flops down the line is depending on how many how big a bit register that you want to use the data coming in. To the JK flip flop is controlled in such a manner that it is, is connected directly to the first j input. But the data goes through an inverter before it's connected to the first k input. that assures that the J and the K are inverse of each other so that when a clock pulse and as a negative clock pulse, this time it will trigger the JK flip flop will indeed, transverse the data from the JK to the Q and the Q not subsequently, for each JK flip flop down the line. So we have data coming in at the top to the J input and subsequently inverted through to the K input. Every time the clock pulse goes negative.

The data from the left hand side of the flip flop JK will be transferred to the right hand side and the data of each subsequent JK Flip Flop will do that every time the clock pulse goes negative. So this indeed is another form of a serial in serial out shift register, because the data coming in gets shifted down the line and you can control and stop the flow of that data. And once you stop the flow of it, the data will remain on the Q output stages until it's needed to be transferred serially down the line. And you can do that the same way as we did with a with a D flip flop before by putting an end gate on the clock impulse and and putting an enable pulse, which will enable the flow of data to go from left to right. Of course, timing and synchronization is important and peripheral circuits have to be built around this shift register.

But this is an essence of one of the configurations that could be used to bring serial data out in a parallel fashion and this ends chapter five

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.