Carte à clic MUX 5
Carte à clic MUX 5
Key Features
- Contrôlé en série, double canal, capacité Beyond-the-Rails, interface sélectionnable, faible consommation d'énergie, hautes performances, multiplexage flexible, registres fantômes programmables permettant une mise à jour simultanée, et plus encore
- Basé sur le MAX14661 - multiplexeur analogique d'Analog Devices
- Peut être utilisé pour diverses applications de multiplexage telles que le diagnostic système, l'acquisition de données, la commutation de signaux et bien d'autres
- mikroBUS : interfaces I2C et SPI
Overview
La carte Click Board™ MUX 5 est une carte complémentaire compacte qui contient une solution de multiplexage précise. Cette carte est équipée du MAX14661, un multiplexeur analogique à double canal contrôlé en série d'Analog Devices, permettant de connecter simultanément n'importe laquelle des 16 broches à l'une ou l'autre des broches communes dans n'importe quelle combinaison. Le MAX14661 est doté de la fonctionnalité Beyond-the-Rails™ qui permet de transmettre des signaux ±5,5 V avec n'importe quelle configuration d'alimentation ainsi qu'une interface hôte configurable qui prend en charge les communications série SPI et I2C. Les deux modes offrent un contrôle individuel de chaque commutateur indépendant afin que n'importe quelle combinaison de commutateurs puisse être appliquée. Cette carte Click™ est conçue pour prendre en charge diverses applications de multiplexage telles que les diagnostics système, l'acquisition de données, la commutation de signaux et bien d'autres encore.
La carte Click Board™ MUX 5 est supportée par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette carte Click Board™ est un produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
How Does The MUX 5 Click Board™ Work?
The MUX 5 Click Board™ is based on the MAX14661, a serially controlled, dual-channel analog multiplexer from Analog Devices. It allows any of the 16 pins to be connected to any of the common pins, routed to the AN or INT pins of the mikroBUS™ socket, simultaneously in any combination. The MAX14661 features Beyond-the-Rails™ capability, which mainly simplifies an analog design by eliminating the need for multiple power rails and allows ±5.5V signals to be passed with any supply configuration. It integrates bias circuitry to switch high-voltage (±25V) signals while operating from a low-voltage supply with low on-resistance and fast bandwidth speeds. This Click board™ is ideal for audio and data multiplexing, interface termination, switching, industrial measurement, and instrumentation systems.
The MAX14661 allows using both I2C and SPI interfaces. Both modes provide individual control of each independent switch so that any combination of switches can be applied. The selection can be made by positioning SMD jumpers labelled as COMM SEL in an appropriate position. Note that all the jumpers' positions must be on the same side, or the Click board™ may become unresponsive. While the I2C interface is selected, the MAX14661 allows choosing the least significant bit (LSB) of its I2C slave address using the SMD jumper labelled ADDR SEL.
The MUX 5 Click Board™ also possesses an additional active-low shutdown pin, routed to the RST pin on the mikroBUS™ socket. When this pin is set to a low logic state, all registers are cleared, all switches are open, and the serial interface is not functional. All switch connections are open and tolerant of the full ±5.5V specified signal range. It is good to address that the MAX14661 consumes minimal power in this mode.
The MUX 5 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | DAC |
Applications | Can be used for various multiplexing applications like system diagnostics, data acquisition, signal switching, and many more |
On-board modules | MAX14661 - analog multiplexer from Analog Devices |
Key Features | Serially controlled, dual-channel, Beyond-the-Rails capability, selectable interface, low power consumption, high performance, flexible multiplexing, programmable shadow registers allow simultaneous updating, and more |
Interface | I2C,SPI |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of the MUX 5 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
B Channel Common Signal | AN | 1 | AN | PWM | 16 | NC | |
Shutdown | RST | 2 | RST | INT | 15 | INT | A Channel Common Signal |
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | SCL | I2C Clock |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | SDA | I2C Data |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2-JP6 | COMM SEL | Right | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP7 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
J1-J2 | - | Populated | MUX Channels Header |
MUX 5 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Analog Signal Range | -5.5 | - | 5.5 | V |
Software Support
We provide a library for the MUX 5 Click Board™ as well as a demo application (example), developed using MikroE compilers. The demo can run on all the main MikroE development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager(recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the MUX 5 Click Board™ driver.
Key functions
-
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 @b ch_state of the channels selected with @b ch_mask.
Example Description
This example demonstrates the use of the MUX 5 Click Board™ by mapping the common connection A and B to different channels every 5 seconds.
void application_task ( void )
{
static uint8_t ch_num = 0;
if ( MUX5_OK == mux5_set_channels_state ( &mux5, MUX5_CHANNEL_ALL, MUX5_CHANNEL_STATE_HIGH_Z ) )
{
log_printf ( &logger, " All channels disconnectedrn" );
}
Delay_ms ( 1000 );
if ( MUX5_OK == mux5_set_channels_state ( &mux5, MUX5_CHANNEL_1 << ch_num, MUX5_CHANNEL_STATE_COM_A ) )
{
log_printf ( &logger, " Channel %u connected to COM_Arn", ( uint16_t ) ( ch_num + 1 ) );
}
if ( MUX5_OK == mux5_set_channels_state ( &mux5, MUX5_CHANNEL_16 >> ch_num, MUX5_CHANNEL_STATE_COM_B ) )
{
log_printf ( &logger, " Channel %u connected to COM_Brnn", ( uint16_t ) ( 16 - ch_num ) );
}
if ( ++ch_num >= 16 )
{
ch_num = 0;
}
Delay_ms ( 4000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager(recommended), downloaded from our LibStock™ or found on MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.MUX5
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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 MikroE compilers.
MIKROSDK
The MUX 5 Click Board™ is supported with mikroSDK - MikroE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
We provide a library for the MUX 5 Click Board™ as well as a demo application (example), developed using MikroE compilers. The demo can run on all the main MikroE development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager(recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the MUX 5 Click Board™ driver.
Key functions
-
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 @b ch_state of the channels selected with @b ch_mask.
Example Description
This example demonstrates the use of the MUX 5 Click Board™ by mapping the common connection A and B to different channels every 5 seconds.
void application_task ( void )
{
static uint8_t ch_num = 0;
if ( MUX5_OK == mux5_set_channels_state ( &mux5, MUX5_CHANNEL_ALL, MUX5_CHANNEL_STATE_HIGH_Z ) )
{
log_printf ( &logger, " All channels disconnectedrn" );
}
Delay_ms ( 1000 );
if ( MUX5_OK == mux5_set_channels_state ( &mux5, MUX5_CHANNEL_1 << ch_num, MUX5_CHANNEL_STATE_COM_A ) )
{
log_printf ( &logger, " Channel %u connected to COM_Arn", ( uint16_t ) ( ch_num + 1 ) );
}
if ( MUX5_OK == mux5_set_channels_state ( &mux5, MUX5_CHANNEL_16 >> ch_num, MUX5_CHANNEL_STATE_COM_B ) )
{
log_printf ( &logger, " Channel %u connected to COM_Brnn", ( uint16_t ) ( 16 - ch_num ) );
}
if ( ++ch_num >= 16 )
{
ch_num = 0;
}
Delay_ms ( 4000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager(recommended), downloaded from our LibStock™ or found on MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.MUX5
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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 MikroE compilers.
MIKROSDK
The MUX 5 Click Board™ is supported with mikroSDK - MikroE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.