So now let's create the file to contain our assembly code and we do that by clicking here to create
a new file.
And let's say that the Save the file you can just press control s and then you save it in the same folder.
I'm going to call it name dot s..
Remember dot as is the extension for assembly code and dot c is the extension for C code.
This father's main dot s you save it.
And after you've saved the file to spend the folder but it's not yet in your project.
So you have to bring it into your project to make it usable in the project and to do that.
You can come here to source group 1 and DoubleClick and it brings you here and you locate your file
costs your file is a dot as far.
Obviously it's not displayed here.
You can come here and choose display assembly or display of files which is much more convenient.
And now you can see your main dot s file here.
You double click to add it and it's added and it closed.
Now you can see your file here.
But before we stop typing let's examine our board our TVC board again.
If you take a closer look at your board I'm sure you would notice there are 10 pairs of pins sticking
out at the left and right.
And so off the board you would also notice that these pins have labels like P 3 p.m. for PD 6 and so
on and so forth.
These labels are really important through these labels.
We are able to know where to connect our input and output devices to match the code we write.
What happens is that if we want to connect a sensor or switch or maybe an LCD to say P F three we will
have to enable P F three programmatically.
What this means is we will have to write code to tell the microcontroller to enable P if three to set
P F three to either an input or an output depending on what we are connecting to p 3 or even we would
have to tell it in microcontroller to set it up for an alternate function.
So it is very relevant to read the labels carefully and to connect the wires or the input and output
devices to the right pins.
Since we are going to use the red LCD for this project let's dive into the user guide document and see
how the Red LCD is connected to the board and I'm sure you might have downloaded a document by now.
If not this is the link here.
Yes you can just copy and paste this link in your address bar and hit enter.
It will take you directly to the documents where you can download.
You should certainly have it.
Now I have mine here so I'll just maximize it to 150 percent to make it very clear.
And let's scroll down to page 20.
Yeah I hope pages are written.
If the pages aren't written at the bottom you can just hit 20 here and jump straight there.
And what we are looking for is the schematic diagram of the microcontroller.
This is disconnected Matic diagram.
This the microcontroller and if you take a look at P F 1 p F2 P F 3 and create the outlines you will
realize that they are connected to red blue and green LCD respectively.
This is P F 1 p 2 is down here p of 3.
If you create the airlines you'd realize they come through this r twelve R eleven are two resistors
and go to the LCD R and the DP Any DG distance for LCD red blue and green.
So in order to use red I'm sure you can tell you realize that we would have to enable P if one to use
the red LCD.
Here it is.