NOTE: This Click board™ is intended to work with an external reference, in which case it is mandatory to turn off the internal one via software.
How does it work?
DAC 15 Click is based on the DAC80502, a dual 16-bit 1-LSB INL voltage-output DAC from Texas Instruments. Each device output consists of a rail-to-rail ladder architecture with an output buffer amplifier. The DAC generates rail-to-rail voltages on the output, giving a maximum output range of 0V to a VDD, which depends on a selected voltage on the VCC SEL jumper. The DAC80502 incorporates a power-on-reset circuit that ensures the DAC output powers up at zero scale or midscale based on the RST pin status and remains at that scale until a valid code is written to the device.
DAC 15 Click allows the use of both I2C and SPI interfaces to communicate with the host MCU. The I2C interface supports standard, fast, and fast-node plus (1Mbps), whereas while using the last one at 1MHz, the clock update rate is limited to 55.55kSPS. The 3-Wire SPI serial interface operates up to 50MHz and is compatible with SPI, QSPI, and Microwave interface standards. The communication interface can be selected over COMM SEL jumpers. All four jumpers must be set for the board to work properly (SPI is set by default). If you select the I2C interface, you can also select the I2C address over the ADDR SEL jumper, where 0 is set by default.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Specifications
Type
DAC
Applications
Can be used for the development of oscilloscopes, battery testers, semiconductor testers, data acquisition, small cell base stations, analog output modules, DC power supplies, and more
On-board modules
DAC80502 – dual 16-bit 1-LSB INL voltage-output DAC from Texas Instruments
Key Features
Dual output, wide power supply, buffered output range, integrated precision reference, power-on-reset, low glitch energy, rail-to-rail ladder architecture, several operating modes, and more
Interface
I2C,SPI
Feature
ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on DAC 15 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1-JP4 | COMM SEL | Left | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP5 | VCC SEL | Left | Power/Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
– | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
DAC 15 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Resolution | – | 16 | – | bit |
Output Voltage | 1.25 | – | 5 | V |
Software Support
We provide a library for the DAC 15 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for DAC 15 Click driver.
Key functions
-
dac15_set_dac_data
DAC 15 set DAC data function. -
dac15_get_dac_data
DAC 15 get DAC data function.
Example Description
This example demonstrates the use of DAC 15 Click board™ by changing the output voltage level on the VOUTA and VOUTB.
void application_task ( void )
{
static uint16_t dac_data = 0;
for ( uint16_t n_cnt = 0; n_cnt < 60000; n_cnt += 5000 )
{
dac_data = n_cnt;
if ( DAC15_OK == dac15_set_dac_data( &dac15, DAC15_SET_DAC_A, dac_data ) )
{
log_printf( &logger, "VOUTA: %u -> %.2f Vrn",
dac_data,
( float ) dac_data * DAC15_VREF_3V3 / DAC15_MAX_DAC_DATA );
}
dac_data = DAC15_DAC_RES_16BIT - n_cnt;
if ( DAC15_OK == dac15_set_dac_data( &dac15, DAC15_SET_DAC_B, dac_data ) )
{
log_printf( &logger, "VOUTB: %u -> %.2f Vrn",
dac_data,
( float ) dac_data * DAC15_VREF_3V3 / DAC15_MAX_DAC_DATA );
}
log_printf( &logger, " -------------------rn" );
Delay_ms ( 3000 );
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.DAC15
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 MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.