pot  2.0.0.0
Macros | Functions
main.c File Reference

Pot Click example. More...

#include "board.h"
#include "log.h"
#include "pot.h"

Macros

#define N_SAMPLES   100
 
#define ADC_V_REF_MV   1790
 
#define ADC_12BIT_RESOL   4096
 
#define ADC_10BIT_RESOL   1024
 

Functions

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

Detailed Description

Pot Click example.

Description

Click board with the accurate selectable reference voltage output.

The demo application is composed of two sections :

Application Init

Performs logger and Click initialization.

Application Task

Makes the averaged results by using the desired number of samples of AD conversion. The averaged results will be calculated to millivolts [mV] and sent to the uart terminal.

note: The AD conversion will be performed on the analog (AN) pin on the mikrobus 1.

Author
MikroE Team

Macro Definition Documentation

◆ ADC_10BIT_RESOL

#define ADC_10BIT_RESOL   1024

◆ ADC_12BIT_RESOL

#define ADC_12BIT_RESOL   4096

◆ ADC_V_REF_MV

#define ADC_V_REF_MV   1790

◆ N_SAMPLES

#define N_SAMPLES   100

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )