Hi,
DISABLE before the interrupt stubb could be the first good idea ...
a look at OPTION_REG.6 could be a good idea too ( value depends on your zero crossing method ...)
by the way , processor ?= 16F84a ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks