This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: Sample Code for UART Modem Flow Control

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL,

Hello,

Does TI have sample code available for setting up UART Modem Flow Control? I am trying to setup a serial transmit and receive loop using the EK-TM4C1294XL Launchpad which utilizes the TM4C1294NCPDT MCU. Sample code demonstrating the setup of CTS, RTS, DSR, DTR pins would be extremely helpful. 

Regards,

Tyler

  • Hello Tyler,

    We don't have such a code example currently available. Usually I would offer to put one together but due to the upcoming holidays I would not be able to work on this until returning. I would be using an FTDI cable to put that together because the connections are not brought out on the LaunchPad ICDI but I only have a 6-pin cable so I would only be able to show CTS and RTS, not Modem mode. But the same principles would apply at least.

    In general the TivaWare Driver Library documentation has a lot of resources for showing what should be done. In addition to GPIO initialization for UART operation, they would use these functions:

    void
    UARTFlowControlSet(uint32_t ui32Base, uint32_t ui32Mode)
    
    void
    UARTModemControlSet(uint32_t ui32Base, uint32_t ui32Control)

    That might be enough for them to work with to get something running before I have the time to pick it up.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    This will help me get started. Thank you.

    Regards,

    Tyler