dac7 2.0.0.0
main.c File Reference

Dac7 Click example. More...

#include "board.h"
#include "log.h"
#include "dac7.h"

Functions

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

Variables

uint16_t v_ref_sel
 

Detailed Description

Dac7 Click example.

Description

DAC 7 click carries the AD5624R 12-bit buffered Digital-to-Analog Converter that converts digital value to the corresponding voltage level using external voltage reference.

The demo application is composed of two sections :

Application Init

Application Init performs Logger and Click initialization.

Application Task

In this example, we adjust the DAC output voltage from 1000 mV to 4000 mV for the channels, starting from channel A to channel D and then set the DAC output voltage to 5000 mV for all channels. Results are being sent to UART Terminal where you can track their changes. All data logs write on USB UART changes every 5 sec.

Author
Mihajlo Djordjevic

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 )

Variable Documentation

◆ v_ref_sel

uint16_t v_ref_sel