buck2
2.0.0.0
|
Buck 2 click is a powerful step down DC-DC switching regulator. It gives a high precision regulated voltage at its output and it can handle an ample amount of current.
We provide a library for the Buck2 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Buck2 Click driver.
void buck2_cfg_setup ( buck2_cfg_t *cfg );
BUCK2_RETVAL buck2_init ( buck2_t *ctx, buck2_cfg_t *cfg );
void buck2_default_cfg ( buck2_t *ctx );
void buck2_set_output_voltage ( buck2_t *ctx , uint8_t voltage );
uint8_t buck2_get_power_good ( buck2_t *ctx );
void buck2_set_power_mode ( buck2_t *ctx, uint8_t mode );
The demo application displays output voltage change.
The demo application is composed of two sections :
Configuring clicks and log objects. Settings the click in the default configuration.
Sets a different range of input voltages every 2 s and checks if it has reached the set output voltage.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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.