SPI mode of AD5791?

I am trying to use the SPI interface on a Raspberry Pi to control AD5791. The software that I use to communicate with Pi is Matlab.

Q1: When writing to SPI, it is necessary to determine the mode depending on the CPOL and CPHA of AD5791. Is the SPI mode for AD5791 mode 2?

Q2: I am following this guide here https://wiki.analog.com/resources/quick-start/ad5791. However, after writing to the DAC register in the example 1 is done, should I change the RESET, CLR, and/or LDAC bits in order to update the Vout? 

Thanks.



typo corrected
[edited by: imisaac at 11:26 PM (GMT 0) on 19 Apr 2019]
Parents Reply Children