1
00:00:00,210 --> 00:00:07,110
What I expect to find is a block diagram with the, um, with the Matrix arrangements, the bars matrix

2
00:00:07,530 --> 00:00:09,150
of the microcontroller.

3
00:00:09,810 --> 00:00:12,950
And this should inform me where you are connected.

4
00:00:13,110 --> 00:00:13,740
This was it.

5
00:00:13,800 --> 00:00:14,700
This is familiar.

6
00:00:14,850 --> 00:00:15,900
You've seen this before.

7
00:00:17,200 --> 00:00:17,650
Okay.

8
00:00:17,840 --> 00:00:18,810
So I'm going to zoom in.

9
00:00:20,200 --> 00:00:20,870
Okay.

10
00:00:21,000 --> 00:00:21,660
Let's see.

11
00:00:22,990 --> 00:00:23,780
Come down here.

12
00:00:24,100 --> 00:00:27,020
But let's zoom in further.

13
00:00:29,530 --> 00:00:30,900
Can't you see you, Art?

14
00:00:31,270 --> 00:00:31,630
Okay.

15
00:00:31,870 --> 00:00:32,370
I see you.

16
00:00:33,960 --> 00:00:34,130
Okay.

17
00:00:34,180 --> 00:00:34,840
You saw it.

18
00:00:34,930 --> 00:00:35,500
It's written.

19
00:00:35,500 --> 00:00:36,410
You saw it here.

20
00:00:36,520 --> 00:00:38,160
And this the same you said.

21
00:00:38,290 --> 00:00:44,540
Stands for Universal Synchronoss, asynchronous receiver transmitter.

22
00:00:45,550 --> 00:00:52,370
When we are using just the asynchronous pit, we call it you art without the S..

23
00:00:53,170 --> 00:00:54,120
So that's the same thing.

24
00:00:54,160 --> 00:00:58,780
This just tells us we can have Synchronoss or asynchronous in a way.

25
00:00:59,560 --> 00:01:02,970
This was you saw one and this was connected to the APB to bus.

26
00:01:03,150 --> 00:01:03,630
Okay.

27
00:01:04,450 --> 00:01:09,580
Parbo, you said to me, you said two is connected to the APB, one bus.

28
00:01:10,740 --> 00:01:11,090
Okay.

29
00:01:11,290 --> 00:01:15,730
You said two is the one that the nuclear body uses.

30
00:01:16,480 --> 00:01:23,960
So if we use use two, we can try this by simply using the USP, the US Connector of the New Clue.

31
00:01:24,580 --> 00:01:31,480
Whereas if we go and initialize a different use it we may have to connect on exten or, you know, USP

32
00:01:31,490 --> 00:01:33,400
connector to those pins.

33
00:01:33,760 --> 00:01:37,960
So for our experiment sake, we are going to use this one over here.

34
00:01:38,890 --> 00:01:46,120
But certainly after this lesson, I expect you should be able to expand the library so that you can

35
00:01:46,120 --> 00:01:48,580
use any use that you want.

36
00:01:49,120 --> 00:01:51,610
But this one is going to be customized for user, too.

37
00:01:51,820 --> 00:01:56,010
And your assignment will be to do it for use at one.

38
00:01:57,200 --> 00:02:00,280
And let's see if we have about I use it here, which you put out.

39
00:02:01,870 --> 00:02:03,980
The microcontroller has just one and two.

40
00:02:04,200 --> 00:02:04,750
Okay.

41
00:02:04,840 --> 00:02:05,410
No problem.

42
00:02:05,820 --> 00:02:09,160
So we know this was connected to the APB, one bus.

43
00:02:09,720 --> 00:02:11,170
Um, we have two documents.

44
00:02:11,350 --> 00:02:12,010
The data sheet.

45
00:02:12,010 --> 00:02:13,030
The reference manual.

46
00:02:13,670 --> 00:02:14,320
All right.

47
00:02:15,130 --> 00:02:15,960
Let's see.

48
00:02:16,180 --> 00:02:17,130
Come over here.

49
00:02:18,150 --> 00:02:21,430
I'll go to page 149 of the.

