MikroElektronika
DigiVref Click
DigiVref Click
SKU:MIKROE-3334
Couldn't load pickup availability
Share
A precisely controlled voltage reference is often required in various designs. It is most commonly available in a form of an integrated circuit. However, voltage reference ICs have a number of disadvantages: they are usually designed to output a single voltage, which is very dependent on the applied load, in most cases. Even 2mA can drop the output voltage significantly. DigiVref click offers a solution when an absolutely stable voltage reference is required, especially if the application requires changing the voltage reference during its operation. It is a perfect solution that can be used in various A/D conversion applications, measurement applications, logic voltage comparators, precise power supply applications, etc.
How does it work?
DigiVref click uses a set of ICs to select and stabilize the voltage reference. The MCP1541, a precise voltage reference IC by Microchip is used to provide an accurate voltage output. However, this IC is very prone to voltage drop when loaded, so even a small load of 2mA may cause a voltage drop at its output. Therefore, an operational amplifier with a unity gain is used as a buffer.
The voltage reference output of 4.096V (VREF) is routed to a common pin of the CD74HC4051, an analog multiplexer/demultiplexer IC, by Texas Instruments. This circuit has a one-to-eight internal switch with a digitally selected position. The position of the switch can be selected by applying logic levels to pins S0 to S2. Four outputs of the CD74HC4051 are routed to a voltage divider circuit composed of four 10K resistors. By routing the VREF across the voltage divider, one of four output voltage reference values can be selected, depending on the selected switch position. The output voltage (VOUT) can be set to one of the following values: 1.024V, 2.048V, 3.072V, and 4.096V.
The CD74HC4051 is controlled by the SN74HC595, an 8-bit shift register IC with tri-state output registers, by Texas Instruments. The SN74HC595 allows the data to be shifted in and then latched at the output. The state of the output pins will not change, as long as there is no new data shifted in and latched to the parallel output register (or as long as the #OE pin stays LOW, but it is hardwired to the GND on this Click board™). This allows the Click board™ to be completely independent on the SPI interface, even if it is disconnected at some point. Once set, the selected reference voltage will be available at the VOUT connector (standard 1x2-pin header with 2.54mm pitch), as long as the Click board™ is powered.
There are two control pins available on the CD74HC4051 since there are only 4 valid positions. Control pin S2 is grounded, so the CD74HC4051 is controlled by means of two pins: S0 and S1. These pins are routed to Q1 and Q2 outputs of the SN74HC595 IC. The SN74HC595 IC is controlled over the SPI interface, with its pins routed to the respective mikroBUS™ pins (CS, MOSI, SCK). Note that SPI data values that set pins other than Q1 and Q2, will not have any effect on this Click board™.
Besides the VOUT connector, the VOUT voltage is also routed to the AN pin of the mikroBUS™, allowing it to be used by the host MCU. Therefore, a note should be taken that the Click board™ is not intended to be used with 3.3V MCUs, especially if they do not have 5V tolerant pins. To use the Click board™ with 3.3V MCUs, a proper level shifting circuit must be used.
Specifications
Type | Measurements |
Applications | It is a perfect solution to be used in various A/D conversion applications, measurement applications, logic voltage comparators, precise power supply applications, and other applications that require switchable and regulated voltage reference. |
On-board modules | MCP1541, a precise voltage reference IC by Microchip; CD74HC4051, an analog multiplexer and demultiplexer IC, SN74HC595, an 8-bit shift register IC with tri-state output registers, both by Texas Instruments. |
Key Features | Very stable buffered selectable voltage reference, digital selection over the SPI interface thanks to the latch ability of the SR IC, it does not require the SPI interface to be connected once the output voltage is selected, and more. |
Interface | Analog,SPI |
Input Voltage | 5V |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on DigiVref 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 |
---|---|---|---|
PWR | PWR | - | Power LED indicator |
J1 | VOUT | - | Voltage reference output connector |
DigiVref Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Voltage at the VOUT connector | 1.024 | - | 4.096 | V |
Software support
We provide a library for the DigiVref Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains a function for setting a reference output voltage which can be 1030mV, 2046mv, 3070mV or 4096mV.
Key functions:
-
void digivref_setOutputVoltage( uint8_t Vref )
- Function for set reference output voltage
Examples description
The application is composed of the three sections :
- System Initialization - Initializes SPI driver and sets CS pin as OUTPUT.
- Application Initialization - Initialization driver init.
- Application Task - (code snippet) - Changes the reference output voltage every 3 seconds.
void applicationTask() { digivref_setOutputVoltage( _DIGIVREF_REF_VOLTAGE_4096mV ); Delay_ms( 3000 ); digivref_setOutputVoltage( _DIGIVREF_REF_VOLTAGE_3070mV ); Delay_ms( 3000 ); digivref_setOutputVoltage( _DIGIVREF_REF_VOLTAGE_2046mV ); Delay_ms( 3000 ); digivref_setOutputVoltage( _DIGIVREF_REF_VOLTAGE_1030mV ); Delay_ms( 3000 ); digivref_setOutputVoltage( _DIGIVREF_REF_VOLTAGE_2046mV ); Delay_ms( 3000 ); digivref_setOutputVoltage( _DIGIVREF_REF_VOLTAGE_3070mV ); Delay_ms( 3000 ); } The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
SPI
Additional notes and information
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.




New Products
-
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / per -
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / per -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / per