Implement protocol converters using MQX comm driver
Many user applications need to use communications modules on an MCU to interface with external devices. Some examples:
? Using I2C or SPI to read sampled data from a sensor
? Storing a data log regularly to a USB stick
? Transferring data via Ethernet
? Displaying real-time sensor values in a web server
Sometimes there is even a requirement that data be relayed from one communications interface to another, such as from I2C to SPI, serial to Ethernet, etc.
There are different ways to implement a protocol converter. The user can do it using only hardware by using the CPLD or FPGA to implement the required conversion logic. Alternatively the implementation can be through software alone, using an MCU equipped with communications modules such as UART, I2C, SPI, etc., and then writing the appropriate software drivers.
View the PDF document for more information.
Originally published by Freescale Semiconductor at www.freescale.com as "Using MQX Communications Drivers to Implement Protocol Converters".
Related Articles | Editor's Choice |
Visit Asia Webinars to learn about the latest in technology and get practical design tips.