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 to read and write data at a time using spi protocol

Status
Not open for further replies.

vsrinivas

Newbie level 4
Joined
Jul 15, 2006
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,332
I have one doubt on spi protocol.How to read and write data through spi at a time.Is there any specified method is there for that.Actually we can read or write only one operation at a time.But how can i read and write both at a time instantaneously.
 

SPI has separate lines for sending and receiving data so you can easily do it at the same time while generating the clock, as regards to how then the both the sending and receiving devices datasheet is required.
 

Hi

In order to that you will need to use Interrupt and a ring-buffer

connected to SPI hardware

You can also use a DMA whether it is available in you micro.

All the best

Bobi

The microcontroller specialist
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top