To try to make the ADS8509 interface be as SPI-like as possible, I think
you want to use the method shown in this diagram in the data sheet:
Quote:
Figure 4. Read After Conversion (Discontinuous External DATACLK)
That diagram shows that data changes on the rising edge of the external
clock, so presumably you would sample (in the PIC) on the falling edge.
Also, on page 17 of the data sheet, it says:
Quote:
In this discontinuous external clock mode with no SYNC, 16 clocks are
necessary to read the data on the falling edge.
This means data is sampled (by the PIC) on the falling edge.
That's confirmed.
Figure 4 in the data sheet also shows that the external clock idles at a
low level.
Now look at the SPI modes diagram on this page:
http://www.totalphase.com/support/kb/10045/#modes
It's clear that Mode 1 idles at a low level and samples on the falling edge,
so that's the mode to use.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum