1
00:00:02,600 --> 00:00:07,700
So this time let's create a new project using a different method.

2
00:00:07,700 --> 00:00:10,880
First of all let's just create by clicking here.

3
00:00:10,880 --> 00:00:17,910
Remember we can click here to create a new project or come to found your project or just use the shortcut

4
00:00:17,930 --> 00:00:18,420
here.

5
00:00:18,440 --> 00:00:19,860
Create a new project.

6
00:00:20,350 --> 00:00:23,420
So click this instead of selecting these options.

7
00:00:23,420 --> 00:00:29,470
The MCU filters we just future it's based on the peripheral requirements I need for my project.

8
00:00:29,510 --> 00:00:36,000
So let's say I have a project that requires let's say we require 10 ADC channels.

9
00:00:36,520 --> 00:00:44,680
I just input 10 over here 10 12 beats ADC channels and less if we want less if we want three.

10
00:00:44,750 --> 00:00:45,950
You are sports.

11
00:00:46,490 --> 00:00:52,520
So if I hit enter it's just going to fuel to show me the microcontroller options I have for my particular

12
00:00:52,520 --> 00:00:53,260
project.

13
00:00:53,270 --> 00:00:56,890
So this is really good for mocking up your prototypes.

14
00:00:56,990 --> 00:01:03,770
You can know the the microcontroller you need just by coming over here and configuring your your various

15
00:01:03,830 --> 00:01:05,400
peripheral requirement.

16
00:01:05,450 --> 00:01:12,920
So if your project requires 10 ADC Chanos 3 you odds you can just search and then you have different

17
00:01:12,920 --> 00:01:21,860
options according to memory size I or ports no flash size Ram package etc. so we can choose just by

18
00:01:21,860 --> 00:01:29,240
filtering through some options doing exist some strange options like having a microcontroller with exactly

19
00:01:29,480 --> 00:01:36,360
three you support port 10 ADC Chanos and I are a team this doesn't exist.

20
00:01:36,380 --> 00:01:39,930
So indeed it filters through to make you choose.

21
00:01:40,010 --> 00:01:43,080
So let's say we don't want twelve.

22
00:01:43,100 --> 00:01:44,960
Let's say we want five.

23
00:01:45,110 --> 00:01:53,870
Our project requires five 16 bits eight Chanos and then we require less a five sixteen bit general purpose

24
00:01:53,870 --> 00:01:54,680
timers.

25
00:01:54,890 --> 00:01:57,910
We don't have an option for this as well.

26
00:01:57,960 --> 00:02:04,270
So as you can see so I could put zero here described different search so.

27
00:02:04,390 --> 00:02:07,580
So we can have five sixteen bids a disease.

28
00:02:07,640 --> 00:02:13,980
There is no board that gives the same capability with you at functionality.

29
00:02:14,150 --> 00:02:21,820
So that is good to know and overheads indicate the maximum number of that particular pair for instance

30
00:02:21,830 --> 00:02:29,510
as you can have like here we can see we can have the board with a maximum ADC to offbeat ADC channel

31
00:02:29,840 --> 00:02:37,850
supplies just 40 Chanos the board with ADC 16 bit can provide a maximum of twenty one channels of such

32
00:02:37,940 --> 00:02:39,790
sixteen bits HDD.

33
00:02:39,980 --> 00:02:45,070
So we have the maximum here too which helps us filter through.

34
00:02:45,110 --> 00:02:47,840
So let's say I'm very curious actually.

35
00:02:48,050 --> 00:02:54,250
Let's say I require 40 ATC channels which port am I going to get to.

36
00:02:54,250 --> 00:02:59,310
These are the boards that provide 40 ATC channels.

37
00:02:59,380 --> 00:03:00,600
That's awesome.

38
00:03:01,240 --> 00:03:01,480
Yeah.

39
00:03:02,050 --> 00:03:03,910
So that's one way of creating a project.

40
00:03:03,910 --> 00:03:10,540
This is this can give you a good idea about the particular microcontroller in your product development

41
00:03:10,540 --> 00:03:11,170
cycle.

42
00:03:12,130 --> 00:03:13,150
So there's one other way.

43
00:03:13,150 --> 00:03:13,800
Moving on.

44
00:03:14,680 --> 00:03:20,910
So for instance let's say my projects requires a fairly normal microcontroller.

