NordicAudioWave: Using a dev board with an I2S DAC

At this point in time, there is very little information available on how to use a nrf5340dk board in combination with an I2S DAC chip (Adafruit I2S Stereo Decoder – UDA1334A). Theo (GATCODE) posts on GitHub to help.

This sample is based on the Zephyr I2S testcases (copied sine wave data_frame table), as well as the I2S Echo sample. Please take a look at these samples if you want to get further information on how you can use the I2S driver itself.

Furthermore, the concrete API definitions can be found here.

To be able to talk to I2S devices, one has to follow (more or less) the following steps:

  • Step 1: Get the I2S device from the devicetree
  • Step 2: Allocate a memory slab
  • Step 3: Configure the I2S device
  • Step 4: Allocate memory blocks in the memory slab
  • Step 5: Trigger the start of the data transmission
  • Step 6: Fill the memory blocks with your data (e.g. sine wave)
  • Step 7: Use i2s_trigger(...) to write the data to the I2S device

See more of how this is done with code (Apache license) on GitHub here.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.