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  [ 3 posts ] 
Author Message
 Post subject: SPI Tx ?
PostPosted: Mon Feb 14, 2005 3:03 am 
Offline

Joined: Mon Feb 14, 2005 2:41 am
Posts: 9
Location: seoul,korea
HI

When at91sam series is in tx master mode, at91sam series can setup data length of 8-16bit by software

QUESTION :HOW CAN SLAVE ACKNOWLEGE DATA BIT LENGTH ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 14, 2005 3:20 pm 
Offline

Joined: Mon Jan 10, 2005 11:40 pm
Posts: 12
Both the master and the slave must be set to send/receive the same number of bits during the transmission. This needs to be done prior to the transmission and is presumably be done during your spi setup routines for both the master and the slave.

You could perhaps set up a negotiation between master/slave in which a default setup (say 8bits) is used to tell each chip what the new settings would be, then each would change their settings and hopefully talk again successfully. But that is something that would need to be written in software by you.

Hope this helped.


Chris Lathan


Top
 Profile  
 
 Post subject: I FOUND SPI DATA LENGTH SELECT BITS
PostPosted: Thu Feb 17, 2005 8:23 am 
Offline

Joined: Mon Feb 14, 2005 2:41 am
Posts: 9
Location: seoul,korea
thanks for reply Chris Lathan

I found spi length select bit
That is the CSR register in the BITS select field.

bye!


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 20 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: