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

Add to Favourites

PicBasic Pro Sample Code

a2d10.bas PicBasic Pro program to display result of 10-bit A/D conversion on LCD without using ADCIN.
a2d8.bas PicBasic Pro program to display result of 8-bit A/D conversion on LCD without using ADCIN.
adcin10.bas ADCIN Command - PicBasic Pro program to display result of 10-bit A/D conversion on LCD.
adcin8.bas ADCIN Command - PicBasic Pro program to display result of 8-bit A/D conversion on LCD.
asmint.bas Interrupts in assembly language - Interrupt on PORTB.0 turns LED off. Program waits .5 seconds and turns LED back on.
bcd.bas PicBasic Pro program to demonstrate conversion to and from BCD format
blink.bas Example program from PBP manual to blink an LED connected to PORTB.0 about once a second
button.bas Demonstrate BUTTON command. Prints working variable (in this case B0) to show how auto-repeat works. Prints "PRESS" when button is pressed or repeated.
case.bas (2.40 or later) Demonstrates the use of the SELECT CASE command structure.
ee.bas Demonstrate commands for EEPROM. Works on PIC16F(C)84 targets only!!!  Initialized address 0..5 and 9. Writes 10..63. This leaves addresses 6..8 undefined (assuming your programmer doesn't unconditionally program all EEPROM locations).
ee12ce.bas Read and Write to internal I2C EEPROM on the 12CExxx devices.
ee16ce.bas Read and Write to internal I2C EEPROM on the 16CExxx devices.
eeword.bas READ and WRITE word variables to on-board EEPROM
div32.bas (2.40 or later) Demonstrates the use of the DIV32 command for 31x15-bit division.
for.bas FOR..NEXT Command - Prints series of numbers showing STEP facility.
fp.zip FLOATING POINT ROUTINES - Add, Subtract, Multiply, and Divide using 24 or 32 bit floating point.  Includes math libraries and 4 sample programs.
hardpwm.bas PicBasic Pro Program to demonstrate hardware PWM.
i2c.bas I2CREAD and I2WRITE Commands - Write to the first 16 locations of an external serial EEPROM Read first 16 locations back and send to serial out repeatedly. Note: for EEPROMS with byte-sized address
i2cee12.bas I2CREAD and I2WRITE Commands - Internal EEPROM on 12-bit core.
i2cee674.bas I2CREAD and I2WRITE Commands - Write to the first 16 locations of internal I2C EEPROM. Read first 16 locations back and send to serial out repeatedly. For PIC12CE67x MCU's
i2cee625.bas I2CREAD and I2WRITE Commands - Write to the first 16 locations of internal I2C EEPROM. Read first 16 locations back and send to serial out repeatedly. For PIC16CE62x MCU's
i2cslave.bas
i2cmast.bas
PicBasic Pro program to demonstrate the I2C slave function.  Use i2cmast.bas to read and write data to the slave device.
lcd.bas PicBasic program to demonstrate operation of an LCD in 4-bit mode
logic.bas Display Truth Table for Binary Logical Operators.
lookdown.bas LOOKDOWN Command - Convert ASCII Hexadecimal characters to numeric equivalents.
lookup.bas LOOKUP & RANDOM Commands - Convert numeric value to ASCII hexadecimal equivalents.
maxmin.bas MAX/MIN Operators - Use MAX and MIN operators to Bound [0..9] to [3..7]
onewire.bas (2.40 or later) OWIN & OWOUT Commands - Interface to the DS1820 temperature sensor with one-wire.
onint.bas On Interrupt - Interrupts in BASIC - Interrupt on PORTB.0 turns LED off.  Program waits .5 seconds and turns LED back on.
ps2clock.bas PicStic-2 Clock Test - Requires Micromint PicStic-2 with JRC6355
ps3adc.bas PicStic-3 ADC Test - Requires Micromint PicStic-3 with LTC1298
pulsin.bas PULSIN Command - Serial Pulse Width Meter
pulsout.bas PULSOUT Command - Variable Pulse Generator. Two buttons adjust from off to 10mSec in 10 uSec steps.
ser2mod.bas A collection of examples using Serin2 and Serout2.  Demonstrates the uses of modifiers.
serin.bas SERIN & SEROUT Commands - Upper case serial filter.
serqual.bas SERIN Command w/ Qualifiers - "Crude" serial filter for C++ Style Comments
shift.bas SHIFTIN and SHIFTOUT Commands
sleep.bas SLEEP Command - Slowly Blink LED Using Low Power Mode Delay
sound.bas SOUND Command - Make random computer-like noises.
spimast.bas
spislave.bas
PicBasic Pro program to read and write to SPI slave using the synchronous serial port
usart.bas Read and write hardware USART

Page Updated:
18/05/10

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