A.3 Is This a Happy Ending?
This section briefly describes the way of using the mikroBasic PRO for PIC compiler and PICflash programmer software. It’s very simple...
You have already installed the compiler, haven’t you? Start it up, open a new project and a new document with the .mbas extension within it. Write your program...
OK. The program has been written and tested by means of the simulator. No errors have been reported 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 to do is load it into the microcontroller. Now you need the PICflash programmer (consisting of software and hardware). Start up the PICflash program.
All the settings are easily performed and there is no need for additional explanations (the type of the microcontroller, frequency of clock oscillator etc.). Now, the final step:
- Connect the PC and the programmer via a USB cable;
- Place the microcontroller into the appropriate socket on programmer's board;
- Load the HEX code using command: File aLoad HEX; and
- Click the push button Write within the PICflash program’s main window 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 are satisfied...