TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136546 times)
  2. FAT32 Library (69739 times)
  3. Network Ethernet Library (55845 times)
  4. USB Device Library (46184 times)
  5. Network WiFi Library (41803 times)
  6. FT800 Library (40991 times)
  7. GSM click (28925 times)
  8. PID Library (26385 times)
  9. mikroSDK (26287 times)
  10. microSD click (25300 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: 1376 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 11 Click

5

The Ambient 11 Click is a Click board equipped with the VEML6035, a low power, high sensitivity, I2C ambient light sensor from Vishay Semiconductors.

[Learn More]

CapSense 2 click

0

CapSense 2 Click is a compact add-on board that easily integrates projected capacitive touch into user's applications. This board features the CAP1114, a multi-channel capacitive touch sensor that takes human body capacitance as an input and directly provides the real-time sensor information via the I2C serial interface from Microchip. This board contains capacitive sensing elements, a 7-segment slider, two buttons, and four LED indicators that visually detect the activation on some of these parts. This Click board™ offers reliable and accurate sensing for any application that uses capacitive touch sensing functions.

[Learn More]

mikroBootloader

10

To make it as simple as possible to program MCUs on our dev boards, most of them come with a preloaded USB-HID bootloader. While the bootloader firmware is specific to each chip, the PC utility for loading your HEX file to the target microcontroller is universal. It’s done in four steps and takes less than 20 seconds.

[Learn More]