45
00:03:20,910 --> 00:03:31,410
Let's say I require a maximum of let's say for ADC Chanos messy say to you sports and perhaps one is.

46
00:03:31,480 --> 00:03:33,820
So these are the options I have available.

47
00:03:33,820 --> 00:03:38,380
So let's just select one randomly let's see who is the lucky one.

48
00:03:38,380 --> 00:03:45,690
I just select this one here so when I select it it opens up the new project display on display in the

49
00:03:45,690 --> 00:03:49,650
peanut and as you can see this is it.

50
00:03:49,770 --> 00:03:53,880
This the microcontroller the chip this is it.

51
00:03:53,880 --> 00:04:01,170
And let's say for some reason I cannot use a package in my project right.

52
00:04:01,420 --> 00:04:05,970
And I need to change the thing I need to change what I've selected.

53
00:04:06,030 --> 00:04:11,610
The good thing with a Cuban mix is I don't need to go to the previous page I still have the other microcontrollers

54
00:04:11,640 --> 00:04:14,100
here with the same required peripherals here.

55
00:04:14,280 --> 00:04:22,590
It kept them here for me so I said I wanted for two different ADC channels one SBI two new ads two because

56
00:04:22,590 --> 00:04:30,600
this this particular empty use package is the BCA I'm not using a BCA package in my projects I could

57
00:04:30,600 --> 00:04:38,940
see perhaps I prefer the L Q FP one hundred package so I could have the same functionality the same

58
00:04:38,940 --> 00:04:46,080
features with this particular board so I can select this instead and it will just update and now I would

59
00:04:46,080 --> 00:04:48,060
just proceed with my project.

60
00:04:48,270 --> 00:04:49,620
So this is very convenient.

61
00:04:49,620 --> 00:04:55,590
This saves a lot of time in prototyping and product simulation and all of that.

62
00:04:56,340 --> 00:04:59,760
Kudos kudos to SD for doing this.

63
00:04:59,760 --> 00:05:02,970
So let's move on and whatever you do know understand.

64
00:05:02,970 --> 00:05:07,980
Don't forget to live it in the in the question section or send me a message.

65
00:05:08,270 --> 00:05:08,590
Yeah.

66
00:05:08,730 --> 00:05:18,500
So let's explore the pin out of a bit more so over here we can expand these peripheral options all dressed.

67
00:05:19,440 --> 00:05:25,650
If you're not used to that particular MCU you would want to expand to see that you've got all the specific

68
00:05:25,650 --> 00:05:28,490
number of channels for each profile.

69
00:05:28,890 --> 00:05:37,340
And over here you can just come expandable as you can see expanded know our ADC office sixteen channels.

70
00:05:37,930 --> 00:05:45,940
Yeah it takes possible options so you don't need to open them up and just examine them like this can

71
00:05:46,220 --> 00:05:48,960
collapse it too if we don't want to expand it.

72
00:05:49,320 --> 00:05:57,720
We can use this zoom into the pin out diagram like this or we can like zoom out if we want we can use

73
00:05:57,720 --> 00:06:00,560
best fits as well.

74
00:06:00,780 --> 00:06:01,370
Yeah.

75
00:06:01,560 --> 00:06:10,530
And in fact we can zoom in using the will on the mouse just by opening bucking for zoom in and drag

76
00:06:10,530 --> 00:06:12,900
it anywhere we want it.

77
00:06:13,010 --> 00:06:13,440
Yeah.

78
00:06:13,530 --> 00:06:16,060
Normal drag function.

79
00:06:16,200 --> 00:06:25,520
So this is back in a bit and we have the same options here for expand and collapse.

80
00:06:25,540 --> 00:06:32,050
And over here we saw this already to generate the CSP of the pin out and we can search the pins over

81
00:06:32,050 --> 00:06:32,970
here as well.

82
00:06:32,980 --> 00:06:40,600
Let's say I want all the pins for port a I can just type P A and it will highlight them for me if I

83
00:06:40,600 --> 00:06:46,630
want or the pins for ports be equities go P. B any highlight they say I want a particular pin on a particular

84
00:06:46,630 --> 00:06:53,200
port let's see I'm searching for P C twelve I can just type like this and then it indicates exactly

85
00:06:53,200 --> 00:06:56,630
where it is and this might look a bit simple.

