* RE: MPC5200B TxRTS auto-toggle mode. (Txema Lopez)
@ 2007-03-12 13:55 Albrecht Moll
0 siblings, 0 replies; 2+ messages in thread
From: Albrecht Moll @ 2007-03-12 13:55 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: Txema Lopez
> Date: Wed, 10 Jan 2007 11:13:44 +0100
> From: Txema Lopez <tlopez@aotek.es>
> Subject: MPC5200B TxRTS auto-toggle mode.
> To: Linuxppc-embedded@ozlabs.org
> Message-ID: <45A4BC58.5010700@aotek.es>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
>
> I'm working in a MPC5200B based plataform. I want to use the TXRTS
> feature of the MPC5200B's PSC-UART(auto toggle when the transmitter
> ends) to manage a rs485 transceiver but I'm unable to do it. Googling,
> I've found that a year ago Stefan Eletzhofer asked for the same
> question, but I can't find any answer to this question (neither in the
> linuxppc-embedded mailing list archives). Did anyone find a solution? Is
> there a patch available for a Denx's 2.4.25 kernel?.
Maybe this is of interest for you - I got this answer from Freescale
support after I asked a
Freescale engineer at embedded world fair in Nuremberg:
Dear Mr. Moll,
please find below answers to your question concerning RTS deassertion on
MPC5200B PSC in UART mode.
Basically it works that RTS is negated when the shift register of the
PSC has transmitted the current data word.
Please see also:
>MPC5200B Users Manual Chapter 15.3.1.3 Transmitting in UART Mode
>In applications in which the transmitter is disabled after transmission
is complete and RTS is appropriately programmed, RTS is negated one
>bit-time after the character in the shift register is completely
transmitted. The transmitter must be manually re-enabled by reasserting
RTS
>before the next message is to be sent.
However, this is based on a single data word to be sent. Data still
residing in the transmit FIFO would remain there until the next
transmission
is initiated. Both, disabling and re-enabling of the transmitter has to
be done manually.
For your particular case it probably makes more sense to use the TxEMP
interrupt of the PSC and deassert RTS manually in the interrupt
service routine.
(please see Table 15-28. Interrupt Mask Register (0x14) for UART / SIR
Mode in the MPC5200B Users Manual)
Unfortunately there is no MPC5200 App-Note or demo application for the
use of EIA-485 available.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MPC5200B TxRTS auto-toggle mode. (Txema Lopez)
[not found] ` <OF0886F27A.F554CD9A-ONC125729C.004BF911-C125729C.004C7652@avat .local>
@ 2007-03-12 16:51 ` Txema Lopez
0 siblings, 0 replies; 2+ messages in thread
From: Txema Lopez @ 2007-03-12 16:51 UTC (permalink / raw)
To: amoll; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 345 bytes --]
Albrecht Moll wrote:
>For your particular case it probably makes more sense to use the TxEMP
>interrupt of the PSC and deassert RTS manually in the interrupt
>service routine.
>
>
Thanks Albrecht, this has been my approach. I have tested it in a custom
board and It works. I'have put the patch for a 2.4.xx version in my work
pipeline.
[-- Attachment #2: tlopez.vcf --]
[-- Type: text/x-vcard, Size: 324 bytes --]
begin:vcard
fn:Jose Maria Lopez
n:Lopez;Jose Maria
org:Fagor Automation S. Coop.
adr:;;San Andres 19. Apdo. 144;Arrasate-Mondragon;;20500;Spain
email;internet:tlopez@aotek.es
title:Sotware engineer
tel;work:(34) 943719200
tel;fax:(34) 943791712
x-mozilla-html:FALSE
url:http://www.fagorautomation.es
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-12 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <OF0886F27A.F554CD9A-ONC125729C.004BF911-C125729C.004C7652@avat. local>
[not found] ` <OF0886F27A.F554CD9A-ONC125729C.004BF911-C125729C.004C7652@avat .local>
2007-03-12 16:51 ` MPC5200B TxRTS auto-toggle mode. (Txema Lopez) Txema Lopez
2007-03-12 13:55 Albrecht Moll
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.