This pic c compiler tutorial shows you how to compile MikroC C source code files.
This pic c compiler tutorial shows you how to re-compile source code using the MikroC compiler - it is not intended as an in depth look at compiling in general.
Re-compilation is only needed to examine or change the code as the ZIP files found on this site already contain the hex file for programming the chip.
MikroC main screen
MikroC has quite a few controls but for this compiler tutorial you only need to consider a few of them.
Re-compiling the source files
Download the ZIP file and extract
its contents to your directory e.g. create the directory c:\\mikroC\\
In this directory you will have files with extensions .c, .h ,.hex ,.ppc. The .ppc is the project file that you select from mikroC using the Open project button:
Navigate to your stored files and select the .ppc extension. This loads the project.
If you want to change the project settings e.g. the chip type, oscillator frequency or other chip parameters then hit the 'Edit Project' button :
Next hit the compile button:
A dialog box will popup showing the compilation status.
When the compile finishes (and if successful) you should see something similar to the following:
Now there should now be a lot more files in the original directory and the hex file will have been updated.
Jump from PIC C Compiler to
Best-microcontroller-projects home page
Jump from SDCC to
Best-Microcontroller-Projects Home Page