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.pbp | PICBASIC PRO program to display result of 10-bit A/D conversion on LCD. |
ADCINX4.pbp | PICBASIC PRO program to display result of 8-bit A/D conversion on LCD. |
BLINKX4.pbp | PICBASIC PRO program to blink an LED connected to GPIO.0 about once a second. |
BPX4.pbp | PICBASIC PRO program for LAB-X4 serial LCD controller. Note: Set MCLR_OFF in config. |
BUTX4.pbp | PICBASIC PRO program to show button press on LED. Note: Disable MCLR in config so button can be used. |
CLOCKX4.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 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.pbp | PICBASIC PRO program to send 'Hello World' on serial port (and LCD). |
I2CX4.pbp | PICBASIC 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.pbp | PICBASIC PRO program to display 'Hello World' on LCD (and serial port). |
TESTX4.pbp | PICBASIC PRO Test program for LAB-X4. Note: Disable MCLR reset so button can be used. |
UPPERX4.pbp | PICBASIC PRO program for upper case serial filter. |
VMETERX4.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 math which would normally exceed the limit of a word variable. Connect analog input to channel-3 (RA4). |