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

RS232 Pin to Monitor to Detect Connection

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



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

RS232 Pin to Monitor to Detect Connection
PostPosted: Sat Jul 15, 2006 3:01 pm     Reply with quote

Hello All,

I'll be attempting a full 9 pin implementation of RS232 soon and would like to be able to have the PIC detect when a DTE is connected. What pin should I monitor to detect that event? The DTR?

Also, on the TTL/CMOS side of the level-shifter, what will be the logic levels when connected and unconnected?

Thanks,

John
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 16, 2006 12:36 pm     Reply with quote

If I have a question about serial ports, I go here because it's got so
many links:
http://www.lvr.com/serport.htm
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Mon Jul 17, 2006 10:07 pm     Reply with quote

PCM,

Thanks. I hadn't seen that site before, even though I have Serial Port Complete. I pulled that out and dusted it off and found alot of what I needed. (I had forgot it was in my book case.)

I went back to a simple 3 wire connection. Since it's for Small Burst Data (SBD), I shouldn't need any flow control and decided to keep it simple. However, I did rig up a Schottky w/ a series current limiting resistor and then a 3V zener to ground off the DTR line to the PIC to indicate when it's connected to the PC.

John
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