In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mojorizing wrote: My question concerns the different ways for the SX to detect serial baud rates and to automatically adjust the timing to recv. correctly. Google brings this site: [url]http://www.iol.ie/~ecarroll/autobaud.html[/url] In this scheme, a known ascii character - [Return] key - is sent to the micro which initially starts rec'ving at 9600. If the sending baud rate is different then the rec'ving 9600, the rec'vd data is "corrupted" in a known fashion which the code in the micro can distinguish and adjust for, ending up with the correct timing. Well, I don't have the luxury of sending out a known character to calibrate , so to speak, the rec'ing baud rate of the micro. I'm connecting to devices with unknown data streams at odd baud rates (8800, for example). I'm thinking of measuring the period of bits first rec'vd , finding the shortest one and assuming that's the period for the correct baud rate. I need to figure out the proper baud rate after rec'ving one byte and respond correctly to continue the handshakes. Is there any another algorithm for auto baud rate detection I could consider? Thanks, Kevin ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=310136 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)