english français deutsch
italiano portugese español

PicBasic Pro Code Samples for the LAB-X2 Experimenter Board

PicBasic Pro code samples for use with the LAB-X2 Experimenter Board from MicroEngineering Labs. The original sample-set published for the LAB-X2. The LAB-X2 was designed with a minimum of peripherals to allow plenty of available I/0 and to keep the cost down.

LAB-X2 PicBasic Pro Code Sample - 3butx2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic 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).

source code

LAB-X2 PicBasic Pro Code Sample - adc10x2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to read an analogue 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.

source code

LAB-X2 PicBasic Pro Code Sample - adc8x2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to read an analogue 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.

source code

LAB-X2 PicBasic Pro Code Sample - blink3x2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to blink 3 LEDs in sequence.

source code

LAB-X2 PicBasic Pro Code Sample - blinkx2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to blink an LED connected to PORTB.0 about once a second.

source code

LAB-X2 PicBasic Pro Code Sample - butx2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to show a button press on LED.

source code

LAB-X2 PicBasic Pro Code Sample - ccpx2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic 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.

source code

LAB-X2 PicBasic Pro Code Sample - countx2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to show binary count on 3 LEDS.

source code

LAB-X2 PicBasic Pro Code Sample - hellox2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to send 'Hello World' to serial port.

source code

LAB-X2 PicBasic Pro Code Sample - hserx2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to send and receive from the hardware serial port. LEDs count characters and flash error if none received for 10 seconds.

source code

LAB-X2 PicBasic Pro Code Sample - servox2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to move RC servo using potentiometer.

source code

LAB-X2 PicBasic Pro Code Sample - upperx2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to demonstrate an upper case serial filter.

source code

LAB-X2 PicBasic Pro Code Sample - vux2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to display result of ADC on 3 segment bargraph. The last LED in the graph dims or brightens with changes in the analogue input.

source code

LAB-X2 PicBasic Pro Code Sample - wakex2.pbp

Picbasic Pro Compiler Product Thumb

PicBasic Pro program to demonstrate wake on interrupt.

source code

Page Updated:
20/12/11

Visa Credit
Mastercard
Visa Debit
Maestro
Visa Electron
Paypal

Tel: +44 7814 044 754 - Fax: +44 8715 283 948 - Skype: warburtech.co.uk

Warburton Technology, 33 Selkirk Close, Wimborne, Dorset, BH21 1TN, United Kingdom

VAT Number: GB 846 917 877