Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

16F887 Serial Setup

Status
Not open for further replies.

Mike - K8LH

Well-Known Member
Am I reading this Data Sheet correctly and there's no TRISC setup required to setup the serial port peripheral?

Mike
 
i think you read it right
Section 12.1 said:
Note 1: When the SPEN bit is set the RX/DT I/O pin
is automatically configured as an input,
regardless of the state of the corresponding
TRIS bit and whether or not the EUSART
receiver is enabled. The RX/DT pin data
can be read via a normal PORT read but
PORT latch data output is precluded.

Section 12.1.2.1 said:
Note: When the SPEN bit is set the TX/CK I/O
pin is automatically configured as an
output, regardless of the state of the
corresponding TRIS bit and whether or not
the EUSART transmitter is enabled. The
PORT latch is disconnected from the
output driver so it is not possible to use the
TX/CK pin as a general purpose output.
 
Thanks for posting the same sections of the manual that I read. I guess I just wanted to make sure it wasn't a typo'...
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top