uartmux2
2.0.0.0
|
UART MUX 2 Click is a compact add-on board that enables pseudo-multidrop RS232 transmission. This board features the MAX399, a precise CMOS analog multiplexer that allows four remote RS-232 transceivers to share a single UART from Maxim Integrated. It offers fast switching speeds with a transition time of less than 250ns and low on-resistance less than 100Ω while retains CMOS-logic input compatibility and fast switching. Channel selection is performed through a set of specific GPIO pins and possesses additional functionality such as the manual ON/OFF feature.
We provide a library for the UartMux2 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 UartMux2 Click driver.
uartmux2_cfg_setup
Config Object Initialization function. uartmux2_init
Initialization function. uartmux2_default_cfg
Click Default Configuration function. uartmux2_set_operation_mode
UART MUX 2 set operation mode function. uartmux2_set_channel
UART MUX 2 set channel function. uartmux2_send_data
UART MUX 2 data writing function. This library contains API for UART MUX 2 Click driver. This example transmits/receives and processes data from UART MUX 2 clicks. The library initializes and defines the UART bus drivers to transmit or receive data.
The demo application is composed of two sections :
Initializes driver and set UART channel module.
Transmitter/Receiver task depend on uncommented code. Receiver logging each received byte to the UART for data logging, while transmitted send messages every 2 seconds.
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.