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

Simple, small, PIC to rs232 converter

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



Joined: 15 Nov 2003
Posts: 4

View user's profile Send private message

Simple, small, PIC to rs232 converter
PostPosted: Sat Mar 13, 2004 4:34 am     Reply with quote

Hi,
I am looking for a simple and easy ideally single IC that can convert PIC rs232 to standard rs232 (PC) no flow control just the TX line from my PIC.

Thx
Ttelmah
Guest







Re: Simple, small, PIC to rs232 converter
PostPosted: Sat Mar 13, 2004 4:56 am     Reply with quote

scarr wrote:
Hi,
I am looking for a simple and easy ideally single IC that can convert PIC rs232 to standard rs232 (PC) no flow control just the TX line from my PIC.

Thx

Look at the DS275 from Dallas.
However this really needs the RX line from the PC connected as well. It achieves 'nearly' standard RS232 levels, but I have yet to find anything that complains about them, by stealing power from the RX line. For systems needing both a TX and RX line, it is probably about as simple as you can get. However for a single TX 'only' system, the problem is that you need to generate the -ve supply from somewhere, so will probably end up with more complexity.

Best Wishes
Lestard



Joined: 13 Mar 2004
Posts: 2

View user's profile Send private message

RE: Simple converter
PostPosted: Sat Mar 13, 2004 12:36 pm     Reply with quote

You can also use a MAX232 from MaximIC.
This is a small IC which converts normal TTL (PIC)-level (0V and +5V)
to RS232-level (-10V and +10V).
You only need a normal +5V supply and some capacitors, and if you
need only 2 or 3 converters, just ask MaximIC for some free samples!
Ttelmah
Guest







Re: RE: Simple converter
PostPosted: Sat Mar 13, 2004 12:40 pm     Reply with quote

Lestard wrote:
You can also use a MAX232 from MaximIC.
This is a small IC which converts normal TTL (PIC)-level (0V and +5V)
to RS232-level (-10V and +10V).
You only need a normal +5V supply and some capacitors, and if you
need only 2 or 3 converters, just ask MaximIC for some free samples!

This is the 'standard' solution, but is not a 'small' IC (16pin). The MAX233, is normally preferred (since it needs no external capacitors). I was assuming that something smaller is required.

Best Wishes
Freddie



Joined: 06 Sep 2003
Posts: 49

View user's profile Send private message

PostPosted: Sat Mar 13, 2004 1:33 pm     Reply with quote

You can connect the PIC to a PC serial port without using a MAX232/233 or Dallas Chip. There are several clever ways to do this with only a resistor, but I've notices that those methods can limit the bandwidth.

There is another way, using two transistors. Go to the link below. Look at page 16, specifically the circuits connected to pins 5 and 6 of the elm320 chip (the elm320 is just a PIC). Pin 5 is Rx and Pin6 is Tx. This schematic assumes a DB25 on the PC. If you are using the D9, you will need to adjust accordingly, using pins 2,3 and 5...can't remember off hand if tx is pin 2 or 3 on the DB9. Hope this helps.

http://www.elmelectronics.com/DSheets/ELM320DS.pdf
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

RS232 Interface
PostPosted: Sat Mar 13, 2004 3:48 pm     Reply with quote

One thing to remember is that you must invert the PIC hardware RS232 Transmit signal for it to work to a PC serial port. This can be done with a simple SN7404 TTL inverter which i have used a number of times for "quick and dirty" and you dont need anything but the inverter. However, for the receive to the PIC the +/-12V will be incompatible with the SN7404 input so you will need a resistor divider there.

The transisitor interface method Freddie mentioned gives you the inverter function and the level change interface and works well but requires a few more parts.
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