- This topic has 1 reply, 2 voices, and was last updated 12 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › Help me to deal with C to HEX MBLAP Compiler
Hi All
I am new with PIC put some how i must deal with PIC couse some reasons… what ever.
I need to now what is the best compiler to convert C to HEX file and checking for errors?And how can i convert C to hex program or write or modified program?? Any PDF or youtube etc
thanks to all again
First you need to know what pic you’re going to use. Register organization differs for each pic. I have used three compilers for pic18, and i’d say none is superior to the other. Each have its own weakness, and each have their own advantage. To me, the key is understanding the built-in function of the compiler you’re going to use, and the datasheet of the pic you have in mind. Mplab has its own debugging tools. Mikroc has its own debugging tool. I usually use proteus because i can simulate and stimulate the pic, and the register operation is still viewable. If you want to switch to mikroc, this could be a headstart:
http://www.engineersgarage.com/tutorials/mikroc-pic-programming-tutorial
But c18/hitech-c is also very powerful. So, you have to decide by yourself.
As for the hex file, when you build your c program, a hex file is automatically generated in the folder you specify your project. The next step is to test the hex file; simulate or burn to pic.