TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139568 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57256 times)
  4. USB Device Library (47631 times)
  5. Network WiFi Library (43222 times)
  6. FT800 Library (42566 times)
  7. GSM click (29932 times)
  8. mikroSDK (28292 times)
  9. PID Library (26934 times)
  10. microSD click (26309 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: 3302 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

4x4 RGB Click

0

4x4 RGB Click is a matrix of 16 intelligent RGB elements, forming a 4x4 display screen.

[Learn More]

DC Motor 6 click

5

DC Motor 6 Click is a PWM chopper type brushed DC motor driver, labeled as TB67H451FNG. This IC includes one channel of motor output block, using a wide range of supply voltages, while delivering reasonably high current to the connected DC motors.

[Learn More]

NFC 6 Click

0

NFC 6 Click is a compact add-on board that contains an NFC transceiver for contactless communication. This board features the ST25R95, a near-field communication transceiver from STMicroelectronics. It supports reader and writer operating modes and emulates ISO/IEC 14443-3 Type A cards. The RF communications are done over the 13.56MHz. The transceiver features tag detection mode, field detection mode, transmission and reception modes, and more.

[Learn More]