Creating Hex

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 8

Creating a .hex file using evaluation software. Start UV3 i.e. an ICON appear on your desktop PC.

The following window will be appear on the screen.

Now click on Project in menu bar and select new project, u will get following window.

now choose the destination where you want to store the project. Create new folder and give the name that. Double click on the foldear and give the name for your project file as *.uv2 ( extention it will take by default.) click on save . U will get following type of window on the screen.

this will ask u the target device that means the Microcontroller that is on our board . Select Philips 89c51RD2xx. And click O.K. then it ask that copy standard startup code click yes. It will show target folder on left. Now click to file menu and new file ,and type your code here in the Text window. After writing your code save this sorce file with proper extention , i.e. if your are writing the code in the C language then save file as *.c or if in assembly then save as * .s . Now add this sorce file to our Project group, by clicking on the following shown icon,

by clicking on this icon u will get the following type of window on the screen.

then click on the add file it will show the window containg file , click the proper extention and click add once it will add the selected file in the project group. Then click close and then O.K . Now click on the project in menu bar and options for target shown in the following window,

after clicking on this window , u will get the option as shown in following window, as in below shown window u must have to change the crystal frequency to 11.0592 , after that click on output option.

after clicking on output option u will get window shown bellow,

here select the option that create hex file. Then click ok u will return on the main program . now complie the program by using the icon shown in below window , it will shows that compile result in the o/p menu . After that clik on the build icon very near to compile icon. After that clik on rebuild icon this is near to build icon. Now your *.hex file is created in your project folder. For downloading this file in the targer board use the Flash magic downloading Software suoolied in the C.D.

You might also like