From: "Steve Kaiser" <steven.kaiser@ucr.edu>
To: "'saurosalomoni'" <saurosalomoni@bol.com.br>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Subject: RE: Lite5200 from RS232 to RS485
Date: Mon, 14 Jun 2004 10:53:07 -0700 [thread overview]
Message-ID: <200406141752.AZK02995@sentinel.ucr.edu> (raw)
In-Reply-To: <HZ5CEE$AB58D6D6E1D4B27E5EB20145E6922465@bol.com.br>
> I need to switch between RS232 and RS485 in my Lite5200,
> but I realized it's a little bit more dificult than I
> thought at first...
> Well, as far as I'm concerned, I can do that just by
> controling the RTS pin of my ttyS0 device to activate
> the 485 module (is it 100% right?).
There are ways to enable an RS485 transceiver without the extra I/O
control line. The transceiver needs to be enabled only during
transmission (i.e from your Lite5200 to the outside world), and if your
output differential pair is pulled up (normally the case I believe),
then only during a transmission of a zero as well.
The way to accomplish this is with a one-shot and a diode. Use the xmt
line to low-active trigger the one-shot, and (via the diode) also pull
the one-shot's threshold low, effectively holding the output high. Set
the timing of the one-shot for 1/2 the maximum bit time you need (ex: at
115.2 baud, set it to 56us). The one-shot output then is an inverted
and extended version of your xmt line, and perfect for enabling the
transceiver. Also perfect for disabling the receiver at the same time.
See B&B Electronics [ http://www.bb-elec.com/ ] as one place I know of
that sells RS232 - RS485 coverters off-the-shelf using this method if
you don't want to build your own. There are schematics on their site
from which you can glean more info to build your own. If am not a fan
of one-shots, but in this case they are suitable.
Steve Kaiser
UCR Chem Electronics Shop
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-06-14 17:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-11 13:35 Lite5200 from RS232 to RS485 saurosalomoni
2004-06-14 17:53 ` Steve Kaiser [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-14 11:54 saurosalomoni
2004-06-14 14:47 ` Graham Williams
2004-06-14 15:37 ` Wolfgang Denk
2004-06-22 14:53 ` Sauro Salomoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200406141752.AZK02995@sentinel.ucr.edu \
--to=steven.kaiser@ucr.edu \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=saurosalomoni@bol.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).