In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Chong wrote: Thanks for your help Guenther. How would the flag setting work? Wouldn't I have to reach a comparison point in my loop after the RETI is exercised? My concern is that my major loops have several "do nothing" loops which poll for a particular pin input. I would have to check the flags in every sub loop then because I wouldn't know when the ISR would be called. I managed to lengthen the pulse time to make detection easier with a latch which is can be cleared with the ISR. I like your book by the way. My background is actually mechanical engineering so I need all the help I can get. The Basic Stamps were an easy entry, but the SX certainly has a lot more issues to think about. Paul: thanks for the suggestion. I like it. It's my brand of jury rigging something with flagrant disregard for the right way to do things. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=103601#m103751 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)