Circuit designing on Proteus
Circuit designing on Proteus:
steps:
First of all, open the Proteus ISIS
software.
In the start, it will look exactly the
same as in below image.
Now click on button P as shown in below
figure.
When you click this button a new window
will pop up as shown in below figure. This is the place where we search our
components, like as I want PIC16f877a so I searched for this component and
the Proteus
has given me the related components.Once you get your desired component,
simply double click on it and it will be added in your database so that
you can use them.
The below image shows
the components which we are gonna use in this project, so simply search for all
the components and then double click on them and finally you will get all the
components as shown below:
Now place these components in the Proteus
workspace and connect them.
Design exactly the same circuit as shown
in the below figure:
Now our circuit in Proteus is ready
to use, the next step is to write a code for the PIC
Microcontroller 16F877a and then burn it into the Proteus and check
its working.
There are
different compilers to write the code for PIC Microcontroller. Here I am using MPLAB.
You can get it easily from the official site of MPLAB.
I am not going in
the details of coding as its beyond the scope of this tutorial, but still
I am posting the code.
So now create a
new project in the MPLAB IDE For PIC and write the code code
and paste it in the project and compile.
When you compile
the project, it will create a .hex file in the same folder where you have
saved this project. We will use this hex file shortly.
Now we have the
hex file, we need to burn this hex file in the microcontroller in Proteus.
So, double click
on the Microcontroller in Proteus and it will open up the properties menu
of PIC microcontroller.
Now click, as shown in the below figure,
and browse for the hex file and click OK.
We need to add
this hex file in Proteus here and also select the oscillation frequency
which I have selected 20MHz.
Double click on microcontroller & click Add /Remove source code file .
After adding the file in the
Proteus now click OK and play the simulation, if everything goes fine, you will
get the results as shown in below image.
No comments:
Post a Comment