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.

How to Control DAC1282

Other Parts Discussed in Thread: DAC1282

Dear Expert.

I am using DAC1282 with SPI interface. I try to use in DC mode with arduino due.

anybody here can help me. how to send a command for DC mode.

I already try to send this command, but not working.

digitalWrite(5, LOW);
SPI.transfer(0x40);
SPI.transfer(0x02);
SPI.transfer(0x01);
SPI.transfer(0x00);
SPI.transfer(0x10);
digitalWrite(5, HIGH);
delay(10);
digitalWrite(5, LOW);
SPI.transfer(0x44);
SPI.transfer(0x02);
SPI.transfer(0x00);
SPI.transfer(0x00);
SPI.transfer(0x00);
digitalWrite(5, HIGH);
delay(1000);

if you have experience to control it and success, please share your command step.

thanks

  • Hi Toko,

    Can you please share an oscilloscope shot of one of your write frames? Have you been able to read back any of the data you have written? 

    Best,

    Katlynne Jones

  • digitalWrite(5, LOW);
    SPI.transfer(0x40);  //RegWrite start addr from 0x00 .
    SPI.transfer(0x01);  //RegWrite Length 2.
    SPI.transfer(0x01);  // Reg 0x00 = DC Mode
    SPI.transfer(0x00);  //Reg 0x01 = 0x00
    digitalWrite(5, HIGH);
    delay(1);
    digitalWrite(5, LOW);
    SPI.transfer(0x44);  //RegWrite start addr from 0x04 .
    SPI.transfer(0x02);  //RegWrite Length 3.
    SPI.transfer(0x00);  // Reg (DCGain) 0x04~0x06 = 0x000000
    SPI.transfer(0x00);
    SPI.transfer(0x00);
    digitalWrite(5, HIGH);
    delay(1000);

    communication waveform

  • Hi Toko,

    The timing of the SPI from your scope shots look ok to me. Have you been able to read back any of the registers and see the data you've written? What is the A4 signal shown on your scope? Is it connected to the DAC? 

    Can you also provide a schematic? What supplies are you applying to DVDD, AVDD, VREF, DGND, and AVSS pins? What is the state of the reset/pwdn pin? 

    Can you elaborate on how the device is not working? Are you not seeing your expected output? If so, what is your expected output and what is the behavior you are seeing on the DAC output?

    Best,

    Katlynne Jones 

  • Hi Toko,

    I am closing this thread for now. 

    Please feel free to reply if you need further support. 

    Best,

    Katlynne Jones