86
00:06:56,680 --> 00:07:03,930
I mean it looks easy to identify where P C twelve is but it becomes very useful when you have a microcontroller

87
00:07:03,940 --> 00:07:10,810
on a smaller package with a large pin count something like 300 pins instead of looking for them one

88
00:07:10,810 --> 00:07:11,530
after the other.

89
00:07:11,530 --> 00:07:13,080
You can just search from there.

90
00:07:13,290 --> 00:07:17,230
So this another very useful feature we have here.

91
00:07:17,230 --> 00:07:24,320
So now let's take a look at the color code that the Q that Max uses to communicate to us to underpay.

92
00:07:24,340 --> 00:07:31,720
We've got metal was of course and this one here is great ours because we've not enabled it to pair for

93
00:07:31,720 --> 00:07:32,960
that goes with it.

94
00:07:33,040 --> 00:07:36,190
This one here is independent so we can just choose it.

95
00:07:36,230 --> 00:07:38,150
Free to us depends on not as well.

96
00:07:38,230 --> 00:07:39,800
It's independent.

97
00:07:39,800 --> 00:07:42,370
It's a middleware that does not require peripherals.

98
00:07:42,380 --> 00:07:43,840
So we can choose it.

99
00:07:43,940 --> 00:07:52,270
Most importantly what I want to show is if I come over here and I select ADC inputs channels you automatically

100
00:07:52,690 --> 00:08:03,090
see that this one here is selected for me and it's painted green meaning it's selected in and it's activated.

101
00:08:03,190 --> 00:08:07,310
Now once that is done we stop seeing these marks here.

102
00:08:07,330 --> 00:08:13,450
This warning marks fact I would just disable my ADC selection and then you realize the warning mark

103
00:08:13,450 --> 00:08:14,700
disappears.

104
00:08:14,700 --> 00:08:19,990
I just take it off and you can see there's no one in market.

105
00:08:20,010 --> 00:08:25,860
But when I put when I selected the warning Mark appears and what the warning Mark is trying to tell

106
00:08:25,860 --> 00:08:34,350
me is that this pin here if I should use a zero for my ADC 0 0 then I want to be able to use it for

107
00:08:34,350 --> 00:08:41,340
the system wake up because there is a conflict and when you see this red mark mean there's a conflict

108
00:08:41,400 --> 00:08:47,730
you can in fact check where the conflict is and this by putting my cursor over here it tells me system

109
00:08:47,730 --> 00:08:51,570
wake up call conflict with ADC module one in procedure.

110
00:08:51,870 --> 00:09:00,420
So now I have to decide whether indeed I want to use ADC mode module 1 input 0 or at this so because

111
00:09:00,420 --> 00:09:01,390
of these issue.

112
00:09:01,470 --> 00:09:09,240
The rule of thumb is to always always choose the peripherals which are most important to your project.

113
00:09:09,240 --> 00:09:14,720
You start initializing peripherals by order of importance to Alessi.

114
00:09:14,880 --> 00:09:21,060
The most important thing to my project is the agency and make sure I get the ADC already selected.

115
00:09:21,160 --> 00:09:29,010
Dan lessee after that there's another peripheral which is this and it's it's important it's not as important

116
00:09:29,010 --> 00:09:35,300
as the adc I could decide to use a different option that offers the same functionality.

117
00:09:35,570 --> 00:09:35,950
OK.

118
00:09:36,030 --> 00:09:45,390
Let me elaborate I'll just disable this unless I say something as normal such as you it's asynchronous

119
00:09:46,120 --> 00:09:47,780
and then it's activated.

120
00:09:47,790 --> 00:09:52,520
P.S. Lebanon P.S. 10 just randomly MSU where the conflict is.

121
00:09:52,590 --> 00:09:54,730
Luckily there's no conflict with this.

122
00:09:54,750 --> 00:09:56,590
So this this is fine.

123
00:09:56,790 --> 00:10:06,370
Right so let's say I choose a DAC output one and it's conflicting with ATC inputs for.

124
00:10:06,580 --> 00:10:06,900
Okay.

125
00:10:06,910 --> 00:10:09,450
Now this a conflict with something like this.

126
00:10:09,460 --> 00:10:10,590
I have other options.

127
00:10:10,600 --> 00:10:13,970
I can just move my ADC to a different input channel.

