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
[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
-
150.8 KB Views: 21
-
216.4 KB Views: 19
-
236.5 KB Views: 22
Last edited: