How to use Keil u vision 3. for interfacing 8051 microcontroller :
1. Open keil u Vision 3.
2. Click on Project > New uVision Project >
3. Create New Folder in my document by your name and give some name, e.g. ags
4. Save file by name of application, e.g. lcd. It automatically saves with .uv2 extension.
5. Select CPU >NXP(founded by phillips) > P89V51RD2
6. Create new file.
7. Write program and save with .c extension. e.g. lcd.c.
8. In project workspace > target 1 > source group 1 > add files to group ‘source group1’.
9. Click on filename. E.g. traffic > add > close.
10. Right click on target 1 > option for ‘target 1’ a. target > set XTAL (MHz) =12 b. output – click on create Hex file. c. ok.
11. Build target. It shows errors and warnings and creates hex file in folder. e.g. ags.hex.
12. Connect the 89V51RD2 Embedded Trainer Kit to PC.
13. Set the switches 1 to 3 to HIGH on SW1.
14. Set the switch SW4 and switch ON SW3.
15. Open ECE Flash and browse the hex file from folder and burn hex file into microcontroller by Clicking on Flash.
16. Change the position of switch SW4 and switch OFF switch SW3.
17. Press RESET Key and Observe output on LCD.
0 comments:
Post a Comment