OFF
6DOF IMU 3 Click
9DOF 2 Click
A5000 Plug&Trust Click
AC Current Click
ADAC 3 Click
Accel 4 Click
Accel 8 Click
Accel&Pressure Click
Air Motion Click
Air Quality 12 Click
Air Velocity Click
Air quality 8 Click
Altitude 3 Click
Altitude Click
Ammeter Click
BLE TINY Click
Brushless 10 Click
Brushless 14 Click
Brushless 15 Click
Brushless 23 Click
Brushless 30 Click
Brushless 31 Click
Brushless 7 Click
Brushless 8 Click
Brushless 9 Click
Buck-Boost 3 Click
CAN FD 5 Click
CODEGRIP for ARM
Cap Touch 5 Click
CapSense Click
Charger 23 Click
Clicker 2 for PSoC6
Clicker 4 for TMPM3H
Color 2 Click
Current 14 Click
Current Limit 10 Click
Current Sens 2 Click
DC Motor 10 Click
Diff Press 5 Click
Diff Press Click
Diff pressure Click
Driver 2 Click
Dual LIN Click
ESP8684 Click
EXPAND 6 Click
EXPAND 7 Click
EasyPIC v7a Development System
EasyPIC v8
Excelon-LP Click
Excelon-Ultra Click
Expand 10 Click
Expand 18 Click
FRAM 2 Click
FRAM 5 Click
FRDM K64 click shield
FRDM KL46 click shield
FT Click
Flash 10 Click
Flash 11 Click
Flash 12 Click
Flash 4 Click
Force Cell Click
GNSS 21 Click
GNSS 23 Click
GNSS 25 Click
GPS 6 Click
Gyro 2 Click
H-Bridge 2 Click
H-Bridge Click
H-Bridge Driver Click
Hall Current 22 Click
Hall Switch 3 Click
Haptic 3 Click
Haptic 4 Click
I2C Extend 2 Click
I2C to SPI Click
IN-BOX ABS/PC (UL 94 HB) Plastic Enclosure
IPEX-SMA cable
IR Sense 6 Click
ISM 8 Click
Inclinometer 4 Click
IoT ExpressLink Click
LCD IPS 0.66” White Display
LED Driver 11 Click
LP WiFi Click
LTE Flat Rotation Antenna
LTE Rubber Antenna
Li-Polymer Battery 3.7V 6000mAh
Light 2 Click
Lithium Battery 3V CR2032
Load Cell 4 Click
M-BUS RF 2 Click
M-Bus Slave Click
Mikromedia 7 Capacitive FPI with frame
Mikromedia 7 Resistive
Multimeter Click
PIR 2 Click
PIR Click
PLL Click
Power Monitor 2 Click
RAQ Click
RS Transceiver Click
RS232 2 Click
RS232 3 Click
RS232 Click
RS232 Isolator 2 Click
RS232 Isolator Click
RS232 SPI Click
RS232 to I2C Click
RTC 14 Click
SiBRAIN for GD32VF103VBT6
Temp&Hum 17 Click
Temp&Hum 18 Click
Thermo 18 Click
Thermo 20 Click
Thermo 9 Click
Thin Film Element RTD Temperature Sensor
Thyone-I Click
UART I2C/SPI Click
UART MUX 2 Click
UART MUX 4 Click
UART MUX Click
UNI-DS v8
USB-C to USB-C 2.0 cable with adapter to USB 3.0 type A Male
VCP Monitor Click
VCT Monitor Click
WiFi ESP Click
Wirepas Click
XPort EDGE Click
eINK Click - without display
mikroBUS Shuttle Bundle
MIKROE-950
28 g
Status:
DAC Click is a compact add-on board with a fully-featured, highly accurate digital-to-analog converter. This board features the MCP4921, a 12-bit DAC with an SPI interface from Microchip. The MCP4921 has a rail-to-rail output, low power consumption, and fast setting time over a single channel. The DAC Click also has the MCP1541, a 4.096V voltage reference from Microchip, to provide an external optional reference voltage to the MCP4921 DAC chip. This Click board™ makes the perfect solution for offset and gain control applications, VCO tuning, programmable reference, and more.
DAC Click 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.
This product is no longer in stock
Availability date:
DAC Click is based on the MCP4921, a 12-bit DAC with an SPI interface from Microchip. It utilizes a resistive string architecture, with its inherent advantages of low DNL error, low ratio metric temperature coefficient, and fast settling time over an extended temperature range. The analog output is provided on the VOUT screw terminal. The VOUT can swing from approximately 0V to approximately VCC voltage, in the case of this Click board™, 3.3V or 5V. The analog signal on the reference pin of the MCP4921 is utilized to set the reference voltage on the string DAC. The reference voltage can be selected between the VCC and the 4.096V given by the MCP1541 via the REF SEL jumper.
DAC Click uses the SPI serial interface over the mikroBUS™ socket to communicate with the host MCU, with 20MHz clock support. The 12-bit data is sent to the DAC through the SPI interface. This interface is also used to enter the Shutdown mode, during which the supply current is isolated from most of the internal circuitry. The Power-on-Reset (POR) circuit allows the device to continue to have a high-impedance output until a valid command is performed to the DAC registers, thus ensuring a reliable power-up.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the PWR SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. However, the 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.
Type
DAC
Applications
Can be used for offset and gain control applications, VCO tuning, programmable reference, and more
On-board modules
MCP4921 - DAC with an SPI interface from Microchip
Key Features
12-bit output voltage resolution, rail-to-rail output, selectable reference voltage, Power-Down mode, low power consumption, SPI interface, fast output setting time, and more
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on DAC Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
- | PWR | - | Power LED Indicator |
J2 | PWR SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
J1 | REFERENCE | Left | Reference Voltage Selection VCC/4.096V: Left position VCC, Right position 4.096V |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Resolution | - | 12 | - | bit |
We provide a library for the DAC 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 Click driver.
Key functions
This function is used to set output voltage in percents.
This function is used to set output voltage.
Example Description
This demo example sends digital signal to the outputs and converts it to analog.
void application_task ( void )
{
for ( dac_val = 0; dac_val <= DAC_RESOLUTION; dac_val += DAC_STEP_VALUE )
{
dac_set_voltage( &dac, dac_val );
dac_val *= DAC_CALIB_VAL_1;
dac_val /= DAC_CALIB_VAL_2;
log_printf( &logger, " Current DAC Value: %d mV rn", dac_val );
log_printf( &logger, "----------------------------------rn" );
Delay_ms( 2000 );
}
}
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:
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.
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.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.