uartmux4 2.1.0.0
|
UART MUX 4 Click is a compact add-on board that switches the UART pins (RX and TX)
from the mikroBUS™ socket to one of the two available outputs. This board features the 74HC4066D, a quad single-pole, single-throw analog switch from Nexperia. The UART MUX 4 Click allows you to switch from one multiplexed UART to another easily, but not both simultaneously.
We provide a library for the UART MUX 4 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 UART MUX 4 Click driver.
uartmux4_cfg_setup
Config Object Initialization function. uartmux4_init
Initialization function. uartmux4_enable_uart1
UART MUX 4 enable the UART 1 function. uartmux4_enable_uart2
UART MUX 4 enable the UART 2 function. This example demonstrates the use of UART MUX 4 click board by processing the incoming data and displaying them on the USB UART.
The demo application is composed of two sections :
Initializes the UART driver and additional pins.
Writes demo message, echos it back, processes all incoming data and displays them on the USB UART.
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.