• 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 » TL16C752C Driver & Example
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 3 days 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 4 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 10 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Forums

TL16C752C Driver & Example

This question is answered
_John_
Posted by _John_
on Apr 06 2012 02:29 AM
Prodigy40 points

Hello.

How can I get the TL16C752C driver & example? Is there the driver for linux? I'm using dm816x.

BR,

_John_

TL16C752C DUAL UART
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 Apr 09 2012 09:27 AM
    Verified Answer
    Verified by Thomas Kugelstadt
    Expert5190 points

    Hi John,

    Unfortunately we do not have any sample code or UART device driver. The standard 16550 Linux driver should work. Here are a few links to RS-232 programming in Linux with some sample code:

    http://tldp.org/HOWTO/Serial-Programming-HOWTO/index.html

    http://www.faqs.org/docs/Linux-HOWTO/Serial-Programming-HOWTO.html

    http://www.teuniz.net/RS-232/

     

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • _John_
    Posted by _John_
    on Apr 10 2012 01:11 AM
    Prodigy40 points

    Hi Joe,

    Thank you for your answer. I'll check them.

    BR,

    _John_

    TL16C752C DUAL UART
    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 Apr 10 2012 09:02 AM
    Verified Answer
    Verified by Thomas Kugelstadt
    Expert5190 points
    Stanford UART Driver Example.zip

    Hi John,

    Attached is one more source of sample code from Stanford University. The links to the source code are included.

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gopi Ravada
    Posted by Gopi Ravada
    on Dec 15 2012 17:34 PM
    Prodigy100 points

    please tell me or send me where the code for hardware flowcontrol configuration for ti16550 . Please let me know. and if avail tell me how to test flowcontrol (CTS/RTS) .

    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 Dec 17 2012 12:01 PM
    Expert5190 points

    Hello Gopi,

    We do not have specifc driver code for the UART devices. Enabling flow control requires you to set a value in the FIFO Control Register (FCR, address offset 0x02) for the trigger levels and then enable bit 5 (AFE) in the Modem Control Register (MCR, address offset 0x04). For example:

     

    /* Comm Port 1 or A -- UART register set definition */
    /* Base address is 0x300                            */
    #define RBR_UART1      0x300  /*Receiver Buffer Register of chA */
    #define THR_UART1      0x300  /*Transmitter Holding Register of chA */
    #define IER_UART1      0x301  /*Interrupt Enable Register of chA */
    #define IIR_UART1      0x302  /*Interrupt Identify Register of chA */
    #define FCR_UART1      0x302  /*FIFO Control Register of chA */
    #define LCR_UART1      0x303  /*Line Control Register of chA */
    #define MCR_UART1      0x304  /*Modem Control Register of chA */
    #define LSR_UART1      0x305  /*Line Status Register of chA */
    #define MSR_UART1      0x306  /*Modem Status Register of chA*/
    #define SPR_UART1      0x307  /*Scratch Pad Register of chA */
    #define DLL_UART1      0x300  /*Divisor Latch LSB of chA */
    #define DLM_UART1      0x301  /*Divisor Latch MSB of chA */
    /* End Comm Port definition */

    // Setup and Initialize the port
     /* Port 1 */
     outportb(LCR_UART1, 0x80);     // Enable divisor access 
     
    outportb(DLL_UART1, 0x0c);     // set the divisor
     outportb(DLM_UART1, 0x00)
     
    outportb(LCR_UART1, 0x03);     // Set 8,N,1 data  
     outportb(FCR_UART1, 0x87);     // Set trigger level = 8 bytes, clear & reset TX & RX

     outportb(IER_UART1, 0x0F);     // Enable all interrupts
     outportb(MCR_UART1, 0x20);     // Enable flow control, AFE is enabled by MCR[5]

     

    I hope this helps.

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gopi Ravada
    Posted by Gopi Ravada
    on Dec 19 2012 18:50 PM
    Prodigy100 points

    Yes,

    But i am using AM3703 omap processor. I think this has 16550 compatible uart device. But as per the data sheet AFE bit is XON in AM3703 driver. I rellay confused.

    If any thing procedure you have about hardware flowcontrol in AM3703 processor please share it with me.

    Thanks,

    -Gopi

    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 Jan 02 2013 17:33 PM
    Expert5190 points

    Hello Gopi,

    I want to be sure I correctly understand what you are asking for. In an earlier post you stated:

    "please tell me or send me where the code for hardware flowcontrol configuration for ti16550 . Please let me know. and if avail tell me how to test flowcontrol (CTS/RTS) ."

    Are you using the AM37x processor and the discrete TL16C550 UART device?

    The steps I provided in my previous post were the correct steps to enable hardware flow control in the TL16C550D device.

    I looked at page 2391, Section 19.5.1.2  "Hardware and Software Flow Control Configuration" in the AM/DM37x Multimedia Device Technical Reference Manual. This device has three industry standard 16C550 UART ports with options for Software or Hardware flow-control. The

    If you are using the TL16C550 UART with the AM37x OMAP processor you will be limited to using hardware flow-control (/RTS & /CTS).  UART1 and UART2 ports on the AM37x have the /RTS and /CTS terminals that can be connected to /CTS and /RTS, respectively, on an external UART device.

    If I have misunderstood your question please let me know.

    Best Regards,

    Joe

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
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