# Title: Analog MUX 2 Click Board™ ## Description: How Does The Analog MUX 2 Click Board™ Work? The Analog MUX 2 Click Board™ is based on the ADG728, a low voltage, CMOS 8-channel analogue matrix switch with a serially controlled 2-wire interface from Analog Devices. The ADG728 can operate equally well as either multiplexer, demultiplexer, or switch array, providing more flexibility. It also features a low on-resistance closely matched between switches and very flat over the full signal range. During the Power-Up of the ADG728, all switching channels will be in the OFF condition, and the internal shift register will contain all zeros. All channels exhibit 'break-before-make' switching action preventing momentary shorting when switching channels. Each bit of the 8-bit serial word corresponds to one switch of the device. Internal switching channels are independently controlled by an individual bit, providing an option of having any, all, or none of the switches activated. All of the input channels of the multiplexer can be easily connected to a 9 pole spring action block terminal, without having to use any additional tools, such as screwdrivers, while the output pin from the multiplexer is routed to the AN pin on the mikroBUS™ socket. The Analog MUX 2 Click Board™ communicates with MCU using the standard I2C 2-Wire interface with a frequency of up to 400kHz. It also has two address pins (A0 and A1) programmed by the user to determine the value of the last two LSBs of the slave address, selected by onboard SMD jumpers labelled as ADDR SEL to an appropriate position marked as 0 and 1, allowing selection of the slave address LSBs. Also, this Click board™ has a Reset pin routed to the RST pin on the mikroBUS™ socket, which clears the input register and turns all switches to the OFF condition. When changing the switch conditions, a new 8-bit word is written to the input shift register. The ADG728 compares the state of switches from the previous write cycle to minimize glitches on the switches output. This can be achieved if the switch is already in the ON condition and is required to stay ON. The Analog MUX 2 Click Board™ is designed to operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. It allows for both 3.3V and 5V capable MCUs to use the I2C communication lines properly. However, the Click board™ comes equipped with a library that contains functions and an example code that can be used, as a reference, for further development. SPECIFICATIONS Type Port expander Applications Can be used for a wide range of applications, from industrial and instrumentation to medical, consumer, communications, and automotive systems. On-board modules ADG728 - low voltage, CMOS 8-channel analogue matrix switch with a serially controlled 2-wire interface from Analog Devices Key Features 8-to-1 matrix switch, low on-resistance, 'Break-Before-Make' switching action, serially controlled, and more. Interface Analog, I2C Compatibility mikroBUS Click board size L (57.15 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout of the Analog MUX 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes Analog Signal AN 1 AN PWM 16 NC Reset RST 2 RST INT 15 NC NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 SCL I2C Clock NC 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 ADDR SEL Left I2C Address Selection 0/1: Left position 0, Right position 1 ANALOG MUX 2 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage 3.3 - 5 V Analog Input Signal Range 0 - 5 V On-Resistance - 6 12 Ω Operating Temperature Range -40 +25 +85 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Analog Devices, Click Board, Interface, Measurement, MikroE, Mixed Signal, Port Expander ## Price range: 15.4 - 15.4 GBP ## Link: https://thedebugstore.com/products/mikroe-4468-analog-mux-2-click-board-uk ## Compare-at price range: 22.0 - 22.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Analog Devices Development Boards and Support Tools | Debug Store](https://thedebugstore.com/a/llms/collections/analog-devices-device-support-uk) - [Mixed Signal Click Boards™](https://thedebugstore.com/a/llms/collections/mixed-signal-click-boards-catalogue-uk) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Interface Click Boards™](https://thedebugstore.com/a/llms/collections/interface-click-boards-catalogue) - [Port Expander Click Boards™](https://thedebugstore.com/a/llms/collections/port-expander-click-boards-catalogue) - [Measurements Click Boards™](https://thedebugstore.com/a/llms/collections/measurement-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-4468, Available: yes, Inventory: 3 ## Metafields - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Analog Mux 2 Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_fr_currency: EUR - amazon_es_currency: EUR - amazon_nl_currency: EUR - amazon_it_currency: EUR - amazon_se_curency: SEK - amazon_product_id: 8606027381720 - amazon_product_id_type: EAN - amazon_update: Update - title_tag: MikroE Analog MUX 2 Click Board™ (MIKROE-4468) - backorder_label: If no stock shown above, check availability - mpn: MIKROE-4468 - badge:
- widget:The Analog MUX 2 Click Board™ is based on the ADG728, a low voltage, CMOS 8-channel analogue matrix switch with a serially controlled 2-wire interface from Analog Devices. The ADG728 can operate equally well as either multiplexer, demultiplexer, or switch array, providing more flexibility. It also features a low on-resistance closely matched between switches and very flat over the full signal range. During the Power-Up of the ADG728, all switching channels will be in the OFF condition, and the internal shift register will contain all zeros. All channels exhibit 'break-before-make' switching action preventing momentary shorting when switching channels.

