The following code should turn on motor #1 at half speed. Pause three seconds and stop the motor. It should then turn the motor on at full speed for another three seconds.
Cool!!!
Yes!
that worked like a charm
I have to go back and review your changes so that I understand all of them.
But thanks for your help guys...much appreciated.
Comments
Not on the Prop. It needs to be $0d.
That worked.
I apologized. I just replaced it with your clock statement.
Thank you!! Thank you!! Thank you!!
Doh, you're absolutely right. Too many compilers/assemblers under the bridge.
OBJ pst : "FullDuplexSerial.spin" CON _clkmode = xta11 + p1116x _xinfreq = 5_000_000 TxPin = 0 motor = 1 speed = 1000 PUB Main pst.Start(TxPin + 1, TxPin, 8, 115_200) waitcnt(clkfreq + cnt) repeat pst.Str(String("!G 1 500", 13)) waitcnt(clkfreq * 3 + cnt) pst.Str(String("!G 1 0", 13)) waitcnt(clkfreq * 3 + cnt) pst.Str(string("!G ")) pst.Dec(motor) pst.tx(" ") pst.Dec(speed) pst.tx(13) waitcnt(clkfreq * 3 + cnt) pst.Str(string("!G ")) pst.Dec(motor) pst.tx(" ") pst.Dec(0) pst.tx(13)I use "8" to turn off the rx echo instead of the binary number since the forum software messes up the binary unless you use the basic editor.
Edit: I just saw you got it working good. It's times like these I regret having never learning to properly curse.
Great. Good luck with your project.
But it was the clock statement and the ,13 works.
Let me give this a try.
Yes!
that worked like a charm
I have to go back and review your changes so that I understand all of them.
But thanks for your help guys...much appreciated.
THANK YOU!! THANK YOU!!!!