We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2021-01-29
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Power Switch
Downloaded: 2112 times
Not followed.
License: MIT license
Power MUX Click features power multiplexer that enables transition between two power supplies (such as a battery and a wall adapter), each operating at 2.8V to 5.5V and delivering up to 2A current depending on the package.
Do you want to subscribe in order to receive notifications regarding "POWER MUX click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "POWER MUX click" changes.
Do you want to report abuse regarding "POWER MUX click".
Library Description
The library covers all the necessary functions to control POWER MUX click board. POWER MUX click communicates with the target board through the RST, PWM and INT line. This library offers functions for setting D0 and D1 pins or to use predefined output from input channel 1, output from input channel 2, automatic output channel selection and disable output settings.
Key functions:
void powermux_output_input_ch_1 ( );
- Function is used to set output from input channel 1.void powermux_output_input_ch_2 ( );
- Function is used to set output from input channel 2.void powermux_auto_sel_input_ch ( );
- Function is used to set automatic output channel selection.Examples description
The application is composed of three sections :
void application_task ( )
{
mikrobus_logWrite( "No output", _LOG_LINE );
powermux_no_output( );
Delay_ms( 2000 );
mikrobus_logWrite( "Output from input channel 1", _LOG_LINE );
powermux_output_input_ch_1( );
Delay_ms( 5000 );
mikrobus_logWrite( "No output", _LOG_LINE );
powermux_no_output( );
Delay_ms( 2000 );
mikrobus_logWrite( "Output from input channel 2", _LOG_LINE );
powermux_output_input_ch_2( );
Delay_ms( 5000 );
mikrobus_logWrite( "No output", _LOG_LINE );
powermux_no_output( );
Delay_ms( 2000 );
mikrobus_logWrite( "auto select output channel", _LOG_LINE );
powermux_auto_sel_input_ch( );
Delay_ms( 5000 );
}
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.