>Just a question of my own - when should you use EQU or CONSTANT as I >thought >they both provide a constant value. > >How do you know the if the pin is not been pulled up? >What have you got connected to the pin? I know the pin isn't being pulled up for two reasons: 1) My scope says so ;-). 2) Activity on another pin activates the interrupt and then the bit check at the beginning of the interrupt is never false, so the PIC just carries on with its interrupt behavior. Shahid, you were right on with the order of execution. My problem was that I was disabling the comparator AFTER I enabled GIE. I would enable GIE, and the interrupt would (usually) immediately occur. The few times it didn't were the times it appeared to work correctly. Thanks for your help, everyone. That's another gotcha well learned. Mike H. _________________________________________________________________ Take off on a romantic weekend or a family adventure to these great U.S. locations. http://special.msn.com/local/hotdestinations.armx -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body