CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

regarding spi communication

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
gopalakrishnan



Joined: 18 Jun 2010
Posts: 25

View user's profile Send private message

regarding spi communication
PostPosted: Mon Dec 13, 2010 8:55 am     Reply with quote

hai to all

1. is it possible to communicate more than 128 devices through spi? if yes what is the limit of peripheral devices to be interfaced through spi?

2. is it possible to intercommunicate between the slaves?

3. more than one slave will communicate the master is it happens?

4. is it possible to arrange pic in cascaded manner through spi communication?


with regards
K.Gopalakrishnan
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Mon Dec 13, 2010 9:34 am     Reply with quote

1). At heart, yes, _but_ it becomes down to you generating the CS lines, and some form of bus transceiver will be required (the 'fanout' of a standard output, varies with frequency, and drive voltage, from only about 10, up to potentially several thousand devices).
2) No. SPI, is a master-slave interface.
3) Since it is master-slave, master always initiates the transaction, and it controls the selection of devices.
4) Yes. You could design a SPI protocol, that passes a packet, which then triggers the transmission of a packet on a second SPI bus.
Why the reference to '128'. There is no address numbering in SPI, 128, is the limit in I2C, when using 7bit addressing. Nothing to do with SPI...

Best Wishes
gopalakrishnan



Joined: 18 Jun 2010
Posts: 25

View user's profile Send private message

regarding spi
PostPosted: Tue Dec 14, 2010 10:37 pm     Reply with quote

Thank you very much. When do we use SPI and when do we use I2c ? What are the basic differences ?
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Wed Dec 15, 2010 12:54 am     Reply with quote

http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

http://en.wikipedia.org/wiki/I2C
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
gopalakrishnan



Joined: 18 Jun 2010
Posts: 25

View user's profile Send private message

regarding SPI
PostPosted: Wed Dec 15, 2010 6:28 am     Reply with quote

hai to all

what are spi extenders? what is the use of it?

is spi communication is bi-directional? if yes when i connect multiple slaves with master if individual slave will communicate with the master? if so when more than one slave will communicate at the sametime to the same master what happens? where slave will communicate to the master with some id's mentioned during program?
or
all the slave SDO are tied together and fed to the SDI and slaves are controled through individual slave select line?

kindly clarify my doubts?
Geps



Joined: 05 Jul 2010
Posts: 129

View user's profile Send private message

Re: regarding SPI
PostPosted: Wed Dec 15, 2010 6:45 am     Reply with quote

gopalakrishnan wrote:
hai to all

what are spi extenders? what is the use of it?

is spi communication is bi-directional? if yes when i connect multiple slaves with master if individual slave will communicate with the master? if so when more than one slave will communicate at the sametime to the same master what happens? where slave will communicate to the master with some id's mentioned during program?
or
all the slave SDO are tied together and fed to the SDI and slaves are controled through individual slave select line?

kindly clarify my doubts?


If you have a look through the links bkamen kindly posted for you, it will answer alot of your questions.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group