完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
如何实现一个称重过滤器?我使用PIC32 MZ2048,并与MPLAB和谐编程。我读过,我必须用IIR滤波器来做,但是我不知道要使用什么系数。
以上来自于百度翻译 以下为原文 How can implement an A weightening filter? I am using a PIC32MZ2048 and programming it with MPLAB HARMony. I have read that I have to do it with IIR filter, but I don´t know what coefficients to use. |
|
相关推荐
11个回答
|
|
|
如果这是音频,WinFilter可以帮助:HTTP://www. WiFiTr.20M.COM/OR,还有,我的线程HTTP://www. McCHIP.COM/FUMMS/M98418.ASPX
以上来自于百度翻译 以下为原文 If this is for audio, WinFilter can help: http://www.winfilter.20m.com/ Or, also, my thread http://www.microchip.com/forums/m984418.aspx |
|
|
|
|
|
是的,它是音频,我需要应用一个模拟麦克风的数据的一个加权过滤器。谢谢,我去看看WinFilter。
以上来自于百度翻译 以下为原文 Yes, it is for audio, I need to apply an A weightening filter to a analog microphone´s data. Thank you, I will have a look in WinFilter. |
|
|
|
|
|
模拟信号首先必须使用设备的ADC或外部ADC数字化。在ADC之前,还需要对模拟信号应用抗混叠滤波器。参见第四卷:MPLAB和谐框架参考:数学库帮助:DSP定点数学库:库接口:B)用于IIR定点滤波器的数字滤波功能。
以上来自于百度翻译 以下为原文 The analog signal first has to be digitized using the device's ADC or an external ADC. You also need to apply an anti-aliasing filter to the analog signal before the ADC. See Volume IV:MPLAB Harmony Framework Reference:Math Libraries Help:DSP Fixed-Point Math Library:Library Interface:b) Digital Filter Functions for the IIR fixed point filters native to Harmony. |
|
|
|
|
|
TXTX22,您知道如何实现所需的过滤器响应吗?看一看文章和主题:http://www. ncim.nL.n/….c/文章/ pMC4311919/http://StaskObjult.com……Tin作为数字滤波器http://www. dSPARCTIO.CO.D/COMP.DSP/69319-1.PHP,在您获得过滤器结构和系数之后,您将能够开始设计过滤代码。
以上来自于百度翻译 以下为原文 txtx22, have you any idea how you will implement the required filter response? Take a look at the article and the topics: https://www.ncbi.nlm.nih....c/articles/PMC4331191/ http://stackoverflow.com/...ting-as-digital-filter https://www.dsprelated.co...d/comp.dsp/69319-1.php After you got the filter structure and coefficients you will be able to start desigining the filter code. |
|
|
|
|
|
我用MATLAB得到系数。这就是我所得到的:第一节分子:120.2424858095917170.0126066 2527 15464增益:0.23 430179229 951348节:1-1.8938 704242307050.8951597 6909466 144增益:1节3分子:1-1.99 461445 530302170.99 462170701408448增益:1输出增益:1我使用这些数据在C中使用IPSIsII16函数来创建这个过滤器?我已经看到了Microchip的DSP库PDF,DSPPLIPYSPDSP.H,我不知道如何把这个值放在函数中。
以上来自于百度翻译 以下为原文 I have used MATLAB to get the coefficients. This is what I get: Section #1 Numerator: 1 2 1 Denominator: 1 -0.22455845805977917 0.0126066252715464 Gain: 0.23430179229951348 Section #2 Numerator: 1 -2 1 Denominator: 1 -1.8938704947230705 0.89515976909466144 Gain: 1 Section #3 Numerator: 1 -2 1 Denominator: 1 -1.9946144559930217 0.99462170701408448 Gain: 1 Output Gain: 1 How can I use this data to use mips_iir16 function in c to create this filter? I have seen the DSP library pdf of microchip about dsplib_dsp.h and I don´t know how to put this value in the function. |
|
|
|
|
|
当然,我会使用16位值(定点)作为WiFrter建议…
以上来自于百度翻译 以下为原文 Definitely, I'd use 16bits values (fixed point) as WinFilter suggests... |
|
|
|
|
|
看看第四卷的例子代码:数学库帮助:库接口:数字过滤函数:DSPHFILTEIRBQ16函数。
以上来自于百度翻译 以下为原文 Look at the example code that comes with Volume IV:Math Libraries Help:Library Interface:Digital Filter Functions:DSP_FilterIIRBQ16 Function. |
|
|
|
|
|
是的,我看到了,但是DSPHFILTERIRBQ16只有5个输入系数,在我的例子中,为了模拟A加权滤波器,MATLAB给出了3倍的5个系数,因为在IIR公共滤波器中A0总是1。这意味着我必须在Selee中实现3个过滤器,或者我必须使用DSPFILTERIRBRBQ16ORIL8来创建8个并行过滤器吗?
以上来自于百度翻译 以下为原文 Yes I saw it but DSP_FilterIIRBQ16 only has 5 input coefficients, in my case, to simulate the A weighted filter, MATLAB gives 3 times 5 coefficients, because a0 is always 1 in IIR common filter. So that means that I have to implement 3 filters in serie or have I have to use DSP_FilterIIRBQ16_parallel8 that allow to create till 8 filters in parallel? |
|
|
|
|
|
如果你需要得到所需的过滤,你可以在16位二元滤波器中使用菊花链三个实例。并行8滤波器是图形均衡器,所以我怀疑这是你所需要的。
以上来自于百度翻译 以下为原文 You can daisy-chain three instances of the 16-bit Biquad filter if that is what you need to get the filtering needed. The parallel 8 filter is for graphics equalizers, so I doubt that is what you need. |
|
|
|
|
|
你认为我可以使用SPFITERIRBIQQ16CasCADE8来实现这3个过滤器吗?
以上来自于百度翻译 以下为原文 Do you think can I use DSP_FilterIIRBQ16_cascade8 to implement the 3 filters? |
|
|
|
|
|
它是一个级联的8个背靠背过滤器。它被设计为支持8波段均衡器。如果你能想出如何把它从8个过滤器变成3个过滤器,它就会起作用。否则,您将必须定义3个真正的过滤器,5个不做任何过滤器来创建它支持的8个过滤器,这是低效的。
以上来自于百度翻译 以下为原文 It is a cascade of 8 back-to-back filters. It is designed to support a 8-band equalizer. If you can figure out how to change it from 8 filters to 3 filters it would work. Otherwise, you will have to define 3 real filters and 5 do-nothing filters to create the 8 filters it supports, which is inefficient. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1121浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
872浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 19:46 , Processed in 0.944229 second(s), Total 92, Slave 75 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2280