Prop UART code with RTS & CTS?
Shane De Catania
Posts: 67
Hi All,
Can anyone help me with code or a link to propeller UART object that implements RTS and CTS as well as the usual RXD and TXD?
Cheers,
Shane.
Can anyone help me with code or a link to propeller UART object that implements RTS and CTS as well as the usual RXD and TXD?
Cheers,
Shane.
Comments
If you don't need the buffering of FullDuplexSerial, it would be very easy to add
RTS/CTS handling to the Simple_Serial driver. You could do that yourself.
If you need the buffering, you'd have to study the assembly language driver portion
of FullDuplexSerial and add the RTS/CTS handling there (or somehow talk someone
into doing it for you).
I'm still getting my head around spin code at the moment, so it will probably be a while before I am confidently modifying other peoples assembly code - although I must say the a lot of it is quite well documented and reasonably understandable.
If any body is interested in adding RTS & CTS to FullDuplexSerial I would be internally greatfull by the way
Cheers,
Shane.
While we are on the subject could someone show what's going on with the CTS&RTS lines between Bytes?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
BTW: I type as I'm thinking, so please don't take any offense at my writing style
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
No, As good as I can remember the title of the thread was "FullDuplex with Handshaking"
What is the ULR of the parallax search engine?
Thanks
Des
I'm in the Process of converting my program from the FullDuplexSerial to FullDuplexSerial4 port. I can get the PST up and running but I'm also trying to get comms with a Printer. I can't seem to Transmitt Data to the Printer. Can I run these from the same Port or do i need a separate Port for each. After adding in CTS and RTS and one port Pin , im maxed out on pins. Sorry for the silly Question but what is the function of using a Port pin as opposed to not using one on original FullDuplexSerial
Regards
Des
Making some Progress.
If I invert CTS in the mode parameter of AddPort , will tx wait if CTS is low? The printer I'm interfacing has RTS on High when ready for Data which I'm going to connect to the CTS pin on the Propellor . In the Demo2 spin file I'm referring to the comment on Line 170 '' cts is enabled, tx will wait if cts is high ", I just need to flip this .
Thanks for the Help
Des
In answer to your question, yes, changing the cts mode bit 0 to 1 will cause it to wait when cts is low, independent of the mode for tx. The cts mode bit is highlighted in red below.
Got that up and running this morning , happy days.
Regards
Des