Pulsout problems on basic Stamp 2
phred
Posts: 6
Hello:
I can get pins 0-7 to run pulsout to a Stamp2 or Stamp2p24 famously. Can't get any response from pins 8-15. What's up?
TIA
I can get pins 0-7 to run pulsout to a Stamp2 or Stamp2p24 famously. Can't get any response from pins 8-15. What's up?
TIA
Comments
Another thing to remember about PULSOUT is that it toggles the output state of the specified pin.· If you want a high-going pulse, then initialize that pin as an output low.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
' {$STAMP BS2p}
' {$PBASIC 2.5}
I VAR Word
X VAR Word
rotor CON 15
OUTPUT rotor
RESETI:
FOR X=1 TO 100
I=680 '680 for BS2P
LOW rotor
PULSOUT rotor,I
PAUSE 15
NEXT
PAUSE 30
TEST:
LOW rotor
PULSOUT rotor,I
PAUSE 25
I=I+7
DEBUG DEC I
IF I>2850 THEN '2850 for BS2P
DEBUG CLS
STOP
ENDIF
GOTO TEST
Also tried looking at with my Parallax scope. I can see the stream of pulses fine on 0-7. when I switch to "rotor con 15" (AND even remember to switch the scope traces!!) I see nuthin....
Main:
· HIGH 15
· PAUSE 100
· LOW 15
· PAUSE 100
· GOTO Main
You can connect your scope, or even something as simple as an LED.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
"When using a 24-pin BASIC Stamp or Javelin Stamp module in the demo board be sure to align pin 1 of
the module in the socket as indicated on the PCB. And note that when using a 24-pin module, pins P8
through P15 are accessed via sockets A8 through A15."
This bonehead had the wrong header on the board. SORRY!