Aaauugh! That did it! Problem though, it does in fact miss a compare every so often. I can tell it to advance 5 over and over again and every once in a while it will advance 65536+5. Any tips on overcoming this or is it simply a shortcoming of the compare module? nick@veys.com / www.veys.com=20 > On Sun, 26 Jan 2003 22:07:15 -0600, Nick Veys wrote: > CCP1IF =3D 0; =A0 =A0 =A0 =A0 =A0 // clear CCP1 flag > CCP1IE =3D 1; =A0 =A0 =A0 =A0 =A0 // enable CCP1 interrupt > GIE =3D 1; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0// enable = interrupts >=20 > You haven't enabled PEIE in INTCON1. I have just noticed this=20 > is in 'C' I don't know if it's of anyhelp but if you look at=20 > the sprinkler project on the piclist you'll see in=20 > Sprinkler.c the setup using compare for the 873. >=20 > Colin -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads