[51] spi data transfer issues from slave to master

Status
Not open for further replies.

Darpan747

Newbie level 4
Joined
Feb 26, 2014
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…