WB32F10x Standard Peripherals Firmware Library

I2S_PlayAudio example

      *************** (C) COPYRIGHT 2020 - 2023 Westberry Technology ***************
      * @file    I2S/I2S_PlayAudio/readme.txt
      * @author  Westberry Application Team
      * @version V0.1.10
      * @date    05-January-2023
      * @brief   Description of the I2S I2S_PlayAudio example.
      ******************************************************************************
      * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
      * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
      * TIME. AS A RESULT, WESTBERRY SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
      * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM
      * THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
      * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
      ******************************************************************************

例程描述

本例程演示如何使用I2S模块播放音频。

本例程系统时钟工作在96Mhz，通过PLL配置产生。PLL时钟源是外部8Mhz晶振。APB1的分频比是1，APB2的分频比是1。

在本例程中使用 ES8316 CODEC 芯片播放音频。 当本例程运行后，会通过UART1打印出相关信息，输入任意字符启动音频播放。 当音频播放后，你将会在左声道听到"left channel"，在右声道听到"right channel"。

在本例程中音频的采样频率是22050Hz。

目录内容

- I2S/I2S_PlayAudio/I2S_PlayAudio.uvprojx MDK5工程文件
- I2S/I2S_PlayAudio/I2S_PlayAudio.uvoptx MDK5工程配置文件
- I2S/I2S_PlayAudio/JLinkSettings.ini Jlink配置文件
- I2S/I2S_PlayAudio/main.c 主程序
- I2S/I2S_PlayAudio/drv_es8316.c ES8316驱动程序
- I2S/I2S_PlayAudio/drv_es8316.h ES8316驱动程序头文件
- I2S/I2S_PlayAudio/wav_data.c WAV音频数据

硬件和软件环境

- 硬件平台搭建
  - HSE 连接外部8MHz晶振

如何使用？

为了使程序工作，您必须执行以下操作 :

- 使用 MDK5 打开此例程文件夹中的 I2S_PlayAudio.uvprojx 工程
- 重新编译该工程并下载到目标存储器中

- 运行此例程

  ###
  © COPYRIGHT 2020 - 2023 Westberry Technology