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

Interrupt driven SPI with multiple slaves

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



Joined: 31 Aug 2012
Posts: 10
Location: India

View user's profile Send private message

Interrupt driven SPI with multiple slaves
PostPosted: Mon Sep 10, 2012 9:46 pm     Reply with quote

Hello folks,

I am trying some impish things, but they really proper ways to study the protocols like SPI.

I am working with SPI which works fine with 1 slave at regular timer 0 1 msec interrupt, but when I adds the second slave then neither of them works...

I think they might have timing issues, OR the CS may not be in sync with the h/w SPI interrupt.

A little help would be good,
Thank you.
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Tue Sep 11, 2012 12:37 pm     Reply with quote

in SPI you have 4 control lines:

SDI: Common to all slaves
SDO: Common to all slaves
CLK: Common to all slaves
CS: independant for each slave

so if you have 3 slaves you will share SDI, SDO,and CLK... but your will need a SEPARATE IO for each CS line of each slave...

G.
_________________
CCS PCM 5.078 & CCS PCH 5.093
bkamen



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

View user's profile Send private message

PostPosted: Thu Sep 13, 2012 10:57 pm     Reply with quote

As a comment from an onlooker, that original post is pretty incoherent.

I can't stress enough that a forum like this needs really clear explanation of terms and problems.

If we have a hard time interpreting your request/problem/question, you will most likely get the wrong answer to that request for help.

As the old saying goes, "Garbage in, garbage out".

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
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