8-5-08

HH03-07 Try Out XCSB PIC-Related Software
OEES 215

Back to Main Page
Download Template and Custom Functions
  1. Click here to get template file, version 1, and save it in the folder you'll be using to hold your programs.
  2. Click here to get template file, version 3, and save it in the folder you'll be using to hold your programs.
  3. Click here to get the XC batch file, and save it in the folder you'll be using to hold your programs.
  4. Click here to get the Programmer batch file and save it in the folder you'll be using to hold your programs.
  5. Click here to get the standard functions file and save it in the xcsb-2.7.0-pic-lite-win on the C: drive. (Note: The version number may be something other than 2.7.0.)
  6. Click here to get the standard functions file, version 3 and save it in the xcsb-2.7.0-pic-lite-win on the C: drive.
 
Run the Template File on the Microntroller Programmer Card
  1. Get into Windows Explorer and open a window containing the template file you downloaded (S215XC-template-3.bas).
  2. Drag the template file onto xc.bat
  3. Check to be sure a hex file (215XC-template-3.hex) was produced.
  4. Connect a microcontroller board to the computer.
  5. 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.)
  6. 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.
  7. Click the Open icon (upper left corner).
  8. Go to C:\xcsb-2.7.0-pic-lite-win and open the hex file for the template program.
  9. In the Oscillator section, be sure RC is selected.
  10. 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.)
  11. Put the Program/Run switch in the Program position.
  12. Click the lightning bolt to send your program to the PIC chip.
  13.  Put the Program/Run switch in the Run position and try out your program.
  14. The template file contains a sample program that makes the microcontroller act like an AND gate.
 
Back to Main Page