Sorry about the missing subject before. I unmask the USART receive peripheral interrupt (bsf PIE1, RCIE), then enable peripheral inputs and GIE (put 0x0C0 into INTCON, bit7 is GIE and bit 6 is enable peripheral inputs) I've looked over the spec sheets several times, and it seems that those are the only three things that need to be set in order for the interrupt to be enabled. --Nick --- Nick Masluk wrote: > Hello, > > I'm attempting to run interrupts when USART data is > received on a 16F627 (all other interrupts masked), > but for some reason the interrupt does not seem to > want to run. > > Here is a briefing of the code as it is, I haven't > cough what is wrong with it, but I am obviously > overlooking something if it isn't working: > > org 0 > goto init ;skip over > interrupt routine to > initialization > org 4 ;start of > interrupt routine > (interrupt code, which never runs) > retfie > > init (setup port A/B I/O, set baud rate to > 2400bps, > enable async USART transmit, initialize LCD) > bsf PIE1, RCIE ;unmask > USART receive interrupt > movlw 0x0C0 > movwf INTCON ;enable > interrupts, unmask peripheral > interrupts > movlw 0x090 > movwf RCSTA ;enable > continuous asynchronous serial > receive > (continue to run main code, reading keyboard > and > transmitting on USART) > > > I've tried enabling USART receive before enabling > the > interrupts and it still does not work. If I > actually > poll the RCIF flag, and then read the data in RCREG > it > works fine, but for some reason the interrupt is > never > triggered. > > Any Ideas? > > Thanks, > > --Nick > > __________________________________ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" > Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > -- > 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 __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.