A.3 Is this a happy ending?
This section briefly describes the way of using the mikroC PRO for PIC program (compiler) and PICflash programming software. Everything is very simple...
You have already installed
mikroC PRO for PIC, haven’t you? Start it up, open a new project and a new document with extension
.c within it.
OK. The program has been written and tested with the simulator. It did not report any errors during the process of compiling into the
hex code? It seems that everything is under control...
Yes, the program has been successfully compiled. All that’s left is to load it into the microcontroller. Now you need a
programmer consisting of software and hardware. Start up the
PICFlash program.
The settings are simple and there is no need for additional explanations (the type of the microcontroller, frequency and clock oscillator etc.).
- Connect the PC and programmer hardware via a USB cable;
- Load the HEX code using command: File -> Load HEX; and
- Click the Write button and wait...
That’s it! The microcontroller is programmed and everything is ready for its operation. If you are not satisfied, make some changes in the program and repeat the procedure. Until when? Until you feel satisfied...