I am interfacing AD5392 external DAC using SPI with Renesas v850 controller ...
When i tried to write input reg0=reg1=1 with test value= 0x3aa but we are not getting DAC(Channel 0) output voltage.
We ensured SPI 24bits with MSB first.
Need help configuring steps.
Attached Datasheet and SPI clk, MOSI and DAC Busy and LDAC pins status
Thanks in advance
The AD5392 input register is 24 bits wide. What is the full write that you're trying to write to the part? I've calculated the below....let me know if it agrees.
AB/B = 'b0
R/WB = 'b0
B21 to B19 = 'b000
ADDR = 'b001
REG1 and REG0 = 'b11
DB13 to DB0 = 'b00 0011 1010 1010
Data to write = 'b0000 0001 1100 0011 1010 1010 or 'h01C3AA.
The DAC samples on the falling edge of SCLK, looking at your plot it looks like you're either not aligned to the correct SCLK edge or you're writing the correct value.
Thanks for your response.
I said 0x300 only data bytes.
The all 24bits I am sending is 0x00faaa
Data to write = 0000 0000 1111 1010 1010
ADDR = 'b000
I data is out during falling edge of the clock
I don't think your write (0x00faaa)correctly matches the waveform you showed. The waveform has the second bit high.
Also what channel do you want to write to?
The image which is given for just reference .
Please find the image which i have attached exact for 24bits 0x00faaa
Thanks for your support.
Now its working fine. it was SPI mode configure issue.