1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我是微控制器和编程方面的新手。我使用的是PIC32MX1/2/5启动器套件和I/O扩展板。我使用的软件是MPLAB X IDE 3.35,XC32 1.42,HARMony 1.08。我想做的是1。我想上传一些简短的音频文件(2-4秒)到MCU。我该怎么做呢?2。我想把这些音频通过I2S发送到外部设备。例如,如果我按下评估板上的SW 1,单片机将发送一个特定的音频到外部设备通过I2S。我如何做到这一点?请通过解决方案或实例提出建议。
以上来自于百度翻译 以下为原文 Hi I am new to microcontroller and programming. I am using PIC32MX1/2/5 Starter Kit with I/O expansion board. Also the software I am using is MPLAB X IDE 3.35, XC32 1.42, Harmony 1.08. What I want to do is 1. I want to upload a few short audio files (2-4 seconds) to the MCU. How can I do this? 2. I want to send these audio to external device via I2S. For example, If I press SW 1 on evaluation board, MCU will send a specific audio to external device by I2S. How can I do this? Please advice by solution or examples. |
|
相关推荐
1个回答
|
|
你好,我们没有一个演示,专门做你所要求的。然而,有几个起点可以让你走得更远。你可能需要考虑:*你的音频格式是什么?压缩的?*使用音频解码器*你试图把这些在内部闪存或外部闪存?*音频输出设备(CODEC/DAC),我们建议您下载和声V1.081版本,因为前面有一些丢失的文件。您可以从应用程序“通用音频解码器”开始,使用PCM/WAV文件功能。这是默认的。是的,它使用USB和文件系统来获取数据,但是用于“解码”和使用I2S的过程都包含在这个示例中。如果你用这个作为基础,你可以把同样的数据嵌入到Flash中,而不是文件系统。从那里文件细节将与上述相同。I2S使用我们的音频编解码器驱动程序,并取决于系统时钟。一定要检查时钟管理器,了解我们如何驱动I2S主时钟。
以上来自于百度翻译 以下为原文 Hello, We do not have a demo that specifically does what you are asking. However, there are a few starting points that will get you fairly far along. You may need to consider: * What is the format of your audio. Compressed? * Use of an audio decoder * Are you trying to store these in internal Flash or external Flash? * The audio output device (codec / dac) you are using I suggest you download the Harmony v1.08.1 version, as the previous had some missing files. You can start with an app "universal audio decoders" and use the PCM / WAV file functions. This is the default. Yes, this uses USB and file system to get the data, but the process for 'decoding' and use of I2S is all contained in this example. If you used this as a base you could for example embed the same data into Flash and target this instead of the file system. To download into external Flash, you can use one of the several bootloader programs. From there the file details will be about the same as the above. The I2S uses our audio codec driver, and is dependent on the system clocks. Be sure to check the clock manager to understand how we drive the I2S master clock. |
|
|
|
只有小组成员才能发言,加入小组>>
5242 浏览 9 评论
2031 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3207 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2256 浏览 5 评论
778浏览 1评论
669浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
596浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
678浏览 0评论
577浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 18:36 , Processed in 1.145675 second(s), Total 78, Slave 62 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号