I do not use interrupts anymore, because I already have a timer interrupt activated, and i think it is interferring. Anyway, I was disabling TXIE in the main loop. I would like to know if there can be a problem if there are activated the timer interrupts and the usart module interrupts, and if I can still check RCIF to see if there is something to receive, or how could i figure it out. Thank you very much for your answers. Lucian -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of piclist@XARGS.COM Sent: 4 octombrie 2003 22:27 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: 16F628 USART Problem On Sat, 4 Oct 2003, Lucian wrote: > if(TXIF && TXIE) > { > led1_on(); > TXREG = sendbuffer[SendBufferPos]; > if ((++SendBufferPos)==MAXSENDBUFFER) SendBufferPos=0; > led1_off(); > } I don't see TXIE being disabled there. -- John W. Temples, III -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads Lucian ---- Home, no matter how far... http://www.home.ro -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads