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: 2024-10-31
Package Version: 2.1.0.4
mikroSDK Library: 2.0.0.0
Category: Buck
Downloaded: 64 times
Not followed.
License: MIT license
Buck 15 Click is a compact add-on board for precision voltage regulation across various applications. This board features the TPS62903, a synchronous step-down DC/DC converter from Texas Instruments. It is known for its adaptability, rapid transient response, and high output voltage accuracy of ±1.5% across all operating temperatures. Featuring the innovative DCS-control topology, it supports a wide input voltage range of 3V to 17V, an adjustable output voltage from 0.4V to 5V, and currents up to 3A. This Click board™ can be used in a variety of automotive applications, such as the ADAS, body electronics and lighting, infotainment and cluster, hybrid, electric, and powertrain systems, any application with a 12V input voltage or a 1-4 cell lithium battery pack, and more.
Do you want to subscribe in order to receive notifications regarding "Buck 15 Click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Buck 15 Click" changes.
Do you want to report abuse regarding "Buck 15 Click".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
5581_buck_15_click.zip [630.43KB] | mikroC AI for ARM GCC for ARM Clang for ARM mikroC AI for PIC mikroC AI for PIC32 XC32 GCC for RISC-V Clang for RISC-V mikroC AI for AVR mikroC AI for dsPIC XC16 |
|
Buck 15 Click is a compact add-on board for precision voltage regulation across various applications. This board features the TPS62903, a synchronous step-down DC/DC converter from Texas Instruments. It is known for its adaptability, rapid transient response, and high output voltage accuracy of ±1.5% across all operating temperatures. Featuring the innovative DCS-control topology, it supports a wide input voltage range of 3V to 17V, an adjustable output voltage from 0.4V to 5V, and currents up to 3A. This Click board™ can be used in a variety of automotive applications, such as the ADAS, body electronics and lighting, infotainment and cluster, hybrid, electric, and powertrain systems, any application with a 12V input voltage or a 1-4 cell lithium battery pack, and more.
We provide a library for the Buck 15 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.
This library contains API for Buck 15 Click driver.
buck15_cfg_setup
Config Object Initialization function.
void buck15_cfg_setup ( buck15_cfg_t *cfg );
buck15_init
Initialization function.
err_t buck15_init ( buck15_t *ctx, buck15_cfg_t *cfg );
buck15_default_cfg
Click Default Configuration function.
err_t buck15_default_cfg ( buck15_t *ctx );
buck15_set_vout
This function sets the voltage output by using an I2C serial interface.
err_t buck15_set_vout ( buck15_t *ctx, buck15_vout_t vout );
buck15_set_vset
This function sets the wiper position for the output voltage settings by using an I2C serial interface.
err_t buck15_set_vset ( buck15_t *ctx, uint8_t vset_wp );
buck15_enable_device
This function enables the device by setting the EN pin to high logic state.
void buck15_enable_device ( buck15_t *ctx );
This example demonstrates the use of the Buck 15 Click board by changing the output voltage.
The demo application is composed of two sections :
Initializes the driver and performs the device default configuration.
void application_init ( void )
{
log_cfg_t log_cfg; /**< Logger config object. */
buck15_cfg_t buck15_cfg; /**< Click config object. */
/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
buck15_cfg_setup( &buck15_cfg );
BUCK15_MAP_MIKROBUS( buck15_cfg, MIKROBUS_1 );
if ( I2C_MASTER_ERROR == buck15_init( &buck15, &buck15_cfg ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
if ( BUCK15_ERROR == buck15_default_cfg ( &buck15 ) )
{
log_error( &logger, " Default configuration." );
for ( ; ; );
}
log_info( &logger, " Application Task " );
log_printf( &logger, "____________\r\n" );
Delay_ms ( 100 );
}
The demo application changes the output voltage and displays the currently set voltage output value. Results are being sent to the UART Terminal, where you can track their changes.
void application_task ( void )
{
for ( buck15_vout_t vout = BUCK15_VOUT_0V6; vout <= BUCK15_VOUT_5V; vout++ )
{
if ( BUCK15_OK == buck15_set_vout( &buck15, vout ) )
{
log_printf( &logger, " Vout : %.1f [V]\r\n", vout_table[ vout ] );
log_printf( &logger, "____________\r\n" );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
}
}
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:
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.