I was just looking at some code that has the #ZERO_RAM directive commented out with a note saying that the directive causes a problem with #INT_RDA under emulation. I can't remember any details of why this directive caused problems on that project. So, try commenting out the #ZERO_RAM and see if that helps. Paul > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Kevin A. Benedict > Sent: Saturday, January 05, 2002 8:25 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]: CCS - C -code for SCI INT_RDA for F628 > > > Hi everyone, > I am trying to getc() a character from the PC serial port and > send it back to the serial port with #INT_RDA interrupt. > If I run the program without the interrupt, it works fine. > Basically a c=getc() followed by a putc(c); > However when I use the #INT_RDA nothing happens ??? > > #device PIC16F628 > #case > #include "C:\PROJECTS\16f628.h" > #fuses xt,nowdt,noprotect,put,nobrownout,nolvp > #use delay (clock=4000000) > #use rs232 (baud=300, rcv=PIN_B1, xmit=PIN_B2, parity=N, > bits=8,ERRORS, INVERT) > > #ZERO_RAM > > #INT_RDA > void serial_isr(){ > char c; > c=getc(); > putc(c); > } > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads