完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,有没有其他人尝试使用PGA模块连接ADC核心?我想设置过采样的ADC核心,但我没有发现任何过采样PGAX输入的信息。有人能帮助我吗?谢谢!脱土霉素78
以上来自于百度翻译 以下为原文 Hi, Has someone else ever tried to use PGA module connected with ADC Core? I would like to set the ADC CORE with oversampling but I have not found any information to oversampling PGAx input. Can anyone help me? Thanks a lot! detube78 |
|
相关推荐
6个回答
|
|
|
您好,A/D上有很多的勘误表,我确定其中有一些覆盖过采样。据我所知,过采样与源无关。我已经充分利用了PGA与A/D只是使用信息(剪切和粘贴代码)从家庭参考手册(FRM)。祝你好运!
以上来自于百度翻译 以下为原文 Hello there are quite a lot of errata on the a/d and I’m sure some of them cover the oversampling. As far as I know, the oversampling is independent of the source. I have sussessfully used the pga with the a/d just using the info (cut and paste code) from the family reference manuals (FRM). Good luck! |
|
|
|
|
|
嗨,谢谢你的回复!我已经看到了FRM中的示例代码,但是对于DSPIC33 EP128GS8xx,不存在一些寄存器。在ADC参考手册中,过采样寄存器ADFL0CON或ADFL1CON不允许设置PGA1或PGA2…这很奇怪…我会尝试联系微芯片支持来请求这一点。
以上来自于百度翻译 以下为原文 Hi, Thanks for your reply! I have seen the example codes in the FRM but some register does not exist for the DSPIC33EP128GS8xx. In ADC reference manual, the oversampling register ADFL0CON or ADFL1CON don't allow to set PGA1 or PGA2... it's strange... I'll try to contact microchip support to request this point. |
|
|
|
|
|
我认为你可以设置PGA来代替某些输入。我的代码设置ADCON4HBIT。C0HS=2,将输入设置为AD0作为PGA。然后,可以将过采样输入设置为AD0。
以上来自于百度翻译 以下为原文 I think you can set the pga to replace certain inputs. My Code sets ADCON4Hbits.C0HS=2 to set the input to AD0 as the PGA. You can then set the oversampling input to ad0. |
|
|
|
|
|
谢谢艾萨克,是的,我同意你的观点。我把AN0连接到PGA1正输入端。之后,我设置ADCON4HBIT。COHS=2,将PGA1设置为ADCCORE 0。但之后,我没有找到寄存器,我可以设置过采样输入到ADCCORE 0…我只找到了FLCHSELBIT,但是它允许设置模拟输入(比如AN0到AN19),而不是ADC核心(0到3)。如果我把FLCHSEL位设置为0,它可以将ADC核心0的输出连接到过采样输入……这就是为什么我发现它奇怪,因为它不匹配WI。数据表中的ADC模块框图…
以上来自于百度翻译 以下为原文 Thanks Isaac, Yes, i m agree with you. I have connected AN0 to the PGA1 positive input. After that, i set ADCON4HBITS.COHS=2 to set the PGA1 to ADCcore0. But after, i dont have found the register where i can set the oversampling input to the ADCcore 0... I have only found the FLCHSELbits but it allows to set the analog input (like AN0 to AN19) and not the ADC Core (0 to 3) Maybe if i set the FLCHSEL bits at 0, it could be connect the output of the ADC COre 0 to the oversampling input.... That's why i found it strange because it doesn't correspond with the ADC Module block diagram in the datasheet... |
|
|
|
|
|
在这件事上你得忍受我…我离电脑有点远。在这组UC中,A/D结果被放置在对应于输入的寄存器中,而不是我创建的核心。
以上来自于百度翻译 以下为原文 You’ll have to bear with me on this one... I am a bit away from my computer. On this set of uc’s the a/d result is placed in a register corresponding to the input not the core that created it I think. |
|
|
|
|
|
也许,下周我会尝试在AN0上设置过采样滤波器输入。我将验证过采样输出寄存器中的值。如果我有输出EGAL到4xPosits就可以了!如果你有任何关于这个主题的例子,你能把它贴在这里吗?谢谢你的帮助!
以上来自于百度翻译 以下为原文 Maybe, i'll try the next week to set the oversampling filter input on AN0. I'll verify the value in the oversampling output register. If i have the ouput egal to 4xinput it's Ok! If you have any example code about this subject, could you post it here? Thanks for your help! |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475 浏览 0 评论
5795 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1125浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 03:54 , Processed in 0.795027 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
8362