BS2px issue
Hello,
I just recieved a BS2px from parallax yesterday. Tried a simple do-loop command:
' {$STAMP BS2px}
' {$PBASIC 2.5}
DO
HIGH 0
LOOP
Here is what happens, I get 4.95v for like a milisecond. then it goes back to .875v
I believe it should be constant. Am I right?
So, here is the wierd part. When I put some other line of code in addition to the High 0 command, it works.
ex:
' {$STAMP BS2px}
' {$PBASIC 2.5}
DO
HIGH 0
DEBUG "."
LOOP
When loading this code, I get a constant 4.95v on my scope.
Plus a debug screen full of periods.............
Any thoughts?
This is my first BS2px. I Have prior to this only used BS2.
I just recieved a BS2px from parallax yesterday. Tried a simple do-loop command:
' {$STAMP BS2px}
' {$PBASIC 2.5}
DO
HIGH 0
LOOP
Here is what happens, I get 4.95v for like a milisecond. then it goes back to .875v
I believe it should be constant. Am I right?
So, here is the wierd part. When I put some other line of code in addition to the High 0 command, it works.
ex:
' {$STAMP BS2px}
' {$PBASIC 2.5}
DO
HIGH 0
DEBUG "."
LOOP
When loading this code, I get a constant 4.95v on my scope.
Plus a debug screen full of periods.............
Any thoughts?
This is my first BS2px. I Have prior to this only used BS2.
Comments
This should also work:
I tried the adaptation that you suggested. The same result of a momentary high on pin 0.
any further suggestions?
Silly but, the only thing i did different was a FREQOUT command.
'{$STAMP BS2px}
' {$PBASIC 2.5}
DO
FREQOUT 0,1000,10
LOOP
After that now when I try the other code it works.
Not sure why, but it works now.
Thanks for the help.