>Drew, thank you very much for the reply. >I'm surprised of how less code is necessary! >NB: measuring in the field, I think that probably the 2.nd "Incfsz" >(count_hi,f) can be a simple "incf", because the max. >interval measure in the logger is 1Hour and every "pulse" from my bucket is >equal to about 0.1mm of rain. >So, the High counter never will overflow. I don't think this is true. I don't have the instruction set in front of me, but I *think* that INCF modifies the Z bit regardless of the result. In other words, when you use INCF and don't overflow past zero, the STATUS, Z bit will be cleared. You don't want this to happen because you aren't saving W or STATUS anymore in your ISR. I would highly recommend using INCFSZ just in case, plus it only adds one extra RETFIE instruction at the end of the ISR routine. --Andrew _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.