I was wrong, since INTCON is mapped to all the banks. Maybe you are right. If you are debugging slowly the timer may overflow again after you clear TOIF. Did you try simulating it in MPLAB? Put a breakpoint in the interrupt code and step through it. /\/\/\/*=3DMartin ----- Original Message ----- From: "Benjamin Menk=FCc" To: Sent: Wednesday, February 13, 2002 4:21 PM Subject: Re: [PIC]: Timer > but it goes already to timer0_int so the bank should be right.... And i= am > pretty sure that my pic is not broken.. However i am doing isp debuggin= ... > might that be the reason? > > ----- Original Message ----- > From: "Martin Peach" > To: > Sent: Wednesday, February 13, 2002 10:17 PM > Subject: Re: [PIC]: Timer > > > Either (a) Your interrupt happens while you are in another bank > or (b) Your PIC is broken. > /\/\/\/*=3DMartin > > ----- Original Message ----- > From: "Benjamin Menk|c" > To: > Sent: Wednesday, February 13, 2002 3:51 PM > Subject: [PIC]: Timer > > > My Int routine looks like this: > > ORG 0x0004 > btfsc INTCON,T0IF > goto timer0_int > goto end_int > timer0_int > movlw 0 > movwf TMR0 > bcf INTCON,T0IF > goto end_int > asdaa > nop > goto asdaa > end_int > retfie > > Somehow the T0IF doesn't get cleared.... whats wrong??? > > regards, > > BEN > > > -------------------------- > Benjamin Menk|c > Auto-Intern GmbH > Haberlandstr. 125 > 44359 Dortmund > Tel: 0231-1893070 > Fax: 0231-93699548 > www.auto-intern.com > > > Meinen PGP-Schl|ssel kann man unter: > > http://www.auto-intern.com/php/pgp_menkuec.php > > finden. > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.