This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Simple I2S Example

I'm embarrassed to say that the loopback I2S example, while able to show me that data can be sent and received through I2S, wasn't enough to help me achieve a simple demonstration of emitting a tone. Could anyone help me or provide an example of outputting a simple 8bit single channel tone over I2S?

  • Hello blueshifting

    There is a bare-metal example for transmitting a simple sine wave on github, under examples\i2s_master here. Do keep in mind the I2S cannot generate a tone itself, as it is simply a digital data transfer protocol. Any tone you want to transfer must be defined as a series of data-points with the correct sampling rate. You can read more on the I2S specification here, and the I2S hardware peripheral for the nRF52832 here.

    Best regards

    Jørn Frøysa

Related