Carte à clic DAC 12
Carte à clic DAC 12
Key Features
- Faible consommation d'énergie, hautes performances, référence interne intégrée de 2,5 V, haute précision, configuration de sortie flexible, interface compatible SPI, etc.
- Faible consommation d'énergie, hautes performances, référence interne intégrée de 2,5 V, haute précision, configuration de sortie flexible, interface compatible SPI, etc.
- Peut être utilisé pour les applications de réglage de gain et de décalage numérique, les sources de tension et de courant programmables, la référence programmable et bien d'autres
- mikroBUS : interface SPI
La carte DAC 12 Click Board™ est une carte complémentaire compacte qui contient un convertisseur numérique-analogique de haute précision. Cette carte comprend le DAC60508, un DAC octal 12 bits à sortie de tension analogique à usage général de Texas Instruments. Il comprend une référence interne de 2,5 V, 5 ppm/°C, éliminant le besoin d'une référence de précision externe dans la plupart des applications, et prend en charge l'interface série SPI, qui fonctionne à des fréquences d'horloge allant jusqu'à 40 MHz. Une configuration de gain sélectionnable par l'interface utilisateur fournit des tensions de sortie à pleine échelle de 1,25 V, 2,5 V ou 5 V. Cette carte Click™ représente un excellent choix pour les applications de réglage de gain et de décalage numérique, les sources de tension et de courant programmables, la référence programmable et bien d'autres.
La carte Click Board™ DAC 12 est supportée par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette carte Click Board™ est livrée sous forme de produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
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.
Carte à clic DAC 12
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.