ME Labs, Inc.
  Developer Resources:

Programming Clues
    Sample Programs
Compiler Manual
    PICBASIC™ Compiler
    Serin2/Serout2 Modes
    ASCII Character Set
    Number Conversion
    Floating Point
    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 PIC12F683 and 16F688 running on the LAB-X4

The LAB-X4 will support both 8-pin and 14-pin devices. The 12F683 and 16F688 are 8 and 14-pin varieties from the same family. These examples are written for the 12F683, but, with some consultation of the Microchip datasheet, can be adapted to the 16F688.

ADCIN1X4.pbpPICBASIC PRO program to display result of 10-bit A/D conversion on LCD.
ADCINX4.pbpPICBASIC PRO program to display result of 8-bit A/D conversion on LCD.
BLINKX4.pbpPICBASIC PRO program to blink an LED connected to GPIO.0 about once a second.
BPX4.pbpPICBASIC PRO program for LAB-X4 serial LCD controller. Note: Set MCLR_OFF in config.
BUTX4.pbpPICBASIC PRO program to show button press on LED. Note: Disable MCLR in config so button can be used.
CLOCKX4.pbpPICBASIC PRO program for an LCD clock using On Interrupt. Uses TMR0 and prescaler. Watchdog Timer should be set to off at program time and Nap and Sleep should not be used. Button may be used to set time. Turn off Watchdog Timer and disable reset so button can be used to set clock.
HELLOX4.pbpPICBASIC PRO program to send 'Hello World' on serial port (and LCD).
I2CX4.pbpPICBASIC PRO program to read and write to I2C SEEPROMs. Writes to the first 16 locations of an external serial EEPROM. Reads first 16 locations back and send to LCD repeatedly. Note: for SEEPROMs with byte-sized address.
LCDX4.pbpPICBASIC PRO program to display 'Hello World' on LCD (and serial port).
TESTX4.pbpPICBASIC PRO Test program for LAB-X4. Note: Disable MCLR reset so button can be used.
UPPERX4.pbpPICBASIC PRO program for upper case serial filter.
VMETERX4.pbpPICBASIC PRO program to measure voltage (0-5VDC) and display on LCD with 2 decimal places. This program uses the */ operator to scale the ADC result from 0-1023 to 0-500. The */ performs a divide by 256 automatically, allowing math which would normally exceed the limit of a word variable. Connect analog input to channel-3 (RA4).