Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] is it possible that master and slave can communicate in different modes in spi

Status
Not open for further replies.

saswat

Junior Member level 2
Joined
Nov 16, 2012
Messages
20
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,418
Suppose i have 10 slaves and all are working in different modes, then what is the best way for the master to communicate with these slaves. I mean to say is,if master is in mode 0 then is it possible to communicate with the slave which in different mode (mode 1 or mode 2 or mode 3) , is their will be any data corruption in the slave side or in master side??.

Or, as at a time master can communicate with only one slave, and master have the control on chip select pin, so before communicating with the slave the master set itself with the mode that the slave is working on.

Please help.....
 

Or, as at a time master can communicate with only one slave, and master have the control on chip select pin,
That's obviously true.

so before communicating with the slave the master set itself with the mode that the slave is working on.
So the conclusion is correct as well.
 
  • Like
Reactions: saswat

    saswat

    Points: 2
    Helpful Answer Positive Rating
So master and slave should always communicate with each other using same mode.

Thank you FvM
 

The active clock edge is essential and must not be changed, a different initial clock state is partly tolerated. Means mode 0 can be often changed to mode 3 or vice versa and mode 1 to mode 3.
 
  • Like
Reactions: saswat

    saswat

    Points: 2
    Helpful Answer Positive Rating
sorry......i couldn't get you, can you please describe this briefly...
 

Review the device datasheets. They often support more than on mode, e.g. both mode 0 and 3.
 
  • Like
Reactions: saswat

    saswat

    Points: 2
    Helpful Answer Positive Rating
Ya......i have interfaced mcp3204 (ADC) which supports mode 0 and mode 3. That means master can only communicate with the slaves modes availability, we cannot communicate master in mode 0 and slave in mode 1.
 

That means master can only communicate with the slaves modes availability, we cannot communicate master in mode 0 and slave in mode 1.
You cannot without switching the master mode before each slave transaction.
 

Actually i am getting confused......i am giving one example:-
like in mcp3204, in the datasheet it is mentioned that mcp3204 can be interfaced in mode 0 and mode 3. That means master can only communicate with mcp3204 only in mode 0 and mode 3, master cannot communicate in other modes like mode 1 and mode 2

please correct me if i am wrong.....
 

Yes, it is as you are stating. You need to switch the master mode back and forth (e.g. between 0 and 1) if you want to communicate also with other peripherals.
 
  • Like
Reactions: saswat

    saswat

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top