Is i2c and i2s transmit and receive frame formats are same or different . Like in i2c start_bit , Slave_address_ack, data, and stop

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is i2c and i2s transmit and receive frame formats are same or different . Like in i2c start_bit , Slave_address_ack, data, and stop

1,649 Views
saikrish417
Contributor II

I want I2S Receive  and transmit frame format .

Labels (2)
4 Replies

1,314 Views
soledad
NXP Employee
NXP Employee

Hi, 

You can find more information in the following links: 

https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf 

I2C - What's That? - I2C Bus 

For LPC17xx devices, you can use LPCOpen, LPCOpen is an extensive collection of free software libraries (drivers and middleware) and example programs that enable developers to create multifunctional products based on LPC microcontrollers. Access to LPCOpen is free to all LPC developers.
You can download it from the following link:

LPCOpen Libraries and Examples|NXP 

After download it, you will find some peripheral examples including I2S and I2C.

Have a great day,
Sol

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,314 Views
ianbenton
Senior Contributor I

I2C and I2S are completely different.

I2S has 3 wires with DATA, BITCLOCK and WORDCLOCK. (There's also MASTERCLOCK, but that's not part of the data exchange)

Each frame has n bits of data (where n is usually 24), MSB first. Data changes on the falling edge of BITCLOCK.

WORDCLOCK changes on the BITCLOCK high-to-low transistion prior to the on that marks the start of the MSB

Look in any Audio DAC datasheet - it's shown in every one of them.

Personally, I find the left- and right-justified modes easier to deal with, because they can be sent from an SPI port from a microcontroller without the I2S peripheral.

1,314 Views
saikrish417
Contributor II

Thank you,

can you suggest any document for reference of  I2S  Bus.

0 Kudos

1,314 Views
ianbenton
Senior Contributor I

I'm quite a fan of Wolfson DACs, and found their datasheets easy to read. So have a look at figure 6 on page 13:

https://statics.cirrus.com/pubs/proDatasheet/WM8761_v4.6.pdf 

But NXP do some pretty good DACs as well and I'm sure they won't like my recommending the opposition, so have a look at figure 3 on page 7:

https://www.nxp.com/docs/en/data-sheet/UDA1330ATS.pdf 

0 Kudos