50
00:02:23,280 --> 00:02:27,260
Of the datasheet, page one for tonight.

51
00:02:28,150 --> 00:02:30,640
See page 114.

52
00:02:32,430 --> 00:02:32,620
Yes.

53
00:02:32,800 --> 00:02:33,810
Page 149.

54
00:02:33,830 --> 00:02:36,710
But off the reference, mind or not, the data sheet.

55
00:02:37,110 --> 00:02:44,030
So on forty nine, there should be information that with alternate functions or just head the page over

56
00:02:44,030 --> 00:02:44,270
here.

57
00:02:44,340 --> 00:02:45,880
Hytten 149.

58
00:02:46,400 --> 00:02:46,980
Okay.

59
00:02:47,130 --> 00:02:47,620
Yeah, we are.

60
00:02:48,470 --> 00:02:48,890
Right.

61
00:02:49,100 --> 00:02:56,270
So for those of you who know some digital electronics, you see this symbol here, the schematic symbol,

62
00:02:56,270 --> 00:02:57,530
you know this a multiplex.

63
00:02:57,600 --> 00:03:03,000
I mean, and we've got these number of inputs and we can only have one outputs.

64
00:03:03,560 --> 00:03:08,540
And this here is the address that allows us to select one of these outputs.

65
00:03:09,170 --> 00:03:14,150
We've got a F zero, a F one here, too, all the way to a F fifteen.

66
00:03:14,630 --> 00:03:17,360
And this is what we call the alternate function.

67
00:03:18,660 --> 00:03:27,630
Registar law heads, we have the R l over here, and then we have alternate function registe the high

68
00:03:27,720 --> 00:03:31,320
as well, which also starts from here.

69
00:03:31,980 --> 00:03:41,540
So no function registered law is for totally and or is for dealing with PS number zero seven of our

70
00:03:41,600 --> 00:03:42,170
ports.

71
00:03:43,290 --> 00:03:50,250
If we are working with a GPL, you pin eight through fifteen, then we would have to access the alternate

72
00:03:50,250 --> 00:03:51,450
function register high.

73
00:03:52,170 --> 00:03:58,680
So like we said, a war, our rexon t xp and so connected to p h twenty three respectively.

74
00:03:59,040 --> 00:04:01,140
So they are between zero and seven.

75
00:04:01,200 --> 00:04:04,050
That is why we are dealing with alternate function.

76
00:04:04,400 --> 00:04:05,220
Register low.

77
00:04:07,010 --> 00:04:13,490
In a way, the driver remember our alternate function now registe, a member, is an array with two

78
00:04:13,850 --> 00:04:19,770
unary which to element zero and one, the first element stands for the alternate function registered

79
00:04:19,780 --> 00:04:25,070
low, and the second element is the alternate function register.

80
00:04:26,250 --> 00:04:32,450
OK, so over here, when you check it says a F seven is for you, Sutt one and two.

81
00:04:33,510 --> 00:04:33,910
Right.

82
00:04:34,220 --> 00:04:35,500
Is for use that one into.

83
00:04:35,570 --> 00:04:36,320
What does that mean.

84
00:04:36,770 --> 00:04:39,320
Now let's go and see what a F seven means.

85
00:04:42,340 --> 00:04:50,000
Think it should come back to page fifty nine or something to be a F register.

86
00:04:53,400 --> 00:04:55,440
Let's see what's alternate function register.

87
00:04:55,500 --> 00:04:56,400
Okay, here we go.

88
00:04:57,090 --> 00:04:57,330
Right.

89
00:04:57,360 --> 00:04:59,160
So that's the alternate function register.

90
00:04:59,220 --> 00:05:02,680
And we have alternate function low as well as alternate function.

91
00:05:02,700 --> 00:05:03,750
High register.

92
00:05:04,260 --> 00:05:04,680
Right.

93
00:05:05,310 --> 00:05:06,540
And like I said, are the same.

94
00:05:06,600 --> 00:05:09,090
If you are dealing with penis numbers zero through seven.

95
00:05:09,150 --> 00:05:14,670
Then you should be using the alternate function low and then eight through fifteen alternate function

96
00:05:14,670 --> 00:05:15,060
register.

