From: "Mark Chambers" <markc@mail.com>
To: <linuxppc-embedded@ozlabs.org>
Subject: Re: The RS485 driver problem...
Date: Wed, 2 Feb 2005 08:15:11 -0500 [thread overview]
Message-ID: <002b01c50929$3bd6f720$0301a8c0@chuck2> (raw)
In-Reply-To: DE2CC66C40EAB74EA6D66AC71BF98E1E03055B60@TQ-MAILSRV-1
linuxppc-embedded-bounces@ozlabs.org wrote on :
> If you want to connect a RS485 transceiver to a normal UART, you
> always have the problem of dealing with enabling/disabling
> transmitter and recveiver. I have seen hardware that misuses RS-232
> hardware handshaking lines (RTS/CTS) for this purpose. What I have
> not been able to find is a linux driver or software solution to this
> problem.
>
> Has anybody used the CPM uarts (or even a standard 16C550 uart) for
> this purpose? How?
I took a look at some old non-linux code for the MPC860, and it appears
that the RTSM bit in GSMR_H provides switched-RTS in UART mode.
It will negate RTS after the last character in a BD. (SCCs only, not SMC)
Another trick you can use, depending on your hardware config, is to loop
your transmit data back to receive. When you receive the last character
you sent you know it's safe to turn off RTS, and since you're getting an
interrupt it's deterministic.
Mark Chambers
next prev parent reply other threads:[~2005-02-02 13:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-02 8:27 AW: The RS485 driver problem Martin Krause
2005-02-02 13:15 ` Mark Chambers [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-31 8:51 David Jander
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='002b01c50929$3bd6f720$0301a8c0@chuck2' \
--to=markc@mail.com \
--cc=linuxppc-embedded@ozlabs.org \
/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).