128
00:10:14,020 --> 00:10:14,880
Right.

129
00:10:14,980 --> 00:10:21,850
So if I truly needed a DAC I could choose the DAC first and by choosing to dock I know I can or use

130
00:10:21,880 --> 00:10:30,730
ATC input for if I have chosen ADC for first and I required two decks then I wouldn't have two of them.

131
00:10:30,730 --> 00:10:37,440
Meanwhile I have 16 options of ADC 1 so it's good to choose the important thing first.

132
00:10:37,480 --> 00:10:44,890
If I choose to dock first I can always decide out of China 0 through 15 where it connects my analog

133
00:10:45,490 --> 00:10:54,340
analog central or the ADC so we choose the PS in order of priority which is more important we initialize

134
00:10:54,340 --> 00:10:55,330
those beams first.

135
00:10:55,360 --> 00:11:02,530
The red indicates there is a conflict this warning sign we should always expand whenever we see this

136
00:11:02,530 --> 00:11:03,620
warning sign.

137
00:11:03,730 --> 00:11:06,050
Whenever I see a warning sign anywhere at all.

138
00:11:06,090 --> 00:11:09,470
Now to expand to see where the warning says so.

139
00:11:09,500 --> 00:11:09,910
Moving on.

140
00:11:10,500 --> 00:11:12,040
So two runaway experiments.

141
00:11:12,040 --> 00:11:14,210
Let's just initialize more pins here.

142
00:11:14,230 --> 00:11:19,170
I'll just activate some random pair of fields we've got SBI here.

143
00:11:19,180 --> 00:11:28,790
Let's say I want SBI food duplex master mode and I use this the hardware and input signal.

144
00:11:29,030 --> 00:11:31,240
Yeah of course because I'm using this.

145
00:11:31,240 --> 00:11:39,520
This one shows that definitely can use SPF 3 because I'm using this this massive conflict over here.

146
00:11:39,550 --> 00:11:40,800
Now we know what that means.

147
00:11:40,810 --> 00:11:48,460
And this one this warning sign shows that a conflict exists in the list so I can just expand and find

148
00:11:48,460 --> 00:11:55,690
why the conflicts exist meaning I can use serial wire by can I use all these other options in the dropdown.

149
00:11:55,720 --> 00:12:01,390
That's what this yellow one means when you see the yellow the yellow highlight means some pins have

150
00:12:01,390 --> 00:12:03,240
conflicts not all of them.

151
00:12:03,240 --> 00:12:06,870
The red one of course indicates one point.

152
00:12:06,910 --> 00:12:07,660
So yeah.

153
00:12:07,990 --> 00:12:11,310
So let's just enable more power flows.

154
00:12:11,380 --> 00:12:15,860
This enables this here and then we'll see.

155
00:12:16,380 --> 00:12:23,600
We don't often use the normal flash so that's not something you will use in your everyday project or

156
00:12:23,710 --> 00:12:25,790
just collapse or like this.

157
00:12:25,960 --> 00:12:34,200
Then let's say I want to use timer internal clock output per hour.

158
00:12:34,220 --> 00:12:34,770
How about that.

159
00:12:34,800 --> 00:12:39,040
Let's just enable that crystal to bypass clocks.

160
00:12:40,140 --> 00:12:40,930
Okay.

161
00:12:41,080 --> 00:12:46,390
I just want to get a bit more green marks here to demonstrate to you.

162
00:12:47,940 --> 00:12:51,180
You got synchronized mode.

163
00:12:51,210 --> 00:12:51,710
Okay.

164
00:12:51,820 --> 00:12:53,260
Just good.

165
00:12:53,260 --> 00:12:55,040
Okay let's get you out.

166
00:12:57,870 --> 00:12:58,750
Synchronize.

167
00:12:59,080 --> 00:12:59,720
Okay.

168
00:13:02,660 --> 00:13:03,250
OK.

169
00:13:03,340 --> 00:13:05,080
See OK.

170
00:13:05,160 --> 00:13:08,030
So I think we have enough enable without just collapse.

171
00:13:08,070 --> 00:13:10,600
All of them like this show.

172
00:13:11,740 --> 00:13:15,010
So this what we've enabled we can change the labels.

