Appendix A - It Is Time For Fun - Book - PIC Microcontrollers - Programming in C
Appendix A - It Is Time For Fun - Book - PIC Microcontrollers - Programming in C
Products
Solutions
http://www.mikroe.com/chapters/view/18/appendix-a-it-is-time-for-fun/
Store
Distributors
Libstock
Contact Us
search here
Featured Compilers
mikroC PRO for PIC
1 of 4
3/28/2014 9:29 AM
http://www.mikroe.com/chapters/view/18/appendix-a-it-is-time-for-fun/
As mentioned, to enable a hex code to be loaded into the microcontroller it is necessary to provide a special device, called the programmer,
with appropriate software. A large number of programs and electronic circuits used for this purpose can be found on the Internet. The
procedure is basically the same for all of them and looks as follows:
2 of 4
3/28/2014 9:29 AM
http://www.mikroe.com/chapters/view/18/appendix-a-it-is-time-for-fun/
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 thats 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.).
3 of 4
3/28/2014 9:29 AM
http://www.mikroe.com/chapters/view/18/appendix-a-it-is-time-for-fun/
Thats 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...
If needed, all these peripherals can be connected to the MCU via jumpers. This enables the whole program to be tested in practice even
during its development stage, because the microcontroller doesnt know or care whether its input is activated by a push button or a sensor
built in a true device.
If you have some of the development systems, the process of programming and testing a program is even simpler. Concerning that the
mikroC PRO for PIC compiler (on your PC) and the PICflash programmer hardware (on your development system) cooperate perfectly, the
process of compiling a program and programming the microcontroller is performed in a single step - by clicking the Build and Program icon
within the compiler. Now, any change in the program will immediately affect the operation of some of the development systems components.
Do you now agree with us that its time for fun?
previous chapter | table of contents
Find us on Facebook
PIC Solution
dsPIC Solution
STM32 Solution
Find us on YouTube
8051 Solution
Add-on boards
Click Boards
PIC Compilers
dsPIC Compilers
STM32 Compilers
8051 Compilers
mikromedia shields
PIC Programmers/Debuggers
dsPIC Programmers/Debuggers
STM32 Programmers/Debuggers
8051 Programmers
Communication
PIC Kits
dsPIC Kits
STM32 Kits
8051 Books
Storage
PIC Books
dsPIC Books
8051 Kits
PIC32 Solution
AVR Solution
Additional Software
Tiva C Compilers
Visual TFT
PIC32 Compilers
AVR Compilers
Tiva C Programmers/Debuggers
Visual GLCD
PIC32 Programmers/Debuggers
AVR Programmers/Debuggers
Tiva C Kits
Package Manager
PIC32 Kits
AVR Kits
Measurement
Audio & Voice
Power Supply
GPS
GSM/GPRS
Timer Calculator
Support
Forum
mikroBUS
Lets make
Press
Legal
Archive
Display
About Us
Customization
Copyright 1998 - 2014. MikroElektronika. All rights reserved. All trade and/or services marks mentioned are the property of their respective owners.
4 of 4
3/28/2014 9:29 AM