mcuzone 发表于 2014-1-8 10:34:21

K70例程022:I2S音频驱动_SGTL5000_SDHC_MQX_K70EKT7

使用J-LinkV8
MDKKeil版本4.71
调试串口波特率:115200
关键词: Freescale 飞思卡尔 Kinetis Cortex-M4 K70 MDKK70 核心板 开发板 例程 SGTL5000 SDHC MQX I2S

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


Audio driver demo application

Shell (build: Dec5 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例程。

mcuzone 发表于 2014-1-8 10:35:40

运行效果图:

mcuzone 发表于 2014-1-8 10:36:39

SGTL5000是之前做播放器的SIGMATEL的音频芯片,后来被Freescale收购,有兴趣的同学可以了解一下这段历史

mcuzone 发表于 2014-1-8 10:42:19

先放一个烧写包,如果大家有兴趣,跟帖到10个,我再来放个源码包

gameboyplus 发表于 2014-1-9 12:22:11

放源代码呀,正在学习K70

sblpp 发表于 2014-1-9 23:24:10

谢谢楼主分享
页: [1]
查看完整版本: K70例程022:I2S音频驱动_SGTL5000_SDHC_MQX_K70EKT7