May 16, 2011 at 6:14 am #4738
Hello every one,
first of all i am very thank full to the EG team for providing such a great portal for learning the electronics specially the controller section..
Many a times i get query that how to start with controller. Where shall i write the code, how to put the code inside a controller. Oh.. I just got faint by answering this question. So here I am writing a complete solution for working with keil compiler. Oh! Sorry again.
Now let me start from here, a controller understands only hex format. It’s typical for a human to understand those hex codes and making a new logic in hex code is like a hell. So write our code in high level language and convert them in to corresponding hex code. That makes our job easier and we can concentrate on logic. The conversion of code is done by Compilers. Just link for C language you might be using turboC compilers.
We write the code ( for controllers) in C ( known as embedded C), Java, asm (assembly language), etc, etc… and the complier convert those C codes (human understandable codes) to the hex codes (uc understandable codes). Thanks to compiler for dong such a great job and save me from going into all those complexities.
We will be using KEIL compiler to convert the C or asm code into hex code. On the other hand Keil provides a simulation tool. In which we can debug our codes.
Download keil form here
Here we go for starting of keil.
First you have to creat a project.May 16, 2011 at 6:15 am #6213
now write the name of the projec in the red box given below shapshotMay 16, 2011 at 6:18 am #6214
Now select the name of the company IC which you using like Atmel, dallas, NXP, motorola or any one what you using, i was using Atmel’sMay 16, 2011 at 6:21 am #6215
Now select the IC which you using like at89c51/c52/s51/s51…. bla bla bla bla….May 16, 2011 at 6:23 am #6216
now follow some simple steps and save the file. if you using C languagel use .c extension and if you using assembly language the use .asm as extension.May 16, 2011 at 6:24 am #6217May 16, 2011 at 6:25 am #6218May 16, 2011 at 6:25 am #6219May 16, 2011 at 6:26 am #6220May 16, 2011 at 6:31 am #6221
follow the two link for the rest of the process.
also check this link it will be very help full for you.July 26, 2012 at 6:37 pm #8338AnonymousGuest
hello,thanks for the information,but I have another problem,
I want to creat a new project in keil,using cmsisJuly 27, 2012 at 2:27 pm #8345AJISH ALFREDParticipant
Thanks for sharing Dagakshay. Its really helpful for beginners, no doubt!
- You must be logged in to reply to this topic.