Step Down 3 click
Step Down 3 Click is a compact add-on board that steps down the voltage from its input to its output. This board features the ST1PS03, a nano-quiescent miniaturized synchronous step-down converter with a load switch from STMicroelectronics. The ST1PS03 can provide up to 400mA output current with an input voltage ranging from 1.8V to 5.5V, specifically designed for applications where high efficiency is crucial. It also embeds a controlled switch accessible from auxiliary channel input to supply a subsystem, output voltage from 1.6V to 3.3V set using three digital control inputs, and a Power Good signal to indicate stabilized output voltages.
click Product page
Click library
- Author : Stefan Filipovic
- Date : Apr 2022.
- Type : GPIO type
Software Support
We provide a library for the Step Down 3 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 Step Down 3 Click driver.
Standard key functions :
stepdown3_cfg_setup
Config Object Initialization function.
void stepdown3_cfg_setup(stepdown3_cfg_t *cfg)
Step Down 3 configuration object setup function.
Step Down 3 Click configuration object.
Definition stepdown3.h:126
stepdown3_init
Initialization function.
err_t stepdown3_init(stepdown3_t *ctx, stepdown3_cfg_t *cfg)
Step Down 3 initialization function.
Step Down 3 Click context object.
Definition stepdown3.h:112
Example key functions :
stepdown3_enable_device
This function enables the auxiliary output (VOUT_AUX) by setting the AUX pin to HIGH logic state.
void stepdown3_enable_device(stepdown3_t *ctx)
Step Down 3 enable device function.
stepdown3_enable_aux_output
This function disables the auxiliary output (VOUT_AUX) by setting the AUX pin to LOW logic state.
void stepdown3_enable_aux_output(stepdown3_t *ctx)
Step Down 3 enable aux output function.
stepdown3_set_output_voltage
This function sets the output voltage by setting the D2, D1, and D0 pins to a desired state.
void stepdown3_set_output_voltage(stepdown3_t *ctx, uint8_t vout)
Step Down 3 set output voltage function.
Example Description
This example demonstrates the use of Step Down 3 click board by iterating through the entire output voltage range.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger, then enables the click board and disables the auxiliary output.
{
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 ==
stepdown3_init( &stepdown3, &stepdown3_cfg ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
log_info( &logger, " Application Task " );
}
#define STEPDOWN3_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition stepdown3.h:97
void stepdown3_disable_aux_output(stepdown3_t *ctx)
Step Down 3 disable aux output function.
void application_init(void)
Definition main.c:30
Application Task
Changes the output voltage every 3 seconds and displays the set voltage output value on the USB UART.
{
switch ( vout )
{
{
log_printf( &logger, " Output voltage: 1.6 V\r\n\n" );
break;
}
{
log_printf( &logger, " Output voltage: 1.8 V\r\n\n" );
break;
}
{
log_printf( &logger, " Output voltage: 2.1 V\r\n\n" );
break;
}
{
log_printf( &logger, " Output voltage: 2.5 V\r\n\n" );
break;
}
{
log_printf( &logger, " Output voltage: 2.7 V\r\n\n" );
break;
}
{
log_printf( &logger, " Output voltage: 2.8 V\r\n\n" );
break;
}
{
log_printf( &logger, " Output voltage: 3.0 V\r\n\n" );
break;
}
{
log_printf( &logger, " Output voltage: 3.3 V\r\n\n" );
break;
}
}
{
}
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
#define STEPDOWN3_OUT_VOLTAGE_2V8
Definition stepdown3.h:77
#define STEPDOWN3_OUT_VOLTAGE_3V3
Definition stepdown3.h:79
#define STEPDOWN3_OUT_VOLTAGE_2V1
Definition stepdown3.h:74
#define STEPDOWN3_OUT_VOLTAGE_2V5
Definition stepdown3.h:75
#define STEPDOWN3_OUT_VOLTAGE_3V0
Definition stepdown3.h:78
#define STEPDOWN3_OUT_VOLTAGE_1V6
Step Down 3 output voltage selection.
Definition stepdown3.h:72
#define STEPDOWN3_OUT_VOLTAGE_1V8
Definition stepdown3.h:73
#define STEPDOWN3_OUT_VOLTAGE_2V7
Definition stepdown3.h:76
void application_task(void)
Definition main.c:63
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.StepDown3
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.