1.
Go to the project>New uVision project
2. Click on the new uVision project
When you click on the new
uVision project you will get window as shown below,
Now define the location where you want
to save your file and give the file name (for example “lcd”) and save.
As you click on the save you will get following
window on your monitor
3. Now its time to select your
microcontroller device from keil database and click ok
After clicking OK you will get window as
below then click on the NO option
4. Now you have following window
Go to the file option then open the C file
(program which you want to convert to hex fie) or click on the new and write
the C program.
After writing a program or loading (open)
a program you have window as below
5. Press the Right click on the “Target” 1 and click on the “option for Target 1”
6. Now go to the output and check-mark the “create HEX File”
7. Press the Right click on the “Source Group 1” and the click on the “Add files to Group ‘source Group 1”
8. Name the c file as with .c extension for example lcd.c and click on the Add and the click on the close
9. Click on the Build option or use shortcut F7 to build the program
10. Now your window appears as below
after 9th step and hex fie is generated in the folder you saved it
Note-save
all the data in the same folder, do not forget to save C file in same folder
0 comments:
Post a Comment