AT91SAM7S64 SPI question
- From: to.vic.man@xxxxxxxxx
- Date: 19 Jan 2007 22:05:51 -0800
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
.
- Follow-Ups:
- Re: AT91SAM7S64 SPI question
- From: MK
- Re: AT91SAM7S64 SPI question
- Prev by Date: Re: Microcontrollers/Microprocessors with 3 or more SPI Controllers ?
- Next by Date: microcontroller related
- Previous by thread: memory remap
- Next by thread: Re: AT91SAM7S64 SPI question
- Index(es):
Relevant Pages
|