This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with output IOUTA and IOUTB of DAC8812

Other Parts Discussed in Thread: DAC8812, OPA2277, DAC8811

Número de pieza: DAC8812

Herramienta/software:

Hello,

I have a problem with the DAC output: it always stays at 0 volts. To provide some context, I designed and prototyped two bipolar voltage sources using the DAC8812 and two OPA2277 (based on the bipolar output circuit of the DAC8811).

LDAC#: GPIO04
CS#: GPIO05
RS#: GPIO16
CLK: GPIO18
SDI: GPIO23
MSB: connect to ground
VDD: 3,3 V of ESP32
VREFX: 2,5 V of power supply
+VS: 10 V of power supply
-VS: -10 V of power supply

Estas son las señales que veo en el osciloscopio:

First signals:
Yellow signal: CS#
Blue signal: CLK



Second signals:
Yellow signal: LDAC# (Has a duration greater than 20 ns)
Blue signal: CS#


Third signal:
Yellow signal: CLK
Blue signal: SDI (sending 0b111111111111111111)

The SPI communication initially seems good, but I can't understand why the output is different from 0 V.



Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*Demo codes for testing DAC8812*/
#include <Arduino.h>
#include <SPI.h>
//Full functionality demo code
// DAC8812 Pin Definitions
#define CS_PIN 5 // Chip Select (CS) pin
#define LDAC_PIN 4 // Load DAC (LDAC) pin
#define RS_PIN 16 // Reset (RS) pin
// SPI settings
SPISettings DAC8812_settings(1000000, MSBFIRST, SPI_MODE0);
void setup() {
// Initialize Serial Monitor for debugging
Serial.begin(115200);
// Configure SPI
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


I hope you can help me.

Regards, Omar

  • Hi Omar, 

    Your data should be aligned like so: 

    3 packets of 8 bits, right adjusted.

    Best,

    Katlynne Jones

  • Thank you.

    I hadn't considered the correct bits order, so I made the corresponding adjustment.

    Another issue that was identified is that the op-amp connected to the output of the DAC had no negative power supply. Isolating the circuit with just the DAC and an op-amp didn’t work, but after adding a power supply, it started functioning properly.

    Best regards,
    Omar

  • Hi Omar, 

    Thanks for the update and glad you were able to solve both issues. Please reach out if you run into any more trouble. 

    Best,

    Katlynne Jones