mux5 2.1.0.0
|
MUX 5 Click is a compact add-on board that contains a precise multiplexing solution. This board features the MAX14661, a serially controlled, dual-channel analog multiplexer from Analog Devices, allowing any of the 16 pins to be connected to either common pin simultaneously in any combination. The MAX14661 features Beyond-the-Rails™ capability that allows ±5.5V signals to be passed with any supply configuration alongside a configurable host interface that supports SPI and I2C serial communications. Both modes provide individual control of each independent switch so that any combination of switches can be applied.
We provide a library for the MUX 5 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 MUX 5 Click driver.
mux5_cfg_setup
Config Object Initialization function. mux5_init
Initialization function. mux5_default_cfg
Click Default Configuration function. mux5_i2c_write_register
This function writes a desired data to the selected register by using I2C serial interface. mux5_i2c_read_register
This function reads data from the selected register by using I2C serial interface. mux5_set_channels_state
This function sets a desired ch_state of the channels selected with ch_mask. This example demonstrates the use of MUX 5 click board by mapping the common connection A and B to different channels every 5 seconds.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Maps the common connection A and B to different channels every 5 seconds, and displays the channels state 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.