Please help check on SPI timing diagram

Thread Starter

richiechen

Joined Jan 1, 2012
93
Hi all

[Problem solved]

I am trying to use PIC30F2012 to control a DAC
(AD5760, http://www.analog.com/static/imported-files/data_sheets/AD5760.pdf)

through SPI.

However, it just does not work....
Could you please help me check on the SPI timing sequence or any problem?
The attached files are the timing diagrams captured.

The first command sent is: 0x200000, which is to configure the DAC
The second command sent is: 0x1fff00, which is to make the output as 0xfff0.
After the second command, a latch* falling edge will be given to update the output.


[Problem solved.]

The timing diagram is correct. When I was trying to test the maximum and minimum value of DAC, I just used 0xffff and 0x0000 and expecting them to have minimum and maximum values.

However 2's complement is adopted by DAC as a default value. As a result, there is no big difference between these two values. And I though I made s mistake on SPI.

Now it works fine.

Thank you all.

Thank you very much.
Regards
Richie
 

Attachments

Last edited:

tshuck

Joined Oct 18, 2012
3,534
Two things I would say to do, first, post your schematic. Second, determine if you are getting output on pin 11(SDO of the DAC)....
 

Thread Starter

richiechen

Joined Jan 1, 2012
93
There is no PIC on that schematic. Did you post the one you meant?
Thanks Ernie. I did post the one I meant. The port is implying PIC.

Problem solved.

The timing diagram is correct. When I was trying to test the maximum and minimum value of DAC, I just used 0xffff and 0x0000 and expecting them to have minimum and maximum values.

However 2's complement is adopted by DAC as a default value. As a result, there is no big difference between these two values. And I though I made s mistake on SPI.

Now it works fine.

Thank you all.
 
Top