furthermore, after filling TXREG, you need to wait for TXIF to be set (either by configuring interrupts or by polling it) before loading the next char. At least that's how it works with the other 16-series i've used - i've not got that datasheet in front of me. On 14/10/06, Brent Brown wrote: > Jason wrote: > > > pin_c6_direction = output -- transmit is an output > > pin_c7_direction = input -- receive is an input > > The above seems correct, intuitively, but... > > The data sheet says "Bit SPEN (RCSTA<7>) and bits TRISC<7:6> have to be set in > order to configure pins RC6/TX/CK and RC7/RX/DT as the Universal Synchronous > Asynchronous Receiver Transmitter." > > This has got me before, definitely a trap for new players. > > -- > Brent Brown, Electronic Design Solutions > 16 English Street, St Andrews, > Hamilton 3200, New Zealand > Ph: +64 7 849 0069 > Fax: +64 7 849 0071 > Cell: 027 433 4069 > eMail: brent.brown@clear.net.nz > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist