TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137099 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56124 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42077 times)
  6. FT800 Library (41387 times)
  7. GSM click (29116 times)
  8. mikroSDK (26562 times)
  9. PID Library (26489 times)
  10. microSD click (25487 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 14 click

Rating:

5

Author: MIKROE

Last Updated: 2019-11-18

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Buck

Downloaded: 2516 times

Not followed.

License: MIT license  

The Buck 14 click is a Click board based around the BMR4613001/001, a PoL regulator from Flex. It's igh-efficiency step-down converter which provides a highly regulated output voltage derived from the connected power source, rated from 4.5 to 14V.

No Abuse Reported

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

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

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

Buck 14 click

Native view of the Buck 14 click board.

View full image
Buck 14 click

Buck 14 click

Front and back view of the Buck 14 click board.

View full image

Library Description

Library provides control over device pins, you can read state of some pins. You have ability to send and receive data from device, and control output V.

Key functions:

  • void buck14_read_data (uint8_t cmd, uint8_t *data_buf, uint8_t n_buf_size ) - Reads data from specific registar to buffer
  • void buck14_write_data (uint8_t cmd, uint8_t *data_buf, uint8_t n_buf_size ) - Writes data to specific registar to buffer
  • uint8_t buc14_write_vout( float vout ) - Sets output V
  • uint16_t buc14_read_vout( void ) - Returns output V in mV

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of SPI module and setting pins to output
  • Application Initialization - Configure device, checks id, writes default command VOUT, checks if power is OK
  • Application Task - Sends 4 different commands for VOUT in span of 8sec
void application_task ( )
{
    vout_value = 1.2;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }

    Delay_ms( 8000 );

    vout_value = 3.7;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }

    Delay_ms( 8000 );
    
    vout_value = 2.5;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }
    
    Delay_ms( 8000 );

    vout_value = 4.5;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }
    
    Delay_ms( 4000 );
    mikrobus_logWrite( "```````````````", _LOG_LINE );
    Delay_ms( 4000 );
}

Additional Functions :

  • void error_handler ( uint8_t stat_data ) - Check if there was error in stat_data and returns message
  • void read_vout_data ( void ) - Reads current VOUT in mV

Note :

  • When you send data you should send LSB first
  • Device input V should be beetween 4.5 - 14 V
  • Device output V could be from 0.5 - 5 V deepending from limits you set currently it is set to 1V

Other mikroE Libraries used in the example:

  • Conversions
  • I2C
  • 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

PIR click

5

PIR click is a pyroelectric sensor which generates a voltage when exposed to infrared radiation emitted by live bodies.

[Learn More]

CAN FD 3 click

5

CAN FD 3 Click is a add-on board based on TLE9251V CAN network transceiver, designed for HS CAN networks up to 5 Mbit/s in automotive and industrial applications.

[Learn More]

Temp-Log 3 click

5

Temp-Log 3 click is a temperature measuring Click board featuring the MCP9843 IC, an accurate temperature sensor IC with integrated EEPROM.

[Learn More]