In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Dan, The easist way to handle this is to set a flag in the interrupt routine. Make a subroutine to send 1 serial byte. In the subroutine clear the flag, then wait for the interrupt to set it. Then send the serial byte. The idea is that since we know the interrupt just ended, another won't happen for awhile so we can send 1 byte with getting interrupted. To make this work you want your serial rate as high as possible, and your interrupt rate as low as possible. 1 byte @ 9600 takes about 1 millisecond. To find out how many cycles your interrupt routine uses, use SX-Sim it tells you the Min, Max, and Average ISR cycles. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=273507#m273514 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)