----- Original Message ----- From: Lucian To: Sent: Saturday, October 04, 2003 5:51 PM Subject: Re: [PIC]: 16F628 USART Problem > > if(RCIF) { > led2_on(); > receivebuffer[RecvBufferPos] = RCREG; > > if ((++RecvBufferPos)==MAXRECEIVEBUFFER) RecvBufferPos = 0; > led2_off(); > } > if(TXIF && TXIE) > { > led1_on(); > TXREG = sendbuffer[SendBufferPos]; > if ((++SendBufferPos)==MAXSENDBUFFER) SendBufferPos=0; > led1_off(); > } > sci_CheckOERR(); > > I tried all this, but still, it is not functioning :( It acts like it ignores the serial part, the links are not blinking when they should (they are supposed to blink when a byte is transmitted). Any ideas are welcomed. > > Lucian Even if this code works correctly you may not see the LEDs blinking because you only leave them on for a very short time. They would have to be really bright for you to notice them is they only blink a few times. Also the ambient lighting would effect weather or not you can see them. Regards Sergio Masci -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads