piclist 2003\03\02\200206a >
Thread: More on UART
www.piclist.com/techref/microchip/devices.htm?key=pic
flavicon
picon face BY : 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
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
spamsalesTakeThisOuTspambubblesoftonline.com

--
http://www.piclist.com hint: To leave the PICList
@spam@piclist-unsubscribe-requestTakeThisOuTspam.....mitvma.mit.edu>
<3E62A93B.3892D16@eng.monash.edu.au> 7BIT

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) More on UART

month overview.

new search...