Buck 23 click
Buck 23 Click is a compact add-on board with a DC-DC power converter that steps down the voltage from its input to its output. This board features the MAX20010C, a fully-integrated, high-efficiency, synchronous, step-down converter from Analog Devices. The MAX20010C achieves 6A continuous output current over a wide input supply range from 3V to 5.5V. It offers ±2% output voltage accuracy and can operate efficiently over interface-configurable output voltage load range from 0.5V to 1.58V. The MAX20010C also offers programmable soft-start, overcurrent, and overtemperature protections.
click Product page
Click library
- Author : Stefan Filipovic
- Date : Jan 2023.
- Type : I2C type
Software Support
We provide a library for the Buck 23 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 Buck 23 Click driver.
Standard key functions :
buck23_cfg_setup
Config Object Initialization function.
void buck23_cfg_setup(buck23_cfg_t *cfg)
Buck 23 configuration object setup function.
Buck 23 Click configuration object.
Definition buck23.h:231
buck23_init
Initialization function.
err_t buck23_init(buck23_t *ctx, buck23_cfg_t *cfg)
Buck 23 initialization function.
Buck 23 Click context object.
Definition buck23.h:208
buck23_default_cfg
Click Default Configuration function.
err_t buck23_default_cfg(buck23_t *ctx)
Buck 23 default configuration function.
Example key functions :
buck23_set_vstep
This function sets the voltage output step to 10mV or 12.5mV.
err_t buck23_set_vstep(buck23_t *ctx, uint8_t vstep)
Buck 23 set vstep function.
buck23_set_vout
This function sets the voltage output.
err_t buck23_set_vout(buck23_t *ctx, uint16_t vout_mv)
Buck 23 set vout function.
buck23_get_pg_pin
This function returns the PG (power good) pin logic state.
uint8_t buck23_get_pg_pin(buck23_t *ctx)
Buck 23 get pg pin function.
Example Description
This example demonstrates the use of Buck 23 click by changing the output voltage.
The demo application is composed of two sections :
Application Init
Initializes the driver and performs the device default configuration.
{
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
if ( I2C_MASTER_ERROR ==
buck23_init( &buck23, &buck23_cfg ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
{
log_error( &logger, " Default configuration." );
for ( ; ; );
}
log_info( &logger, " Application Task " );
}
@ BUCK23_ERROR
Definition buck23.h:251
#define BUCK23_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition buck23.h:193
void application_init(void)
Definition main.c:29
Application Task
Changes the output voltage once per second and displays on the USB UART the currently set
voltage output value as well as its range and resolution. It also checks and displays the status register content and the power good pin indication.
{
uint16_t vout_mv;
uint8_t status;
{
log_printf ( &logger, " ------------------------------------\r\n" );
log_printf ( &logger, " VOUT resolution: 10mV\r\n VOUT range: 500mV to 1270mV\r\n" );
log_printf ( &logger, " ------------------------------------" );
}
{
{
log_printf ( &logger, "\r\n STATUS: 0x%.2X\r\n", ( uint16_t ) status );
}
{
log_printf ( &logger, " VOUT: %u mV\r\n", vout_mv );
}
{
log_printf ( &logger, " ERROR: No power good\r\n" );
log_printf ( &logger, " Restarting device\r\n" );
vout_mv -= 50;
}
Delay_ms ( 1000 );
}
{
log_printf ( &logger, " ------------------------------------\r\n" );
log_printf ( &logger, " VOUT resolution: 12.5mV\r\n VOUT range: 625mV to 1587.5mV\r\n" );
log_printf ( &logger, " ------------------------------------" );
}
{
{
log_printf ( &logger, "\r\n STATUS: 0x%.2X\r\n", ( uint16_t ) status );
}
{
log_printf ( &logger, " VOUT: %u mV\r\n", vout_mv );
}
{
log_printf ( &logger, " ERROR: No power good\r\n" );
log_printf ( &logger, " Restarting device\r\n" );
vout_mv -= 50;
}
Delay_ms ( 1000 );
}
}
@ BUCK23_OK
Definition buck23.h:250
#define BUCK23_REG_STATUS
Definition buck23.h:75
#define BUCK23_VSTEP_10
Buck 23 voltage output step setting.
Definition buck23.h:153
#define BUCK23_VOUT_MIN_VSTEP_10
Definition buck23.h:162
#define BUCK23_VOUT_MIN_VSTEP_12_5
Definition buck23.h:164
#define BUCK23_VOUT_MAX_VSTEP_10
Definition buck23.h:163
#define BUCK23_VSTEP_12_5
Definition buck23.h:154
#define BUCK23_VOUT_MAX_VSTEP_12_5
Definition buck23.h:165
void buck23_restart_device(buck23_t *ctx)
Buck 23 restart device function.
err_t buck23_read_register(buck23_t *ctx, uint8_t reg, uint8_t *data_out)
Buck 23 read register function.
void application_task(void)
Definition main.c:65
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.Buck23
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.