Hello there!
I'm trying to communicate with a DAC7568 through Arduino code, using SPI, but I don't seem to get it right.
DAC pins LDAC, SYNC and CLR are defined through and MCP23S17 expander, with which I can communicate perfectly. So to define these pins, I need to send data to the expander first. So far, so good.
After that, I try to use the SPI library from Arduino to write to the DAC. I lower the SS pin, write SPI.begin() and after that SPI.transfer(...).
Inside the SPI transfer I'm putting the 32-bits reffered on the DAC datasheet. But somewhere along these three lines I'm doing something wrong.
Can anyone explain me how I can make this work?
Thank you.