In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: [quote="william chan"] If a main loop of a SX/B program is busy with the I2C communications, how can we ensure that incoming serial bytes from a PC won't be lost? [/quote]William, You cannot. Just like the BS2 the program must either wait at the serin command, or impose a timeout. Either way the code must be executing the SERIN command of the data will be missed. Unlike on the BS2 it's not too much trouble to use interrupt driven serial input using SX/B. I believe Jon Williams has posted several programs that do this. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=192262#m193822 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)