![]() |
2010-11-04
, 10:27
|
Posts: 30 |
Thanked: 42 times |
Joined on Oct 2010
@ Russia
|
#2
|
The Following User Says Thank You to butler For This Useful Post: | ||
Case 1: processor sends 'cmd+add+data' to memory chip via SPI bus.
Firstly the processor has to send cmd code to inform the memory what it wants to do.
And then followed by address, due to memory chip could be randomly accessed.
Finally the processor writes/reads the data to/from the memory chip.
This case is clear to me.
Case 2: processor communicates with WLAN module via SPI bus.
Is it same to case 1?
Case 3: processor communicates with another processor via SPI bus.
What will transmitted on SPI bus? Only data? Because both processor can config its SPI register by itself, it seems no need to send cmd+add.
But if only data is transmitted, and the master processor needs to switch SPI write to SPI read, how can the slave processor knows this?
Thanks!
Last edited by justforfun; 2010-11-04 at 09:22.