97
00:05:15,090 --> 00:05:15,420
Hi.

98
00:05:18,390 --> 00:05:19,310
OK, let's see.

99
00:05:20,290 --> 00:05:20,470
OK.

100
00:05:20,540 --> 00:05:23,210
So this is a F seven, f seven means.

101
00:05:23,410 --> 00:05:26,450
Zero means one one one zero.

102
00:05:27,110 --> 00:05:31,190
Remember, we need four bit to figure out the alternate function.

103
00:05:31,670 --> 00:05:38,870
So you can see in this alternate function registe that law bits through.

104
00:05:40,130 --> 00:05:46,850
Three, four eight f zero bits, four through seven hour for a F one.

105
00:05:49,400 --> 00:05:50,120
I shouldn't say that.

106
00:05:50,210 --> 00:05:53,820
Actually, there's a better way to understand it bit.

107
00:05:53,820 --> 00:05:56,040
Sue two, three, four.

108
00:05:56,150 --> 00:05:57,100
All pins.

109
00:05:57,560 --> 00:05:58,130
Zero.

110
00:05:58,440 --> 00:05:59,090
Of energy.

111
00:05:59,300 --> 00:06:01,880
You put A, B, C, D all the way to H.

112
00:06:03,360 --> 00:06:05,730
Bit bits.

113
00:06:05,930 --> 00:06:07,370
Bits four through seven.

114
00:06:07,480 --> 00:06:09,440
Apple are for all P ones.

115
00:06:10,010 --> 00:06:14,340
And these these next four bits are for all pin tubes.

116
00:06:14,780 --> 00:06:18,080
And then these next are four open threes like that.

117
00:06:18,200 --> 00:06:19,610
You have this apparatus here.

118
00:06:19,670 --> 00:06:20,120
Right.

119
00:06:20,990 --> 00:06:21,180
Okay.

120
00:06:21,230 --> 00:06:24,920
So we are using we are using a two.

121
00:06:24,980 --> 00:06:28,220
We're going to test out transfer to X over Y.

122
00:06:28,220 --> 00:06:29,380
You are to be a two.

123
00:06:29,870 --> 00:06:35,240
So this over here is four will be for a zero.

124
00:06:35,330 --> 00:06:37,850
This over here will be for P a one.

125
00:06:38,360 --> 00:06:40,190
And this over here will be for P a two.

126
00:06:40,400 --> 00:06:46,810
So we would have to write one one one zero here in the a f r l register.

127
00:06:47,780 --> 00:06:48,230
Right.

128
00:06:49,290 --> 00:06:50,790
And one one one zero.

129
00:06:51,060 --> 00:06:52,270
That is our e f seven.

130
00:06:52,410 --> 00:06:57,150
We have to write a F seven in this position from bits number eight through bits.

131
00:06:57,330 --> 00:07:00,390
Number eleven, we have to write one one one zero.

132
00:07:01,380 --> 00:07:01,810
Okay.

133
00:07:01,960 --> 00:07:03,980
To configure it for our T x.

134
00:07:05,340 --> 00:07:13,350
So if you expand this, you realize that this hexadecimal number and each hexadecimal digits corresponds

135
00:07:13,350 --> 00:07:14,670
to four binary digits.

136
00:07:15,030 --> 00:07:22,830
So this over here is the first four which in our data sheet would correspond to these first four.

137
00:07:23,520 --> 00:07:24,000
Right.

138
00:07:24,630 --> 00:07:30,090
And then this next one here will correspond to the next four.

139
00:07:31,410 --> 00:07:31,830
Right.

140
00:07:31,920 --> 00:07:33,000
And I was seven here.

141
00:07:33,330 --> 00:07:39,210
If you expand the seven hexadecimal, you end up with one one one zero.

142
00:07:39,570 --> 00:07:42,410
And this would be perfectly placed here.

143
00:07:43,540 --> 00:07:44,880
Hence, we have this.

144
00:07:46,650 --> 00:07:47,180
Right.

145
00:07:47,580 --> 00:07:47,980
Okay.

146
00:07:48,270 --> 00:07:49,000
I know you get it now.
