Programming
a PIC microcontroller Aquiring the
right programmer for you is the first step. The newer the
better would apply here. Of course, if you are just a
beginner and don't want to go into production right away,
PICSTART would be a good choice. Priced reasonably,
programs several cheap but efficient types of PIC chips,
and comes with books with everything you need to know
about the chips you'll be programming, and some EEPROMs
too!
|
Program
that chip! The included software assembler, MPASM, is easy to use. This turns your instructions, written in text, into machine language for the PIC chip. It also automatically checks for errors, creates and error file in plain english, and creates a position indictating map listing of how your program will be physically placed into the chips memory. Once F10 has been pressed, all you can do is pray for no errors! Once this has been confirmed (0 errors) then the PIC programmer, (MPS16b for PICstart programmer ) can be executed. The chip you have written the program for must be selected from the menu, then options turned on/off, such as CodeProtect, WatchDog Timer, Oscillator type (Xtal, RC etc) Place the chip into the programmer, click program, and presto! I recommend using a windowed PIC that can be erased by UV. This way the same chip can be used over and over and over. OTP (One time programmable) chips are just that, mistakes are forever. The
following page, My Projects, contains listings of some
stuff I've done with PIC 16C55 and 16C57 chips, that may
be used or modified etc... |