Enabling interrupts will not be the answer. I just left this in comments in case I want to enable it one day. I have used this code on many projects (previously in assember form) without trouble on many 16F87x parts. When you enable the UART it will override the PORTC TX and RX I/O control so in theory it does not matter what you set the TRISC value to. When TXEN (bit 5 of TXSTA) is set, PORTC[6] will become an output. In looking at your code again it seems that you have the correct settings. The only thing I can suggest is to create a loop that checks the status like my RS232putch and keep sending a character with lots of toggles. Also, double check that you are using the correct pin (pin 25 on the 40-pin package, pin 17 on the 28 pin package). Sometimes it is the simple stuff that is going wrong when nothing makes sense. Jason-55 wrote: > > From: "trossin" > Sent: Monday, October 16, 2006 11:35 AM > >> Here it is in BoostC format. You should be able to convert to JAL. > > Thank you. I still haven't gotten anywhere on the problem. > > I can try translating that, but so far the only thing in it I see that I > haven't tried is enabling the transmit and receive interrupts > >> set_bit(trisc,7); // PORTC[RX] is Input >> clear_bit(trisc,6); // PORTC[TX] is Output > > I'm confused by this now. As Brent Brown pointed out earlier in the > thread, > the datasheet says both tris bits should be set. I originally was setting > RX and clearing TX as this code does. I changed it to set both. > > Jason > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > -- View this message in context: http://www.nabble.com/USART-on-16F876-tf2441492.html#a6865977 Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist