So this time let's create a new project using a different method.
First of all let's just create by clicking here.
Remember we can click here to create a new project or come to found your project or just use the shortcut
here.
Create a new project.
So click this instead of selecting these options.
The MCU filters we just future it's based on the peripheral requirements I need for my project.
So let's say I have a project that requires let's say we require 10 ADC channels.
I just input 10 over here 10 12 beats ADC channels and less if we want less if we want three.
You are sports.
So if I hit enter it's just going to fuel to show me the microcontroller options I have for my particular
project.
So this is really good for mocking up your prototypes.
You can know the the microcontroller you need just by coming over here and configuring your your various
peripheral requirement.
So if your project requires 10 ADC Chanos 3 you odds you can just search and then you have different
options according to memory size I or ports no flash size Ram package etc. so we can choose just by
filtering through some options doing exist some strange options like having a microcontroller with exactly
three you support port 10 ADC Chanos and I are a team this doesn't exist.
So indeed it filters through to make you choose.
So let's say we don't want twelve.
Let's say we want five.
Our project requires five 16 bits eight Chanos and then we require less a five sixteen bit general purpose
timers.
We don't have an option for this as well.
So as you can see so I could put zero here described different search so.
So we can have five sixteen bids a disease.
There is no board that gives the same capability with you at functionality.
So that is good to know and overheads indicate the maximum number of that particular pair for instance
as you can have like here we can see we can have the board with a maximum ADC to offbeat ADC channel
supplies just 40 Chanos the board with ADC 16 bit can provide a maximum of twenty one channels of such
sixteen bits HDD.
So we have the maximum here too which helps us filter through.
So let's say I'm very curious actually.
Let's say I require 40 ATC channels which port am I going to get to.
These are the boards that provide 40 ATC channels.
That's awesome.
Yeah.
So that's one way of creating a project.
This is this can give you a good idea about the particular microcontroller in your product development
cycle.
So there's one other way.
Moving on.
So for instance let's say my projects requires a fairly normal microcontroller.
Let's say I require a maximum of let's say for ADC Chanos messy say to you sports and perhaps one is.
So these are the options I have available.
So let's just select one randomly let's see who is the lucky one.
I just select this one here so when I select it it opens up the new project display on display in the
peanut and as you can see this is it.
This the microcontroller the chip this is it.
And let's say for some reason I cannot use a package in my project right.
And I need to change the thing I need to change what I've selected.
The good thing with a Cuban mix is I don't need to go to the previous page I still have the other microcontrollers
here with the same required peripherals here.
It kept them here for me so I said I wanted for two different ADC channels one SBI two new ads two because
this this particular empty use package is the BCA I'm not using a BCA package in my projects I could
see perhaps I prefer the L Q FP one hundred package so I could have the same functionality the same
features with this particular board so I can select this instead and it will just update and now I would
just proceed with my project.
So this is very convenient.
This saves a lot of time in prototyping and product simulation and all of that.
Kudos kudos to SD for doing this.
So let's move on and whatever you do know understand.
Don't forget to live it in the in the question section or send me a message.
Yeah.
So let's explore the pin out of a bit more so over here we can expand these peripheral options all dressed.
If you're not used to that particular MCU you would want to expand to see that you've got all the specific
number of channels for each profile.
And over here you can just come expandable as you can see expanded know our ADC office sixteen channels.
Yeah it takes possible options so you don't need to open them up and just examine them like this can
collapse it too if we don't want to expand it.
We can use this zoom into the pin out diagram like this or we can like zoom out if we want we can use
best fits as well.
Yeah.
And in fact we can zoom in using the will on the mouse just by opening bucking for zoom in and drag
it anywhere we want it.
Yeah.
Normal drag function.
So this is back in a bit and we have the same options here for expand and collapse.
And over here we saw this already to generate the CSP of the pin out and we can search the pins over
here as well.
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
want or the pins for ports be equities go P. B any highlight they say I want a particular pin on a particular
port let's see I'm searching for P C twelve I can just type like this and then it indicates exactly
where it is and this might look a bit simple.
I mean it looks easy to identify where P C twelve is but it becomes very useful when you have a microcontroller
on a smaller package with a large pin count something like 300 pins instead of looking for them one
after the other.
You can just search from there.
So this another very useful feature we have here.
So now let's take a look at the color code that the Q that Max uses to communicate to us to underpay.
We've got metal was of course and this one here is great ours because we've not enabled it to pair for
that goes with it.
This one here is independent so we can just choose it.
Free to us depends on not as well.
It's independent.
It's a middleware that does not require peripherals.
So we can choose it.
Most importantly what I want to show is if I come over here and I select ADC inputs channels you automatically
see that this one here is selected for me and it's painted green meaning it's selected in and it's activated.
Now once that is done we stop seeing these marks here.
This warning marks fact I would just disable my ADC selection and then you realize the warning mark
disappears.
I just take it off and you can see there's no one in market.
But when I put when I selected the warning Mark appears and what the warning Mark is trying to tell
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
the system wake up because there is a conflict and when you see this red mark mean there's a conflict
you can in fact check where the conflict is and this by putting my cursor over here it tells me system
wake up call conflict with ADC module one in procedure.
So now I have to decide whether indeed I want to use ADC mode module 1 input 0 or at this so because
of these issue.
The rule of thumb is to always always choose the peripherals which are most important to your project.
You start initializing peripherals by order of importance to Alessi.
The most important thing to my project is the agency and make sure I get the ADC already selected.
Dan lessee after that there's another peripheral which is this and it's it's important it's not as important
as the adc I could decide to use a different option that offers the same functionality.
OK.
Let me elaborate I'll just disable this unless I say something as normal such as you it's asynchronous
and then it's activated.
P.S. Lebanon P.S. 10 just randomly MSU where the conflict is.
Luckily there's no conflict with this.
So this this is fine.
Right so let's say I choose a DAC output one and it's conflicting with ATC inputs for.
Okay.
Now this a conflict with something like this.
I have other options.
I can just move my ADC to a different input channel.
Right.
So if I truly needed a DAC I could choose the DAC first and by choosing to dock I know I can or use
ATC input for if I have chosen ADC for first and I required two decks then I wouldn't have two of them.
Meanwhile I have 16 options of ADC 1 so it's good to choose the important thing first.
If I choose to dock first I can always decide out of China 0 through 15 where it connects my analog
analog central or the ADC so we choose the PS in order of priority which is more important we initialize
those beams first.
The red indicates there is a conflict this warning sign we should always expand whenever we see this
warning sign.
Whenever I see a warning sign anywhere at all.
Now to expand to see where the warning says so.
Moving on.
So two runaway experiments.
Let's just initialize more pins here.
I'll just activate some random pair of fields we've got SBI here.
Let's say I want SBI food duplex master mode and I use this the hardware and input signal.
Yeah of course because I'm using this.
This one shows that definitely can use SPF 3 because I'm using this this massive conflict over here.
Now we know what that means.
And this one this warning sign shows that a conflict exists in the list so I can just expand and find
why the conflicts exist meaning I can use serial wire by can I use all these other options in the dropdown.
That's what this yellow one means when you see the yellow the yellow highlight means some pins have
conflicts not all of them.
The red one of course indicates one point.
So yeah.
So let's just enable more power flows.
This enables this here and then we'll see.
We don't often use the normal flash so that's not something you will use in your everyday project or
just collapse or like this.
Then let's say I want to use timer internal clock output per hour.
How about that.
Let's just enable that crystal to bypass clocks.
Okay.
I just want to get a bit more green marks here to demonstrate to you.
You got synchronized mode.
Okay.
Just good.
Okay let's get you out.
Synchronize.
Okay.
OK.
See OK.
So I think we have enough enable without just collapse.
All of them like this show.
So this what we've enabled we can change the labels.
These are the labels aside and a good thing is when we generate our code we can use these label names
to represent these pins and then program these pins.
So let's say I want to change to the name a few but I could just come over here come here right click
and to use a label and then I can just see Oryx then I could come over here right click and to use a
label and call this t x.
How about that.
So whenever I go and I see our recent T X I know I'm talking to my user.
I use PINs and the naming convention is they should I shouldn't put a label that has space between.
So I cannot come here and say are x 1 all outbreaks LCD or XP at least.
If I want such a name I would have to use an underscore or something because we're going to use this
into code.
We have to give a label that has no space between.
That's the only naming convention.
Of course the name can start with a symbol like a standard naming convention or thousand fold as but
apart from that there shouldn't be space between them.
So OK I'll just call this race BLT and then I'll just rename this issue to be rly like this.
OK so one other thing is let's say for some reason we need to be a 10 feet and has another alternate
feature that we really need.
Let's say 10.
I'll just click Putin OK here tennis also channel three of time a one.
And it's also a GPI.
Oh it's brewed.
It's got an event out let's say for some strange reason.
I genuinely need time out once I know three and because I have Pier 10 here using my BLT rakes and I
have to change my my my you are uncertain as to what do I do.
That's a very cool feature.
So to see another pin that can offer me the same function as p. 18.
At this moment I can price control on my keyboard and click competent.
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
7 and p a 10.
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
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
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
code everything the same and I can set this to a different function less a time a 1 channel 3 by clicking
here like this.
So you may not realize that we've got these pins sticking into some pins now we've got these pins sticking
into some GPI parents I should say and this is to indicate the manually set pins because I said these
pins manually.
That's why I've got this black pins sticking into them to indicates that these are the changes I manually
did if I had performed the changes here and the the system the cube and mixed system had decided where
to set my you at by default I wouldn't have these.