buck11 2.0.0.0
main.c File Reference

Buck11 Click example. More...

#include "board.h"
#include "log.h"
#include "buck11.h"

Functions

void application_init (void)
 
void application_task ()
 
int main (void)
 

Detailed Description

Buck11 Click example.

Description

This aplication control voltage using Buck 11.

The demo application is composed of two sections :

Application Init

Initializes I2C serial interface and selects the desired VDD voltage value and VOUT value resolution (to get VOUT value in Volts).

Application Task

Reads the averaged VOUT voltage calculated to Volts by performing a 30 conversions in one measurement cycle. The measured results will be showed on the uart terminal every 300 milliseconds.

note: The user should measure the VDD voltage value and enter this measured value to the function as VDD value to get more accurate measurement. This VDD voltage is used as reference voltage for the AD conversion.

The input voltage (VIN) range is from 4.2V to 60V. The output current (IOUT) value should not be greater than 1.5A.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( )

◆ main()

int main ( void )