You are on page 1of 16

Experiment 1: Serial Communication C- Program using Keil µVision Software

1. The 8051 MC should be connected to the power supply board.

2. We connect the ESA cable from the 8051 MC to system male connector.
3. Initially create a “New Folder on desktop/drive with Name” and save all the project files
in it.
4. Click on Keil µVision4 shortcut & we will get a display page.

5. Click on Project ---- >New µVision project.


6. Select the desktop option and select the folder created (serial comm) and open it.

7. Give the file name and click on the “Save” option.


8. We will get a window “select Device target target1”. In the database option goto “Intel ---
-- > 8051AH (Select) & click OK button. It will ask about “Copy startup Code to project folder”--
- > click on No option.

9. Select the option “File ------ > New (Click).


Project Window Program Window

Output Errors Representation


10. Write the C Program in the “Text1” document and save the program with extension
filename.c in the created folder (serial comm) on desktop.

Filename.c
11. Right click on the “Source Group 1 --------- > Add files to group group1 ------ > select the .C
file ----- > Click on Add option.
12. Rignt click on Target 1 ----- > option for target target1
13. Change the options in the “output” -------- > tick mark the option Create Hex file.

14. Change the options in the Debug ------ > keil Monitor-51 Driver.
15. Change the option in target ------- > near Eprom assign the start and size value as 0x8000.

16. Click on “Translate, Build and rebuild” option if no errors are obtained than Hex file is
generated.

Rebuild
Translate Build
19. Minimize the keil software and open the “Term51E” shortcut on desktop and click Reset
option on ESA 51E Board.

20. Click on the “Download” option on the window shown and browse the file path of hex file
created from the folder (serial comm) and press OK.
21. Give the command as “g 8000” in the command space shown and click “enter”.

22. The output Result is obtained.

You might also like