Go Down

Topic: SPI interface with other board_AVR_ESK1100 or among Arduino itself (Read 10 times) previous topic - next topic

ranjeetray


What other board? How is everything wired up?

Quote
And I am thinking that once it comes out the slave mode loop it should act as a master by default. Can it happen like this.


By default? I don't think so.


Respected Sir

Please suggest how to do it and can we clear the buffer also.

Please guide me Sir.

Because received one byte data is going back on to SPI bus again when I send back data from slave.

Thanks & Regards...  :-)

Nick Gammon

You've chosen to not answer my question:

Quote
What other board? How is everything wired up?


Why?

Nick Gammon

Quote
Because received one byte data is going back on to SPI bus again when I send back data from slave.


I don't understand that.

ranjeetray

#53
Oct 09, 2012, 11:01 am Last Edit: Oct 09, 2012, 11:46 am by ranjeetray Reason: 1

Quote
Because received one byte data is going back on to SPI bus again when I send back data from slave.


I don't understand that.

When I send data from slave to master, data is not available on SPI bus.

Nick Gammon

For the benefit of people who don't have MS Word, your connection diagram is:



Can you explain why you want to send data from one to the other, and then back again? Why not leave it where it started in the first place?

And assuming you have a good reason, on my page here:

http://www.gammon.com.au/spi

I describe how to send data between two Arduinos using SPI. Scroll down to "How to get a response from a slave".

I don't understand this sort of talk, to be honest:

Quote
Because received one byte data is going back on to SPI bus again when I send back data from slave.

Go Up