In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: You do have to be careful using the built-in SX/B SERIN and SEROUT commands in conjunctions with interrupts because asynchronous serial communication is a very time dependant process. However, SHIFTIN and SHIFTOUT are synchronous communications commands that communicate relative to a shared clock signal. This to a very large degree allows the cock rate to run fast or slow without affecting integrity of the data sent. (Of course there are limitations.) You should be fine using SHIFTIN and SHIFTOUT with running interrupts. There are many examples of using interrupts for serial communications in the forums. I found many helpful answers in response to my post about [URL=http://forums.parallax.com/forums/default.aspx?f=7&m=175077&g=175459#m175459]Adding a Background UART to SX/B. [/URL] You can Cut-and-Paste UART code from several posted examples. Be sure to call the UART code in your ISR with the right timing for your selected baud rate. - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=192079#m196315 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)