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.

how spi decide when to receive (miso) and when to transmit (mosi)

Status
Not open for further replies.
Re: how spi decide when to receive(miso) and when to transmit(mosi)

The datasheet for the slave device will tell you exactly what to send to the slave and how/when the slave will respond to the transfer.

r.b.
 

Re: how spi decide when to receive(miso) and when to transmit(mosi)

Hi,

SPI master sends a byte, at the same time the slave sends a byte.
Clk is generated by the master.

Klaus
 

Re: how spi decide when to receive(miso) and when to transmit(mosi)

Hi,

SPI master sends a byte, at the same time the slave sends a byte.
Clk is generated by the master.

Klaus

To add to this...the typical read protocol on SPI would be:
1. the master sends one or more bytes as address, the slave returns byte(s) (which could contain anything).
2. the master pauses, letting the slave get data for that address
3. the master sends data bytes (dummy data), and receives the slave read data while sending the dummy bytes.
 

Re: how spi decide when to receive(miso) and when to transmit(mosi)

SPI master sends a byte, at the same time the slave sends a byte.
Yes, the communication is potentially full duplex. But the option isn't used respectively not useable in all applications.
 

Re: how spi decide when to receive(miso) and when to transmit(mosi)

And one thing not said: Chip Select (CS or SS).

Every (nearly) SPI device will have a chip select which determines when it listens to MOSI and when it transmits on MISO.

Typically the device will go high impedance on MISO when chip select isn't active which lets you have multiple devices on one set of CLK/MISO/MOSI lines.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top