Use
12
© 2007 Velleman Components
5.2
Programming the PIC controller
A simple explanatory application will explain how to program and to test a PIC. The application is
simply a blinking LED. The used controller in the example is a PIC10F200.
STEP 1: Compiling your code
·
Start PICprog2006
·
Click the "MPASM" icon.
·
Read the ".ASM" file.
1.
The file to compile is generally of the ".ASM" type.
2.
Set the radix that will be standard accepted (setting the radix in
the .ASM file will have priority over this setting)
3.
Leave the setting on "All Messages" so all error messages and
warnings will be recorded in the .ERR or .LST file.
4.
Choose the output format. The format can be INHX8M, INHX16,
INHX32.
5.
Choose which files will be generated by the MPASM, e.g. a file
containing error messages…
6.
Choose the PIC controller to be programmed.
*
For more information please refer to the MPASM help function or
the information on the
website
·
Press the "ASSEMBLE" (7) button when all setting are correctly implemented (7).
·
When the code assembly does not contain any errors, following screen will appear.
Summary of Contents for VM134
Page 1: ...K8076 VM134 QUICK GUIDE...