Skip to content

MikroElektronika/Buck_3_click

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MikroE


Buck3 Click

  • CIC Prefix : BUCK3
  • mikroSDK : YES
  • Author : MikroE Team

Software Support

We provide a library for the Buck 3 Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Library Description

Library carries only two functions needed for control over the Buck 3 Click board.

Key functions :

  • uint8_t buck3_getState( void ) - Checks the Power Good Indicator.
  • void buck3_enable( uint8_t state ) - Puts the device in working mode (enable).

Examples Description

The demo application is composed of three sections :

  • System Initialization - Initializes CS pin as INPUT and RST pin as OUTPUT.
  • Application Initialization - Initializes Driver init and puts the device in ACTIVE mode.
  • Application Task - (code snippet) - Sequentialy, each one second, checks the status of the Buck 3 Click and if the overvoltage detected or device is under thermal shutdown it logs a message on the USBUART. Note: Open Drain Power Good Indicator, it is asserted low if output voltage is out of PGOOD threshold, Overvoltage or if the device is under thermal shutdown, EN shutdown or during soft start. Once the FB pin voltage is between 93% and 107% of the internal reference voltage (VREF) the PGOOD is pulled high.
void applicationTask()
{
    statePG = buck3_getState();
	
    if (statePG == 0)
    {
        mikrobus_logWrite( "Overvoltage or thermal shutdown detected", _LOG_LINE );
        Delay_1sec();
    }
}

The full application code, and ready to use projects can be found on our LibStock page.

mikroE Libraries used in the example:

  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART click, USB 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.