Cool, thanks.
Type: Posts; User: chien_fu; Keyword(s):
Cool, thanks.
Why is it that when I enter:
GPIO = %11111111
Picbasic says "Undefined variable"?
So I tried driving it with two pins but something else is screwy now....
This is what I have:
OUTPUT Pin1
output Pin2
Startup:
I really hate this stuff.... it makes me want to stab myself in the eyeball with a fork.
I'm measuring 3v from Pin1 (GP1) on my 12F683.
I'm using a 3v coin cell. It measures 3v.
I connect a...
oy...
Thanks guys, you rock..
How I wish I could be using my Arduino for this project..
I cannot express enough gratitude. It works! Thank you so much kind sir. Now where might one learn a bit of information like that? That seems fairly basic, but I don't recall coming across that...
I could use some help here... I am completely at a loss. I can't get any input to work at all, am I going crazy?
I'm using a 12F683, GP4 (which I believe is the same as PORTB.4?) is Pin3.
I'm trying to make a button work...
here is my test code:
input Pin4
loop:
if Pin4 = 1 then cycle
This seems like a common error but I can't seem to get around it. I have bypassed the 25pin cable, checked the voltages of the two regulators, verified input voltage,tried ZIF and no-ZIF, removed...
That's what I've got going now...
Randomizer:
RANDOM rand
high 3 : pause 10 'Blinks an LED once per random number generated
low 3 : pause 10
IF rand > 100 THEN Randomizer
IF rand < 1...
Next question...
I'm trying to generate a random number between X and Y...
The only command I see is:
Random Var
And the manual says it generates numbers up to 65,000
Is there a way to...
Hot damn! That was quick thinkin! You just blew my mind...
hehe, thanks dude!
Is that common practice? Or would interrupts be used for something like that ever?
So, I'm very new to this, bare with me... I have a loop statement going and going and going.. as follows: (just a 10sec interval flashing LED)
loop:
High 0
Pause 10000
...
huh.. good to know about the oscillator.. I'll have to look into that.
I am not using a zif socket, but it is not in-circuit either, I am just using the 18-pin socket on the EPIC programmer. I...
I just got all set up with my programmer (it's a couple years old, but still seems to be functioning fine, it's the EPIC pro.) And I just bought the PICBASIC compiler. I loaded the sample program...