In message <0F60BEDDC090D41185D300508BCFA39EE81431@zpgty002.europe.norte l.com>, Michael Rigby-Jones writes >> -----Original Message----- >> From: Vasile Surducan [SMTP:vasile@L30.ITIM-CJ.RO] >> Sent: Thursday, February 08, 2001 7:10 AM >> To: PICLIST@MITVMA.MIT.EDU >> Subject: Re: [PIC]: Interupt problems HELP! >> >> From my experience you must turn the intcon_gie off at the begining of the >> interrupt and not in the main. Else multiple interrupts may occure. >> Also you don't need to set intcon_gie on in the main because retfie do >> this job when you go out from ISR >> Vasile >> >GIE is automatically cleared when the PIC jumps into an ISR. > I cleared the GIE there because I needed the interrupts off in that part of the program. Found the problem in the end. Once I used a goto in the interrupt routine I had to save PCLATH at the start and restore at the end and other programs had never used a goto in the interrupt routine so had never encountered the problem. Best regards Scott >Mike > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. > > ******************************************************* 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 PICList is archived three different ways. See http://www.piclist.com/#archives for details.