完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在为我的大学工作,使用PIC32 MZ2048 EFH144(12位ADC),我将使用和声配置器版本2.02建立ADC/DMA:通过ADC接口10个模拟麦克风。PIC32 MZ具有6个ADC模块,(ADC0 ADC4)和ADC7。(ADC0 ADC4)一次多路复用两个信道;而ADC7通过ADC5-ADC42进行扫描/多路复用。对于12位ADC,这些信道的采样率是3.125毫秒。我想知道什么是关注点和差异,如果我用ADC0 ADC4接口所有10个麦克风(因为它们可以同时复用两个信道)。或者,使用模块ADC7和扫描/多路复用所有10个麦克风只使用这个ADC模块,从ADC5-ADC42扫描?另外,在这两种情况下,如果两个麦克风被复用到ADC0、ADC1等中,我如何区分数据。或者它们都被连接到ADC7中?我附上了一张ADC模块的图片,谢谢。
以上来自于百度翻译 以下为原文 I am working for a project for my University, using the PIC32MZ2048EFH144 (12 Bit ADC) and I will be setting up the ADC/DMA using hARMony configurator version 2.02. Objective: Interface 10 analog microphones through the ADC. This PIC32MZ has 6 ADC modules, (ADC0-ADC4) and ADC7. (ADC0-ADC4) multiplexes two channels at once; whereas, ADC7 scans/multiplexes through ADC5-ADC42. The sampling rate of these channels is 3.125 Msps for a 12-bit ADC. I want to know what are the concerns and differences are if I am interfacing all 10 microphones with ADC0-ADC4 (Since these can multiplex two channels at once). OR, using module ADC7 and scanning/multiplexing all 10 microphones using just this ADC module, which scans from ADC5-ADC42? Also, given either of these two circumstances, how do I differentiate between the data if two microphones are being multiplexed into ADC0, ADC1, etc.. or all of them being interfaced into ADC7? I included a picture that refers to the ADC modules. Thank You. Attached Image(s) |
|
相关推荐
4个回答
|
|
第一步:你的样品率是多少?假设44千赫和10个频道,你需要每秒440000个样本,所以它可能是一个单独的AutoSCAN ADC。你如何区分数据?这说明你没有读到数据表和与A/D相关的寄存器,你需要稍微增加一点。这些A/D不容易安装和使用。您可能还想看看示例应用程序来寻找一个例子。
以上来自于百度翻译 以下为原文 Step one What is your sample rate? assuming 44Khz and 10 channels you would need 440,000 samples per second so it maybe be possible with a singe autoscan ADC. how do you differentiate data? That says you did not read the data sheet and the registers associated with the A/D. You will need to step up a little. These A/D are not easy to setup and use. You may also want to look at the sample Apps to look for an example. |
|
|
|
现在可以假定采样率为44千赫,我看了数据表。我对此很陌生,我不知道如何在这个数据表上读取ADC寄存器图。你能帮帮我吗?
以上来自于百度翻译 以下为原文 The sample rate can be assumed to be 44Khz for now. I looked at the data sheet. I am new to this and I do not understand how to read the ADC register MAP on this datasheet. Could you help me out? |
|
|
|
对不起,我以前没有处理PIC32 A/D,而且没有空闲时间。这就是为什么我提出了示例应用程序。您需要设置它在44千赫的自动读取。可能是用DMA。然后它将读取所有10个通道并保存结果,在完成时给你一个中断。然后在指定的时间开始下一个周期。如果有采样和保持问题,则可能需要在5个通道中使用两个A/D单元。
以上来自于百度翻译 以下为原文 Sorry I have not tackled the PIC32 A/D before and do not have the free time. That is why I suggested the sample apps. You are going to need to set it up to Auto read at 44Khz. Possibly with DMA. It will then read all 10 channels and save the results, an give you an interrupt when it is done. Then start the next cycle at the specified time. It is Possible you may need to use two A/D units at 5 channels each IF there are sample and hold issues. |
|
|
|
在FRM部分22中可以找到更好的解释ADC工作的方式。12位高速SAR ADC DS601344。这给出了各种模式的示例代码。我使用了ADC,过采样64×~3MHz,得到14比特的48 kHz立体声,它工作良好,所以44.1kHz或10通道的48 kHz是可能的。我不认为你已经说明了你使用麦克风的目的。如果需要捕获相位信息,那么最好使用5个ADC模块,每个ADC模块交替采样2个麦克风。它们可以被配置为同时触发。如果相位不是问题,我建议只使用ADC7,设置为顺序扫描10个通道。
以上来自于百度翻译 以下为原文 A better explanation of how the ADC works can be found in the FRM Section 22. 12-bit High-Speed SAR ADC DS60001344. This gives example code for various modes. I have used the ADC, oversampled 64x to ~3MHz to get 14bit 48kHz stereo, which works well, so 44.1kHz or 48kHz with 10 channels is possible. I don't think you've stated for what purpose you are using the microphones. If you need to capture phase information, then you are best using 5 ADC modules, each alternately sampling 2 microphones. They can be configured to trigger simultaneously. If phase is not an issue, I would recommend just using ADC7, set to sequentially scan 10 channels. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3209 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2260 浏览 5 评论
779浏览 1评论
672浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
598浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
682浏览 0评论
579浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 04:08 , Processed in 1.242685 second(s), Total 52, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号