TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136941 times)
  2. FAT32 Library (70063 times)
  3. Network Ethernet Library (56015 times)
  4. USB Device Library (46330 times)
  5. Network WiFi Library (41946 times)
  6. FT800 Library (41264 times)
  7. GSM click (29050 times)
  8. mikroSDK (26465 times)
  9. PID Library (26442 times)
  10. microSD click (25402 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: 1419 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

Joystick 2 click

5

Joystick 2 Click is a smart navigation key concept based on SKRHABE010 by Alps, a 4-direction joystick switch with Center-push Function. Alps switches, also known as microswitches, are well renowned for their reliability and endurance.

[Learn More]

Brushless 20 click

0

Brushless 20 Click is a compact add-on board that controls brushless DC (BLDC) motors with any MCU. This board features the DRV8313, a fully integrated three-phase BLDC motor driver from Texas Instruments. It provides three individually controllable half-H-bridge drivers intended to drive a three-phase BLDC motor, solenoids, or other loads. Each output driver channel consists of N-channel power MOSFETs configured in a 1/2-H-bridge configuration. Besides, it has a wide operating voltage range from 8V to 60V, alongside several built-in protection circuits such as undervoltage, charge pump faults, overcurrent, and overtemperature.

[Learn More]

WIFI 7 click

1

WiFi 7 click carries the ATWINC1510-MR210PB IEEE 802.11 b/g/n module, specifically optimized for low-power IoT applications. The click is designed to run on a 3.3V power supply. It communicates with the target microcontroller over SPI interface.

[Learn More]