I/O Problem
TomS
Posts: 128
I'm trying to use SHIFTOUT and PULSOUT. When I use pins 0 - 7 for output everything works fine. But when I try to use pins 8 - 15 nothing comes out. What gives?
Tom
Tom
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·
' {$STAMP BS2P}
' {$PBASIC 2.5}
Main:
PULSOUT 15, 10
PAUSE 20
GOTO Main
It works as long as the first argument of PULSOUT is <= 7.
I've tried setting the pin to OUTPUT but it doesn't do any good.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
' {$STAMP BS2P}
' {$PBASIC 2.5}
DO
HIGH 15
INPUT 15 : DEBUG BIN1 IN15
LOW 15
INPUT 15 : DEBUG BIN1 IN15
LOOP
What do you see on the 'scope, and what do you see on the debug screen (without the 'scope probe attached)?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Your code yields alternating 1's and 0's on the Debug screen. Still nothing on the output. I've also tried using an alternate connector but get the same results.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Docs: http://www.parallax.com/dl/docs/prod/boards/BS2p2440DBrd.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax