TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137111 times)
  2. FAT32 Library (70239 times)
  3. Network Ethernet Library (56129 times)
  4. USB Device Library (46444 times)
  5. Network WiFi Library (42080 times)
  6. FT800 Library (41408 times)
  7. GSM click (29124 times)
  8. mikroSDK (26567 times)
  9. PID Library (26503 times)
  10. microSD click (25491 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

Buck & Boost click

Rating:

5

Author: MIKROE

Last Updated: 2020-11-06

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Buck-Boost

Downloaded: 1425 times

Not followed.

License: MIT license  

Buck &amp;amp; Boost Click is a compact add-on board that contains a configurable power management device. This board features the MIC7401, a highly-integrated power-management IC featuring five synchronous buck regulators, one boost regulator, and a high-speed I2C interface with an internal EEPROM memory from Microchip.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Buck & Boost click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Buck & Boost click" changes.

Do you want to report abuse regarding "Buck & Boost click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Buck &amp; Boost Click

Buck & Boost Click

Native view of the Buck & Boost Click board.

View full image
Buck &amp; Boost Click

Buck & Boost Click

Front and back view of the Buck & Boost Click board.

View full image

Library Description

The library covers all the necessary functions to control Buck & Boost Click board™. Library performs a standard I2C interface communication.

Key functions:

  • void buckandboost_device_enable ( uint8_t state ) - Enable device function.
  • (uint8_t out_value ) - Set buck output voltage function.
  • (buckandboost_status_t *s_data ) - Get status function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C and start to write log.
  • Application Initialization - Initialization driver enables - I2C, enable and wake up device, set normal mode, set Buck current limit to 1.1 A and save configuration, also write log.
  • Application Task - (code snippet) This is an example which demonstrates the use of Buck & Boost Click board™. The display status is updated every 5 seconds on USART terminal while the application cycles the various voltage values on all channel outputs one by one. Vout[1] - 1.8V, Vout[2] - 1.1V, Vout[3] - 1.8V, Vout[4] - 1.05V, Vout[5] - 1.25V and Vout[6] - 9V. All data logs write on USB uart changes for every 5 sec.
void application_task ( )
{
    check_status = buckandboost_set_buck_out_voltage
    ( BUCKANDBOOST_OUTPUT_CH_1, BUCKANDBOOST_BUCK_OUTPUT_VOLTAGE_1800mV );
    Delay_ms( 10 );

    if ( check_status == BUCKANDBOOST_STATUS_OK )
    {
        mikrobus_logWrite( "  Output Voltage 1 : 1.8V   ", _LOG_LINE );
        mikrobus_logWrite( "- - - - - - - - - - - - - - ", _LOG_LINE );
    }

    buckandboost_send_cmd ( BUCKANDBOOST_CMD_SAVECONFIG );
    buckandboost_get_status ( BUCKANDBOOST_OUTPUT_CH_1, &status_data );
    display_status( );
    Delay_ms( 2000 );

    check_status = buckandboost_set_buck_out_voltage
    ( BUCKANDBOOST_OUTPUT_CH_2, BUCKANDBOOST_BUCK_OUTPUT_VOLTAGE_1100mV );
    Delay_ms( 10 );

    if ( check_status == BUCKANDBOOST_STATUS_OK )
    {
        mikrobus_logWrite( "  Output Voltage 2 : 1.1V   ", _LOG_LINE );
        mikrobus_logWrite( "- - - - - - - - - - - - - - ", _LOG_LINE );
    }

    buckandboost_send_cmd ( BUCKANDBOOST_CMD_SAVECONFIG );
    buckandboost_get_status ( BUCKANDBOOST_OUTPUT_CH_2, &status_data );
    display_status( );

    Delay_ms( 2000 );

    check_status = buckandboost_set_buck_out_voltage
    ( BUCKANDBOOST_OUTPUT_CH_3, BUCKANDBOOST_BUCK_OUTPUT_VOLTAGE_1800mV );
    Delay_ms( 10 );

    if ( check_status == BUCKANDBOOST_STATUS_OK )
    {
        mikrobus_logWrite( "  Output Voltage 3 : 1.8V   ", _LOG_LINE );
        mikrobus_logWrite( "- - - - - - - - - - - - - - ", _LOG_LINE );
    }

    buckandboost_get_status ( BUCKANDBOOST_OUTPUT_CH_3, &status_data );
    display_status( );

    Delay_ms( 2000 );

    check_status = buckandboost_set_buck_out_voltage
    ( BUCKANDBOOST_OUTPUT_CH_4, BUCKANDBOOST_BUCK_OUTPUT_VOLTAGE_1050mV );
    Delay_ms( 10 );

    if ( check_status == BUCKANDBOOST_STATUS_OK )
    {
        mikrobus_logWrite( "  Output Voltage 4 : 1.05V  ", _LOG_LINE );
        mikrobus_logWrite( "- - - - - - - - - - - - - - ", _LOG_LINE );
    }

    buckandboost_get_status ( BUCKANDBOOST_OUTPUT_CH_4, &status_data );
    display_status( );
    Delay_ms( 2000 );

    check_status = buckandboost_set_buck_out_voltage
    ( BUCKANDBOOST_OUTPUT_CH_5, BUCKANDBOOST_BUCK_OUTPUT_VOLTAGE_1250mV );
    Delay_ms( 10 );

    if ( check_status == BUCKANDBOOST_STATUS_OK )
    {
        mikrobus_logWrite( "  Output Voltage 5 : 1.25V  ", _LOG_LINE );
        mikrobus_logWrite( "- - - - - - - - - - - - - - ", _LOG_LINE );
    }
    buckandboost_get_status ( BUCKANDBOOST_OUTPUT_CH_5, &status_data );
    display_status( );
    Delay_ms( 2000 );
    
    check_status = buckandboost_set_boost_out_voltage
    ( BUCKANDBOOST_BOOST_OUTPUT_VOLTAGE_9000mV );
    Delay_ms( 10 );

    if ( check_status == BUCKANDBOOST_STATUS_OK )
    {
        mikrobus_logWrite( "  Output Voltage 6 : 9.00V   ", _LOG_LINE );
        mikrobus_logWrite( "- - - - - - - - - - - - - - ", _LOG_LINE );
    }
    buckandboost_get_status ( BUCKANDBOOST_OUTPUT_CH_6, &status_data );
    display_status( );
    Delay_ms( 2000 );
}

  • void display_status ( void ) - Display status.

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • Conversions

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

Ambient 3 click

5

Ambient 3 Click is calibrated XYZ chromatic smart lighting director, providing the measurement data in digital format over the I2C interface. It utilizes the AS7225, a miniature light sensor with UART and I2C interfaces.

[Learn More]

Air Velocity click

0

Air Velocity Click is a compact add-on board that measures direct airspeed. This board features the FS3000-1005, a surface-mount type air velocity module utilizing a MEMS thermopile-based sensor from Renesas. This I2C-configurable air velocity module features a digital output with a 12-bit resolution with a wide operational range of 0-7.2meter/second (0-16.2mph). The sensor comprises a “solid” thermal isolation technology and silicon-carbide coating to protect it from abrasive wear and water condensation.

[Learn More]

7x10 Y click

0

7x10 Y click is a LED dot matrix display click, which can be used to display graphics or letters in a very simple and easy way. The click board has two LED dot matrix modules with 7x5 stylish, round, dot-like LED elements. These displays produce clean and uniform patterns since the elements are optically isolated from each other and there is no light bleeding between the adjacent LED cells. Additionally, turn-on and turn-off times of the matrix cells are optimized for a clean and fluid display performance, with no flickering or lag.

[Learn More]