Hi, I'm trying to read data from a Maxim MAX1231 ADC (slave) with the AT91SAM7S64 (master).
Problem: The Maxim chip buffers the data from it's acquisition in a FIFO. It sends the data out Dout (MISO) a byte at a time triggered on (I believe) the chip selects (NPS0 is the particular SPI chip select I'm using).
I don't know how to do this since the AT91SAM7S64 SPI expects to receive data in on MISO during it's transmission on MOSI. I'm using the conversion command to trigger the acquistion on the ADC, i.e. "clock mode 10".
So, I need to use PDC right? That is, AT91F_SPI_ReceiveFrame()? Can AT91F_SPI_ReceiveFrame() be used without using AT91F_SPI_SendFrame()? I would think so. Does the PDC process use the configured chip select to receive data (AT91SAM7S64 SPI is configured for 8-bits packets) on MISO?
Thanks for any help, I'm a newbie feeling like I'm in over my head. Next I've got to tackle USB to offload the data from my board (CDC class mode to a Linux board).
Regards, Victor