- Get into Windows Explorer and open a window
containing the
template file you downloaded (S215XC-template-3.bas).
- Drag the template file onto xc.bat
- Check to be sure a hex file (215XC-template-3.hex)
was produced.
- Connect a microcontroller board to the computer.
- Connect the microcontroller board to a 6 volt power
supply. (If you smell smoke, turn the power supply off and be sure you have it set for 6 volts, and that the polarity is right.)
- The same folder you're in should contain a file
called Programmer. In
Windows Explorer, double click this file to bring up the PIC16F84 Programmer software.
- Click the Open
icon (upper left corner).
- Go to C:\xcsb-2.7.0-pic-lite-win
and open the hex file
for the template program.
- In the Oscillator
section, be sure RC
is
selected.
- On the programmer circuit board, make sure all bit
switches are in the off
position. Also make sure that power for the board is on. (A couple of LEDs should be lit.)
- Put the Program/Run
switch in the Program
position.
- Click the lightning bolt to send your program to
the PIC
chip.
- Put the Program/Run
switch in the Run
position and
try out your program.
- The template file contains a sample program that
makes the
microcontroller act like an AND gate.
|