Hi, I see at this moment only one possible cause: the processor does a reset somehow after 1st press (previous word reset is a typo; sorry). Maybe a watchdog or an EMI problem? Regards, Imre On Fri, 22 Sep 2000, Carl Rouse wrote: > Hi all, > got a bit of an annoying problem. > > I've cleared INTCON, and therefore GIE, so interupts should be disabled. > Yet, when I press a switch on PORTB, 6 the first time it behaves as it > should, but the second and subsequent times result in a jump to the > interrupt handling routine at 0x004. > I've added a routine to send data out about the state of certain registers > to the interrupt handling routine and INTCON is > '00000000' on the second press (first jump to 0x004), > '10000000' on third press (second jump to 0x004). > RETFIE sets GIE on execution, so that is why GIE is set on the second > interrupt call, but GIE is '0' when the first jump to 0x004 is made. > PIR1 is '00010000' which is TXREG is empty > PIR2 is '00000000' > > Has anyone out there come across something like this before? > Does anyone have any ideas on what I can look at? > > Thanks, > -Carl > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST > > > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu