ME Labs, Inc.
719-520-5323
 
Home:
  Developer Resources:

Programming Clues
    Sample Programs
   
    PICBASIC PRO™
Compiler Manual
    PICBASIC™ Compiler
Manual
    Serin2/Serout2 Modes
    ASCII Character Set
    Number Conversion
    Floating Point
Routines
    PBP Debug Monitor
    Articles and Tutorials

Hardware Clues
    Parts / Vendor List
    PICPROTO™ Boards
    LAB-X1 Docs
    LAB-X2 Docs
    LAB-X20 Docs
    LAB-X3 Docs
    LAB-X4 Docs
    LAB-XUSB Docs
    LAB-XT Docs
     
 

PBP examples written for PIC16F877A running on the LAB-X2

The original sample-set published for the LAB-X2 Experimenter Board. The LAB-X2 was designed with a minimum of peripherals to allow plenty of available I/0 and to keep the cost down.

3butx2.pbpPICBASIC PRO program to demonstrate multiple BUTTON commands. Each of 3 buttons toggles an LED. Hold a button for 1 second and the LED will flicker (auto-repeat).
adc10x2.pbpPICBASIC PRO program to read an analog voltage on RA0 and send the decimal representation of the value on the serial port at 2400 baud. 10-bit conversion yields 0-1023 result for 0-5 volt input.
adc8x2.pbpPICBASIC PRO program to read an analog voltage on RA0 and send the decimal representation of the value on the serial port at 2400 baud. 8-bit conversion yields 0-255 result for 0-5 volt input.
blink3x2.pbpPICBASIC PRO program to blink 3 LEDS in sequence.
blinkx2.pbpPICBASIC PRO program to an LED connected to PORTB.0 about once a second.
butx2.pbpPICBASIC PRO program to show a button press on LED.
ccpx2.pbpPICBASIC PRO program to demonstrate the use of the hardware capture module to measure the period of a frequency input. Written for the PIC16F877 and LAB-X2 Experimenter Board. Input signal should be connected to RC2/CCP1.
countx2.pbpPICBASIC PRO program to show binary count on 3 LEDS.
hellox2.pbpPICBASIC PRO program to send 'Hello World' to serial port.
hserx2.pbpPICBASIC PRO program to send and receive from the hardware serial port. LEDs count characters and flash error if none received for 10 seconds.
servox2.pbpPICBASIC PRO program to move RC servo using potentiometer.
upperx2.pbpPICBASIC PRO program for upper case serial filter.
vux2.pbpPICBASIC PRO program to display result of ADC in 3 segment bargraph. The last LED in the graph dims or brightens with changes in the analog input.
wakex2.pbpPICBASIC PRO program to demonstrate wake on interrupt.