Updated 8-28-07

Running XCSB Basic Programs
OEES 215

Back to Main Page
 
  1. 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.
  2. If you haven't already done so, download  xc.bat and put it into the folder where you will be keeping your XCSB programs.
  3. Get into Windows Explorer and open a window containing your program.
  4. Drag your program file onto xc.bat
  5. If there are compilation errors, fix them.
  6. 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.
  7. Put the Program/Run switch in the Run position and try out your program.
 
Back to Main Page