In message <01E61235877ED411A0A40001029D6ADA056B66@RFC1918-Host>, Wollenberg, Frank writes >> -----Original Message----- >> From: info [mailto:info@BROADCAST-WAREHOUSE.COM] >> Sent: Wednesday, February 07, 2001 5:34 PM >> >> ------------------------------- >> interupt routine >> save context ;obvious >> btfsc PIR1,TMR1IF ;tmr1 int >> goto timer1overflow >> >> other interupt stuff >> restore context >> retfie >> timer1overflow >> bsf overflowflag ;set tmr1 interupt flag > bcf PIR1,TMR1IF ;clear tmr1 int !!! >> restore context >> retfie >> ------------------------------- > >Hi Scott, >you must clear the int flag at the end of your isr() as shown above. >As others have written, GIE is cleared on entry into isr(), disabling >further interrupts. >So there's no need to clear GIE. >BTW there is a problem clearing GIE in some PICs. Use Drew's solution, also >described in the data sheets. >> MAIN bcf INTCON, GIE ; clear bit >> btfsc INTCON, GIE ; is bit clear? >> goto MAIN ; if not, try again > >Hope this helps, >Frank I forgot to include that in my email by mistake but was in the program. My problem was PCLATH storage! > >GSP Sprachtechnologie GmbH >Frank Wollenberg >HW-Entwicklung >Tel.: +49 (0)30 769929-78 >Fax: +49 (0)30 769929-12 >eMail: f.wollenberg@gsp-berlin.de > > > > >-- >GSP Sprachtechnologie GmbH >Teltowkanalstr.1, D-12247 Berlin >Tel.: +49 (0)30 769929-0 >Fax: +49 (0)30 769929-12 >eMail: Info@gsp-berlin.de >Web: http://www.gsp-berlin.de > >-- >http://www.piclist.com hint: The list server can filter out subtopics >(like ads or off topics) for you. See http://www.piclist.com/#topics > > ******************************************************* Broadcast Warehouse ( FM Transmitters and accessories ) website: www.broadcastwarehouse.com email: info@broadcastwarehouse.com phone: sales: inland (uk) 0208 5409992 international +44 208 5409992 tech support: inland (uk) 0208 5409993 international +44 208 5409993 fax inland (uk) 0208 5409994 international +44 208 5409994 ******************************************************* -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics