How to simulate programs of 8051 using Proteus


Proteus is a handy and user friendly simulator tool. It helps to check result of program without connecting the hardware. Most of the tools are available in proteus so we can test them without any hardware cost. In this tutorial, we will show the steps for how to create the project in proteus and its simulation process.

Let’s Simulate with Proteus

Step-1

Open the Proteus Software and Click on New Project.

Step-2

Provide the name of project and a location where you want to create it.

Step-3

Select Option Create Schematic from selected template. I have select required template (Landscape A4) which is good enough for basic applications.

Step-4

Select template for PCB Layout. I have skipped it for demo. Later on we will learn how to create PCB in other tutorial.

Step-5

If you are creating applications with micro-controller, select option Create Firmware Project.  Here I have selected following configurations.

Family > 8051

Controller > AT89C52

Compiler > ASM-51 (Proteus)

Click on next.

Step-6

Summary of selected configurations will appear as shown below. Click on Finish.

Step-7

Project with Schematic Capture and Source code configurations will be created. Go to Schematic Capture to create our schematic.

 

Step-8

Schematic with micro-controller will be created by default.

Step-9

We have to pick devices from the available libraries of Proteus. To search the devices, click on button P (Pick Device) > Search Components. Now type the name of component you want to use. Preview of selected component will appear on right pane of the screen.

Step-10

Click on OK to add selected component to schematic.

Step-11

You can modify placing of components like rotate, drag etc. For this right click on component and select option from the pop-up menu.

Step-12

We can add terminals like Power Supply, Ground etc. For ground Right Click > Place > Terminal> Ground.

Step-13

Connect the wires as per the circuit you want to create and save it.

Step-14

Now for simulation, we have to provide path of hex file created by the Keil IDE. Double click on controller. Following pop-up menu will open.

Step-15

From the Program File, browse the hex file and click on Open.

Step-16

Final configuration will look as shown in below image. Click on OK.

Step-17

Now click on RUN Button. (► is Run Button)

Step-18

You can see the output of code. Here the LEDs will blink as per our code.

Step-19

Click on Stop Simulation. 

Now you can make your own code and simulate on Proteus.

If you face any issues, feel free to ask us Here.

You may also like...

Leave a Reply

Specify Facebook App ID and Secret in Super Socializer > Social Login section in admin panel for Facebook Login to work

Specify LinkedIn Client ID and Secret in Super Socializer > Social Login section in admin panel for LinkedIn Login to work

Your email address will not be published. Required fields are marked *