完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好。我希望有人能给我解释一下我在PIC32 MZ遇到的一个奇怪的行为。我设计了一个超声波板,通过一个电容器给差分信号的每一条腿供电,然后在模拟前端生产商推荐的PIC32 MZ2048 EFH144上提供模拟引脚。PIC固件配置引脚是差分I类模拟输入。它也在100US突发中采样非常快(10 MSPS),使用DMA将样本发送到缓冲器。如果我设置的引脚,你通常会为ADC(没有上拉电阻,没有ODC),它不起作用。但是,如果我设置了引脚,使内部拉电阻,它工作得很漂亮,并在100US窗口采样干净的声波。我很高兴,我找到了一个解决方案,但这对我没有任何意义。文档说明在配置为ADC的引脚上禁用上拉和下拉电阻器。如果没有禁用PUs,那么这不会破坏信号吗?这种行为在许多专业组装的PCB上是相同的。我到处找不到任何信息,勘误表里什么也没有。如果有人对发生的事情有任何想法,我很感兴趣。谢谢,安迪。
以上来自于百度翻译 以下为原文 Hello everyone. I'm hoping someone can explain to me a strange behavior I've encountered with the PIC32MZ. I designed an ultrasound board that feeds each leg of a differential signal through a capacitor, then to analog pins on a PIC32MZ2048EFH144, as recommended by the analog front end manufacturer. The PIC firmware configures the pins to be differential class I analog input. It's also sampling very fast (10 MSPS) in a 100us burst, using DMA to send the samples to a buffer. If I set the pins how you normally would for ADC (no pull up resistors, no ODC), it doesn't work. If however, I set the pins to enable the internal pull up resistors, it works beautifully, and samples a clean sound wave over the 100us window. I'm happy that I've found a solution, however this doesn't make any sense to me. The documentation states that pull up and pull down resistors are disabled on pins that are configured for ADC. If the PURs weren't disabled, wouldn't that corrupt the signal? This behavior is identical across many PCBs that were professionally assembled. I couldn't find any information anywhere on this, and there isn't anything in the errata. I am very interested if anyone has any ideas as to what is happening. Thanks, -Andy |
|
相关推荐
2个回答
|
|
HI,ADC输入在器件内部充电一个采样电容,ADC在转换期间具有稳定的电压。当转换完成时,采样电容在连接到ADC输入之前被放电,用于下一个样本的充电。如果有交流耦合输入信号,将有BIa。S网络需要将平均电压拉到有效范围内,如果没有偏置,输入电压可能被拉到有效范围以下。在这种情况下,内部WPU看起来可能提供偏置电流。应该使用直流模式的示波器来观察信号,并验证输入电平是否为I。n范围。迈西尔
以上来自于百度翻译 以下为原文 Hi, ADC inputs charge a sampling capacitor inside the device, for ADC to have a stable voltage during conversion. When conversion is completed, the sampling capacitor is discharged before connecting to ADC input for charging for the next sample. If there is AC coupled input signal, there will be a bias network needed to pull average voltage into valid range. If there is no bias, input voltage may be pulled down below valid range. In this case, it may seem that internal WPU provide bias current. You should apply a oscilloscope using DC mode to observe signals, and verify that input levels are within range. Mysil |
|
|
|
哇,这正是问题所在。我去掉了去耦电容,信号的每一个支路现在被偏置在1.5V。采样波可以在我们的软件中显示,现在看起来与外部范围的采样几乎相同。数据表非常混乱。谢谢你的小费!-安迪
以上来自于百度翻译 以下为原文 Wow, this is exactly what the problem was. I removed the decoupling capacitors and each leg of the signal is now biased at 1.5V. The sampled wave can be displayed in our software, and now looks nearly identical to sampling with an external scope. The datasheets are pretty confusing. Thanks for the tip! -Andy |
|
|
|
只有小组成员才能发言,加入小组>>
5189 浏览 9 评论
2009 浏览 8 评论
1933 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3181 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2232 浏览 5 评论
746浏览 1评论
632浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
517浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
644浏览 0评论
544浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-1 04:08 , Processed in 1.368431 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号