Questions tagged [i2s]

Despite the name, it is unrelated to the bidirectional I²C bus. I²S is a media-specific protocol which uses at least three signals: Bit CLK, Word CLK, and at least one data line.

Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

STM32F746 I2S clock fails

I have discovery board STM32f746NG In first try I've set this: Activate I2S2 with piout: PB4->WS - PI3->SD - PI1->CK. Instantly after activating I2S periferal with command ...
user avatar
1 vote
0 answers
46 views

ESP32 High Sample Rate I2S

Recently, I've been working on a project that involves receiving a high sample rate I2S signal and writing it to an SD card with an ESP32. At the moment, however, I believe I'm struggling to even ...
user avatar
0 votes
0 answers
53 views

Capturing High Speed I2S To SD Card

I've been working on a project that involves receiving two high speed I2S lines and writing the data off of them to an SD card. The interface has the word select and bit clock I2S lines shared between ...
user avatar
1 vote
1 answer
38 views

I2S microphone data synchronization for left and right channel

I have I2S MEMS microphones (transmitters, stereo) in slave mode and a microcontroller in master mode. When the WS pin iw 0 (low) the data available on the SD pin is for the left channel (microphone ...
user avatar
4 votes
1 answer
119 views

If I invert an I2S data line, it inverts the audio, right?

It seemed obvious to me, but then I read all these audio forums where they're talking about overflow, tones, etc. and I just want to make sure I'm not missing something. If you take an I2S signal: ...
user avatar
  • 27.8k
1 vote
0 answers
60 views

Capturing High Sample Rate I2S via USB

Recently, I started working on a project to convert my Sony XDR-F1HD radio to a device that I can connect to over ideally USB to record the RF signal off of the air. All demodulation and processing is ...
user avatar
1 vote
0 answers
77 views

I2S slave communication without an MCU - how to generate the clocks?

I am designing an audio amplifier circuit which uses an I2S digital MEMS mic (INMP441) for picking up voice signals and an I2S class-D amplifier (MAX98357A) for amplification. I have attached the ...
user avatar
  • 87
5 votes
3 answers
1k views

I2S communication

I am designing an audio amplifier circuit which consists of an I2S digital MEMS mic (INMP441) for picking up voice signals and an I2S class-D amplifier (MAX98357A) for amplification. Both these ICs ...
user avatar
  • 87
0 votes
0 answers
62 views

No sound from I2S codec

I have a STM32F411R Nucleo board and I'm trying to connect it to a CS4245 audio codec to play audio but I can't get any sound out of it. The connections are: Nucleo CS4245 PB10 (I2S3 MCLK) 40 (MCLK2)...
user avatar
1 vote
1 answer
377 views

Multi channel I2S vs TDM

I need to receive 8 channels of 24 bits at 48KHz. So I have two possibilities to accomplish that: either using 4 I2S or TDM. I would like to understand the difference in clock rates between I2S and ...
user avatar
  • 111
1 vote
2 answers
134 views

I2S voltage shifters needed?

I am designing the schematics for my new PCB and I need to output some audio signals (totally new to this). I am using an ESP32-SOLO-1 as MCU and the TFA9879HN as audio driver. The TFA9879HN is ...
user avatar
3 votes
1 answer
117 views

Resistor between 74595 SRCLR and GND

What is the function of this resistor and is it okay with this value ? Rizki
user avatar
0 votes
0 answers
62 views

Driving a piezo with digital input (I2S)

In a current project, I'm trying to chirp a piezo sounder in the 40 kHz range. So far, I chose the PAM8904Q piezo driver, which accepts PWM input. As it now turns out, my microcontroller cannot output ...
user avatar
0 votes
0 answers
61 views

Connecting a large number of I²S busses to a computer

I'd like to try designing a digital mixer using a Raspberry Pi CM 4. The first problem I'm facing is how to connect a large number of ADCs and DACs to the Pi. These converters have a resolution of 24 ...
user avatar
  • 407
0 votes
1 answer
103 views

switching between multiple clock (I2S, audio)

I'm trying to draw a schematic that I need for selecting a single clock among four possible clock sources. I'd like to select the source using a simple 4 way mechanical switch. The sources are: 22....
user avatar
0 votes
0 answers
54 views

I2S: generate BCLK/WDCLK in the absence of a master device

I'm trying to understand if I can use 4 x PCM4222 ADCs (datasheet) with the ADAT generator AL1401 (datasheet). They would be working togheter using PCM audio mode, left-justified format, that both ...
user avatar
1 vote
1 answer
135 views

CS8406 Audio Interface (I2S->I2C)

I'm attempting to interface a MEMS Microphone with an ESP32 through a CS8406. I am aware that the ESP32 has a well-documented I2S hardware interface however for my project I cannot use it. (It's going ...
user avatar
  • 42
0 votes
1 answer
88 views

What is Analog Ground in UDA1334A?

I purchased Adafruit's UDA1334A I2S Stereo DAC, and I'm trying to figure out how to wire it to speakers. I see I have the Lout and Rout pins, which I suppose is the positive for the left and right ...
user avatar
  • 205
0 votes
1 answer
199 views

Converting SPI/I2S to SAI peripheral setup help

Just a quick question, I just need some help figuring out what is what. The device that I am working with is the: STM32H753ZI reference I am coming from the I2S peripheral and wanting to setup the SAI ...
user avatar
  • 1,327
3 votes
1 answer
157 views

Why is my frequency being effectively doubled?

I'll try to explain everything with detail as this is one will be a hard one to explain. Essentially what I am trying to achieve is sum both the left & right channel to produce a mono signal to be ...
user avatar
  • 1,327
0 votes
1 answer
67 views

What is the meaning of pulling a pin HIGH (of an IC)?

Let's say I have a microcontroller (ESP8266) driving a DAC via a I2S protocol. So the ESP is connected with 3 pins to the DAC, and sending the data to it throught these pins. But I wonder, how exactly ...
user avatar
  • 205
1 vote
1 answer
174 views

STM32H7 refuses to transmit any I2S samples

I am having the biggest issue with the I2S right now What is happening: For whatever reason the I2S does not want to transmit any samples VIA DMA. Doesnt matter what I do what I try. The weird thing ...
user avatar
  • 1,327
1 vote
0 answers
260 views

How can I go about learning to output audio to a speaker using a STM32 board?

I am hoping someone can point me in the right direction. I am trying to learn how to output audio on a STM32 board. The board I have is the STM32F746ZG NUCLEO board. I have small (1-3) second audio ...
user avatar
0 votes
0 answers
61 views

How to capture the I2S signal via Raspberry Pi Zero?

I would like to capture the I2S data from ADC CS5340 by raspberry Pi zero, but I could not find relevant I2S API to use in raspberry pi zero. Could anyone help me on this? Thanks!
user avatar
0 votes
1 answer
32 views

How to set MCLK in CS4270

I need to use the cs4270 for audio codec and I find that there are three bits to set the ratio select in Mode control part. I do not know how to set these three bits and what is the MCLK use for?
user avatar
  • 1
0 votes
0 answers
138 views

Transmitting I2S over 6ft

I've been looking at audio ADCs with most rated at 192Ksps with 24 bit audio. Typically the output is in I2S, but I understand that the signal is not intended to go far. I understand that HDMI can ...
user avatar
0 votes
0 answers
77 views

Can an I2S speaker and microphone share the same I2S clock? What about word select?

If one is very tight on GPIOs, could an I2S TX and RX share any pins? Edit: The device I was thinking of was the ESP32, connected to an I2S microphone and speaker, for example SPH0645 and MAX98357A.
user avatar
  • 393
0 votes
1 answer
375 views

Can someone help me explain I2S timings when it comes to master and multiple slaves

I am just getting stuck as to what's happening. Below explains the functionality of each of the hardware and how they interact with each other to give you a better idea of the situation. HARDWARE USED:...
user avatar
  • 1,327
3 votes
1 answer
377 views

I2S input (ADC) yields garbage, output (DAC) works fine

Setup: STM32F407 (discovery board) used in I2S master mode I2S in/out module, 24 bit over 32 bits frame, used in I2S slave mode using CubeMX's HAL for the prototype (this might not be relevant) I2S ...
user avatar
  • 151
1 vote
1 answer
296 views

How does a channel know to drive in I2S TDM mode?

I'm learning I2S right now and I am curious about working in an environment where 8 or so audio devices could be in the setup. I understand TDM mode would allow the Controller (Master in legacy terms) ...
user avatar
1 vote
0 answers
103 views

STM32H7 I2S Switching from a Fws 96kHz to 48kHz everything stops working, why?

everyday something new with this board. I recently discovered I was in the wrong Fws to implement my IIR filters as discussed in a previous question I posted. The solution is essentially step down my ...
user avatar
  • 1,327
0 votes
0 answers
242 views

Why is the STM32 reference manual stating the wrong sample frequency for I2S?

This could be a misunderstanding but everything I have gathered and seen it looks like there's a disconnection on what the reference manual says. On Pg. 2212, in the STM32H753ZI it states: "The ...
user avatar
  • 1,327
1 vote
1 answer
57 views

Unexpected Behavior: i2s L/R clock only works under arbitrary conditions?

I'm new to Verilog (and HDL at all) and working with a Cyclone II EP2C5 Mini Dev Board in Quartus II (version 13sp1 to be compatible with my cheap FPGA). I use the below two modules (one mostly just a ...
user avatar
0 votes
1 answer
163 views

Problems interfacing PMODI2S2 with STM32H7

Back at it again, however this time not sure what the problem is. I have a PMODI2S2 device that is an Audio codec. It interfaces with the STM32H753ZI Microcontroller VIA SPI/I2S. The problem that is ...
user avatar
  • 1,327
0 votes
1 answer
134 views

Having issues with I2S with DMA using bare metal

I am trying to setup the I2S Peripheral to interact with the Pmod I2S module. The FW and SCLK are not generating, however I can see the MCLK on the oscilloscope. Using the ST32H753ZI What I have done ...
user avatar
  • 1,327
0 votes
1 answer
395 views

I2S between multiple devices

I am trying to design an audio amplifier based on a digital input chip (TAS6424-Q1 for example) with two, stereo, I2S enabled sources for the input (for example the BM83 Bluetooth module and the ...
user avatar
  • 109
0 votes
0 answers
60 views

Single I2S Source for Two Speaker Amplifier

I have two same speaker amplifier which is TAS5720 series from TI. I drawn two identical schematics for these ICs which driven by one I2S source. In practise, one of them is playing sound bad. Both of ...
user avatar
  • 99
1 vote
0 answers
778 views

Change ESP8266 I2S pins

On ESP8266 the default pins for I2S are: Data bits (SD) = GPIO3/RX0, Data bit-clock (SCK) = GPIO15, Word select (WS) = GPIO2/TX1 However in my application Im using these pins for another purpose. Is ...
user avatar
  • 11
0 votes
1 answer
227 views

The SPH0645LM4H-B microphone seems to output all negative values via I2S

Attached is an image from the analyzer. I am afraid that the I2S is shifted one bit, because as it stands, the MSB bit is always high, all samples come back 0x3nnnn (18-bits, so MSB bit is on the left)...
user avatar
1 vote
2 answers
63 views

I2S on dsPIC gets interrupt on both left and right channels, how to distinguish them?

This is hopefully not too silly question: I did set up the dsPIC33CK256MP503 to work with audio microphone via I2S, and it does interrupt for each 32-bit data as expected. There is per I2S standard ...
user avatar
0 votes
1 answer
189 views

I2S on dsPIC generates signals, but interrupt is giving a problem

I am working with SPH0645LM4H-B MEMS microphone with I2S output. I successfully set up the SPI on dsPIC33CK256MP503 to the point, that it outputs the I2S clock at a rate 2MHZ, and WS control signal. ...
user avatar
1 vote
0 answers
55 views

AKM DAC problem

I’ve been developing the basis for a granular synth and general digital development platform for the past few months. I was using STM32 chips at first, but I’ve switched to bare metal Raspberry Pi for ...
user avatar
1 vote
1 answer
1k views

I2S audio interface - sync of MCLK and LRCLK signals

I plan to use IC AK4430, an I2S digital interface sound output chip, to be connecte to an ESP-07 Wifi module via 3 wires (BITclk, LRclk and DATA). But the IC also require an input signal that they ...
user avatar
0 votes
1 answer
80 views

I2S Data Structure (Inter-IC Sound)

There are tons of electrical descriptions of I2S; however, I cannot find information about how the data is formatted/structured. What I mean by format is, what does a value on the serial data line ...
user avatar
  • 105
0 votes
0 answers
46 views

How to choose between different equivalent PLL/divider configurations?

If there are multiple ways to get the required clocks for a given CODEC, how do you choose between them? For example, if a CODEC can accept 64fs, 128fs, 256fs, and has an internal PLL that can ...
user avatar
  • 27.8k
0 votes
2 answers
2k views

Can I connect multiple devices via a single I2S interface?

The host processor I'm planning to use has only two I2S interfaces, however I need to connect 6 devices to it. Is it possible? If so, how? Thanks. Update. Sorry, folks, I indeed should have ...
user avatar
  • 101
1 vote
3 answers
793 views

The right way to have amplified speakers that mute when you plug in earphones

I am designing a handheld device that has an I2S DAC, small speakers, amplifiers (~2 watts), and an earphone jack. I'd love advice on the best way to hook these together. My goal is high quality audio ...
user avatar
  • 121
0 votes
2 answers
2k views

How to reduce Worst Negative Slack and Total Negative Slack in my design?

I have an I2S transmitter with an AXI-Stream interface. AXIS_I2S ...
user avatar
  • 378
1 vote
1 answer
211 views

How to interface a microphone to an I2S input to use HFP

For my group's SDP/Capstone we are doing a bluetooth headset of sorts. We are using a CYW20706 SoC from Cypress. Specifically, we are using a this CYBT-343026-01 Cypress module whch includes that ...
user avatar
0 votes
0 answers
383 views

WM8960 on Pi detected but not working

I am trying to create custom board with WM8960 IC with Raspberry Pi. I am able to use Wolfson drivers for pi to detect the IC via I2C but I am not able to play or record any audio. This is the ...
user avatar
  • 19