Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Continuous transfer fails for SPI controller (AT91SAM9260).
PostPosted: Thu Jul 07, 2011 7:57 am 
Offline

Joined: Thu Jul 07, 2011 7:25 am
Posts: 2
Hi,

I'm trying to send/receive data using SPI-1. My use case involves sending and receiving continuous data but it seems that SPI controller is frequently missing one or more bytes. Further more, I get random garbage data bytes after around 10 transfers (8 bits each).

I've downloaded the sample codes from the following location. The my SPI driver is doing read/writes exactly the same way.

http://www.atmel.com/dyn/products/tools ... ol_id=3933

Here's a little about my driver configuration.

* Using Fixed Peripheral Select (SPI_MR[PS] = 0).
* Chip select register 0 (SPI_CSR0).
* Master Mode.
* 8 bit transfer size.

There's nothing mentioned in the Errata for this scenario, the same driver works okay with AT91SAM9263. Any pointers are much appreciated.

Thanks!


Top
 Profile  
 
 Post subject: Re: Continuous transfer fails for SPI controller (AT91SAM9260).
PostPosted: Thu Jul 07, 2011 10:31 am 
Offline

Joined: Thu Jul 07, 2011 7:25 am
Posts: 2
continuing my earlier post....

Its an interesting observation that the data byte missed is actually copied to SPI_RDR (Receive data register).

So basically when I write data in SPI_TDR, it either gets transferred to the slave (which is correct) or it gets transferred to SPI_RDR (incorrect).

Any pointers/thoughts?

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 3 guests


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 post attachments in this forum

Search for:
Jump to: