December 2007 Updates

December 25 Merry Christmas

December 22 RobotShop will carry our kits starting January 2008

Check out RobotShop's huge robotics inventory.

Swordfish BASIC SE, Unicorn and the Oshonsoft PIC18F Simulator 

A little something for Christmas, I've been tinkering with the excellent free student edition of the Swordfish BASIC Compiler for the PIC18F series microcontrollers. I've even got the one button Compile, Program & Run working with the Junebug. The program below was written for the Unicorn with 2x16 LCD or the Oshonsoft PIC18F simulator. Easy Peasy Lemon Squeezy.

{
* Name : Christmas.BAS 
* Author : William Richardson, 2007 blueroomelectronics
* Date : 12/22/2007
* Swordfish BASIC SE
* Notes : Have a Merry Christmas and Happy New Year
* blueroomelectronics Unicorn 18F4550 with 20MHz crystal & 2x16 LCD
}
Device = 18F4550
Clock = 8
Config FOSC = INTOSC_HS, LVP = OFF, PLLDIV = 5, CPUDIV = OSC1_PLL2
// Use the Internal Oscillator
#option LCD_DATA = PORTD // Assign the LCD connections
#option LCD_EN = PORTE.2
#option LCD_RS = PORTE.0
#option LCD_RW = PORTE.1
Include
"LCD.bas"
Include "utils.bas"
OSCCON = $72 // 8MHz internal OSC
SetAllDigital // Make all pins digital I/O's
High(PORTB.3) // Turn on the LCD backlight
DelayMS(150)
Cls
// Clear the LCD screen
DelayMS(50)
WriteAt(1,1,
"Merry Christmas ")
WriteAt(2,1,
"& Happy New Year"
)
End

December 12 New eBay Store now open Creatron Electronics

You can now purchase all blueroomelectronics kits and more on eBay at Creatron Electronics

Using MPLAB 8.0 for the first time? This may help

Download the hi-resolution .PDF version here One Page MPLAB IDE Programming with a Junebug Tutor Sample.

For a concise manual download Microchips MPLAB user manual.

One Page MPLAB Progamming

 

December 3 Unicorn Assembly Manual Updated

Updated the LCD demo program can now be found on pages 6 & 7, the program uses the LCD in 8bit mode with 50ms delays to initialize then it's full speed ahead with busy flag polling. Also a custom character set is downloaded to the CGRAM.