Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix A: Programming a Microcontroller
The next step is to write a program. Open a new document by clicking File>New. Text Editor in MPLAB environment
appears.
Save the document in the folder D:\PIC projects by using the File>Save As command and name it "Blink.asm" indicating
that this program is to be an example of port diode blinking. Obviously you can locate you files wherever you wish, in
whichever hard drive you wish. Using a common directory to store all your different projects and subdirectories in makes
good sense.
Example:
D:\Pic Projects
LED Flash Project
All associated files
Event Count Project
All associated files
LED Scanning Project
All associated files
After the "Blink.asm" is created and saved, it should be included in the project by right
click on the "Source Files" option in the "Proba.mcw" window. After that, a small window
with two options appears. Select the first one "Add Files".
Click on that option opens another window containing the folder PIC along with the document Blink.asm. See figure below.
http://www.mikroe.com/en/books/picmcubook/appa/ (17 of 21)5/3/2009 11:35:35 AM