dac12
2.0.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the DAC 12 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 12 Click driver.
dac12_cfg_setup
Config Object Initialization function. dac12_init
Initialization function. dac12_default_cfg
Click Default Configuration function. dac12_soft_reset
This function executes the software reset command. dac12_set_channel_value
This function sets the raw DAC value to the specific channels output. dac12_set_channel_voltage
This function sets the output voltage of the specific channels. This example demonstrates the use of DAC 12 click board by changing the outputs voltage level every 2 seconds.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Changes the output voltage of all channels 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.
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.