I didn't read all of your code & have not used the 57 ( I am using the '71) but I did check the '57 op-codes. A movf RTCC to W will set the Z flag but will also clear the prescaler. Could this tie in with your troubles, or have you allowed for it? Good luck, Brian