CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Termination of Rx pin?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








Termination of Rx pin?
PostPosted: Mon Apr 20, 2009 2:29 pm     Reply with quote

I'm working on a desgn that implements a serial port for configuration and parameter updating. Since this feature is seldom used, the board will not have a MAX232 interface IC on it, but simply a header with the required signals. An adapter cable with a MAX232 will be used with the board when required.

My question is what, if any, termination do I need on the Rx input to the PIC? Should I include a 10K pulldown to avoid noise pickup?

Chas
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 20, 2009 2:40 pm     Reply with quote

Quote:
Should I include a 10K pulldown to avoid noise pickup?

For the hardware UART, the idle state is a high level.
Guest








PostPosted: Mon Apr 20, 2009 3:09 pm     Reply with quote

Hi PCM,

Meaning what then? It's OK to leave floating, or I need to add a pull-up instead of a pull-down?

Chas
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 20, 2009 3:11 pm     Reply with quote

Put a 10K pull-up on it.
Guest








PostPosted: Mon Apr 20, 2009 5:42 pm     Reply with quote

Hi PCM,

You made the distinction of a hardware UART, so does that mean that a software UART input would require the pull-down?

Chas
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 20, 2009 5:49 pm     Reply with quote

The software UART can be configured for normal or inverted mode
(with the 'INVERT' paramter in the #use rs232 statement).
If the inverted mode is used, the idle state is a low level and a
pull-down resistor would be used on the Rx pin.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group