﻿1
00:00:07,700 --> 00:00:13,480
Welcome to the base is three universal shift register lecture and I'm going to show you how the universal

2
00:00:13,520 --> 00:00:19,130
shift British search should be implemented on your basis three board and what we have is that we have

3
00:00:19,130 --> 00:00:27,860
eight inputs which are shown from our switch to zero to switch 7 and we have two selectors which indicate

4
00:00:27,950 --> 00:00:34,760
the mode of operation for our universal shift register and there are the two left most switches at the

5
00:00:34,760 --> 00:00:36,520
bottom of your bases three board.

6
00:00:36,770 --> 00: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

7
00:00:45,290 --> 00:00:46,070
button.

8
00:00:46,070 --> 00: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

9
00:00:53,630 --> 00:00:57,510
position we are going to perform a parallel load.

10
00:00:57,510 --> 00:01:03,830
And what that will do is take the status of the input switches and load them onto the corresponding

11
00:01:03,830 --> 00:01:04,790
Ltds.

12
00:01:05,090 --> 00:01:08,600
So right now we have all them up as a 1.

13
00:01:08,600 --> 00: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

14
00:01:15,290 --> 00:01:18,610
with a one every every value in the shift register.

15
00:01:18,620 --> 00:01:25,060
So now let's go ahead and move our selector switch down so we have it as a 1 0.

16
00:01:25,250 --> 00:01:28,640
And what this will do is shift our inputs to the left.

17
00:01:28,640 --> 00:01:31,920
Every time I push the clock so I'm going to push the clock once.

18
00:01:32,150 --> 00:01:39,320
And you'll notice that all the inputs are still lit up except for the brightness output and that's indicated

19
00:01:39,320 --> 00:01:41,870
that we have shifted everything to left.

20
00:01:42,050 --> 00: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

21
00:01:47,870 --> 00:01:49,690
have two zeros.

22
00:01:49,790 --> 00:01:54,980
So we've tooken over outputs and shifted them to bits to the left.

23
00:01:54,980 --> 00: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

24
00:02:03,020 --> 00:02:03,980
to the right.

25
00:02:03,980 --> 00: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

26
00:02:11,780 --> 00:02:13,520
one and the leftmost.

27
00:02:13,520 --> 00: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

28
00:02:17,990 --> 00:02:20,230
outside ladies.

29
00:02:20,480 --> 00:02:27,140
Now if I just keep pressing the clock but never time I press that we will keep moving the output.

30
00:02:27,140 --> 00:02:32,990
So if I press it enough times you notice that we have one I press that again we have zero.

31
00:02:32,990 --> 00: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

32
00:02:38,840 --> 00:02:45,740
kind of change the status so he got some ones and some zeros and then let's press our clock button.

33
00:02:45,770 --> 00: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

34
00:02:52,280 --> 00:02:56,540
selector switches to the left or to the right and just clock all the way through.

35
00:02:56,540 --> 00: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

36
00:03:02,450 --> 00:03:02,840
cycle.

37
00:03:02,840 --> 00:03:07,210
So if I just press my reset you'll notice that nothing resets.

38
00:03:07,220 --> 00:03:08,530
Nothing actually happens.

39
00:03:08,720 --> 00:03:10,880
And that's because you reset your clock.

40
00:03:10,880 --> 00:03:12,350
Have to happen together.

41
00:03:12,530 --> 00:03:17,330
So push or reset and then push the clock button while holding down the reset.

42
00:03:17,360 --> 00:03:20,480
And that should reset our shift register.

43
00:03:20,480 --> 00: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

44
00:03:25,730 --> 00:03:28,290
the ladies have been cleared out.

45
00:03:28,640 --> 00:03:32,340
And that is how the universal shift register should work on your bases through board.

