You can start to test the flasher program on the
The simulator is a program that simulates
Microcontroller code execution and other electronic
One good simulator I ‘ve tried and I recommend is Labcenter Proteus 7.
You can install it and try the hardware components and software program and debug them for run-time errors and functioning errors. All this before building the real-world application on the board. This approach is very useful and can reduce developing time and frustration and eliminate situations such as you connect the circuit and get no action at all. You then wonder
what ‘s wrong. And you can get lost debugging hardware and software and don ‘t know where to
This introduction is to show the advantages of using the simulator before building your circuit board.
Let ‘s get started ……….
1- Install the simulator ( Labcenter Proteus 7 ).
2- Run the program ISIS.
3- Draw the components of the flasher application as in this screen-shot.
file as follows ;
– From the source menu , select Define Code Generation Tools …
– Choose the MPASMWIN from the scroll menu as the screen-shot,
– Add the source form the source menu — > Add/Remove Source files …
and choose the code generation tools MPASMWIN and the source file Flasher.ASM
5- You can now compile the program by choosing the Source menu —> Build All .
If every thing goes right, you should get the screen
7- Now double-click on the PIC16F84A component in your design , you get the window,
Choose the Flasher.HEX and set the Processor Clock Frequency to 4MHz.
8- Now press the play button to start debugging and running the program.
We can start to build our first real-wold circuit….