> > LAY OFF THE GUY. > > > > It is obvious that this 'program' is no more than a test snippet, trying >to > > solve the interrupt problem. > > > > It hardly needs comments. Olin wrote: >I think comments are just as important in this case as everywhere else. For >one thing, it forces him to think about what each instruction is actually >doing, an exercise that often ends up solving the problem on its own. It is >also useful to see what he *thinks* the code is doing. Without the comments >we can only tell what it *is* doing. For example, did he really mean to >disable the interrupt after the first interrupt, or is he just confused >about how to handle the interrupt condition? Olin, yes comments would have been helpful but we all started somewhere. Where in the service routine does the interrupt get disabled? Regards... -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics