dac10 2.0.0.0
|
DAC 10 Click is a compact add-on board that contains a fully-featured, highly accurate digital-to-analog converter. This board features the DAC53401, a 10-bit voltage-output smart digital-to-analog converter from Texas Instruments.
We provide a library for the DAC10 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for DAC10 Click driver.
dac10_cfg_setup
Config Object Initialization function. dac10_init
Initialization function. dac10_check_device_id
This function checks the communication by reading and verifying the device ID. dac10_enable_dac
This function enables the DAC output. dac10_set_output_voltage
This function sets the output voltage depending on the vref value defined by the VCC SEL on-board jumper. VREF and Voltage values can be either in Volts or Milivolts. This example demonstrates the use of DAC 10 click board.
The demo application is composed of two sections :
Initializes the driver, checks the communication by reading and verifying the device ID, and enables the DAC output.
Changes the output voltage every 2 seconds and logs the voltage value on the USB UART. It will go through the entire voltage range taking into account the number of steps which is defined below.
Measure the voltage at VCC_SEL jumper and adjust the reference voltage value below for better accuracy.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.