Hi,
You can find more information in the following links:
https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf
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!
-----------------------------------------------------------------------------------------------------------------------
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.
Thank you,
can you suggest any document for reference of I2S Bus.
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: