Barry Gershenfeld wrote: > If you otherwise have the time, how about figuring out > beforehand that you will reach zero on the *next* > interrupt, and leave yourself a flag for that. > Check at the top of the i.s.r. and you know > after a single test. Before you even start to do things like that, though, it might be helpful to re-read the data sheet and notice that DECF doesn't affect the Carry flag. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.