I've just been porting some code from an 873 to a 628 chip that uses the UART and found that the UART didn't work after the conversion. After some searching I found that I forgot to take out some code the sets TRISA and TRISB to 0x00. Now it does work. This suggests that TRISB does affect the UART whether the data sheet says otherwise. The PORTB UART diagram seems the same as for 87x series which indicates that enabling the UART overrides the TX RX pin settings. But....as with the 87x series, in the UART section it specifically mentions that TRISB<1:2> or TRISC<6:7> have to be set with SPEN to enable the UART. Confusing... -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu