User Submitted Sample Programs

PULSE-LOGGER.pbp PICBASIC PRO program to use the Parallax Datalogger with the PIC18F2550. This program tells the Parallax Datalogger to create a file on your thumb drive.  Written by Bradley M. Gibson
ElectronicDice.pdf  (PBP) PICBASIC PRO Electronic Dice project for the PIC10F202 or PIC10F206.  Written by Melanie Newman
counter. zip  (PBP) PICBASIC PRO program displays to 3 x 7 segments LED display the result of pulse count on PORTA.4 pin/sec.  Based on a 16F84A.  Schematic included.  Written by Steve Monfette
dimmer. zip  (PBP) PICBASIC PRO program is used to dim intensity of an AC line load (lamp). Developed for 60 Hz line and based on a 12F675.  Schematic included.  Written by Steve Monfette
OlympicTimer.pdf  (PBP) A Stop-Watch Timer that displays in real-time up to 100 hours with 1/100th Second resolution. It demonstrates a use of PICBASIC PRO interrupts and (most significantly for a timer) accounts for the fact that PBP doesn't jump to servicing that interrupt immediately. A Calibration feature is also included to fine-tune the time-keeping.  Written by Melanie Newman
12F675_One_Pin_Voltage_Monitor.bas  (PBP) PICBASIC PRO program that allows you to monitor Vdd on a 12F675 using only one pin for external reference.  This allows you to take action when the supply voltage drops.  Written by Frank Miller.
comms1.txt  (PBP)Demonstration of PC to PIC® bi-directional Dialogue... PC User (using something like Hyperterminal) is able to control 5 LEDs using a number of Commands with sub-parameters shows a different approach to Comms in having the PIC parse a received command line rather than WAIT for something valid to arrive and latch on to. Written by Melanie Newman
DallasEdit12Lines1button.bas  (PBP) PICBASIC PRO Program using Dallas Semiconductor real-time clock.  It edits the clock with one button and 12 lines of code.  For this, you simply put a jumper on the in-circuit programming adapter you already have and go to the clock editing routine.  by Stephen R. Collins, Collins & Associates
LcdEdit.bas  (PBP) Editing and saving Numbers and Alfa Characters on Lcd with PICBASIC PRO 2.4 using 24 char Lcd Display and 4 buttons.  by Stephen R. Collins, Collins & Associates
MagCard.txt  (PBP) PICBASIC PRO Magnetic Card Reader Program. Designed for Mag-Card Track 2. This track contains the numeric information that is usually printed on the face of your Credit Card ie Card Number, Start and Expiry Dates etc.  Written by Melanie Newman
MN1307.txt  (PBP) PICBASIC PRO demonstrator for the DS1307, PIC16F628, LCD and three buttons.  It shows how you can use buttons to enter time, date and operating mode (12 or 24 hour clock) to preset the DS1307, and also shows how the date is verified for validity so you don't enter 29 February when you're not supposed to. It has autorepeat on the buttons and automatically returns you to time/date view if you're in setup and don't press any buttons within a set time period.  Written by Melanie Newman
read_gps.bas  (PBP) PICBASIC PRO program for reading speed from a GPS.  by Gilbert
vicmon2.bas  (PBP) Demonstrates the use of OnDebug command in PICBASIC PRO.  This program dumps a listing of the values in memory and on the I/O ports after every program step.  Use a terminal emulator to see the serial output.  by Victor Faria
sixpics.bas  (PBP) Six Pic microprocessors on one serial Port!  Single ended; talk only operation. Same software in all pics Tested with six but should work with 20 or more Pics also drives 7 seg display LED's with no transistors.  by Stephen R. Collins, Collins & Associates
VictorAlphabet.bas  (PBP) Uses ADCIN and LOOKUP to display the alphabet based on an analog voltage.  For the LAB-X1 Experimenter Board.  by Victor Faria