PDA

View Full Version : PicBasic Pro to Basic Stamp conversion?



Kirk Fraser
- 17th March 2011, 06:32
Is there a way to make PicBasic Pro look like a Parallax Basic Stamp that's more complete than the Include "bs2defs.bas" command so it also takes care of the various configuration Defines?

An earlier post provided a set of config statements starting with OSC 8 which was required to get the PIC18F4550 to work with a 48MHz crystal and simply turn LED's on and off. I tried searching the datasheet for Config and most of it seems written in an assembler language or register language, not PicBasic or anything I understand. So how does one learn this stuff?

My next circuit does work on a Parallax BS2 but I want more speed. It has a Pot & Cap attached to PortA.0 to provide position sensor input using the RCTIME command. It also has a couple of output pins driven by the PWM command. Some indicator LED's are driven by the High and Low commands. That's all at this stage. I can post both the circuit and code so far if that would help.

I'll need the USB functions and other pins to work later in my build. It would be nice if there is some way to program that in Basic too. Any advice appreciated.

Thanks

mackrackit
- 17th March 2011, 06:49
You do not want to make PBP more like a stamp, why limit yourself?

This thread should help you with the configs.
http://www.picbasic.co.uk/forum/showthread.php?t=543

This project uses a 2550, so maybe it will help.
http://www.picbasic.co.uk/forum/content.php?r=272-USB-SD-LOGGING

Post your specific problem (along with your code and stuff) and we will be glad to help.