Other Parts Discussed in Thread: DAC7553
HI all,
Anyone here working with DAC7553?
I am working with it and have serious problem!
I have a piece of code to set it in a way to have special volts on output A,
this is my code:
DigIn = ((Volt*4096 ) /3 + 0x800) & 0x0FFF ; //Changing desired output voltage to a hex value, 4 upper bits set to 0
DigInHI = DigIn >> 8 ;
DigInLOW = ((unsigned char)DigIn) ;
PwrI2CstateLO &= 0xFE; // falling edge on SYNC!
WriteI2Creg(0x02, PwrI2CstateLO);
SPIwrt(DigInHI); // sending upper byte of temp
temp1 = DelayT4(0x0010); // delay for SPI transfer to complete
SPIwrt(DigInLOW); // sending lower byte of temp
temp1 = DelayT4(0x0010); // delay for SPI transfer to complete
PwrI2CstateLO |=0x01; // rising edge on SYNC!
WriteI2Creg(0x02, PwrI2CstateLO);
ClrSel(); // release the I2C bus
this is indeed a function and then in my main I call it with a special volt parameter that I need, but it is not working, no matter what voltage I write instead of Volt parameter.
Is there any especial thing that i have to take consider into? like timing in sync! or so?
Bests