In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote: For this application you should use Guenther's method of flag setting and simply check for the flag each iteration of the main program loop. Doing this adheres to the time tested method of embedded programming. From what I understand, whenever you enter the ISR, you are in effect invalidating the current GPIB stream, so timing isn't critical when the ISR is entered. As far as the flag checking in the main loop a SNB instruction only consumes 2 clock cycles (skip taken branch) and a 5x data oversampling is sufficient for all but the noisiest environments (in which case oversampling only produces marginal benefits). ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=103601#m103908 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)