0% found this document useful (0 votes)
41 views

Creating Hex

The document provides instructions for creating a .hex file using evaluation software: 1. Open the UV3 software and create a new project, selecting a destination folder. Select the Philips 89c51RD2xx microcontroller as the target device. 2. Write code in the text window, saving it with a .c or .s extension. Add the source file to the project. 3. Set the crystal frequency to 11.0592 MHz and select the option to create a hex file. 4. Compile and build the project. The hex file will be created in the project folder for downloading to the target board using Flash Magic software.

Uploaded by

kirwalegajanan1
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Creating Hex

The document provides instructions for creating a .hex file using evaluation software: 1. Open the UV3 software and create a new project, selecting a destination folder. Select the Philips 89c51RD2xx microcontroller as the target device. 2. Write code in the text window, saving it with a .c or .s extension. Add the source file to the project. 3. Set the crystal frequency to 11.0592 MHz and select the option to create a hex file. 4. Compile and build the project. The hex file will be created in the project folder for downloading to the target board using Flash Magic software.

Uploaded by

kirwalegajanan1
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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