This is our PIC Microcontroller tutorial series. We have already discussed basic beginners guide to PIC. Now let’s see how to simulate the PIC microcontroller?
PIC simulation is the important step that you should do before practical implementation of any microcontroller projects.
As Circuits Gallery covers topic of Microcontrollers especially with PIC (Peripheral Interface Controller), this guide shows how to simulate PIC in one of the best PIC microcontroller simulation software ‘Proteus Design Suite Version 8’.
A simulation software can interact with the embedded project with screen indicators for example LED, LCD displays, switches and buttons. The simulation takes place in real time.
PIC simulation is the important step that you should do before practical implementation of any microcontroller projects.
As Circuits Gallery covers topic of Microcontrollers especially with PIC (Peripheral Interface Controller), this guide shows how to simulate PIC in one of the best PIC microcontroller simulation software ‘Proteus Design Suite Version 8’.
A simulation software can interact with the embedded project with screen indicators for example LED, LCD displays, switches and buttons. The simulation takes place in real time.
Why we Need Simulation?
What is the purpose of simulation? Before going to the practical implementation of the circuit we have to test whether the embedded program will work perfectly for our project.Here comes the importance of simulation softwares. Such software provides an environment to test our microcontroller program.
It is possible to play with your microcontroller just as in real world.
This article dealing with the most powerful simulation software the Proteus Design Suite Version 8.
It is good to have the following knowledge before going to PIC Simulation
- Getting Started with PIC Microcontroller
- How to program PIC Microcontroller
- PIC microcontroller Basic connection circuit
What is Proteus VSM?
Proteus Virtual System Modelling (VSM) has mixed mode SPICE circuit simulation, animated components and microprocessor models to ease co-simulation of complete microcontroller based designs.Over ten years later, Proteus VSM is still primary in the arena with more microcontroller variants and peripherals than any competing product, better debugging tools and instruments and a consistent focus on innovation.
With Proteus you can
- Alter your 'hardware' by rewiring the circuit diagram, varying component values for resistors, capacitors etc.
- Removing or making new components to the design.
- You can change your firmware in the IDE of your choice and, once compiled, test the new code on the new system at the press of a button.
- Reprogramming microcontroller: In practical there is limitation to flash the memory of microcontroller but in Proteus you can burn program unlimited times.
- Attain confident that your program will work for real world applications.
Advantages of Simulation
Let’s start Proteus Simulation
In this example I already build .HEX file of LED blinking program.Read our old article if you don’t know how to build .Hex file.
Now I’m gonna to show you how to simulate PIC16F877A microcontroller using Proteus.
Step 1: Create a new project
Click New Project button.
Now click Schematic Capture button, you will be directed to schematic panel.
Click P button followed by Component button under Devices for picking components
Choose your component by simply typing the name at Keyword box. After selecting item click OK.
Now draw the circuit diagram as shown below.
Where is the ground terminal in Proteus 8? Click Terminal mode button to get different terminals,
Apply MCRL signal to PIC MCU, Click Generator mode button and choose DC.
Step 8: Set clock frequency to PIC MCU in Proteus
Double click on the PIC IC, the Edit component wizard will open. Set the frequency as same that you did for generating .HEX file. (I compiled my embedded program with 10MHz, hence I selected 10MHz here).
Step 9: Load .HEX file to the schematic diagram of PIC
After setting frequency click browse button to load the .HEX file.
Step 9: Let’s run simulation…!
Click the Run Simulation button at bottom left corner and observe your PIC simulation.
Yes, now you have successfully simulated your PIC project... Play more and more and explore your
Virtual lab....
Downloads
Watch this PIC simulation in CircuitsGallery video Lab
All the above steps are also explined in our Circuits Gallery video lab.
For more videos subscribe our YouTube channel
Ads
0 comments:
Post a Comment