WEBVTT

00:07.700 --> 00:13.480
Welcome to the base is three universal shift register lecture and I'm going to show you how the universal

00:13.520 --> 00:19.130
shift British search should be implemented on your basis three board and what we have is that we have

00:19.130 --> 00:27.860
eight inputs which are shown from our switch to zero to switch 7 and we have two selectors which indicate

00:27.950 --> 00:34.760
the mode of operation for our universal shift register and there are the two left most switches at the

00:34.760 --> 00:36.520
bottom of your bases three board.

00:36.770 --> 00:45.290
And then we have a clock input and a ready set in our clock is the center button and a reset is a top

00:45.290 --> 00:46.070
button.

00:46.070 --> 00:53.630
So if we have both of our selector inputs as a one which are indicated by our two switches in the up

00:53.630 --> 00:57.510
position we are going to perform a parallel load.

00:57.510 --> 01:03.830
And what that will do is take the status of the input switches and load them onto the corresponding

01:03.830 --> 01:04.790
Ltds.

01:05.090 --> 01:08.600
So right now we have all them up as a 1.

01:08.600 --> 01:15.200
So if I press the middle button which is our clock you'll see that we have loaded all of the outputs

01:15.290 --> 01:18.610
with a one every every value in the shift register.

01:18.620 --> 01:25.060
So now let's go ahead and move our selector switch down so we have it as a 1 0.

01:25.250 --> 01:28.640
And what this will do is shift our inputs to the left.

01:28.640 --> 01:31.920
Every time I push the clock so I'm going to push the clock once.

01:32.150 --> 01:39.320
And you'll notice that all the inputs are still lit up except for the brightness output and that's indicated

01:39.320 --> 01:41.870
that we have shifted everything to left.

01:42.050 --> 01:47.870
So we have a zero there and if I press it again we'll notice that the same thing occurs except now we

01:47.870 --> 01:49.690
have two zeros.

01:49.790 --> 01:54.980
So we've tooken over outputs and shifted them to bits to the left.

01:54.980 --> 02:03.020
So let's flip the the selector switches so we have it as a 0 1 which we now should shift everything

02:03.020 --> 02:03.980
to the right.

02:03.980 --> 02:11.780
So when I push the clock button we should see that all of the Ltds are lit up except for the rightmost

02:11.780 --> 02:13.520
one and the leftmost.

02:13.520 --> 02:17.960
So go ahead and press the clock button and you'll notice that they're all lit up except for the two

02:17.990 --> 02:20.230
outside ladies.

02:20.480 --> 02:27.140
Now if I just keep pressing the clock but never time I press that we will keep moving the output.

02:27.140 --> 02:32.990
So if I press it enough times you notice that we have one I press that again we have zero.

02:32.990 --> 02:38.830
So I want to go ahead and parallel load again let's move both of our selector switches to one and just

02:38.840 --> 02:45.740
kind of change the status so he got some ones and some zeros and then let's press our clock button.

02:45.770 --> 02:52.280
So now we've loaded our shift register and if we want to go ahead and clear that we can just move our

02:52.280 --> 02:56.540
selector switches to the left or to the right and just clock all the way through.

02:56.540 --> 03:02.450
However if we want to do it on one clock cycle we can use our reset which we know that occurs on a clock

03:02.450 --> 03:02.840
cycle.

03:02.840 --> 03:07.210
So if I just press my reset you'll notice that nothing resets.

03:07.220 --> 03:08.530
Nothing actually happens.

03:08.720 --> 03:10.880
And that's because you reset your clock.

03:10.880 --> 03:12.350
Have to happen together.

03:12.530 --> 03:17.330
So push or reset and then push the clock button while holding down the reset.

03:17.360 --> 03:20.480
And that should reset our shift register.

03:20.480 --> 03:25.730
So let's go ahead and hold the clock and hold down the reset press the clock and you notice that all

03:25.730 --> 03:28.290
the ladies have been cleared out.

03:28.640 --> 03:32.340
And that is how the universal shift register should work on your bases through board.
