|
|
|
|
|
|
PicBasic Pro Code Samples for the LAB-XUSB Experimenter Board |
|
PicBasic Pro code samples for use with the LAB-XUSB Experimenter Board from MicroEngineering
Labs. The LAB-XUSB offers USB connectivity when used with the PIC18F4550. Some of
these examples demonstrate USB, others demonstrate other peripherals on the board. |
LAB-XUSB PicBasic Pro Code Sample - adci10xu.pbp | | PicBasic Pro program to display result of 10-bit A/D conversion on LCD. Connect analogue input to channel-0 (RA0). source code | LAB-XUSB PicBasic Pro Code Sample - adcin2xu.pbp | | PicBasic Pro program to display result of 8-bit A/D conversion on LCD. Connect analogue input to channels 0, 1 (RA0, 1). source code | LAB-XUSB PicBasic Pro Code Sample - adcin8xu.pbp | | PicBasic Pro program to display result of 8-bit A/D conversion on LCD. Connect analogue input to channel-0 (RA0). source code | LAB-XUSB PicBasic Pro Code Sample - adcxu.pbp | | PicBasic Pro program to read potentiometers on 16F877 ADC. source code | LAB-XUSB PicBasic Pro Code Sample - blink4xu.pbp | | PicBasic Pro program to blink all the LEDs connected to PORTD. source code | LAB-XUSB PicBasic Pro Code Sample - blinkxu.pbp | | PicBasic Pro program to blink an LED connected to PORTD.0 about once a second. source code | LAB-XUSB PicBasic Pro Code Sample - bpxu.pbp | | PicBasic Pro program to simulate an LCD Backpack. source code | LAB-XUSB PicBasic Pro Code Sample - butxu.pbp | | PicBasic Pro program to show button press on LED. source code | LAB-XUSB PicBasic Pro Code Sample - clockxu.pbp | | PicBasic 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 or SLEEP should not be used. Buttons may be used to set hours and minutes. source code | LAB-XUSB PicBasic Pro Code Sample - dacxu.pbp | | PicBasic Pro program to demonstrate the use of the MAX549A Digital to Analogue Converter. This program causes the DAC to output a sawtooth wave on channel A and a sinewave on channel B. source code | LAB-XUSB PicBasic Pro Code Sample - hserxu.pbp | | PicBasic Pro program to send and receive from the hardware serial port. source code | LAB-XUSB PicBasic Pro Code Sample - i2cwxu.pbp | | PicBasic Pro program to read and write to I2C SEEPROMs that require a word-sized address. Writes to the first 16 locations of an external serial EEPROM. Reads first 16 locations back and sends to LCD repeatedly. Note: For SEEPROMs with word-sized address. source code | LAB-XUSB PicBasic Pro Code Sample - i2cxu.pbp | | PicBasic Pro program to read and write to I2C SEEPROMs that require a byte-sized address. Writes to the first 16 locations of an external serial EEPROM. Reads first 16 locations back and sends to LCD repeatedly. Note: For SEEPROMs with byte-sized address. source code | LAB-XUSB PicBasic Pro Code Sample - keyxu.pbp | | PicBasic Pro program to display key number on LCD. source code | LAB-XUSB PicBasic Pro Code Sample - lcdxu.pbp | | PicBasic Pro program to display 'Hello World' on LCD. source code | LAB-XUSB PicBasic Pro Code Sample - rtcxu.pbp | | PicBasic Pro program for an LCD clock using the Dallas DS1307 I2C RTC. source code | LAB-XUSB PicBasic Pro Code Sample - servoxu.pbp | | PicBasic Pro program to move RC servo 1 using buttons. Button 1 moves servo left, 2 centers servo, 3 moves servo right. source code | LAB-XUSB PicBasic Pro Code Sample - tempxu.pbp | | PicBasic Pro program to read DS1820 1-wire temperature sensor and display temperature on LCD. source code | LAB-XUSB PicBasic Pro Code Sample - testxu.pbp | | PicBasic Pro program to test LAB-XUSB Experimenter Board. source code | LAB-XUSB PicBasic Pro Code Sample - tonexu.pbp | | PicBasic Pro program to create telephone pad tone. Oscillator must be set to 20MHz. source code | LAB-XUSB PicBasic Pro Code Sample - usbcdc.pbp | | PicBasic Pro program for PIC18F4550 CDC serial port emulation. Compilation of this program requires that specific support files be available in the source directory. You may also need to modify the file USBDESC.ASM so that the proper descriptor files are included. For detailed information, see the file PBP\USB18\USB.TXT. source code | LAB-XUSB PicBasic Pro Code Sample - usbjadem.pbp | | PicBasic Pro program that implements the functionality of the Jan Axelson demo which accepts two numbers from the host, increments each and sends them back. An application running on the host sends the numbers and displays the returned values. Compilation of this program requires that specific support files be available in the source directory. You may also need to modify the file USBDESC.ASM so that the proper descriptor files are included. For detailed information, see the file PBP\USB18\USB.TXT. source code | LAB-XUSB PicBasic Pro Code Sample - usbmouse.pbp | | PicBasic Pro program for PIC18F4550 to move mouse cursor. Compilation of this program requires that specific support files be available in the source directory. You may also need to modify the file USBDESC.ASM so that the proper descriptor files are included. For detailed information, see the file PBP\USB18\USB.TXT. source code | LAB-XUSB PicBasic Pro Code Sample - vbarxu.pbp | | PicBasic Pro program to measure voltage (0-5VDC) and display on LCD with 2 decimal places. A 60 segment bargraph is also displayed using custom LCD characters. source code | LAB-XUSB PicBasic Pro Code Sample - vmeterxu.pbp | | PicBasic 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 maths which would normally exceed the limit of a word variable. Connect analogue input to channel-0 (RA0). source code |
|
|
|
|
|
|
Page Updated: 20/12/11
Content: © 2002-2012 Warburton Technology Design: © 2002-2012 Warburton Internet
|
|
|
|
|
|
|
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
|
|
|
|
|
|