rmstodc 2.0.0.0
main.c File Reference

RmstoDc Click example. More...

#include "board.h"
#include "log.h"
#include "rmstodc.h"

Functions

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

Detailed Description

RmstoDc Click example.

Description

This application convert the RMS of the input signal into a DC voltage.

The demo application is composed of two sections :

Application Init

Initializes I2C interface and turns ON the device.

Application Task

Reads DC output voltage calculated to mV and sends results to the serial terminal.

Note : The input voltage frequency should be in the range from 50Hz to 250kHz. Also the input voltage amplitude must be lower than 5V. In this conditions the device can convert the RMS signal, in every form, to DC signal.

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 )