Full Duplex Serial
SailerMan
Posts: 337
I currently have my SX28 talking to my Propeller using the Propellers (bs2 Serial Object) I then decided to try the Full Duplex Serial and the poop has hit the fan. I can't seem to get anything working correctly.· I'm Using mode %1010 on the Propeller side.
Does anyone know what could be happening? Any working sample code between the Prop and the SX28 would be apreciated... Just to make sure I have my setup right.
Thanks in Advance,
Eric
·
Does anyone know what could be happening? Any working sample code between the Prop and the SX28 would be apreciated... Just to make sure I have my setup right.
Thanks in Advance,
Eric
·
Comments
I'd enclose my code but it's gettting a little hard to read... I need to clean it up.
but if It was working with the spin code (BS2 Object) I can't see why it will not work with the Full Duplex ASM code.
Here is the Prop Code
and Here is the SX/B Code
····
My SX Baud Rate is to compensate for the ISR
Basically The SX counts encoder pulses and creates PWM on·2 channels.
The Propeller Sends Command (254) to read the Encoders, and Command (170) to set the PWM Channel (0 or 1) + Duty (0-255)
I am noticing that I can Set the Motor Speed. But I can't read the Encoders. Hmmm....
Any help like always would be greatly appreciated
Thanks,
Eric
Post Edited (SailerMan) : 11/9/2006 12:51:12 AM GMT
Did you try using 0,1, or 2 instead of %1010? Start with 0
I could be off but I didn't think there were any other options besides 0 1 2 and maybe 3
Post Edited (originator99) : 11/9/2006 3:14:24 AM GMT
All is good now... I hope!! [noparse]:)[/noparse]
Thanks
Eric