Hi,
I am having issues when I am trying to control and communicate with the DAC8760 IC. I am trying to get the either one of the outputs to work but with no success.
Here is the initializing for the DAC:
DACx760WriteReg(spi, ADDR_RESET, 0x01); //software reset
DACx760WriteReg(spi, ADDR_CTRL, (0x01<<CTRL_RANGE)|(0<<CTRL_OVR)|(1<<CTRL_OUTEN)); //0-10V
DACx760WriteReg(spi, ADDR_CONFIG, 0x0300); //I Out 4...20mA, Dual enabled
DACx760WriteReg(spi, ADDR_DATA, 0x7FFF); //set data to 0.5
And here are the readings from different registers and final message it to set the output for 50%
As seen on the first readout for data register I get nothing, Control register is OK, Configuration is OK but Status is NOK since I should have open circuit bit when the... circuit is open?
What am I missing here? Why can't I set or read the DAC register?
Here is the schematics, SPI1_CLR is always low.