-----Original Message----- From: Jim Paul To: Lawrence Lile ; PICLIST@MITVMA.MIT.EDU Date: Wednesday, September 29, 1999 7:02 PM Subject: Re: ext INTERRUPT in PIC12C672 - 1 or 0? >Lawrence, >The edge that the interrupt happens on is programmable. Bit 3 >of INTCON REGISTER (INTE)is the External Interrupt Enable Bit. >ADCON1 REGISTER Bit0 to Bit2(PCFG0 to PCFG2) control which >pins are Analog and which are Digital. Don't forget to >initialize this Register, or you won't have any external >interrupts happen no matter what activity is on the INT pin. >You select the Edge to trigger on in the OPTION register Bit6 >(INTEDG). Hope this helps you out. > > Good Luck and Regards, > > Jim > > >-----Original Message----- >From: Lawrence Lile >To: PICLIST@MITVMA.MIT.EDU >Date: Wednesday, September 29, 1999 3:39 PM >Subject: ext INTERRUPT in PIC12C672 - 1 or 0? > > >>I'm trying to use the external interrupt on the PIC12C672. To refresh >>anybody's memory, this is supposed to generate an interrupt when something >>or other happens on pin GP2. >> >>The question is, when WHAT happens? The data book mentions that GP2 can be >>configured as an external interrupt, but goes into no detail. >> >>Predictably, i've got some erratic behaviour coming out of my interrupt >>routine when I breadboard this part. >> >>Does the interrupt occur: >> >>1. on a rising edge? >> >>2. on a falling edge? >> >>3. on any change? >> >>Anybody got any idea? >> >>-- Lawrence Lile >