# Title: Power MUX 2 Click Board™ ## Description: How Does The Power MUX 2 Click Board™ Work? The Power MUX 2 Click Board™ as its foundation uses the TPS2120, a highly configurable power mux with an automatic switchover feature from Texas Instruments. This dual-input single-output power multiplexer prioritizes the main supply of 12V when present and quickly switches to an auxiliary supply of 5 V when the main supply drops. A priority voltage supervisor is used to select an input source. During switchover, the voltage drop is controlled to block reverse current before it happens and provide uninterrupted power to the load with minimal hold-up capacitance. If one of the input power supplies were to fail, the system needs to automatically switchover to a backup power source without interrupting regular operation. When the 12V supply on IN1 drops below 7.6V, the device will automatically switch to the 5V auxiliary supply on IN2. When the 12V supply returns, it will become the output supply again. Furthermore, the voltage drop on the output should be minimal, providing the output with uninterrupted redundant power. The Power MUX 2 Click Board™ communicates with MCU through the 3-Wire SPI serial interface using the TPL0501, an onboard 256-taps digital potentiometer from Texas Instruments. This way, the TPL0501 serves a current limiter that adjusts the output current of the TPS2120 instead of an external resistor. Current limiting can be used during Startup and switchover to protect against overcurrent events and protect the device during regular operation. As an additional feature, this Click board™ also has two red LED indicators labelled as IN1 and IN2, which visually indicate to the user the fact which one of the two power supplies, IN1 or IN2, is located on the output more precisely on the output connector of the Click board, labelled as OUT. The Power MUX 2 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 properly use the SPI communication lines. 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 Power Switch Applications Can be used for applications as a backup and standby power, input source selection, and various systems having multiple power sources. On-board modules TPS2120 - highly configurable power mux with an automatic switchover feature from Texas Instruments TPL0501 - 256-taps digital potentiometer from Texas Instruments Key Features Low power consumption, automatic switchover, output current limit, uninterrupted power solution, and more. Interface 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 Power MUX 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 NC SPI Chip Select CS 3 CS RX 14 NC SPI Clock SCK 4 SCK TX 13 NC NC 5 MISO SCL 12 NC SPI Data IN SDI 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 LD3 IN1 - Primary Power Switch LED Indicator LD2 IN2 - Secondary Power Switch LED Indicator JP1 VCC SEL Left Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V POWER MUX 2 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage VCC 3.3 - 5 V Supply Voltage IN1 7.6 - 12 V Supply Voltage IN2 - 5 - V Output Voltage OUT 5 - 12 V Output Current Limit 1 - 4 A Current Limit Resistance 18 - 100 kΩ Operating Temperature Range -40 +25 +85 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Power Management, Power Switch ## Price range: 23.8 - 23.8 GBP ## Link: https://thedebugstore.com/products/mikroe-4575-power-mux-2-click-board-uk ## Compare-at price range: 34.0 - 34.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) - [Power Management Click Boards™](https://thedebugstore.com/a/llms/collections/power-management-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Power Switch Click Boards™](https://thedebugstore.com/a/llms/collections/power-switch-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-4575, Available: yes, Inventory: 1 ## Metafields - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Power 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_type: EAN - amazon_update: Update - title_tag: MikroE Power MUX 2 Click Board™ (MIKROE-4575) - backorder_label: If no stock shown above, check availability - mpn: MIKROE-4575 - badge:
- widget:The Power MUX 2 Click Board™ as its foundation uses the TPS2120, a highly configurable power mux with an automatic switchover feature from Texas Instruments. This dual-input single-output power multiplexer prioritizes the main supply of 12V when present and quickly switches to an auxiliary supply of 5 V when the main supply drops. A priority voltage supervisor is used to select an input source. During switchover, the voltage drop is controlled to block reverse current before it happens and provide uninterrupted power to the load with minimal hold-up capacitance.

