- Get into Windows Explorer and open a window containing the template file you downloaded (S215XC-template.bas).
- Drag your the template file onto xc.bat
- Check to be sure a hex file (215XC-template.hex) was produced.
- Connect a microcontroller board to the computer.
- Open the PIC16F84 Programmer (PICProg.exe) and do the following:
- Click the Open
icon (upper left corner).
- Go to C:\xcsb-2.0.1-pic-lite-win and open the hex file
for the template program.
- In the Oscillator section, be sure RC is selected.
- In the Configuration section, be sure Power Up Timer is selected, but not Watchdog Timer or Code Protection.
- On the programmer circuit board, make sure all bit switches are in the off position. Also make sure that the power is on.
- 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.
|