SPMA072 March 2015 TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD
Some legacy products may only contain a serial port and accessing such products is increasingly becoming a challenge due to the inability to add multiple such products to a shared network and the inability to access the legacy product from long distances. A serial-to-Ethernet converter provides a simple solution to solve the above challenges. The software described in this application report allows an Ethernet-based TM4C129x microcontroller to be used as a serial-to-Ethernet converter. TM4C129x microcontroller is ideally suited for this application due to the integration of MAC and PHY on the microcontroller along with on-chip voltage regulator. This allows quicker time-to-market and cost savings. The software uses FreeRTOS to schedule the various tasks and runs out of the box on an EK-TM4C1294XL board.
Project collateral and source code discussed in this application report can be downloaded from the following URL: http://www.ti.com/lit/zip/spma072.
Code Composer Studio, Tiva are trademarks of Texas Instruments.
Keil is a registered trademark of ARM Limited.
IAR is a trademark of IAR Systems AB.
All other trademarks are the property of their respective owners.
When a legacy product only contains a serial port for configuration or control, continuing to access the legacy product through the serial interface can become challenging over time. The following are the challenges of using a serial port:
Using Ethernet in place of the serial port provides the following benefits:
The software described in this application report (enet_s2e) allows an Ethernet-enabled TM4C129x microcontroller to be used as a serial-to-Ethernet converter. By connecting a serial-to-Ethernet converter to the serial port of a legacy product, it can be given the ability to operate on the Ethernet without requiring any changes to the existing hardware or software. This is especially useful when the legacy product cannot be modified (such as in the case of third-party products).
The software works out of the box on an EK-TM4C1294XL board. With minor modifications, the software can run on the DK-TM4C129X board. For details, see Section 3.2.
FreeRTOS has been used for scheduling the various tasks. Although an RTOS is not a requirement for this application, it has been used to make the application easily scalable.