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.

Using SPI of microcontroller for interfacing with I2S chip

Status
Not open for further replies.

learner71

Member level 2
Member level 2
Joined
Jan 5, 2010
Messages
42
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,532
Can we use SPI of microcontroller for interfacing with I2S chip?

_ _

Learner
 

SPI and I2S

normally not, that's depend if you are able to control the data flow very properly, because the I2S is a continuous protocol, used to transport audio samples, and the SPI protocol is more a "burst" transmission.
 

Re: SPI and I2S

does it mean that SPI can be used in place of I2S protocol?
can we not make i2s as i2c?
 

SPI and I2S

i2s and i2c are completly different.

In the case you want implement the I2S with a SPI interface, it would consume a lot of cycles to correctly handle data.
 

Re: SPI and I2S

SPI and I2S are quite different.
But you can assume the following connection:
SPI I2S
MISO nc
MOSI SD
SCK SCK
CS nc

GPIO WS

You can try a SW implementation if:
- your SPI interface has a selectable word length (and one match your I2S device)
- you have enough CPU time
- a very fast core to manage WS into the proper timing.

It may be quite hard.
Let us know your results if you try it.

Bye
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top