Page 64 - Amphibionics : Build Your Own Biologically Inspired Robot
P. 64
Amphibionics 03 3/24/03 8:11 AM Page 43
Chapter 3 / Microcontrollers and PIC Programming
This is your program in PICmicro code. At the right of the screen
is a display of the configuration information that will be pro-
grammed into the PICmicro. Verify that it is correct before pro-
ceeding. In general, the oscillator should be set to XT for a 4-MHz
crystal, and the Watchdog Timer should be set to ON for PicBasic
Pro programs. Most important, Code Protect must be OFF when
programming any windowed (JW) PICmicro. You may not be able
to erase a windowed PICmicro that has been code protected.
Figure 3.5 shows the EPIC MS-DOS interface.
Insert a PIC 16F84 into the programming socket and click on
Program or press Alt-P on the keyboard. The PICmicro will first be
checked to make sure it is blank, and then your code will be pro-
grammed into it. If the PICmicro is not blank and it is a flash
device, you can simply choose to program over it without erasing
first. Once the programming is complete and the LED is off, it is
time to test your program.
FIGURE 3.5
EPIC graphics user
interface.
43