• 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 » ARM® Processors » Sitara™ ARM® » AM3x Sitara ARM Processors Forum » UART RTS_pin manually control problem?
Share
Sitara™ ARM®
  • Forum
  • Announcements
Options
  • Subscribe via RSS

UART RTS_pin manually control problem?

UART RTS_pin manually control problem?

This question is not answered
Keldy
Posted by Keldy
on Jun 19 2012 03:33 AM
Expert1770 points

Hi,

i want to control uart rts pin manually, set high and low by my program.

I'm using uart1 AM335x. in my program:

UART1_RTS_PINMUX = MODE4;

while(1)

{

(UART1_BaseAddr + UART_MCR) |= (1 << 1);        //clear rts

delay_1s();             //delay 1 second

(UART1_BaseAddr + UART_MCR) &= ~(1 << 1);    //set rts

delay_1s();            //delay 1 second

}

when i measure the UART1 RTS pin, it keep pulling low, 0V.

how i can control the UART RTS pin manually by code?

do i miss-configure something in my program?

Thanks and Regards

Keldy

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Gururaja Hebbar
    Posted by Gururaja Hebbar
    on Jun 19 2012 04:36 AM
    Intellectual2535 points

    Need few infor before suggesting.

    1. Which Board?

    2. Is the pin-mux properly set for this pin

    3. Is Total number of available pins are short in case of AM335x, Pins are mux'ed between different modules and are available only in depending on few criteria (like Profile in case of EVM, ON daughter board in case of BeagleBone ...)

    Regards

    Gururaja

    Does this help with your question? If not, please send back more information. If it answers your question, please click the  Verify Answer  button.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gururaja Hebbar
    Posted by Gururaja Hebbar
    on Jun 19 2012 06:36 AM
    Intellectual2535 points

    I forgot to mention. On EVM, UART1 pins are not available on DB9 connector. They are used by Bluetooth Module

    Does this help with your question? If not, please send back more information. If it answers your question, please click the  Verify Answer  button.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Jun 19 2012 10:00 AM
    Expert1770 points

    Hi,

    i use my custom board. The UART1 tx, rx, cts, rts, are connected to RS232 transceiver, and to DB9 connector. I'm using PSP04.06.00.07, you mention about bluetooth module, do i need to disable the bluetooth module before using UART ?

    Actually i want to use Full Modem of RS232, i need include hardware flow control and software flow control in my design. But seem like linux serial driver not supported, that why i need to manually trigger the control line of RS232.

    UART1: tx, rx , cts, rts pin mux select is mode 0

    UART1: ri, dcd , dsr, dtr pin mux select is mode 4

    is there any better idea rather than trigger the line manually?

    Thanks and Regards

    Keldy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gururaja Hebbar
    Posted by Gururaja Hebbar
    on Jun 20 2012 06:46 AM
    Intellectual2535 points

    1. in 07 release code, Bluetooth module uses uart1 port. Disable Bluetooth init function from board-am335x.c (mmc2_wl12xx_init, uart1_wl12xx_init & wl12xx_init)

    2. Linux supports UART flow control. use stty command to enable hw flow control.

    Does this help with your question? If not, please send back more information. If it answers your question, please click the  Verify Answer  button.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Jun 20 2012 10:19 AM
    Expert1770 points

    Hi,

    i use command "stty -F /dev/ttyO1 crtscts" to enable RTS/CTS hardware flow control, UART1 still can sending out data athough the CTS line not asserted by a RS232 device, no matter what hardware flow control setting i use on the RS232 device, let say DTR/DSR flow control, the UART1 still transmit data sucessfully. seem like UART1 dont care the RTS, CTS, DTR, DSR lines.

    Plus, do linux have prepare an option to enable DTR/DSR flow control by command stty?

    some linux forum said linux not support DTR/DSR flow control, is it true?

    after i go through the AM335x TRM, there is no configuration for DTR/DSR, only have RTS/CTS and Ixon/ixoff flow control.

    Thanks and Regards

    Keldy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David38506
    Posted by David38506
    on Aug 10 2012 13:31 PM
    Intellectual260 points

    Keldy,

     

    We are experiencing the very same problem.

    Custom board w/ Beaglebone as guide. Added standard, non-bluetooth UART1 pinmux to kernel init. Set app code and minicom terminal with hardware flow control and communication is fine, but no evidence of activity with a scope on the RTS/CTS lines. The other processor in or system needs hardware flow control lines to be active.

    Have you received any info or did you find a solution?

     

    Dave

    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