TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139060 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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: 3207 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

Led Driver 5 Click

0

The application is a capable of driving an array of high-power LEDs.

[Learn More]

DIGI Isolator Click

0

DIGI Isolator Click is a compact add-on board that provides electrical isolation and signal conditioning for the serial peripheral interface and a UART interface. This board features two DCL540C01, high-speed, quad-channel digital isolators from Toshiba Semiconductor. Depending on the usage, this CMOS isolator can achieve data rates of up to 150Mbps, while withstanding up to 5kVrms voltage. DIGI Isolator Click is designed to isolate two additional IO pins besides SPI and UART interfaces.

[Learn More]

Gaussmeter Click

0

Gaussmeter Click is a device that is used for measuring the magnetic field in X, Y and Z axes. This Click board™ features the MLX90393, a micropower magnetometer based on the proprietary Triaxis® technology, from Melexis.

[Learn More]