Boost 8 click
Boost 8 Click is a compact add-on board that steps up the voltage from its input (supply) to its output (load).
click Product page
Click library
- Author : Stefan Ilic
- Date : Oct 2022.
- Type : GPIO type
Software Support
We provide a library for the Boost 8 Click 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.
Library Description
This library contains API for Boost 8 Click driver.
Standard key functions :
boost8_cfg_setup
Config Object Initialization function.
void boost8_cfg_setup(boost8_cfg_t *cfg)
Boost 8 configuration object setup function.
Boost 8 Click configuration object.
Definition boost8.h:95
boost8_init
Initialization function.
err_t boost8_init(boost8_t *ctx, boost8_cfg_t *cfg)
Boost 8 initialization function.
Boost 8 Click context object.
Definition boost8.h:84
boost8_default_cfg
Click Default Configuration function.
void boost8_default_cfg(boost8_t *ctx)
Boost 8 default configuration function.
Example key functions :
boost8_enable_positive_voltage
Enable positive voltage output function.
void boost8_enable_positive_voltage(boost8_t *ctx)
Boost 8 enable positive voltage output function.
boost8_disable_positive_voltage
Disable positive voltage output function.
void boost8_disable_positive_voltage(boost8_t *ctx)
Boost 8 disable positive voltage output function.
boost8_enable_negative_voltage
Enable negative voltage output function.
void boost8_enable_negative_voltage(boost8_t *ctx)
Boost 8 enable negative voltage output function.
Example Description
This is an example that demonstrates the use of the Boost 8 Click board.
The demo application is composed of two sections :
Application Init
Initializes EN+ and EN- pins, UART log, and performs default configuration.
{
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
if ( DIGITAL_OUT_UNSUPPORTED_PIN ==
boost8_init( &boost8, &boost8_cfg ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
log_info( &logger, " Application Task " );
}
#define BOOST8_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition boost8.h:72
void application_init(void)
Definition main.c:33
void boost8_list_of_commands(void)
Boost 8 log list of commands.
Definition main.c:139
Application Task
Waits for user input in order to determine what output should be enabled.
{
char inx;
{
switch(inx)
{
case '1' :
{
log_printf( &logger, "Turning on positive output \r\n" );
break;
}
case '2' :
{
log_printf( &logger, "Turning off positive output \r\n" );
break;
}
case '3' :
{
log_printf( &logger, "Turning on negative output \r\n" );
break;
}
case '4':
{
log_printf( &logger, "Turning off negative output \r\n" );
break;
}
case '5' :
{
log_printf( &logger, "Turning on both outputs \r\n" );
break;
}
case '6' :
{
log_printf( &logger, "Turning off both outputs \r\n" );
break;
}
default:
{
log_printf( &logger, "> Invalid command \r\n" );
break;
}
}
}
}
@ BOOST8_ERROR
Definition boost8.h:108
void boost8_disable_both_outputs(boost8_t *ctx)
Boost 8 disable both voltage outputs function.
void boost8_disable_negative_voltage(boost8_t *ctx)
Boost 8 disable negative voltage output function.
void boost8_enable_both_outputs(boost8_t *ctx)
Boost 8 enable both voltage outputs function.
void application_task(void)
Definition main.c:66
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.Boost8
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. UART terminal is available in all MikroElektronika compilers.