UDA1334A convert default I2S (16bps) to LSB 24bps?

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bcolbert
 
Posts: 30
Joined: Tue Jan 21, 2020 7:40 pm

UDA1334A convert default I2S (16bps) to LSB 24bps?

Post by bcolbert »

I have an ESP32 -> UDA1334A breakout -> MAX9744 20W amp configured and working with the default I2S (16bps 44.1kHz) configuration but I would like to configure it for the LSB 24bps configuration but I'm not sure of a couple things.

First, what conversion do I need to do to the I2S 16bps (PCM?) data before handing it to i2s_write to make it LSB compatible for the UDA1334A?

I've attached SF0 and SF1 to pins on the ESP32 (33, 32) and I've set them to both to LOW (low/low == I2S standard) and now I just hear noise on the output? I hear noise no matter what I do, even if there is no data coming from the I2S lines. Why is this? What should I connect those pins (SF0/SF1) to?

Thank you,
Brad

User avatar
bcolbert
 
Posts: 30
Joined: Tue Jan 21, 2020 7:40 pm

Re: UDA1334A convert default I2S (16bps) to LSB 24bps?

Post by bcolbert »

Nothing? No advice?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: UDA1334A convert default I2S (16bps) to LSB 24bps?

Post by adafruit_support_mike »

We haven’t really looked into changing the signal resolution, so the amount of useful help we can offer is limited.

The UDA1334A wants LSB-justified data, meaning the upper bits get zero-padded to equal the frame length.

Taking a quick look through the ESP32 documentation, it looks like you’d do that by calling i2s_write_expand():

https://docs.espressif.com/projects/esp ... s/i2s.html

User avatar
bcolbert
 
Posts: 30
Joined: Tue Jan 21, 2020 7:40 pm

Re: UDA1334A convert default I2S (16bps) to LSB 24bps?

Post by bcolbert »

Awesome! Thank you!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”