Thanks for clarifying that. I'm not using MPLAB and my names are a bit different. It was I who screwed up the translation. Allen > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of > IVP > Sent: Monday, July 21, 2014 10:25 PM > To: Microcontroller discussion list - Public. > Subject: Re: [Pic] Making a special timer! >=20 > > turning the Timer off and on shouldn't TMR1IF_bit be TMR1IE_bit? >=20 > There are 3 bits >=20 > TMR1ON_OFF starts/stops the timer running >=20 > TMR1IE is one of the bits allowing the hardware to recognise TMR1 > interrupts (there are others for timers and other various functions in > PEIE, PIEx, PIRx and INTCON) >=20 > TMR1IF is the interrupt bit, set automatically when TMR1 goes from > FFFF to 0000, whether interrupts are enabled or not (eg IF can be > polled by s/w) >=20 > If TMR1ON_OFF =3D 0 then TMR1 is stopped and its current value > is frozen, regardless of the state of any interrupt bits >=20 > TMR1IE =3D 0 (or any relevant IE in the pathway) will stop interrupts > being recognised by the system but it's not the same as starting/stopping > the timer >=20 > Joe > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .