Hi, you should carefully check the generated code. I think CCS uses only the built-in hardware serial port if some conditions met. Such one is of course, for example, that the pins are assigned to xmit and receive which are capable of doing it. However, AFAIK, the INVERT clause violates also this assumption. On the other hand, only the hardware receiver supports INT_RDA. Such way, you have now a receiver routine I guess, which does its job with bit banging method, and you have an INT_RDA routine which won't be activated. Regards, Imre On Sat, 5 Jan 2002, Kevin A. Benedict wrote: > 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 ??? > I am using CCS PCM C Compiler, Version 2.717, 9410 > Is their any know bugs for the F628 with this compiler ? > I checked CCS website and did not see anything. > Any help would be appreciated, > Kevin > > #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); > } > > main () > { > enable_interrupts(GLOBAL); > enable_interrupts(INT_RDA); > > puts("\r\n Starting Test ...\r\n"); > while(1); > } > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads