In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: John, I would actually go so far as to say that delays in interrupts are [i]verboten[/i]. The whole idea of an interrupt is that no matter what is happening in the main code (polling, sleeping, executing, etc), the interrupt will [b]always[/b] be executed as soon as an interrupt occurs. If you need pauses, they go in the main code since the interrupt will then be able to handle whatever problem needs attention right away, [i]even if your main code is busy in a delay[/i]. If you put delays in your interrupt handler, you basically defeat the entire purpose of the interrupt. I know you have already explained why you had the pauses, but I just wanted to clarify that delays in interrupt code aren't just bad form but actually something you should [b]never[/b] do. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89749#m89991 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)