At 02:44 AM 7/11/2009, Heinz Czychun wrote: >Hi, > I'm having a little problem with controlling Timer 0 and Timer 1 >interrupts separately, on a PIC12F675. > > With Timer 1 disabled I'm able to control Timer 0 effectively >with the INTCON,T0IE bit. Off and on. But when I enable Timer 1, >Timer 0 also starts up and starts interrupting the processor. I see a couple of things worth looking at: movlw b'10100000' > ; 1------- (GIE)1=interrupts enabled > ; -0------ (PEIE)1=enable peripheral interrupts > ; --1----- (T0IE)0=disable TMR0 overflow 1) You say in the line above that "0 disables TMR0 overflow" but you are setting to be a "1". Check to make sure that it really is a "0". 2) Do NOT check T0IF within your Interrupt Service Routine if you aren't using it! Here's why: T0IF will ALWAYS become set each and every time TMR0 rolls over from 0xFF to 0x00. However, if T0IE isn't set, it won't cause an interrupt. If you check T0IF, you will most likely find that it is set. However, that's NOT what caused the interrupt if T0IE has not been enabled (=1). Hope this helps! dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax www.trinity-electronics.com Custom Electronics Design and Manufacturing -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist