In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Question: Is there a reason you want to use an external UART? With the SX, you have the horsepower to add "virtual peripheral" UARTs and other features. The program attached is from my May 2007 Nuts & Volts column that does serial-driven servo control. This code does a one-byte buffer but if you need more you can; in the Completed Projects forum there's a MIDI project I did some time back (also in SX/B and for Nuts & Volts) that implements an 8-byte receive buffer. If you do want to go the MAX3100 direction there's an extra step with SX/B's SHIFTIN and SHIFTOUT instructions: You need to manually set the clock line to the "off" state before the call as these instructions simply toggle that line. If the code worked with the BS2sx then use something like [b]LOW Clock[/b] before those calls to set the clock line as the BS2sx does. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=188222#m188257 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)