If one of the input power supplies were to fail, the system needs to automatically switchover to a backup power source without interrupting regular operation. When the 12V supply on IN1 drops below 7.6V, the device will automatically switch to the 5V auxiliary supply on IN2. When the 12V supply returns, it will become the output supply again. Furthermore, the voltage drop on the output should be minimal, providing the output with uninterrupted redundant power.
The Power MUX 2 Click Board™ communicates with MCU through the 3-Wire SPI serial interface using the TPL0501, an onboard 256-taps digital potentiometer from Texas Instruments. This way, the TPL0501 serves a current limiter that adjusts the output current of the TPS2120 instead of an external resistor. Current limiting can be used during Startup and switchover to protect against overcurrent events and protect the device during regular operation.
As an additional feature, this Click board™ also has two red LED indicators labelled as IN1 and IN2, which visually indicate to the user the fact which one of the two power supplies, IN1 or IN2, is located on the output more precisely on the output connector of the Click board, labelled as OUT. The Power MUX 2 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 properly use the SPI communication lines. 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 | Power Switch |
| Applications | Can be used for applications as a backup and standby power, input source selection, and various systems having multiple power sources. |
| On-board modules | TPS2120 - highly configurable power mux with an automatic switchover feature from Texas Instruments TPL0501 - 256-taps digital potentiometer from Texas Instruments |
| Key Features | Low power consumption, automatic switchover, output current limit, uninterrupted power solution, and more. |
| Interface | SPI |
| Compatibility | mikroBUS |
| Click board size | M (42.9 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout of the Power MUX 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| NC | 1 | AN | PWM | 16 | NC | ||
| NC | 2 | RST | INT | 15 | NC | ||
| SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
| SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
| NC | 5 | MISO | SCL | 12 | NC | ||
| SPI Data IN | SDI | 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 |
| LD3 | IN1 | - | Primary Power Switch LED Indicator |
| LD2 | IN2 | - | Secondary Power Switch LED Indicator |
| JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Supply Voltage VCC | 3.3 | - | 5 | V |
| Supply Voltage IN1 | 7.6 | - | 12 | V |
| Supply Voltage IN2 | - | 5 | - | V |
| Output Voltage OUT | 5 | - | 12 | V |
| Output Current Limit | 1 | - | 4 | A |
| Current Limit Resistance | 18 | - | 100 | kΩ |
| Operating Temperature Range | -40 | +25 | +85 | °C |
We provide a library for the Power 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 The package Manager (recommended), downloaded from our LibStock™ or found on mikroE Github account.
This library contains API for the Power MUX 2 Click Board™ driver.
powermux2_cfg_setup - Config Object Initialization function.powermux2_init - Initialization function.powermux2_default_cfg - Click Default Configuration function.This library contains API for the Power MUX 2 Click Board™ driver. The Power MUX 2 operates in automatic switchover mode with a priority prioritizing supply 1 when present and quickly switches to supply 2 when supply 1 drops below approximately 6V.
void application_task ( void ) {
log_printf( &logger, "--------------------------rn" );
log_printf( &logger, " Resistance ~ 100 kOhm rn" );
log_printf( &logger, " Current Limit ~ 1.23 A rn" );
powermux2_set_resistance( &powermux2, 100 );
Delay_ms( 5000 );
log_printf( &logger, "--------------------------rn" );
log_printf( &logger, " Resistance ~ 50 kOhm rn" );
log_printf( &logger, " Current Limit ~ 2.25 A rn" );
powermux2_set_resistance( &powermux2, 50 );
Delay_ms( 5000 );
}
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:
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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 Power 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.
- attachments: [{"download_file":[{"download_file":"Power MUX 2 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Texas Instruments Digital Potentiometer Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Texas Instruments TPS2120 Dual-Input Power Multiplexer Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - device_vendor: Texas Instruments - device_type: TPS2121RUXR - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: Power MUX 2 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545478333"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Power MUX 2 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Power MUX 2 Click Board™","bold":true,"italic":true},{"type":"text","value":" as its foundation uses the TPS2120, a highly configurable power mux with an automatic switchover feature from Texas Instruments. This dual-input single-output power multiplexer prioritizes the main supply of 12V when present and quickly switches to an auxiliary supply of 5 V when the main supply drops. A priority voltage supervisor is used to select an input source. During switchover, the voltage drop is controlled to block reverse current before it happens and provide uninterrupted power to the load with minimal hold-up capacitance."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"If one of the input power supplies were to fail, the system needs to automatically switchover to a backup power source without interrupting regular operation. When the 12V supply on IN1 drops below 7.6V, the device will automatically switch to the 5V auxiliary supply on IN2. When the 12V supply returns, it will become the output supply again. Furthermore, the voltage drop on the output should be minimal, providing the output with uninterrupted redundant power."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Power MUX 2 Click Board™","bold":true},{"type":"text","value":" communicates with MCU through the 3-Wire SPI serial interface using the TPL0501, an onboard 256-taps digital potentiometer from Texas Instruments. This way, the TPL0501 serves a current limiter that adjusts the output current of the TPS2120 instead of an external resistor. Current limiting can be used during Startup and switchover to protect against overcurrent events and protect the device during regular operation."}]},{"type":"paragraph","children":[{"type":"text","value":"As an additional feature, this Click board™ also has two red LED indicators labelled as IN1 and IN2, which visually indicate to the user the fact which one of the two power supplies, IN1 or IN2, is located on the output more precisely on the output connector of the Click board, labelled as OUT. The "},{"type":"text","value":"Power MUX 2 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 is allowed for both 3.3V and 5V capable MCUs to properly use the SPI communication lines. 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\nPower Switch\nApplications\nCan be used for applications as a backup and standby power, input source selection, and various systems having multiple power sources.\nOn-board modules\nTPS2120 - highly configurable power mux with an automatic switchover feature from Texas Instruments TPL0501 - 256-taps digital potentiometer from Texas Instruments\nKey Features\nLow power consumption, automatic switchover, output current limit, uninterrupted power solution, and more.\nInterface\nSPI\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 of the "},{"type":"text","value":"Power 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\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nNC\nSPI Chip Select\nCS\n3\nCS\nRX\n14\nNC\nSPI Clock\nSCK\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nNC\nSPI Data IN\nSDI\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\nDescription\nLD1\nPWR\n-\nPower LED Indicator\nLD3\nIN1\n-\nPrimary Power Switch LED Indicator\nLD2\nIN2\n-\nSecondary Power Switch LED Indicator\nJP1\nVCC SEL\nLeft\nLogic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"POWER MUX 2 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage VCC\n3.3\n-\n5\nV\nSupply Voltage IN1\n7.6\n-\n12\nV\nSupply Voltage IN2\n-\n5\n-\nV\nOutput Voltage OUT\n5\n-\n12\nV\nOutput Current Limit\n1\n-\n4\nA\nCurrent Limit Resistance\n18\n-\n100\nkΩ\nOperating Temperature Range\n-40\n+25\n+85\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The Power MUX 2 Click Board™ is a compact add-on board with a highly configurable power mux. This board features the TPS2120, a dual-input single-output power multiplexer with an automatic switchover feature from Texas Instruments. This Click Board™ prioritises the main supply when present and quickly switches to auxiliary supply when the main supply drops. During switchover, the voltage drop is controlled to block reverse current before it happens and provide uninterrupted power to the load with minimal hold-up capacitance. This Click Board™ is suitable for backup and standby power applications, input source selection, and various systems having multiple power sources.
The Power MUX 2 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a thoroughly tested product, ready to be used on a system equipped with the mikroBUS™ socket.