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
3
votes
1answer
141 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 ...
0
votes
1answer
53 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 ...
1
vote
1answer
61 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 ...
1
vote
0answers
70 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 ...
0
votes
0answers
31 views

Connection between STM32F446 and CODEC (PCM3060)

I have decided to connect an external crystal to the MCU (STM32F446RC) and then doing the following routing using STM32cubeMX UI. MCU to the CODEC using the I2S mode of the SPI peripheral: I am ...
0
votes
0answers
29 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!
0
votes
1answer
26 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?
0
votes
0answers
57 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 ...
0
votes
0answers
37 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.
0
votes
1answer
174 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:...
3
votes
1answer
179 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 ...
1
vote
1answer
69 views

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

I'm learning I2S right now and am curious how to work 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) to ...
1
vote
0answers
65 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 ...
0
votes
0answers
114 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 ...
0
votes
1answer
38 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 ...
0
votes
1answer
81 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 ...
0
votes
1answer
63 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 ...
0
votes
1answer
190 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 ...
0
votes
0answers
38 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 ...
1
vote
0answers
362 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 ...
0
votes
1answer
119 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)...
1
vote
2answers
41 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 ...
0
votes
1answer
98 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. ...
1
vote
0answers
50 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 ...
0
votes
1answer
642 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 ...
0
votes
1answer
51 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 ...
0
votes
0answers
39 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 ...
0
votes
2answers
942 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 ...
1
vote
3answers
584 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 ...
0
votes
2answers
805 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 ...
1
vote
1answer
133 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 ...
0
votes
0answers
260 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 ...
0
votes
1answer
183 views

V1401 ADAT transmitter and PCM4222 ADC

I'm trying to understand if I can use a V1401 ADAT transmitter with the PCM4222 ADC. datasheets: Coolaudio V1401 TI PCM4222 They will be communicating by their PCM audio serial port interfaces, ...
0
votes
1answer
3k views

What's the difference between SAI and I2S?

I'm developing a USB audio device using an STM32F407G-DISC1 evaluation board. For the audio output I was intending to just use the I2S peripheral connected to a DAC. However the only sample code I ...
0
votes
1answer
105 views

WM8804 audio routing question

The WM8804 looks like the ideal candidate for a design I'm working on --- this single chip could replace the need for one receiver and one transmitter. The specific routing requirements are: I need ...
1
vote
1answer
95 views

XO selection for 44.1kHz audio

I'm implementing a WM8804 S/PDIF transmitter in a project I'm working on. The datasheet states that clocks from 10MHz - 27MHz are supported. What crystal oscillator frequency should I look for in ...
1
vote
2answers
829 views

I2S MCLK Generation

I'm working with a Sierra Wireless BC127 (Bluetooth Module) I2S master which is generating Left-Justified, 16 bps @ 44.1khz sample rate. The Bit clock is set to 2.822 Mhz. I want to use a Cirrus ...
0
votes
1answer
54 views

Synchronizing an oscillator signal and a single wire signal

On some 32bit MCUs(PIC32MX, STM32F4), those SPI pins can read a continuous signal such as I2S/PCM. So I thought to read a single-wire signal that has MHz fixed frequency as SPI. First, I made a ...
1
vote
1answer
300 views

Which PCM data format to choose I2S or Left-Justified? [closed]

I can't find any information which PCM data format is better - I2S or Left-Justified and why I should use one format over another. Is there a difference or it doesn't matter which one I'll use?
0
votes
1answer
332 views

SPH0645 timing diagram

I am studying this SPH0645 module for use with a STM32. I started by checking the timing diagram of the I2S and compatibility between this module and the STM32. The STM32L151 MCU is compatible with ...
0
votes
0answers
528 views

I2S DAC Volume Control

First of all, let me preface this with the fact that I'm not an EE -- I'm a hobbyist with some experience and a background in software development. I'm trying to use a TI PCM5102A Audio DAC with a ...
1
vote
2answers
88 views

PIC32MZ, MPLAB Harmony with I2S hangs after adding extra function

I have referred http://microchipdeveloper.com/harmony:i2s-tutorial and am able to configure the I2S and read continuous data from a microphone. I am facing issue with the microphone data, and have ...
1
vote
1answer
213 views

PIC32MZ: MSB of I2S data from digital microphone is always high

I have interfaced a I2S digital microphone to PIC32MZ controller. I am able to read the digital output from the microphone over I2S-DMA transfer. Following are the details of my set-up:- Controller:-...
1
vote
1answer
347 views

What's the purpose of using PNP transistors on I2S bus?

What could be the reason of using these 3 PNP transistors on I2S bus (LRCK, BCK and DATA pins)? The DAC used in this schematic is PCM5102. I know for sure that this DAC would work without these ...
0
votes
0answers
161 views

Using a single channel on a 2 channel DAC + Amplifier

I am planning to use an external DAC + amplifier combo to output mono sound from my microcontoller. The ouput from the amplifier would be connected to a single speaker ...
1
vote
1answer
553 views

I2S output in VHDL

I am making an I2S output in VHDL for a project. This is my first project using VHDL and the problem may be my basic VHDL understanding. This is my code: ...
0
votes
1answer
52 views

Can I2S tdm interface send more channels with less sampling frequency?

We have a arm SoC(system on chip) connected with I2S to a DSP (digital signal processor). SoC and DSP both support 48khz, 8 channel and 16bits in TDM mode. Is it possible to use this interface to ...
2
votes
1answer
5k views

Why I2S is better for transmitting audio compare to SPI

I am trying to understand why we use I2S is better for transferring audio than SPI as I2S has less bandwidth compare to SPI.
1
vote
2answers
85 views

Does LRCK have to oscillate in an I2S system?

I'm working on a audio function generator using the PCM 1795 DAC. I only need a single output channel for my design. Can I just pull LRCK low or high permanently for the sake of maintaining design ...
1
vote
3answers
2k views

I2S TDM channels maximum bandwidth

Does I2S support sending multiple mic (around 20) channel data? If no, what is the limiting factor in supporting multiple mics? Also, is there any way to send multiple channel data from different ...