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 support@ccsinfo.com

RS232 Communications with a 5V GPS Receiver

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



Joined: 08 Jul 2005
Posts: 91

View user's profile Send private message

RS232 Communications with a 5V GPS Receiver
PostPosted: Sat Nov 25, 2006 8:12 am     Reply with quote

Hi all,

I have a Garmin GPS receiver (GPS 18 5Hz) which is powered with +5V and uses RS232 to transmit GPS data. I designed a circuit which includes a PIC16F877 microcontroller and a Maxim RS232 chip (MAX232). I am using the MAX232 chip as the middleman...both the Tx and Rx lines of the PIC and GPS receiver are fed into the MAX232 chip. Everything works, but my question is do I really need the MAX232 chip since the GPS receiver is powered with +5V and not +12V? Will my setup be more efficient if I just eliminate the MAX232 chip and just feed the Tx and Rx lines of the GPS receiver directly into the Tx and Rx lines of the PIC?

Thanks in advance,
-weg
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Sat Nov 25, 2006 8:31 am     Reply with quote

GPS receivers will vary. The max2332 5v to 12v RS232 does more that just the level transition it also provides a level of elecrotstatic pulse protection. A gps receiver will most often have its own RS232 ( max232) chip installed.
Check the voltage levels of your receiver at Tx to ground it will probably be in the 12 volt range. There is no speed advantage to 5v or 12v.
Note RS232 at 5v TTL level is inverted from the 12v level.
GDetienne



Joined: 20 Sep 2003
Posts: 47
Location: Brussel - Belgium

View user's profile Send private message

PostPosted: Sat Nov 25, 2006 10:33 am     Reply with quote

With the Garmin 18, the use of the Max 232 is not necessary. It's TTL level.
But two conditions : your "#use RS232(....)" must include "invert" and you don't use the internal UART.
I use it in these conditions, and all are OK.
Have a nice week end.
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