Thanks for the response, Andy. The PIC16C5X series 'mini-manual' (page 6) states, "For applications where RTCC needs to be tested for zero without affecting its count, use of MOVF RTCC,W instruction is recommended. What have been some of techniques seen to test for zero after getting the RTCC value into the w register? Testing each bit for zero could chew up a lot of processor time and there isn't ONE unique bit that indicates zero. I am considering testing for a '1' in the seventh bit such that my overflow occurs at 128 instead of 255. Many thanks...and best regards, Pete peter.cesarz@appl.ge.com >---------- >From: Andrew Warren[SMTP:fastfwd@ix.netcom.com] >Sent: Sunday, January 26, 1997 4:08PM >To: Multiple recipients of list PICLIST >Subject: Re: RTCC?? > >Peter J. Cesarz wrote: > >> When RTCC overflows on a PIC16c54 windowed part, does the zero bit >> get 'set'? > > No. > >> And if it does, must it be manually 'reset' to check for the next >> zero of an arithmetic or logical occurance? > > No, there's never ANY need to manually reset the Zero flag for > that reason; the instructions that affect the Z flag will either > set or clear it as appropriate. > > -Andy > >=== Andrew Warren - fastfwd@ix.netcom.com === >=== Fast Forward Engineering - Vista, California === >=== === >=== Did the information in this post help you? Consider === >=== contributing to the PICLIST Fund. Details are at: === >=== http://www.geocities.com/SiliconValley/2499/fund.html === >