dac3 2.0.0.0
main.c File Reference

DAC3 Click example. More...

#include "board.h"
#include "log.h"
#include "dac3.h"

Functions

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

Detailed Description

DAC3 Click example.

Description

This example showcases how to initialize, configure and use the DAC 3 click module. The click performs digital to analog conversion and the output voltage can be read on the output termi- nal using a multimeter. An oscilloscope is required to read the analog signal.

The demo application is composed of two sections :

Application Init

This function configures and initializes the click and logger modules. The write_all_mem(...) function configures DAC settings.

Application Task

This function resets and wakes up the click module and then changes the output voltage on the output terminal a few times in a loop with a 5 second delay. It does so every 1 second.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( )

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 )