|
|
View previous topic :: View next topic |
Author |
Message |
Einly
Joined: 10 Sep 2003 Posts: 60
|
RS232 - RS485 - RS232 adapter |
Posted: Fri Aug 20, 2004 8:35 pm |
|
|
I want to use PC communicate with PIC in a long distance communication, and thus I need
1 RS232 to RS485 adapter
1 RS485 to RS232 adapter
Anybody has the reference circuit or project?
Pls help, thanks... _________________ Einly |
|
|
Guest
|
|
Posted: Sat Aug 21, 2004 12:05 am |
|
|
SN75176 is a 485 drivers
kruskal |
|
|
Ttelmah Guest
|
Re: RS232 - RS485 - RS232 adapter |
Posted: Sat Aug 21, 2004 2:25 am |
|
|
Einly wrote: | I want to use PC communicate with PIC in a long distance communication, and thus I need
1 RS232 to RS485 adapter
1 RS485 to RS232 adapter
Anybody has the reference circuit or project?
Pls help, thanks... |
There are quite a few people selling such units. They are not quite as 'simple', as may at first appear. The 'key' is that RS485, is normally implemented using just one pair of wires, as a 'half duplex' link. So the drivers, have to sit in 'receive' mode, and when any data arrives on the incoming RS232 transmit line, something has to operate the signal to reverse this driver, and start sending the data across the 485 link. Also, you should look carefully at the voltages on each unit, since it could well be worth considering opto-isolating the drive. A 'minimum' circuit to do all this, then has a RS232-5v logic driver chip (I use a DS275, which is small, and adequate for the short distances that the RS232 signal has to travel), then a 5v to 5v isolated power module, and two opto couplers, one in the RX line, and one in the TX. Then on the 'isolated' section of board, there is a small PIC (12508), running a program that when it sees data arrive on the TX line, operates the direction control line on the RS485 driver, and holds it operated for 10.5 bit times (using 8 bit even parity, one stop). The driver is a simple MAX485. Remember then that the RS485 lines require termination at each end, and you also either have to provide a small amount of voltage bias to the line (so it idles 'off'), or use a driver that is designed to do this.
I can send you a .pdf, of a typical circuit for this.
A simpler version, doesn't have the opto-couplers, and 5v inverter, but doesn't then give the nice isolation.
I remember a couple of years ago, a company using this type of link, contacted me, because it was being slightly unreliable. Went to look at the link, and found that one of the wires was in contact with a 440v supply line!... The link was still running, but the error rate had risen, when units were switching on the power line. Got them to repair their wiring, and it all ran happily again.
Best Wishes |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1936 Location: Norman, OK
|
|
|
mkent
Joined: 09 Sep 2003 Posts: 37 Location: TN, USA
|
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Aug 23, 2004 9:16 am |
|
|
Also something to consider is IF the wire runs outside or building to building. Then REMEMBER to account for lightning protection.
I use a opto isolated MAX1480 BCPI and an TVS 712 from semtec. |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
|
|
|
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
|