• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Interface » Industrial Interface » Industrial Interface Forum » TL28L92 timing problem
Share
Industrial Interface
  • Forum
  • Files
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 1 day ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...
  • $core_v2_blog.Current.Name

    Filter for thought

    Posted 2 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...
  • $core_v2_blog.Current.Name

    Let’s take this driver out for a spin

    Posted 8 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Forums

TL28L92 timing problem

This question is not answered
Martin Fletzer
Posted by Martin Fletzer
on Aug 14 2012 09:42 AM
Prodigy150 points
tl28l92_rts.jpg

Hi,

we use the TL28L92 as a replacement for the SC28L92. The output OP0 of the TL28L92 is used to control the direction of an RS-485 transceiver through the transmitter RTS signal.

But the timing is wrong and the stop bit will not be transmitted. The datasheet states the following: "This output is normally asserted by setting OPR[0] and negated by resetting OPR[0]. MR2A[5] = 1 caused OPR[0] to be reset automatically one bit time after the characters in the channel A transmit shift register and in the Tx FIFO, if
any, are completely transmitted including the programmed number of stop bits"

I have attached an image, showing the Tx signal (cyan) and the RTS signal (yellow).

Do you think it is a bug of the device, or could it be fixed by software?

Best Regards,

Martin Fletzer

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Joe Fockler
    Posted by Joe Fockler
    on Aug 14 2012 12:18 PM
    Expert5160 points

    Hi Martin,

    I am looking in to this issue and should have an answer by the end of the day.

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joe Fockler
    Posted by Joe Fockler
    on Aug 16 2012 17:30 PM
    Expert5160 points

    Hi Martin,

    The RTS should work as documented. I have asked the design team to look at the code and see if there is a problem in the state machine.

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Aug 17 2012 07:25 AM
    Prodigy150 points

    Hi Joe,

    thank you for your response.

    I configured the device as described by the datasheet:

    1. Program auto-reset mode: MR2A[5] = 1
    2. Enable transmitter
    3. Assert RTSAN: OPR[0] = 1
    4. Send message
    5. Disable transmitter after the last character is loaded into the channel A Tx FIFO
    6. The last character will be transmitted and OPR[0] will be reset one bit time after the last stop bit, causing
    RTSAN to be negated

    I'm not sure what I did wrong, because the RTS pin is switching but with wrong timing. Maybe you can provide some code for using the auto-reset mode?

    Best Regards,

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Aug 20 2012 08:52 AM
    Prodigy150 points

    Hi Joe

    I'm now switching the RTS pin manually. I use the TxEMTA bit in the status register SRA[3] to detect the end of transmission.

    But I have the same problem as with the auto-reset mode. The TxEMTA bit is set before the stop bit has been sent. Probably the hardware state machine depends on this bit and we have narrowed down the problem a litte?

    Best Regards,

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joe Fockler
    Posted by Joe Fockler
    on Aug 22 2012 18:12 PM
    Expert5160 points

    Hi Martin,

    I have not received any updates from the design team yet. In the message you posted on Friday it looks like the RTSAN is de-asserting correctly one bit time after the STOP bit. Is this correct? (part of your message is reposted below for convenience). We do not have any sample code for this device. I will follow up with the design team to see if they have had a chance to run a simulation.

    [Your text repeated below]

    I configured the device as described by the datasheet:

    1. Program auto-reset mode: MR2A[5] = 1
    2. Enable transmitter
    3. Assert RTSAN: OPR[0] = 1
    4. Send message
    5. Disable transmitter after the last character is loaded into the channel A Tx FIFO
    6. The last character will be transmitted and OPR[0] will be reset one bit time after the last stop bit, causing RTSAN to be negated

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Aug 23 2012 09:15 AM
    Prodigy150 points

    Hi Joe,

    no, the RTSAN is not de-asserting correctly. I copied the text for the 6 enumerations from the datasheet.

    I still have the same problem. Regardless of whether I use the auto-reset mode or switch the RTS pin manually.

    Best Regards,

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joe Fockler
    Posted by Joe Fockler
    on Aug 23 2012 18:14 PM
    Expert5160 points

    Hi Martin,

    what value are you writing to the MRA1 register? Is MRA1[7] = 1 or 0?

    Are you running in loop-back mode?

    The design team looked at the RTL code and stated that if MRA1[7] = 0 this will block the RX FIFO full indication from interrupting OPR[0]

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Aug 24 2012 01:37 AM
    Prodigy150 points

    Hi Joe,

    I wrote 0 to MR1A[7] and set MR2A[7:6] to normal mode.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Sep 12 2012 07:11 AM
    Prodigy150 points

    Hi Joe,

    do you have any news regarding the timing problem?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joe Fockler
    Posted by Joe Fockler
    on Sep 12 2012 17:16 PM
    Expert5160 points

    Hello Martin,

    I have sent a follow up to our design team. Based on the configuration information you provided the device should work as documented and you should see RTS negated after the stop bit transmits. I have asked them to check the timing requirements. You are looking only at the Transmit side and not the Receive side, correct?

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Sep 14 2012 03:34 AM
    Prodigy150 points

    Hi Joe,

    MR1A[7] is always set to zero. OP0 is only controlled by the transmitter.

    Best Regards,

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Nov 22 2012 05:59 AM
    Prodigy150 points

    Hi Joe,

    the problem is still relevant to us. We use a workaround, implemented with busy wait.

    Because of performance requirements we have to remove this workaround. Do you have already a solution for this problem?

    Best Regards,

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joe Fockler
    Posted by Joe Fockler
    on Nov 27 2012 10:21 AM
    Expert5160 points

    Hello Martin,

    I have contacted the design team again to see if they have run a simulation. Some design resources were reassigned and I don't know if this task was completed. i do not have a bench set up to check this myself. I hope to have a response by tomorrow since the design team is not located here in Dallas.

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Fletzer
    Posted by Martin Fletzer
    on Mar 13 2013 10:10 AM
    Prodigy150 points

    Hello Joe,

    do you have any news regarding this problem? We still need a solution for this bug.

    Best Regards,

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joe Fockler
    Posted by Joe Fockler
    on Mar 13 2013 10:22 AM
    Expert5160 points

    Martin,

    The UART product line has moved to another group and I have am contacting the new design team to have them run the simulations. The design team from my group was reassigned to other products so I lost the resources who were looking at the RTL code. Based on the information you provided the device should function as described in the datasheet. I am assuming this is a bug in the design but I need someone from the design team to run the simulations. We do not have a bench test setup for this device.

    Can you provide the register configuration for both UART channels in your setup? From your messages I know that you are using:

    Normal mode - Full Duplex
    Auto-Reset Mode (MR2A[5] = 1)
    No RTS control (manually asserting TRSAN

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use