完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,安装:PIC32 MZ EF,和谐1.081,自定义板。我在扫描模式下使用ADC,由TMR3触发。扫描结束时中断。(也测试每个样品的中断)。TMR3运行在40kHz,每次扫描6个ADC输入。我的ADC ISR在IPL 7上运行,并且是IPL上唯一的中断。在ADC中,我有一些奇怪的噪声问题,看起来与和tcp/ip协议栈有关。如果我注释了堆栈init调用,噪声下降到大约1/3。此外,在一些数据已经通过堆栈发送(可能在第一次刷新之后),噪声似乎会下降。禁用PHY芯片对噪声没有影响。1)Goggling这个问题返回了与旧MLA堆栈相关的多个帖子,显然堆栈高插拔ADC以获得真正的随机数。有人知道新的和声堆栈是否有同样的问题?2)在和谐TCP/IP栈(或MAC驱动程序)中还有什么可以阻止我的ADC扫描在正确的时间开始的吗?(产生抖动,我可能对此很敏感。)欢迎任何建议。
以上来自于百度翻译 以下为原文 Hello, Setup: PIC32MZ EF, hARMony 1.08.1, custom board. I'm using the ADC in SCAN mode, triggered by tmr3. Interrupt at scan complete. (Also tested interrupt at every sample. Same result.) tmr3 runs at 40kHz, and I scan 6 adc inputs every time. My ADC ISR runs at IPL 7 and is the only interrupt at that IPL. I have some weird noise issues in the ADC that seems to be related to the harmony tcp/ip stack. If I comment out the stack init call, noise drops down to about 1/3. Also, the noise seems to drop after some data have been sent though the stack (possibly after the first flush). Disabling the PHY chip have no effect on noise. 1) Goggling this problem returned a number of posts related to the old MLA stack, apparently the stack was high-jacking the ADC in order to get a true random number. Dose anyone know if the new harmony stack have the same problem? 2) Is there anything else in the harmony TCP/IP stack (Or MAC driver) that can prevent my ADC scan from starting at the correct time? (Generating jitter, I may be sensitive to this.) Any suggestions are welcome. /RD |
|
相关推荐
2个回答
|
|
我怀疑硬件问题。以太网PHY电流使地面电压下降,供电线使ADC参考信号相对于信号地面和比例不稳定。将示波器探头插入地面和电源。
以上来自于百度翻译 以下为原文 I'm suspecting hardware problems. Ethernet PHY currents are making voltage drops on the ground and supply wires making ADC references unstable in respect of your signal ground and scale. Poke an oscilloscope probes to the grounds and supplies. |
|
|
|
协调TCP/IP协议栈不使用ADC模块,如上面所述,它可能是电噪声。
以上来自于百度翻译 以下为原文 The Harmony TCP/IP stack doesn't use the ADC module. As suggested above, it's probably electrical noise. |
|
|
|
只有小组成员才能发言,加入小组>>
4814 浏览 9 评论
1823 浏览 8 评论
1743 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2949 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2055 浏览 5 评论
452浏览 1评论
1107浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
355浏览 0评论
260浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1777浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-18 05:53 , Processed in 1.318839 second(s), Total 68, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号