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.

EK-TM4C1294XL: How can I use UART for RS 485 Serial Communication?

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

Dear Sir,

      On my way of designing a Serial-to-Ethernet Converter using the EK-TM4D1294XL Launchpad Development Kit but from the reference manuals of doing the conversion of S2E only UART to RS232 communication protocol configurations are present. But for my application, I need to use the RS 485 protocol. Can you help me how can I configure the Microcontroller TM4C1294NCPDT so that I can use the RS 485 Serial Communication Protocol using its GPIOs.

     Thank You in Advance.

  • Hello Nagasai,

    TM4C MCU's do not natively support RS-485 protocol. You would need to get a transceivers device in between your RS-485 bus and the TM4C. TI makes such products, but I do not have experience with them and we do not have examples or designs to offer for that. But have a look at the products and if you hit issues with implementation that are specific to TM4C maybe we can help.

    Here is the product page for RS-485 transceivers: http://www.ti.com/interface/rs-485-rs-422/overview.html

  • hi

    I worked with RS 485 SN65HVD1782. I can convert TTL to RS 485 without any problem but my query is all about the dedicated GPIO pins which are being used for Enabling the Microcontroller and TX, RX in RS 485. 

    I will be requiring 2 TTL ports for the same.

    And which GPIO pin should I be using for enabling the RS 485 communication and how can I configure that? 

    And Also do TM4C provide the firmware for ease to convert my ethernet data to serial ?

    Thanks

  • Hello Nagasai,

    We do not have example code for that RS-485 module, but as far as GPIO selection goes, that's really up to you. I would recommend using the same port per device for coding simplicity, but beyond that you have free reign to choose based on your other needs.

    As far as Ethernet to Serial goes, we have examples in TivaWare for this like enet_s2e which can be found in examples/boards/ek-tm4c1294xl folder of your TivaWare install, project folder titled 'enet_s2e'.

    Here is a short description of the project:

    //! The S2E application implements a serial-to-Ethernet module that provides a
    //! means to access the UART port on a TM4C129x device via an Ethernet link.
    //! The UART can be connected to the UART on a non-networked device.  This can
    //! be useful to overcome limitations such as adding multiple serial devices to
    //! a shared network and inability to access the device from long distances
    //! without modifying the serial device.  Telnet protocol is used to transfer
    //! the serial data over Ethernet.  Two Serial-to-Telnet ports are implemented.