dac14
2.1.0.0
|
DAC 14 Click is a compact add-on board providing highly accurate digital-to-analog conversion. This board features the DAC53202, a 10-bit dual-channel programmable voltage/current-output DAC from Texas Instruments. The DAC53202 supports high-speed I2C and SPI serial interface alongside Hi-Z Power-Down mode and Hi-Z output during Power-OFF conditions. It has a programmable comparator mode for both DAC channels and one general-purpose I/O pin configurable as multiple functions allowing this smart DAC for processor-less applications.
We provide a library for the DAC 14 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 14 Click driver.
dac14_cfg_setup
Config Object Initialization function. dac14_init
Initialization function. dac14_default_cfg
Click Default Configuration function. dac14_set_dac_data
This function sets the raw DAC data for the selected DAC channel. dac14_start_function_gen
This function starts the function generator for the selected DAC channel. dac14_config_function_gen
This function configures the function generator for the selected DAC channel. This example demonstrates the use of DAC 14 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 both 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.