Each bit of the 8-bit serial word corresponds to one switch of the device. Internal switching channels are independently controlled by an individual bit, providing an option of having any, all, or none of the switches activated. All of the input channels of the multiplexer can be easily connected to a 9 pole spring action block terminal, without having to use any additional tools, such as screwdrivers, while the output pin from the multiplexer is routed to the AN pin on the mikroBUS™ socket.
The Analog MUX 2 Click Board™ communicates with MCU using the standard I2C 2-Wire interface with a frequency of up to 400kHz. It also has two address pins (A0 and A1) programmed by the user to determine the value of the last two LSBs of the slave address, selected by onboard SMD jumpers labelled as ADDR SEL to an appropriate position marked as 0 and 1, allowing selection of the slave address LSBs. Also, this Click board™ has a Reset pin routed to the RST pin on the mikroBUS™ socket, which clears the input register and turns all switches to the OFF condition.
When changing the switch conditions, a new 8-bit word is written to the input shift register. The ADG728 compares the state of switches from the previous write cycle to minimize glitches on the switches output. This can be achieved if the switch is already in the ON condition and is required to stay ON.
The Analog MUX 2 Click Board™ is designed to operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. It allows for both 3.3V and 5V capable MCUs to use the I2C communication lines properly. However, the Click board™ comes equipped with a library that contains functions and an example code that can be used, as a reference, for further development.
| Type | Port expander |
| Applications | Can be used for a wide range of applications, from industrial and instrumentation to medical, consumer, communications, and automotive systems. |
| On-board modules | ADG728 - low voltage, CMOS 8-channel analogue matrix switch with a serially controlled 2-wire interface from Analog Devices |
| Key Features | 8-to-1 matrix switch, low on-resistance, 'Break-Before-Make' switching action, serially controlled, and more. |
| Interface | Analog, I2C |
| Compatibility | mikroBUS |
| Click board size | L (57.15 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout of the Analog MUX 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| Analog Signal | AN | 1 | AN | PWM | 16 | NC | |
| Reset | RST | 2 | RST | INT | 15 | NC | |
| NC | 3 | CS | RX | 14 | NC | ||
| NC | 4 | SCK | TX | 13 | NC | ||
| NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
| NC | 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 |
| 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 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Supply Voltage | 3.3 | - | 5 | V |
| Analog Input Signal Range | 0 | - | 5 | V |
| On-Resistance | - | 6 | 12 | Ω |
| Operating Temperature Range | -40 | +25 | +85 | °C |
We provide a library for the Analog MUX 2 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.
This library contains API for the Analog MUX 2 Click Board™ driver.
void analogmux2_cfg_setup ( analogmux2_cfg_t *cfg ); - Config Object Initialization function.ANALOGMUX2_RETVAL analogmux2_init ( analogmux2_t *ctx, analogmux2_cfg_t *cfg ); - Initialization function.void analogmux2_default_cfg ( analogmux2_t *ctx ); - Click Default Configuration function.This application controls the multiplexing of a single input channel with an eight-channel matrix switch.
The demo application is composed of two sections :
void application_task ( void ) {
for ( uint8_t ch_pos = ANALOGMUX2_SET_CHANNEL_0; ch_pos <= ANALOGMUX2_SET_CHANNEL_7; ch_pos++ ) {
analogmux2_set_channel( &analogmux2, ch_pos );
Delay_ms( 3000 );
uint16_t analogmux2_an_value = 0;
log_printf( &logger, " CHANNEL : AN%u rn", ( uint16_t ) analogmux2_get_channel( &analogmux2 ) );
log_printf( &logger, "- - - - - - - - - - - - - rn" );
if ( analogmux2_read_an_pin_value ( &analogmux2, &analogmux2_an_value ) != ADC_ERROR ) {
log_printf( &logger, " ADC Value : %urn", analogmux2_an_value );
}
float analogmux2_an_voltage = 0;
if ( analogmux2_read_an_pin_voltage ( &analogmux2, &analogmux2_an_voltage ) != ADC_ERROR ) {
log_printf( &logger, " AN Voltage : %.3f V rn", analogmux2_an_voltage );
}
log_printf( &logger, "-------------------------rn" );
}
}
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:
Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
The Analog MUX 2 Click Board™ is supported with mikroSDK - MikroElektronika 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.
- condition: new - custom_product: false - mpn: MIKROE-4468 - google_product_category: Electronics - custom_label_0: Click Board - key_feature_2: 8-to-1 matrix switch, low on-resistance, ‘Break-Before-Make’ switching action, serially controlled, and more. - key_feature_3: Based on the ADG728 - low voltage, CMOS 8-channel analog matrix switch with a serially controlled 2-wire interface from Analog Devices - key_feature_4: Can be used for a wide range of applications, from industrial and instrumentation to medical, consumer, communications, and automotive systems. - key_feature_5: mikroBUS: I2C and Analogue Interfaces - device_vendor: Analog Devices Inc. - device_type: ADG728BRUZ - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: Analog MUX 2 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545314493"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Analog MUX 2 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Analog MUX 2 Click Board™","bold":true},{"type":"text","value":" is based on the ADG728, a low voltage, CMOS 8-channel analogue matrix switch with a serially controlled 2-wire interface from Analog Devices. The ADG728 can operate equally well as either multiplexer, demultiplexer, or switch array, providing more flexibility. It also features a low on-resistance closely matched between switches and very flat over the full signal range. During the Power-Up of the ADG728, all switching channels will be in the OFF condition, and the internal shift register will contain all zeros. All channels exhibit 'break-before-make' switching action preventing momentary shorting when switching channels."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"Each bit of the 8-bit serial word corresponds to one switch of the device. Internal switching channels are independently controlled by an individual bit, providing an option of having any, all, or none of the switches activated. All of the input channels of the multiplexer can be easily connected to a 9 pole spring action block terminal, without having to use any additional tools, such as screwdrivers, while the output pin from the multiplexer is routed to the AN pin on the mikroBUS™ socket."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Analog MUX 2 Click Board™","bold":true},{"type":"text","value":" communicates with MCU using the standard I2C 2-Wire interface with a frequency of up to 400kHz. It also has two address pins (A0 and A1) programmed by the user to determine the value of the last two LSBs of the slave address, selected by onboard SMD jumpers labelled as ADDR SEL to an appropriate position marked as 0 and 1, allowing selection of the slave address LSBs. Also, this Click board™ has a Reset pin routed to the RST pin on the mikroBUS™ socket, which clears the input register and turns all switches to the OFF condition."}]},{"type":"paragraph","children":[{"type":"text","value":"When changing the switch conditions, a new 8-bit word is written to the input shift register. The ADG728 compares the state of switches from the previous write cycle to minimize glitches on the switches output. This can be achieved if the switch is already in the ON condition and is required to stay ON."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Analog MUX 2 Click Board™","bold":true},{"type":"text","value":" is designed to operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. It allows for both 3.3V and 5V capable MCUs to use the I2C communication lines properly. However, the Click board™ comes equipped with a library that contains functions and an example code that can be used, as a reference, for further development."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nPort expander\nApplications\nCan be used for a wide range of applications, from industrial and instrumentation to medical, consumer, communications, and automotive systems.\nOn-board modules\nADG728 - low voltage, CMOS 8-channel analogue matrix switch with a serially controlled 2-wire interface from Analog Devices\nKey Features\n8-to-1 matrix switch, low on-resistance, 'Break-Before-Make' switching action, serially controlled, and more.\nInterface\nAnalog, I2C\nCompatibility\nmikroBUS\nClick board size\nL (57.15 x 25.4 mm)\nInput Voltage\n3.3V or 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"Analog MUX 2 Click Board™","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nAnalog Signal\nAN\n1\nAN\nPWM\n16\nNC\nReset\nRST\n2\nRST\nINT\n15\nNC\nNC\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nSCL\nI2C Clock\nNC\n6\nMOSI\nSDA\n11\nSDA\nI2C Data\nPower Supply\n3.3V\n7\n3.3V\n5V\n10\n5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nLD1\nPWR\n-\nPower LED Indicator\nJP1\nVCC SEL\nLeft\nLogic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V\nJP2\nADDR SEL\nLeft\nI2C Address Selection 0/1: Left position 0, Right position 1"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ANALOG MUX 2 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage\n3.3\n-\n5\nV\nAnalog Input Signal Range\n0\n-\n5\nV\nOn-Resistance\n-\n6\n12\nΩ\nOperating Temperature Range\n-40\n+25\n+85\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The Analog MUX 2 Click Board™ is a compact add-on board that switches one of the eight inputs to one output. This board features the ADG728, a low voltage, CMOS 8-channel analogue matrix switch with a serially controlled 2-wire interface from Analog Devices. The ADG728 can operate equally well as either multiplexer, demultiplexer, or switch array easily connected to a nine-pole spring action block terminal. It provides flexibility and features a low on-resistance closely matched between switches and flat over the entire signal range. This Click Board™ is suitable for various applications, from industrial and instrumentation to medical, consumer, communications, and automotive systems.
The Analog MUX 2 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.