On Sun, 31 Jul 1994, David B. Thomas wrote: > There may be more to it that this, but a quick look shows that you are > moving RTCC into W and then expecting the Z bit in the status register > to indicate the zero or nonzero status of the RTCC. I don't think the > movf instruction affects the Z bit, so try adding a specific test. > > David The Microchip data pages say that movf does set the Z bit. Besides the seconds timing seems to working fine. A LED i have blinking is regular and never fails. Thanks for the comments 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