rs4858 2.1.0.0
|
RS485 8 Click is a compact add-on board that enables communication over an RS485 network. This board features the THVD1426, an RS485 transceiver with auto-direction control and ESD protection from Texas Instruments. The THVD1426 offers bus protection for contact discharge, air gap discharge, fast transient burst, and +/-16V bus fault protection.
We provide a library for the RS485 8 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 RS485 8 Click driver.
rs4858_cfg_setup
Config Object Initialization function. rs4858_init
Initialization function. rs4858_default_cfg
Click Default Configuration function. rs4858_generic_write
RS485 8 data writing function. rs4858_generic_read
RS485 8 data reading function. rs4858_enable_device
RS485 8 enable the device function. This example reads and processes data from RS485 8 clicks. The library also includes a function for enabling/disabling the receiver or driver and data writing or reading.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
This example demonstrates the use of the RS485 8 Click board. The app 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.