mcp16331inv 2.0.0.0
main.c File Reference

Mcp16331Inv Click example. More...

#include "board.h"
#include "log.h"
#include "mcp16331inv.h"

Functions

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

Detailed Description

Mcp16331Inv Click example.

Description

This application enables usage of this click as a buck-boost voltage regulator.

The demo application is composed of two sections :

Application Init

Initializes click driver and enables VIN Pull Up.

Application Task

Sets DAC output voltage on 3500mV, when gain is set up on 1x VREF, on 4s delay time, and then sets DAC output voltage on 5000mV, when gain is now set up on 2x VREF, on also 4s delay time. VIN Pull Up voltage must be greater than 4V.

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 ( void )

◆ main()

int main ( void )