【K70例程】022I2S音频驱动_SGTL5000_SDHC_MQX_K70EKT7

本文介绍了一款基于K70微控制器的音频播放例程,通过MDK Keil 4.71和J-Link V8进行调试。该例程支持通过串口输出系统状态,并能播放SD卡中的WAV格式音频文件。文章展示了如何使用内置的命令行界面进行文件管理和音频播放。

By Mcuzone

使用J-LinkV8

MDKKeil版本4.71
调试串口波特率:115200
基于MDKK70-EK_T70硬件平台

实验现象:
串口输出:
Setting up time......................[OK]
Initializing audio codec.............[OK]
Creating shell task..................[OK]
Creating SD card task................[OK]


Audio driver demo application

Shell (build: Dec  5 2013)
Copyright (c) 2008 Freescale Semiconductor;
shell>
shell>
  SD card installed to "a:"
shell>help
Available commands:
   cd <directory>
   del <file>
   dir [<filespec>] [<attr>]]
   exit
   help [<command>]
   mkdir <directory>
   ren <oldname> <newname>
   rmdir <directory>
   play <device> <filename>
   record <device> <filename> <format>
   ?
shell> dir
A.WAV          441044 12-06-2013 11:35:56      A A.WAV
BB.WAV        4399198 12-06-2013 14:17:12      A BB.WAV
shell> play sai: a:/bb.wav
  Playback information
  Sampling frequency:     22050 Hz
  Bit depth:              16 bits
  Channels:               mono
  Data rate:              44 kbyte/s
  ----------------------------------------------
  Playing a file...DONE
  ----------------------------------------------
  Playback stats
  Total interrupts:              549934
  Bytes requested for transmit:  4399154
  Bytes transmitted:             4399154
  Underruns of hardware FIFO:    0
  Software buffer empty:         39
  ----------------------------------------------
shell>

该K70音频例程基于MQX操作系统,仅支持wav文件播放,文件放置于SD/TF卡中并插到K70EK上,更多信息请参考MQX例程。

串口输出: 

例程及示例:

链接: http://pan.baidu.com/s/1sjQ1RXF 密码: tkhy
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值