dac16
2.1.0.0
|
DAC 16 Click is a compact add-on board, a digital-to-analog converter (DAC) designed for precise voltage and current output applications. This board features the DAC63204-Q1, an automotive-qualified 12-bit DAC from Texas Instruments. This Click board™ features four output channels with flexible configuration options, including adjustable voltage gains and selectable current ranges from ±25μA to ±250μA. It also supports both internal and external voltage references and offers a Hi-Z power-down mode for enhanced protection. Communication with the host MCU is enabled through either a 4-wire SPI or I2C interface, with configurable I2C addresses and a general-purpose I/O pin for additional functionality.
We provide a library for the DAC 16 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 DAC 16 Click driver.
dac16_cfg_setup
Config Object Initialization function. dac16_init
Initialization function. dac16_default_cfg
Click Default Configuration function. dac16_set_dac_data
This function sets the raw DAC data for the selected DAC channel. dac16_start_function_gen
This function starts the function generator for the selected DAC channel. dac16_stop_function_gen
This function stops the function generator for the selected DAC channel. This example demonstrates the use of DAC 16 Click board by changing the voltage level
on the OUT0 as well as the waveform signals from a function generator on the OUT1.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Changes the voltage level on the OUT0 as well as the waveform signals from a function
generator on the OUT1 every 3 seconds. The state of all outputs will be displayed on the USB UART.
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.