dac5
2.0.0.0
|
DAC 5 Click carries Texas Instruments DAC53608 IC, a low-power, eight-channel, 10-bit buffered Digital-to-Analog Converter.
We provide a library for the Dac5 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Dac5 Click driver.
void dac5_cfg_setup ( dac5_cfg_t *cfg );
DAC5_RETVAL dac5_init ( dac5_t *ctx, dac5_cfg_t *cfg );
uint8_t dac5_send_data ( dac5_t *ctx, uint8_t data_reg, uint16_t data_buf );
void dac5_config ( dac5_t *ctx, uint16_t config_data );
uint16_t dac5_get_device_id ( dac5_t *ctx );
This demo example sends digital signal to one of the outputs and converts it to analog
The demo application is composed of two sections :
Initializes driver init, tests communication and configures device for measuring
Sets the channel H with different values and logs the expected output on USB UART
In order to improve the accuracy, measure the voltage on the Click board VrefIN SEL jumper and set it as VREF.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.