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.

[51] spi data transfer issues from slave to master

Status
Not open for further replies.

Darpan747

Newbie level 4
Newbie level 4
Joined
Feb 26, 2014
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
50
Hello, P89v51rd2 is an extended version of 8051 which supports spi communication.
I have two controllers.
I have done ss,mosi,miso connections and clock connections.
When i send some data from master to slave it is working correct as it gets displayed on the lcd.
The problem I am facing is when I go for data transfer from slave to master that is using miso line.
Can anyone suggest what changes to be made?
Or which bit to be set or reset to make data transfer from slave to master in that same code?
 

Have you looked at your slave output data with a scope? IS THERE ANY DATA? Is it aligned properly with the clock?
 

Yes
The master to slave transfer is going perfect.
What all changes to be done for slave to master transfer ?
 

Yes
The master to slave transfer is going perfect.
What all changes to be done for slave to master transfer ?

You didn't answer the question: Is there properly aligned data being transmitted FROM the slave? If so, then there must be a problem with your master receiving data.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top