TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 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 (136713 times)
  2. FAT32 Library (69925 times)
  3. Network Ethernet Library (55937 times)
  4. USB Device Library (46261 times)
  5. Network WiFi Library (41884 times)
  6. FT800 Library (41150 times)
  7. GSM click (28979 times)
  8. PID Library (26411 times)
  9. mikroSDK (26355 times)
  10. microSD click (25353 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 13 click

Rating:

5

Author: MIKROE

Last Updated: 2019-07-19

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Buck

Downloaded: 2752 times

Not followed.

License: MIT license  

Buck 13 Click is a high-efficiency step-down converter which provides a highly regulated output voltage derived from the connected power source, rated from 4.5V to 5.5V.

No Abuse Reported

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

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

Do you want to report abuse regarding "Buck 13 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 13 click

Buck 13 click

Native view of the Buck 13 click board.

View full image
Buck 13 click

Buck 13 click

Front and back view of the Buck 13 click board.

View full image

Library Description

This library performs a control of the Buck 13 click board, which is used to convert the input DC voltage, in the range from 6.5V to 50V, to output DC voltage of 3.3V, with maximal current of 3A. Library uses SPI serial interface to allow the ADC output reading from the Buck 13. For more details check documentation.

Key functions:

  • void buck13_spiDriverInit( T_BUCK13_P gpioObj, T_BUCK13_P spiObj ) - This function initializes SPI serial interface.
  • void buck13_enable( T_BUCK13_STATE pwr_state ) - This function allows user to perform a control of the Buck 13 output.
  • uint16_t buck13_getVoltage( void ) - This function returns the output voltage value calculated to millivolts.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes SPI serial interface and turns OFF the Buck 13 output as default state. Also writes possible commands to the uart terminal.
  • Application Task - (code snippet) - Checks the command entered by user and executes the operation determined by selected command. If entered command was invalid sends a report to the uart terminal. Also the report will be sent to the uart terminal after each entered command and executed operation. Note: Input voltage range is from 6.5V to 50V Output voltage is about 3.3V Current limit is 3A.
void applicationTask()
{
    rx_dat = UART_Rdy_Ptr();
    
    if (rx_dat != 0)
    {
        rx_dat = UART_Rd_Ptr();
        
        switch (rx_dat)
        {
            case 'e' :
            {
                if (out_state == _BUCK13_DISABLE)
                {
                    buck13_enable( _BUCK13_ENABLE );
                    out_state = _BUCK13_ENABLE;
                    mikrobus_logWrite( "** Buck 13 output is enabled now.", _LOG_LINE );
                }
                else
                {
                    mikrobus_logWrite( "** Buck 13 output is already enabled.", _LOG_LINE );
                }
            break;
            }
            case 'd' :
            {
                if (out_state == _BUCK13_ENABLE)
                {
                    buck13_enable( _BUCK13_DISABLE );
                    out_state = _BUCK13_DISABLE;
                    mikrobus_logWrite( "** Buck 13 output is disabled now.", _LOG_LINE );
                }
                else
                {
                    mikrobus_logWrite( "** Buck 13 output is already disabled.", _LOG_LINE );
                }
            break;
            }
            case 'v' :
            {
                out_voltage = buck13_getVoltage();
                
                WordToStr( out_voltage, text );
                Ltrim( text );
                mikrobus_logWrite( "** VOUT = ", _LOG_TEXT );
                mikrobus_logWrite( text, _LOG_TEXT );
                mikrobus_logWrite( " mV.", _LOG_LINE );
            break;
            }
            case 'c' :
            {
                writeCmd();
            break;
            }
            default :
            {
                mikrobus_logWrite( "*****    Invalid command.    *****", _LOG_LINE );
                writeCmd();
            break;
            }
        }
    }
}


Additional Functions :

  • writeCmd - Writes possible commands for the user to the uart terminal.

Other mikroE Libraries used in the example:

  • Conversions
  • C_String
  • SPI
  • UART

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

GNSS 8 click

0

GNSS 8 Click is a compact add-on board that provides fast positioning capability. This board features the LC79DA, a high-performance dual-band and multi-constellation GNSS module from Quectel Wireless Solutions.

[Learn More]

Solar Energy 2 click

0

Solar Energy 2 Click is a compact add-on board that can recharge a battery by harvesting the solar power of the Sun or by other means. This board features the EM8500, a power management controller with an energy harvesting interface from EM Microelectronic. The controller is specifically designed for efficient harvesting over various DC sources such as photovoltaic (solar) or thermal electric generators (TEG). It can recharge the connected LiPo battery or supercapacitor (or even a conventional capacitor). In addition, the EM8500 can use the same battery as a power source for powering the connected system.

[Learn More]

Flash 4 click

5

Flash 4 click is a perfect solution for the mass storage option in various embedded applications. With fast performance being one of its key features, Flash 4 click can also be used for the code shadowing, execution-in-place (XIP), and data storage.

[Learn More]