Friday, 6 March 2015

How to use Keil uvision to write 8051 programs.

1) Double click on Keil uvision icon on desktop which will open keil uvision.

To download Keil uvision click on Download Link , Fill up necessary details, download the software and install on your pc  then you will be able to see Keil uvision icon on Desktop.


2) Click on Project  -> Close Project.
This will close all previous project.


3) Now create new project
Click on Project -> New uvision project -> Browse desire location to save project.->
Specify target device(for our case Atmel AT89C51) -> Click Ok. then it will prompt whether you require STARTUP.A51 to project folder -> Click NO.

Select Atmel and scroll down to select AT89C51.











4) Now you will have blank area on your workplace, click on New -> click save -> Give the name "name.c" (don't forget to add .c notation)  -> click save.






5) After saving a file we have to add it to our target . 
click on "+" tab of target  to expand target folder -> Right click on Source group 1 -> Add exisiting file to group "source group 1" -> select your c file "name.c" -> click add. 







6) Expand source group by clicking on '+' tab in source group you will find your c file their.


7) Now you write your code in the blank area.








                                                                                                                                    



Thursday, 5 March 2015

How to use PROTEUS software to begin your first 8051 project ?

Steps:

1) Click on Proetus icon on Desktop(Usually created after you install software).



2) Proteus window will open showing number of Tabs as shown below.


3) On Start Tab create new project.(See highlighted tab)




4) New Project Window will appear, type a name of project as desire( i had assumed project name as "tutorial").



5) Click next, now it will ask whether you want to create schematic , so click on "Create a schematic from selected template " and select  " Default " then click next.


6) when you click next it will ask whether you want to create PCB LAYOUT. Select "Create PCB layout from selected template "  choose "Default" and then click next.



7) Next it will ask whether you want to create firmware project ( basically a program code file) .Select 
" No FIrmware Project" as we will use Keil uvision( See Keil Uvision Tutorial )  then click next.




8) It will show summary of configuration you had selected. Tick indicates you had selected to such operation in proetus (e.g we had selected Schematic and PCB layout so at summary it is showing two ticks). click Finish



9)  Now you will see two tab (default tab pop up after clicking finish is PCB layout Black area ). switch between the tab as needed. Generally you will first draw schematic then simulate and if its working perfect then you will create PCB layout. So first select "Schematic Capture"