Proteus can be very helpful tool for learning embedded system programming. The process involved is quite easy.
You start you embedded system design project by creating a new project. During the project creation you will an option whether you want a firmware development project. At this point you have two options. The first one is that you can say yes and use the either the Proteus build in compiler or assembler and second one is that you can select No to the option. If you selected the second option then you would create the program for the microprocessors and/or microcontrollers in the separate compiler or assembler tool such as Keil or PICC and then you would copy the source code .asm or .hex or .exe created from those compilers/assemblers into the Project project folder.
In case you select the first option, that is, you choose that you wanted to created a firmware project during the project creation you have the option to select the compiler/assembler for the microcontroller/microprocessor you are working with.
Below is a screenshot of this step:
In the above screenshot if you had selected the 8051 microcontroller family for the project then you would see a list of compiler available to you(and those not installed but could be used). The example here uses the Keil compiler.
After you have created your firmware project then you would see the source code editor program with the default header for the microcontroller and some intial C code as shown below.
By default the file name is main.c but you could change that. The default code provided by proteus is to make the programming quicker.
If you switch to the ISIS schematic editor you will see that the chosen microconroller is already placed on the schematic.
Now from this point on you can start your embedded system design project. Following shows a simple control application in which a switch is connected to the Port1 0 pin and a sound buzzer is connected to the same port but pin 7. The switch connected to the pin 0 is checked and if open outputs sound from the buzzer at port 1 pin 7.
The following is the schematic for this small project.
Then you could simply start writing your C program for your embedded system design. The program code is simply written into the aforementioned proteus keil compiler and editor as shown.
Once you have written your program you should compile and build the project.
Once this is also done you would go back to your schematic and run the simulation. You could interactively switch on and off the switch in the schematic.
So this tutorial illustrated how proteus could be used for embedded system programming and development
You start you embedded system design project by creating a new project. During the project creation you will an option whether you want a firmware development project. At this point you have two options. The first one is that you can say yes and use the either the Proteus build in compiler or assembler and second one is that you can select No to the option. If you selected the second option then you would create the program for the microprocessors and/or microcontrollers in the separate compiler or assembler tool such as Keil or PICC and then you would copy the source code .asm or .hex or .exe created from those compilers/assemblers into the Project project folder.
In case you select the first option, that is, you choose that you wanted to created a firmware project during the project creation you have the option to select the compiler/assembler for the microcontroller/microprocessor you are working with.
Below is a screenshot of this step:
In the above screenshot if you had selected the 8051 microcontroller family for the project then you would see a list of compiler available to you(and those not installed but could be used). The example here uses the Keil compiler.
After you have created your firmware project then you would see the source code editor program with the default header for the microcontroller and some intial C code as shown below.
By default the file name is main.c but you could change that. The default code provided by proteus is to make the programming quicker.
If you switch to the ISIS schematic editor you will see that the chosen microconroller is already placed on the schematic.
Now from this point on you can start your embedded system design project. Following shows a simple control application in which a switch is connected to the Port1 0 pin and a sound buzzer is connected to the same port but pin 7. The switch connected to the pin 0 is checked and if open outputs sound from the buzzer at port 1 pin 7.
The following is the schematic for this small project.
Then you could simply start writing your C program for your embedded system design. The program code is simply written into the aforementioned proteus keil compiler and editor as shown.
Once you have written your program you should compile and build the project.
Once this is also done you would go back to your schematic and run the simulation. You could interactively switch on and off the switch in the schematic.
So this tutorial illustrated how proteus could be used for embedded system programming and development
0 comments:
Post a Comment