# Title: MUX 4 Click Board™ ## Description: How Does The MUX 4 Click Board™ Work? The MUX 4 Click Board™ as its foundation uses the 74HC4851, a precise 8-channel analog multiplexer/demultiplexer from Nexperia USA Inc. The 74HC4851 comes with eight independent input/output channels labeled from CH1 to CH8 that accept analog and digital signals of any voltage up to 5V. Compared to its predecessors, the 74HC4851 is better to use for the simple reason that it has a higher tolerance to a disturbance on channels that are not connected. Thanks to its characteristic of being both a multiplexer and a demultiplexer, the signals can travel in both directions. The injection-current effect control, which is integrated inside the 74HC4851, allows signals at disabled analog input channels to exceed the supply voltage without affecting the signal of the enabled analog channel. This feature eliminates the need for external diode/resistor networks typically used to keep the analog channel signals within the supply-voltage range. MUX 4 Click communicates with MCU using several GPIO pins. With EN pin, routed to the CS pin on the mikroBUS™ socket, is set to its low logic state, one of the eight switches is selected by three pins labeled as S0, S1, and S2 routed to the RST, PWM, and INT pins on the mikroBUS™ socket. With EN pin is set to its high logic state, all switches are in the high-impedance OFF-state, independent of S0 to S2 pins. In addition to its eight independent input/output pins, the 74HC4851 also has a common input/output pin where it is possible to select the signal input to a given pin, more precisely, whether the signal will be brought externally from the terminal labeled as I/O or from mikroBUS™ socket AN pin. Selection can be performed by onboard SMD jumper labeled as I/O SEL to an appropriate position marked as AN and EXT. The MUX 4 Click comes equipped with one nine-position spring terminal for all input/output signals, making all wire connections reliable and straightforward. The MUX 4 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it allows 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 a wide range of analog or digital mux/demux applications, from industrial and instrumentation, consumer, communications, and automotive systems On-board modules 74HC4851 - precise 8-channel analog multiplexer/demultiplexer from Nexperia USA Inc Key Features Low power consumption, injection-current effect control, high speed, pin-controllable, eight channels, common I/O channel signal selection, and more Interface Analog,GPIO 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 on MUX 4 Click 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 S0 Channel Selection Channel Selection S2 2 RST INT 15 S1 Channel Selection Enable EN 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 NC NC 6 MOSI SDA 11 NC 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 I/0 SEL Left Common I/O Channel Signal Selection AN/EXT: Left position AN, Right position EXT MUX 4 Click Electrical Specifications Description Min Typ Max Unit Supply Voltage VCC 3.3 - 5 V Input Voltage Range 0 - VCC V ON Resistance (Peak) - - 200 Ω Operating Temperature Range -40 +25 +85 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, Measurement, MikroE, Mixed Signal, Nexperia ## Price range: 5.6 - 5.6 GBP ## Link: https://thedebugstore.com/products/mikroe-4754-mux-4-click-board-uk ## Compare-at price range: 8.0 - 8.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) - [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) - [Google Shopping - invalid product](https://thedebugstore.com/a/llms/collections/google-shopping-valid-products) - [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) - [Nexperia Device Support: Development Boards & Tools | Debug Store](https://thedebugstore.com/a/llms/collections/nexperia-device-support) - [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-4754, Available: yes, Inventory: 1 ## Metafields - title_tag: MikroE MUX 4 Click Board™ (MIKROE-4754) - description_tag: The MUX 4 Click Board™ is a compact add-on board that contains a precise analog multiplexing IC. This board features the 74HC4851, 8-channel analog multiplexer/demultiplexer with injection-current effect control from Nexperia USA Inc. Available from Debug Store UK. - badge:
- widget:The MUX 4 Click Board™ as its foundation uses the 74HC4851, a precise 8-channel analog multiplexer/demultiplexer from Nexperia USA Inc. The 74HC4851 comes with eight independent input/output channels labeled from CH1 to CH8 that accept analog and digital signals of any voltage up to 5V. Compared to its predecessors, the 74HC4851 is better to use for the simple reason that it has a higher tolerance to a disturbance on channels that are not connected. Thanks to its characteristic of being both a multiplexer and a demultiplexer, the signals can travel in both directions.

