- Use Windows Notepad to write your program.
- Be sure it has a file extension (suffix) of ".bas"
- You may need to change the options in Windows Explorer to
make such file extensions visible.
- If you haven't already done so, download xc.bat
and put it into the folder where you will be keeping your XCSB programs.
- Get into Windows Explorer and open a window containing your
program.
- Drag your program file onto xc.bat
- If there are compilation errors, fix them.
- 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 your 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.
- 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.
|