Pulsout Command To More Than One Pin
Mike Marks
Posts: 3
I have a need to send a pulsout to two·pins at a time. I want pulsout to occure simultaneously on both pins. I know I can do it with external circuitry using one pulsout, but want to do it within the Stamp.· Is there a program algorithm you recommend?· I tried the following test program with no luck.· Only P0 would go high.
DirL = % 00001111
x var OutA
loop:
·pulsout x, 60000
·pause 3000
goto loop
Regards,· Mike Marks
DirL = % 00001111
x var OutA
loop:
·pulsout x, 60000
·pause 3000
goto loop
Regards,· Mike Marks
Comments
·· While you cannot PULSOUT to more than one pin at once, you can effectively PULSE more than one pin at once on a port by doing something like:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
LOW P0
LOW P1
LOW P2
LOW P3
Main:
OutA = %0011
PAUSE 60
OutA = %0000
PAUSE 3000
GOTO MAIN
pulsout anypin, 250
The BS2 timing increment is 2us so 250 would = 500us.· This is just a dummy command to use up a little time so pick a pin that is not being used for anything.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·