173
00:13:15,010 --> 00:13:20,860
These are the labels aside and a good thing is when we generate our code we can use these label names

174
00:13:20,860 --> 00:13:24,640
to represent these pins and then program these pins.

175
00:13:24,640 --> 00:13:34,580
So let's say I want to change to the name a few but I could just come over here come here right click

176
00:13:36,600 --> 00:13:47,130
and to use a label and then I can just see Oryx then I could come over here right click and to use a

177
00:13:47,130 --> 00:13:49,170
label and call this t x.

178
00:13:49,170 --> 00:13:49,740
How about that.

179
00:13:50,980 --> 00:13:55,170
So whenever I go and I see our recent T X I know I'm talking to my user.

180
00:13:55,530 --> 00:14:02,190
I use PINs and the naming convention is they should I shouldn't put a label that has space between.

181
00:14:02,190 --> 00:14:12,820
So I cannot come here and say are x 1 all outbreaks LCD or XP at least.

182
00:14:13,380 --> 00:14:19,230
If I want such a name I would have to use an underscore or something because we're going to use this

183
00:14:19,320 --> 00:14:20,070
into code.

184
00:14:20,100 --> 00:14:23,080
We have to give a label that has no space between.

185
00:14:23,130 --> 00:14:26,540
That's the only naming convention.

186
00:14:26,700 --> 00:14:33,270
Of course the name can start with a symbol like a standard naming convention or thousand fold as but

187
00:14:33,270 --> 00:14:35,990
apart from that there shouldn't be space between them.

188
00:14:37,270 --> 00:14:48,220
So OK I'll just call this race BLT and then I'll just rename this issue to be rly like this.

189
00:14:48,220 --> 00:14:56,980
OK so one other thing is let's say for some reason we need to be a 10 feet and has another alternate

190
00:14:56,980 --> 00:14:58,770
feature that we really need.

191
00:14:58,830 --> 00:15:00,820
Let's say 10.

192
00:15:01,200 --> 00:15:06,310
I'll just click Putin OK here tennis also channel three of time a one.

193
00:15:06,760 --> 00:15:08,300
And it's also a GPI.

194
00:15:08,380 --> 00:15:09,040
Oh it's brewed.

195
00:15:09,050 --> 00:15:12,670
It's got an event out let's say for some strange reason.

196
00:15:12,700 --> 00:15:22,270
I genuinely need time out once I know three and because I have Pier 10 here using my BLT rakes and I

197
00:15:22,270 --> 00:15:26,680
have to change my my my you are uncertain as to what do I do.

198
00:15:26,680 --> 00:15:28,060
That's a very cool feature.

199
00:15:28,410 --> 00:15:32,550
So to see another pin that can offer me the same function as p. 18.

200
00:15:32,560 --> 00:15:37,350
At this moment I can price control on my keyboard and click competent.

201
00:15:37,570 --> 00:15:46,920
And as you can see there's a new blue label up there on PDP 7 showing that I can I can I can swap PDP

202
00:15:46,920 --> 00:15:49,080
7 and p a 10.

203
00:15:49,090 --> 00:15:57,340
So if I want to if I want to use it 10 for something else I can use PDP 7 as my r xp elite so to do

204
00:15:57,340 --> 00:16:08,780
that I can just drag this p a 10 to PD 7 like this then as you can see I've got PBR 7 as my as my you

205
00:16:09,450 --> 00:16:18,940
and because PBR sevens are X which with P B6 as T X is my B T X here and now I can still maintain my

206
00:16:18,940 --> 00:16:26,080
code everything the same and I can set this to a different function less a time a 1 channel 3 by clicking

207
00:16:26,080 --> 00:16:28,500
here like this.

208
00:16:28,690 --> 00:16:38,140
So you may not realize that we've got these pins sticking into some pins now we've got these pins sticking

209
00:16:38,140 --> 00:16:47,020
into some GPI parents I should say and this is to indicate the manually set pins because I said these

210
00:16:47,020 --> 00:16:47,850
pins manually.

211
00:16:48,040 --> 00:16:54,040
That's why I've got this black pins sticking into them to indicates that these are the changes I manually

212
00:16:54,040 --> 00:17:01,690
did if I had performed the changes here and the the system the cube and mixed system had decided where

213
00:17:01,690 --> 00:17:05,350
to set my you at by default I wouldn't have these.
