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.

DAC8568: Use the external reference with Arduino

Part Number: DAC8568

Hello,

I'm using a DAC8568 with arduino but I don't success to change reference source. By default it's internal but I need the external.

I see the datasheet but I'm still blocking.

Do you know what are register I have to change with a Arduino frame, please?

Thank yoy 

Best Regards

  • Hi Romain,

    Sanjay will be able to look at this tomorrow. 

    Best,

    Katlynne Jones 

  • Hi Romain,

    Please try this register write with your arduino to disable the internal reference.

    reference section details in data-sheet : DAC8568 (page - 44 and 45)

    Thanks,

    Sanjay

  • Hello,

    I tested your proposal but that not working.

    Below the arduino code to show what I did for setting: 

    void setup()
    {

        pinMode (SyncDAC8568, OUTPUT); // Signal Sync pour le DA8568
        SPI.setDataMode(SPI_MODE1);
        SPI.begin();
       delay(100);
       digitalWrite(SyncDAC8568,LOW);delay(10);
       DAC8568Write(0b0000, 0b1000,0b0000, 0b0000,0b0000); 

    }

    void DAC8568Write(unsigned int prefix, unsigned int control, unsigned int address, unsigned int data, unsigned int feature)
    {
        unsigned int one;
        unsigned int two;
        unsigned int three;
        unsigned int four;
        // send in the address and value via SPI:
        one = (prefix << 4)|control;
        two = (address << 4)|(data >>12);
        three = data >> 4;
        four = (data << 4)|feature;
        digitalWrite(SyncDAC8568,LOW);
        SPI.transfer(one);
        SPI.transfer(two);
        SPI.transfer(three);
        SPI.transfer(four);
        digitalWrite(SyncDAC8568,HIGH);
    }

    I confirm that on the pin 8 of the DAC8568 I have 3V and I supply the component on the pin AVDD pin3 a voltage of +5V.

    On the output, I have a volotage between 0V to 5V.

    Thankn you 

    Best Regard

  • I found the problem. I forgot 4bits on the data size.

    Thank you for your help