Looks really close to the Basic Stamp code but one big difference when switching to PBP is many of the chips have analog built in.
Just about every pin on the 690 has analog. So read through this
http://www.picbasic.co.uk/forum/showthread.php?t=561
and the data sheet.
For the 690 to turn off the analog you will need to add this near the beginning.
Code:
CM1CON0 = 0 'Should turn off the Comparators
CM2CON0 = 0
ANSEL = 0 'Turns ADC off
You may want to start off with a simple "blinky" program just to make sure the 690 is running correctly.
Bookmarks