More on UART
Tony Nixon email (remove spam text)
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
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.
http://www.piclist.com hint: To leave the PICList
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the