DAC 12 Click Board
DAC 12 Click Board
Key Features
- Low power consumption, high performance, integrated 2.5V internal reference, high precision, flexible output configuration, SPI compatible interface, and more
- Low power consumption, high performance, integrated 2.5V internal reference, high precision, flexible output configuration, SPI compatible interface, and more
- Can be used for digital gain and offset adjustment applications, programmable voltage, and current sources, programmable reference, and many more
- mikroBUS: SPI Interface
Overview
The DAC 12 Click Board™ is a compact add-on board that contains a highly accurate digital-to-analog converter. This board features the DAC60508, a general-purpose octal 12-bit analog voltage-output DAC from Texas Instruments. It includes a 2.5V, 5ppm/°C internal reference, eliminating the need for an external precision reference in most applications, and supports the SPI serial interface, which operates at clock rates up to 40MHz. A user interface-selectable gain configuration provides full-scale output voltages of 1.25V, 2.5V, or 5 V. This Click board™ represents an excellent choice for digital gain and offset adjustment applications, programmable voltage, and current sources, programmable reference, and many more.
The DAC 12 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
How Does The DAC 12 Click Board™ Work?
The DAC 12 Click Board™ is based on the DAC60508, a low-power voltage-output 8-channel 12-bit digital-to-analog converter (DAC) from Texas Instruments. Each output channel in the DAC60508 consists of an R-2R ladder architecture, followed by an output buffer amplifier. It also includes a 2.5V, 5ppm/°C internal reference, eliminating the need for an external precision reference in most applications, and a user interface-selectable gain configuration that provides full-scale output voltages of 1.25V, 2.5V, or 5 V.
The DAC 12 Click Board™ communicates with MCU through a flexible serial interface compatible with SPI-type interfaces used on many microcontrollers and DSP controllers, with a maximum frequency of 50 MHz. The input data are written to the individual DAC data registers in straight binary format, where after a Power-On or a reset event, all DAC registers are set to a mid-scale code.
Data written to the DAC data registers are initially stored in the DAC buffer registers. Data transfer from the DAC buffer registers to the active DAC registers can be configured to happen immediately using the asynchronous mode or initiated by an LDAC trigger in synchronous mode. Once the DAC active registers are updated, the DAC outputs change to new values. When the host reads from a DAC data register, the value held in the DAC buffer register is returned (not the value stored in the DAC active register).
The DAC 12 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library that contains easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | DAC |
Applications | The DAC 12 Click Board™ can be used for digital gain and offset adjustment applications, programmable voltage, and current sources, programmable reference, and many more |
On-board modules | DAC60508 - octal 12-bit analog voltage-output DAC from Texas Instruments |
Key Features | Low power consumption, high performance, integrated 2.5V internal reference, high precision, flexible output configuration, SPI compatible interface, and more |
Interface | SPI |
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 of the DAC 12 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | NC | |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | NC | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
DAC 12 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Output Voltage Range | 0 | - | 5 | V |
Resolution | 12 | - | - | bits |
Operating Temperature Range | -40 | +25 | +120 | °C |
Software Support
We provide a library for the DAC 12 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the DAC 12 Click Board™ driver.
Key functions
-
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.
Example Description
This example demonstrates the use of the DAC 12 Click board™ by changing the outputs voltage level every 2 seconds.
void application_task ( void )
{
float step = DAC12_INTERNAL_VREF / NUMBER_OF_STEPS;
float output_voltage = step;
for ( uint8_t cnt = 0; cnt < NUMBER_OF_STEPS; cnt++ )
{
if ( DAC12_OK == dac12_set_channel_voltage ( &dac12, DAC12_SELECT_CHANNEL_ALL, output_voltage ) )
{
log_printf( &logger, " All channels output voltage set to %.3f Vrn", output_voltage );
output_voltage += step;
Delay_ms( 2000 );
}
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The 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.DAC12
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The DAC 12 Click board™ is supported with mikroSDK - MikroElektronika 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.
Software Support
We provide a library for the DAC 12 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the DAC 12 Click Board™ driver.
Key functions
-
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.
Example Description
This example demonstrates the use of the DAC 12 Click board™ by changing the outputs voltage level every 2 seconds.
void application_task ( void )
{
float step = DAC12_INTERNAL_VREF / NUMBER_OF_STEPS;
float output_voltage = step;
for ( uint8_t cnt = 0; cnt < NUMBER_OF_STEPS; cnt++ )
{
if ( DAC12_OK == dac12_set_channel_voltage ( &dac12, DAC12_SELECT_CHANNEL_ALL, output_voltage ) )
{
log_printf( &logger, " All channels output voltage set to %.3f Vrn", output_voltage );
output_voltage += step;
Delay_ms( 2000 );
}
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The 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.DAC12
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The DAC 12 Click board™ is supported with mikroSDK - MikroElektronika 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.
DAC 12 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.