rstransceiver 2.1.0.0
|
RS Transceiver is a compact add-on board that offers an interface between the TTL level UART and RS-232/RS-422/RS-485 communication buses. This board features the XR34350, an RS-232/RS-422/RS-485 serial transceiver with internal termination and wide output swing from MaxLinear. Integrated cable termination and four configuration modes allow all three protocols to be used interchangeably over a single cable over the DE-9 connector. All transmitter outputs and receiver inputs feature robust ESD protection and HBM up to ±15kV.
We provide a library for the RS Transceiver Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for RS Transceiver Click driver.
rstransceiver_cfg_setup
Config Object Initialization function. rstransceiver_init
Initialization function. rstransceiver_default_cfg
Click Default Configuration function. rstransceiver_set_op_mode
RS Transceiver sets the operating mode function. rstransceiver_mode_full_duplex
RS Transceiver sets the Full-Duplex mode function. rstransceiver_device_enable
RS Transceiver enables the device function. This example reads and processes data from RS Transceiver Click board™. The library also includes a function for selecting the desired operating mode, enabling/disabling the receiver or driver and data writing or reading.
The demo application is composed of two sections :
Initialization of I2C and UART module and log UART. After driver initialization, default settings turn on the device.
This example demonstrates the use of the RS Transceiver Click board™. The app shows the device configured in loopback mode, sends a "MikroE" message, reads the received data and parses it. Results are being sent to the UART Terminal, where you can track their changes.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.