The injection-current effect control, which is integrated inside the 74HC4851, allows signals at disabled analog input channels to exceed the supply voltage without affecting the signal of the enabled analog channel. This feature eliminates the need for external diode/resistor networks typically used to keep the analog channel signals within the supply-voltage range.
MUX 4 Click communicates with MCU using several GPIO pins. With EN pin, routed to the CS pin on the mikroBUS™ socket, is set to its low logic state, one of the eight switches is selected by three pins labeled as S0, S1, and S2 routed to the RST, PWM, and INT pins on the mikroBUS™ socket. With EN pin is set to its high logic state, all switches are in the high-impedance OFF-state, independent of S0 to S2 pins.
In addition to its eight independent input/output pins, the 74HC4851 also has a common input/output pin where it is possible to select the signal input to a given pin, more precisely, whether the signal will be brought externally from the terminal labeled as I/O or from mikroBUS™ socket AN pin. Selection can be performed by onboard SMD jumper labeled as I/O SEL to an appropriate position marked as AN and EXT. The MUX 4 Click comes equipped with one nine-position spring terminal for all input/output signals, making all wire connections reliable and straightforward.
The MUX 4 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it allows 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.
| Type | DAC |
| Applications | Can be used for a wide range of analog or digital mux/demux applications, from industrial and instrumentation, consumer, communications, and automotive systems |
| On-board modules | 74HC4851 - precise 8-channel analog multiplexer/demultiplexer from Nexperia USA Inc |
| Key Features | Low power consumption, injection-current effect control, high speed, pin-controllable, eight channels, common I/O channel signal selection, and more |
| Interface | Analog,GPIO |
| Compatibility | mikroBUS |
| Click board size | M (42.9 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout on MUX 4 Click 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 | S0 | Channel Selection |
| Channel Selection | S2 | 2 | RST | INT | 15 | S1 | Channel Selection |
| Enable | EN | 3 | CS | RX | 14 | NC | |
| NC | 4 | SCK | TX | 13 | NC | ||
| NC | 5 | MISO | SCL | 12 | NC | ||
| NC | 6 | MOSI | SDA | 11 | NC | ||
| 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 | I/0 SEL | Left | Common I/O Channel Signal Selection AN/EXT: Left position AN, Right position EXT |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Supply Voltage VCC | 3.3 | - | 5 | V |
| Input Voltage Range | 0 | - | VCC | V |
| ON Resistance (Peak) | - | - | 200 | Ω |
| Operating Temperature Range | -40 | +25 | +85 | °C |
We provide a library for the MUX 4 Click Board™ 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 4 Click driver.
mux4_cfg_setup - Config Object Initialization function.mux4_init - Initialization function.This example demonstrates the use of MUX 4 click board.
The demo application is composed of two sections :
void application_task ( void )
{
float mux4_an_voltage = 0;
for ( uint8_t cnt = MUX4_SELECT_INPUT_1; cnt <= MUX4_SELECT_INPUT_8; cnt++ )
{
mux4_select_input( &mux4, cnt );
Delay_ms( 10 );
if ( ADC_ERROR != mux4_read_an_pin_voltage ( &mux4, &mux4_an_voltage ) )
{
log_printf( &logger, " CH%u Voltage : %.3f Vrn", ( uint16_t ) cnt, mux4_an_voltage );
}
}
log_printf( &logger, " ----------------------------rn" );
Delay_ms( 1000 );
}
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 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.
This 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.
- manufacturer: Mikroelektronika d.o.o. - condition: new - custom_product: false - mpn: MIKROE-4754 - google_product_category: Electronics - custom_label_0: Click Board - attachments: [{"download_file":[{"download_file":"MUX 4 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Nexperia 74HC4851 8-Channel Analogue Multiplexer/Demultoplexer Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - device_vendor: Nexperia USA Inc. - device_type: 74HC4851PW,118 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: MUX 4 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 MUX 4 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The"},{"type":"text","value":" MUX 4 Click Board™","bold":true},{"type":"text","value":" as its foundation uses the 74HC4851, a precise 8-channel analog multiplexer/demultiplexer from Nexperia USA Inc. The 74HC4851 comes with eight independent input/output channels labeled from CH1 to CH8 that accept analog and digital signals of any voltage up to 5V. Compared to its predecessors, the 74HC4851 is better to use for the simple reason that it has a higher tolerance to a disturbance on channels that are not connected. Thanks to its characteristic of being both a multiplexer and a demultiplexer, the signals can travel in both directions."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"The injection-current effect control, which is integrated inside the 74HC4851, allows signals at disabled analog input channels to exceed the supply voltage without affecting the signal of the enabled analog channel. This feature eliminates the need for external diode/resistor networks typically used to keep the analog channel signals within the supply-voltage range."}]},{"type":"paragraph","children":[{"type":"text","value":"MUX 4 Click communicates with MCU using several GPIO pins. With EN pin, routed to the CS pin on the mikroBUS™ socket, is set to its low logic state, one of the eight switches is selected by three pins labeled as S0, S1, and S2 routed to the RST, PWM, and INT pins on the mikroBUS™ socket. With EN pin is set to its high logic state, all switches are in the high-impedance OFF-state, independent of S0 to S2 pins."}]},{"type":"paragraph","children":[{"type":"text","value":"In addition to its eight independent input/output pins, the 74HC4851 also has a common input/output pin where it is possible to select the signal input to a given pin, more precisely, whether the signal will be brought externally from the terminal labeled as I/O or from mikroBUS™ socket AN pin. Selection can be performed by onboard SMD jumper labeled as I/O SEL to an appropriate position marked as AN and EXT. The MUX 4 Click comes equipped with one nine-position spring terminal for all input/output signals, making all wire connections reliable and straightforward."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"MUX 4 Click Board™","bold":true},{"type":"text","value":" can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it allows 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."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"Specifications"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nDAC\nApplications\nCan be used for a wide range of analog or digital mux/demux applications, from industrial and instrumentation, consumer, communications, and automotive systems\nOn-board modules\n74HC4851 - precise 8-channel analog multiplexer/demultiplexer from Nexperia USA Inc\nKey Features\nLow power consumption, injection-current effect control, high speed, pin-controllable, eight channels, common I/O channel signal selection, and more\nInterface\nAnalog,GPIO\nCompatibility\nmikroBUS\nClick board size\nM (42.9 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 on MUX 4 Click 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\nS0\nChannel Selection\nChannel Selection\nS2\n2\nRST\nINT\n15\nS1\nChannel Selection\nEnable\nEN\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nNC\nNC\n6\nMOSI\nSDA\n11\nNC\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\n Description\nLD1\nPWR\n-\nPower LED Indicator\nJP1\nVCC SEL\nLeft\nLogic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V\nJP2\nI/0 SEL\nLeft\nCommon I/O Channel Signal Selection AN/EXT: Left position AN, Right position EXT"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"MUX 4 Click Electrical Specifications"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage VCC\n3.3\n-\n5\nV\nInput Voltage Range\n0\n-\nVCC\nV\nON Resistance (Peak)\n-\n-\n200\nΩ\nOperating Temperature Range\n-40\n+25\n+85\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The MUX 4 Click Board™ is a compact add-on board that contains a precise analog multiplexing IC. This board features the 74HC4851, 8-channel analog multiplexer/demultiplexer with injection-current effect control from Nexperia USA Inc. This Click Board™ comes with three digital select inputs, active-LOW enable input, eight independent inputs/outputs, and a common input/output. It also features an injection-current effect control, which has excellent value in automotive applications where voltages above the supply voltage are common. This Click Board™ is suitable for a wide range of analog or digital mux/demux applications, from industrial and instrumentation, consumer, communications, and automotive systems.
The MUX 4 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.