From: Mike Poulton
Subject: Very frustrated with PicBasic -- Help!
Date: 16 Sep 2002 02:43:29 GMT
Organization: MTP Technologies
Okay, so I got PicBasic Pro and an EPIC programmer on Friday. I've been
playing with it all weekend, trying to program PIC12F675's. Sometimes
it works, sometimes it doesn't. I'm very confused! I have a good bit
of experience with the basic stamp controllers, and I've studied the PIC
data sheets, so I think I have a pretty good idea what's supposed to
happen, and it's not happening. Here's what's going on:
Any program that includes the "toggle" instruction does not work. The
PIC freezes at the beginning of the program (not at the instruction).
Same for "pulsin", "pulsout", and "serout" instructions. "PWM" works
Occasionally, a pin's state can successfully be read and used to control
program flow. Usually not. For example, the following code doesn't
If GPIO.4=1 Then start
It ignores the state of GPIO.4 and loops through the whole program. That
"input" instruction shouldn't be necessary, but I used it anyways.
Whether I use "If...Then" or "While...Wend" doesn't matter. The pin
number and the chosen state don't matter, either. Does anyone know
what's going on here?
Not only do I speak for my company, I AM my company!
Live free or die!