-1

Working with a LTC2606CDD#PBF 16 bit DAC. I cannot get any voltage out. I found this library https://github.com/rambo/I2C

I2C scan reveals.

Master Address 0x73
Slave Address 0x10

Here is my code.

#include <I2C_16Bit.h>
#include <Wire.h>

// Put your own I2C address here
#define I2C_ADDR 0x10

// Your register address, which can be found on your IC's datasheet
#define DATA_REGISTER_ADDR 0x73

void setup() {
    Serial.begin(9600);

    I2C_16Bit_begin();
}

void loop() {
    I2C_16Bit_writeToModule(I2C_ADDR, DATA_REGISTER_ADDR,0XFFF);
  delay(500);
    uint16_t registerData = I2C_16Bit_readFromModule(I2C_ADDR, DATA_REGISTER_ADDR);

    Serial.print("Register data: ");
    Serial.println(registerData);

    delay(1000);
}
New contributor
TandyAndy is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
3
  • 1
    maybe the DAC is not connected correctly ...ease show your connections ... please add a clear, answerable question to your post... update your question ... do not use comments
    – jsotola
    Mar 16 at 18:00
  • Why are you provide a link to a library that you never use and yet in your sketch you use another library?
    – hcheung
    Mar 17 at 5:29
  • Did you read the datasheet of [LTC2606CDD](LTC2606CDD)? based on figure 3 and table 2 in the datasheet, how you come out the code for I2C_16Bit_writeToModule(I2C_ADDR, DATA_REGISTER_ADDR,0XFFF); and I2C_16Bit_readFromModule(I2C_ADDR, DATA_REGISTER_ADDR);? It simply doesn't match any operation of the chip.
    – hcheung
    Mar 17 at 5:31

0

Your Answer

TandyAndy is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.