On Sun, 31 Jul 1994, Brian Read wrote: > 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 Brian, I thought you may have hit the problem, but it does not appear so. Firstly if the movf RTCC, w did change the prescaler, then the whole time would be out (and my LED blinking each second would not be operational). I did try resetting the prescaler after each operation with the RTCC, but this gave not change. The Microchip data page is confusing. It talks in note 4 of the instruction table, about the prescaler being reset, but is ambiguous. (to me atleast) Thank you for responding. regards Gary Gaskell DSTC Cooperative Research Centre for Distributed Systems Technology Queensland University of Technology Ph +61-7-864 1051 FAX +61-7-864 1282 Email gaskell@dstc.qut.edu.au URL http://ftp.dstc.edu.au/intro.html