Jump to content
  • Stm32 i2s codec

    Full duplex would be nice. Once the recording is complete, another DMA transfers the recorded data to the I2S hardware block, which interfaces with an audio codec chip. With the codec, audio is received through the Line In port and played back through the headphone jack or the amplified speaker outputs. Downloads: 0 This Week Last Update: 2015-12-08 See Project Fast and Easy Remote Control From Anywhere Mar 07, 2017 · Each sub-block has +its own clock generator and I/O lines controller. Only some SPI instances support I2S. This configuration   2018년 2월 8일 STM32F205의 I2S 인터페이스를 통해 외부 오디오 DAC가 연결되어. com The sketch I wrote uses the hardware SPI interface of STM32 microcontroller. You can connect a I2S DAC like PT8211. Integrated Interchip Sound (I2S) is a serial bus interface that connects digital audio devices together. 3 DT configuration . The problem is that when I plug my speakers, The task consist to create a new driver for the Texas Instrument TLV320AIC3104 Audio CODEC for Raspberry Pi OS/Linux. It changes. i was able to setup a fully working STM32CubeIDE project. Last modified :  29 Apr 2015 I've got it working and was wondering if i2s is available to get the stm32f4 discovery's audio codec working? Thanks again. Breakout board for Wolfson WM8731 Audio Codec. I thought it would be easiest to have the codec be master in  I am very interested in getting the audio codec on the STM32F4 discovery board working. 1 on STM32F4-Discovery LEDs blinking Hang by tommycleemay12fri17 , 2021-01-28 02:07 Newest FAQs Digilent-compatible I2S DAC; dsPIC Functions; ARM & FPGA Audio; dsPIC Signal Processing; dsPIC Audio DAC; dsPIC Graphic LCD hack; dsPIC FPGA Audio; mini2440 FPGA Audio; 19" 6U Rack for Euro / Frac; STM32 USB + Quad DAC; Digilent-compatible I2S Codec; STM32 + Codec; STM32 + Codec Version 2; Cheep Mod Digital Euro-Rack; F373 Mod Digital Euro-Rack Project is based on STM32F746G-Disco board, so any delivered solution has to work succesfully on this board. I2S diagram 3. biphase input signal such as S/PDIF to serial audio data formats such as I2S for audio processor. 1 for the last couple years. Required properties: - compatible: Must be "st,stm32h7-i2s" - reg: Offset and length of the device's register set. 3V Board AUX analog output, can connect to amplifier directly. Initially i set the time as 1580480000, when i upload the code for first time, i could see the second has changed from 1580480000 to 1580480001 only after 1010ms and not after 1000ms. This IC integrates a complete microphone interface and a stereo headphone driver. This seems to be normal I2S behavior. , but dma ist a must. Given the hardware options on the board, we’d like to play stereo music via the built-in Cirrus 43L22 Audio Codec and stream some music to a headset / loudspeaker, ignoring the microphone on the Discovery board. 3V ~ 5V 로직 레벨 사용 / 헤더 포함. However figuring out the smallest/simplest chip that works, and ideally has a disco/nucleo board for prototyping, is very challenging. AN2739 How to use the high-density STM32F103xx microcontroller to play audio files with an external I²S audio codec Covert digital I2S IIS music signal to analog output. 11 Dec 2019 Im working on project where I have STM32 mcu and ADAU1772 codec, How do I setup input and outputs on adau1772 in sigmastudio (I2S  オーディオコーデックとSTM32L1xxマイクロコントローラのインタフェース. We have BT controller for wireless communication. The RX side I2S_RX_Ext is not working, DMA is not triggered (CNTDR stuck, memory untouched). Skills: C Programming, Embedded Software, Microcontroller See full list on waveshare. Featuring: Ultra-low-power with very high performance and functionality The MAX9880A is a high-performance, stereo audio codec designed for portable consumer applications such as smartphones and tablets. com 4 Left-JustifiedMode Porting to STM32 has been done as described in TI's "Enable STM32 Discovery Eval" (and worked great with the SPPDemo). - description : I2S parent clock for sampling rates multiple of 8kHz hej, i am currently trying to get the WM8731 working on the Nucleo H743ZI2 via I2S+DMA. Headphone and Microphone connectors on-board, MIKROE-506. Despite the similar It is the clock that i 15 May 2016 STM32F4 I2S - From RM0090 Reference manual DocID018909 Rev 7, between the STM32 MCU and the PDM microphone are listed below. Prior to not in-depth  The SAI integrated inside STM32 products provides an interface standards such as I2S, PCM, TDM, etc. Codec I2S and I2C lines are connected to STM32 MCU. as there is no I2S support in STM32duino ( yet ), i copied over the relevant code from the generated STM32CubeIDE project and added `#define HAL_I2S_MODULE_ENABLED` to the `variant. The WM8731 is a low power stereo codec with an integrated headphone driver. 2011년 9월 30일 (참고로 sound IC는 sound codec이라고 흔히들 부릅니다. 저는 이것과  30 Dec 2018 STM32F4 Discovery board - Keil 5 IDE with CubeMX: Tutorial 28 - I2S Audio Codec - CS43L22 · Transcript Up next. The I2S interface simplifies the integration in the system and allow direct interconnect to digital processors, application processors and microcontroller ss. Driver needs to handle I2S communication and different sample rates, for playing and recording capabilities. Guaranteed low leakage, excellent PSRR and pop/click suppression mechanisms enable direct battery connection for the speaker supply. I am back again! Woooo! Problem: The sound produced is really glitchy and the audio can be barley made. Supports common sample rates, such as 8/11,025/22,05/44,1/48 KHz, etc. The document uses TLV320AIC26 (Audio Codec) as an example to explain the functions of I2S. It's sending and receiving I2S stereo quite nicely (and also mono on the built in ADC and DAC), and a good number of audio processing features are implemented, and even a web-based GUI On the SGTL5000 datasheet, this is the one bit delay on I2S format with respect to the left-justified format on Figure 10. I love this board for its audio capabilities. On the Discovery kit, both SAI configurations mentioned above can be seen in action. 26 Jul 2018 Recently, a project to use the codec chip to do voice acquisition and output, the driver is used stm32f405 I2S interface. The delay could be removed by setting the i2s_comm_format_t in the ESP32 to 0, but I'll just leave it to the standard setting. Looking at the schematic for the STM32F4-Discovery, the I2S lines connect to pins of the SPI3 peripheral, and the I2C lines to pins of the I2C1 peripheral. wav file from SD Card on the Audio Codec Board, but realized that STM32L Discovery Board does not support I2S protocol as mentioned on pg no. The goal is to have the I2S and SAI interfaces (SAI as input/record, I2S as output/play) configured and working according to specs Specs for both I2S and SAI are: slave, DMA, 192KHz. The STM32 32-bit Arm® Cortex® MCUs offer a wide audio capability with a rich MCUs using the SPI/I2S, SAI and DFSDM peripherals. ti. After a small detour handling Cross-Platform Console Input, we’re back and got audio streaming via A2DP to work in both directions on the STM32 F4 Discovery board. properties : compatible : enum : - st,stm32h7-i2s "#sound-dai-cells" : const : 0 reg : maxItems : 1 clocks : items : - description : clock feeding the peripheral bus interface. Mar 29, 2013 · The STM32 series are great CPUs for embedded developers, hackers, musicians and the like to work with. BCLK LRCLK 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 DIN/ DOUT 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 MSB LSB MSB LSB MSB Left Channel Right Channel Left-JustifiedMode www. This a place to share information, get people started with it, show off your work, answer hard questions, etc. and sound effects such as stereo and 3D surrounding. format = usartI2sFormatW32D32 Change the buffer sizes in RAM to int32_t, casting a 16-bit sound 2’s complement sample to 32-bits and inflating each sample with extra digits to fill the higher order bits with zeros or ones depending on See full list on predictabledesigns. Is there an other way to connect a (different) audio codec? 16 bit mono in/out are o. 2. 2 Sep 2020 although the sketch compiles, unfortunately the audio codec produces no sound. Support 3. - description : clock feeding the internal clock generator. 26, 2010: Application note: Interfacing an I2S Device to an MSP430 Device (Rev. Intel® S1000 is the master on both I2S interfaces. h` file. Feb 23, 2012 · Hi Andy, Analog Devices' digital microphones are available with two diffe rent output formats: PDM and I 2 S. The header pinout of onboard I2S interface is compatible with some of our Open series development boards. The position of the slots with respect to the frame edges can be selected. audio codec with programmable outputs, PowerTune capabilities, fixed predefined and parameterizable signal processing blocks, integrated PLL, integrated LDO and flexible digital interfaces. I do have here the STM32F7 board and the additional required hardware to connect on I2S and SAI, thus I need an experienced STM32 freelancer to assist on the task. This is the data source that connects to the I2S RX line on the STM32 board. [GIT PULL] sound updates for 5. 5") board with an STM32F405RGT6 MCU, a Wolfson WM8731 codec and a variety of I/O resources to support development of embedded audio effects applications. STM32F4 Codec Board - Assembled. The output of a PDM (pulse density modulation) microphone is a 1-bit high sample rate data stream that is the direct output of the Sigma-Delta modulator that's in the mic. c/h, which wrap the configuration of the audio codec. ASoC: codec: wm8960: Stop when a matching PLL freq is found ASoC: codec: wm9860: avoid maybe-uninitialized warning ASoC: codec: wm8960: Relax bit clock computation when using PLL Perfect match for any I2S-output audio interface. The SGTL5000 is a low-power stereo codec designed to provide a comprehensive audio solution for portable products that require line-in, mic-in, line-out, headphone-out and digital I/O. 1 May 2014 The I2S protocol is widely used to transfer audio data from a microcontroller/DSP to an audio codec in order to play melodies (stored in a memory)  2008년 11월 24일 새로 제작된 원본 프로그램의 Profile이 된 위 프로그램은, STM32-I2S-external CODEC으로 PCM(wave) 파일을 재생하고 있습니다. There is a specific CPU DAI driver for each STM32 audio peripheral (see CPU DAI peripherals below). На данном занятии мы попытаемся начать освоение очень нужной и широко Jan 28, 2021 · Issues Installing System Workbench for STM32 from Eclipse by Kenneth MacCallum, 2021-01-28 18:43 FreeRTOS V10. I’m using an STM32F4 discovery board. Codec mode (Left/Right justified) Codec mode can be compared with I2S protocol but Word Select is asserted at the same time that first bit is transmitted for current frame (it is not delayed one bit clock as in I2S). Interfacing an STM32L1xx microcontroller with an external I2S audio codec to  Im Setup ist ein STM32F4 mit einem Audio Codec verbunden. The problem is that when I plug my speakers, Jun 17, 2020 · flash memory. Therefore we’ll need to configure both of these peripherals. It always expects a standard input stream, alternating two channels. ) 그럼 'SCK'는 뭘까요? bit clock이라 보시면 됩니다. WM8960 Stereo CODEC Audio Module, Low Power, Play/Record. Machine drivers: The machine drivers describe and bind the CPU DAIs and codec drivers together to create the DAI links and ALSA soundcard. Tantalum capacitor can better filter the current noise, give Description. k. 2" results in a successful pairing the the Android Продолжаем работать с библиотекой hal. Stereo audio codecs based on I2S interface. The microcontroller is an stm32f407vgt. My set up looks like this: (At a later stage CC2564MODNEM will be connected to a codec and speakers) Running the A3DPDemo_SNK project from "CC256x STM32 Bluetopia SDK v4. I understand that it reuires I2S (  layer driver for CS43L22 Audio Codec * available on STM32F4-Discovery Kit. Codec (PCM3070) Clock Configuration Analysis. 0. The audio codec chip converts a digital audio stream into analog. Since the CS4344 is a stereo DAC, the samples for the left and right channels alternate one after another in time, and it uses the LRCLK to designate a sample as a left or right channel. Also MCLK-less I2S interfaces such as the Raspberry Pi (which VulPlayer is an opensource hardware ogg/mp3/aac/flac player powered by STM32 MCU and VS1053B I2S audio codec. Stereo line and mono microphone level audio inputs are provided, along with a mute function, programmable line level volume control and a bias voltage output suitable for an electric type microphone. 671 of *STM32L151xx, STM32L152xx and STM32L162xx -- Reference Manual that in medium-density devices, the I2S protocol is not No. Steve. After processing, I2S audio data is transmitted from the STM32 board on its I2S TX line to the I2S data input on the the PMOD board which does a D/A conversion and Audio Serial Interface Configurations for Audio Codecs: Sep. Written by: Mohamed Yaqoob ( MYaqoobEmbedded YouTube Channel). The I2S audio breakout board has the same pin connections as the previous example, but this time we're going to change the audio source from PROGMEM to our microSD card. + - clocks: Must contain phandle and clock specifier pairs for each entry + in clock-names. I2S_2 is used as the input interface to receive audio from a connected host. Analog. 전송하면 F105A 보드가 받아서 I2S 를 통해 오디오 코덱으로 전달합니다. sync. The board has an on board audio codec, the cirrus c43l22. AUDIO CODEC SGTL5000 ORDERING INFORMATION Device Temperature Range (TA) Package SGTL5000XNLA3/R2-40 to 85 °C 20 QFN SGTL5000XNAA3/R2 32 QFN PB-FREE 98ARE10742D 20-PIN QFN 98ARE10739D 32-PIN QFN I2S Interface Headphone / Line Out w/ volume Audio Switch ADC DAC I2S_DOUT I2S_DIN I2S_SCLK I2S_LRCLK LIN EOU T_R L IN EOU T_L H P_R HP_L I2C/SPI 以下、I2SとDMAの組み合わせで音声のループバックができるようになるまでの開発手順です。 Codecのアナログルーティング仕様をI2C経由で設定; Codec_Write(0x1d, 0x10); // (addr, data) コマンドでアナログルーティングが正しいことを確認。 Node , like its namesake, is a smart node with full-featured functions in a IoT application scenarios. It was introduced by Philips (now NXP) in the late 80's and last revised 1996. The host is a slave on the I2S and is expected to send a stereo audio at a sampling frequency of 48KHz, 32 bits per sample. . I'm trying to get pretty standard I2S Full Duplex audio running between the STM32 and the codec. Interfacing an STM32L1xx microcontroller with an external I2S audio codec to play audio files. Date Written: 29/01/2016. 8V supply to ensure low-power consumption, the MAX9880A offers a variety of input and output Codec_GPIO_Init() Enable clocks in RCC and all GPIO pins for I2C, I2S, DAC Codec_Reset() – reset the Codec (RESET pin) Codec_CtrlInterface_Init() Calls I2C_Init() with required parameters Configure all Codec registers via I2C functions Codec_AudioInterfaceInit() Initialize DAC and I2S modules Codec_WriteRegister() – write value to a code STM32 Workshop – STM32 Security Ecosystem October 2020 20/10/2020 STM32 and Cartesiam: for equipment monitoring and more (AI, Neural Networks and Predictive Maintenance) 16/10/2020 STMicroelectronics Acquires Power Amplifier and RF Front-End-Module Specialist SOMOS Semiconductor 16/10/2020 Audio CODECs (63) Audio DACs (57) Audio USB converters (7) Audio interface ICs (29) Audio switches (13) Sample rate converters (8) SPDIF transceivers (8) Specialty audio ICs (12) Audio clocks (5) Lip sync delay ICs (3) PWM modulators (4) The ALC5624 is a highly-integrated I2S/PCM interface audio codec with multiple input/output ports and is designed for mobile computing and communications. 3V – 5V logic levels (a rarity), and can process multiple different formats by setting two pins to high or low. In an I2S-like protocol, each edge of the frame synchronization (FS) is used to align the slot positions. This data is written to the output TX FIFO of the I2S hardware block, which interfaces with an audio codec chip. Stereo output. Oct 18, 2016 · The I2S data that is sent from the MCU to the CS4344 is uncompressed digital data that communicates a single 24-bit voltage per sample. Also, channel selection by The I2S2 is in a Slave_Tx mode (the codec chip provides precise clock itself). It uses pulse code modulation to exchange the audio data between the devices. A) Mar. The DAC will process data immediately, and give you a clear, analog, stereo line level output. 4 From: Takashi Iwai Date: Mon Sep 16 2019 - 07:47:31 EST Next message: Fabrice Gasnier: "Re: [PATCH] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq" Overview - DA7212 has been used as audio codec with Mic 1 configured as pseudo-differential input with headphones connected to HP_L and HP_R of codec. The MikroE Audio Codec Proto Board earns thus my preference, Let's see what's happening when we define the STM32 F411RE I2S as  18 Jul 2017 As the audio codec was already on the dev kit, we expected playing a at the I2S lines with Saleae Logic tool and its I2S protocol decoder. Codec_GPIO_Init() Enable clocks in RCC and all GPIO pins for I2C, I2S, DAC Codec_Reset() – reset the Codec (RESET pin) Codec_CtrlInterface_Init() Calls I2C_Init() with required parameters Configure all Codec registers via I2C functions Codec_AudioInterfaceInit() Initialize DAC and I2S modules Codec_WriteRegister() – write value to a code STM32 I2S with DMA playing slow I want to implement a WAV/MP3 player(now let's just say WAV) with an STM32, it reads it from the SD with FATFS, then transfer it to the I2S buffer with DMA. Oct 16, 2012 · Both of these ports are essentially serial interfaces, the audio portion a fairly standard I2S interface, the control port a standard I2C interface. It provides a stereo DAC for playback, and a stereo ADC for recording via the I2S/PCM interface. I2S_1 is used as the output interface to play audio to the onboard codec. STM32F4 Codec Board - PCB Rendering 192kB SRAM; 1MB Flash; 14 Timers; 3 SPI (2 with I2S capability); 3 I2C; 6 USART+UART; 2 USB device; 2 CAN  Library: STM32F4 Audio Codec - CS43L22. audio codec DAC). Issues with I2S implementation. This repo uses an STM32F469 which seems to be a sledgehammer / nut situation. But I am struggling to make it work full duplex. This low power audio module is based on WM8960, supports stereo encoding/decoding, supports sound recording, what's more, it can directly drive speakers to play music. S protocol is widely used to transfer audio data from a microcontroller/DSP to an Playing audio file interfacing STM32L1xx microcontroller with an external I2S audio codec (AN4309) Library: STM32F4 Audio Codec - CS43L22: Written by: Mohamed Yaqoob (MYaqoobEmbedded YouTube Channel) Date Written: 29/01/2016: Last modified: 29/12/2018: Description: This is an STM32 device driver library for the CS43L22 Audio Codec, using STM HAL libraries: References: 1) Cirrus Logic CS43L22 datasheet STM32 I2S device tree bindings describes all the required and optional configuration properties. Each CPU DAI supports at least one of the following protocols: I2S, PCM, or S/PDIF. Here is my code : I²S tests Some dsPIC33/PIC24 devices support audio codec serial protocols, such as Inter-IC Sound (I2S), Left Justified, Right Justified and PCM/DSP modes for 16, 24 and 32-bit The WM8960 is a low power stereo codec featuring Class D speaker drivers to provide 1W per channel into 8Ω loads. This application note describes how to use the STM32L1xx I. I2C commands needs to be sent for codec configuration. SPI or I2C interface. AKM의 고성능/저소비 전력인 Audio CODEC은, Portable Audio, Home, Automotive 등 폭넓은 Audio 용도에 적합합니다. - interrupts: Must contain the interrupt line id. Thanks to codec during the configuration phase. The STM32 Connectivity Line allows developers to take advantage of industry-standard 32-bit processing in designs requiring simultaneous Ethernet, USB, CAN and audio-class I2S capabilities. Introduction. 13 Mar 2012 Re: STM32F4 Discovery - How to set up SPI3 for I2S directly to configure I2S and use the STM32 DMA API to send audio to the codec. related to the STM32 CPUs. Stereo audio functions are supported via the I2S/PCM configurable interface. Feb 17, 2018 · To start things off, we’re going to get basic I2S audio into the STM32. C) Apr. Please see attached image. The clock data strobe edge can be selected as well. STM32F4 Codec Board - PCB Rendering Description This is a small (3" x 2. Application available for raspberry pi, high end Bluetooth audio CSRA62415, CSR8675, etc. If anyone's interested in I2S in and good quality audio general on microcontrollers, I've been doing a similar project on Teensy 3. See the Device tree for an explanation of the device tree file split. + +Required properties: + - compatible: Should be "st,stm32f4-sai" + - reg: Base address and size of SAI common register set. Operating from a single 1. I want to use a TLV320aic23B, but unfortunatly the uC on the Primer cannot generate I2S on the SPI. S feature to play audio files using an external codec (reference STSW-STM32135). Board micro USB power supply. So, Freelancers with experience in STM32 SAI, I2S and DMA configuration can place their bet. The last step before adding the code below, is to add headers to the ESP32 Thing , as well as the Motion Shield , as outlined in the hookup guide . Node provides more hardware resources: built-in high-fidelity audio codec chip,MIC, DHT12, IR sw 라이브러리 준비 사항 - 아래의 예제 파일을 stm 사의 stm32 제품 홈페이지에서 다운로드 받습니다. Overview. 12  라즈베리파이, 아두이노 호환 I2S 스테레오 디코더 / 모든 I2S 출력 오디오 인터페이스에 완벽하게 호환 / 3. + - clock-names: Must contain "clk_x8k" and "clk_x11k STM32 I2S with DMA playing slow I want to implement a WAV/MP3 player(now let's just say WAV) with an STM32, it reads it from the SD with FATFS, then transfer it to the I2S buffer with DMA. the stock STM32 arduino toolchain is to enable the I2S (and the dma We don't use the codec yet, we only instanciated the object but it can be avoided for t I²S (Inter-IC Sound), pronounced eye-squared-ess, is an electrical serial bus interface standard Alternatively I²S is spelled I2S (pronounced eye-two-ess) or IIS (pronounced eye-eye-ess). S. I started with the SPH0645 I2S MEMs Mic breakout board from Adafruit, and the STM32F767ZI Nucleo Board from ST hope y'all are well and safe. Master and Slave mode; Simultaneous bi-directional (TX and RX) audio streaming; Original I 2S and left- or right-aligned format; 8, 16 and 24-bit sample  7 Jun 2018 We need to work with I2S and DMA to generate waveforms. 22, 2010: Application note I'm fairly new to STM32, and I'm trying to make a USB Audio device with an I2S interface in slave mode. Der Audio Codec schickt dabei die Daten über die I2S Leitung an den STM32. I2S Port Supported Formats. STM32F4 + Codec. The serial bus input data format of PT8211 is Japanese or called LSBJ (Least Significant Bit Justified) format. com STMicroelectronics STM32 SPI/I2S Controller The SPI/I2S block supports I2S/PCM protocols when configured on I2S mode. We attempted to Play out the stored data . Extensive register-based control of power, input/output channel configuration, gains, effects, pin-multiplexing and Jan 17, 2016 · I followed the steps on the STM32's HAL reference but I guess I made one or several mistakes as I don't get any output on any of the I²S pins. As you can see the I2S transmit doesn't return until it's done. Setup: I have an ESP32 using the A2DP profile as a BT sink to Figure 2. The I. Nov 01, 2016 · Change the I2S setup in the USART to 32-bit wide transactions and fix the I2S setup block up to set init. And no, C13 is not CS for codec but simply debug utility to track why I2S transmission executes so slowly stm32 hal-library interface, for the I2S-like protocols. The frame length, the duty cycle, and polarity can be adjusted. The ALC5624 is a highly-integrated I2S/PCM interface audio codec with multiple input/output ports and is designed for mobile computing and communications. The code example includes the files codec. Energy saving audio module with built-in microphone based on the WM8960 codec. Saving the need of an external audio codec, the SPH0645LM4H-B is perfectly suitable for portable applications where size and power consumption are a constraint. the audio application (codec, I2C, I2S, GPIOs, DMA and interrupt if needed). Together with M5Stack Core, it can be programmed as an intelligent speaker like Echo. 24 Jun 2020 There is no codec that recognizes incoming data for only one channel. The UDA1380 Board is a stereo audio coder/decoder for I2S interface, features the UDA1380 onboard. I try to connect a audio codec to the STM32 Primer. It uses I2S as its audio controller and I2C to communicate with the codec’s control signals. One of the SAI interfaces is connected via I 2 S to a Cirrus Logic WM8994 codec. This hardware description is a combination of STM32 microprocessor and board device tree files. I2S. 17 Feb 2018 I couldn't find a working I2S example anywhere in the MBED community for any STM32 processor, despite ST having written libraries that  16 Oct 2012 Looking at the schematic for the STM32F4-Discovery, the I2S lines connect to but should be enough to produce some output from the codec. Output VDDO power is 3. The chip is configured by PSoC 6 MCU over an I2C interface. 提供MCLK 给Codec只是其中一个条件,你先配置Codec让它先能采样吧。然后配置Codec为主模式(I2S时钟从AIC33输出)。 如果你的MCLK是12M,那么需要用到内部的PLL来配置时钟到音频的采样率。 第一步就是Codec能产生I2S所需要的时钟。 The A/D converts analog audio from the Line in channel into 24 bit data and transmits it via an I2S line. The transmit side works fine, including the DMA in doublebuffer mode. 2. 22, 2010: Application note: Design and Configuration Guide for the TLV320AIC3204 & TLV320AIC3254 Audio Codec (Rev. All other other peripherals like AUX mic, Mic 2 and speakers are unused. connecting my oscilloscope i was able to track down the  necessary settings for I2S such as port, clock, and interrupt.