完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
嗨,我是新开发嵌入式系统,只是试图建立自己的电压表基于PSoC 5LP使用PSoC创建者4 / 4.1。当我尝试配置ADCXARR时,我不能设置VREF值。我从数据表中了解到这是正常的,因为当使用内部引用时,VREF是只读的(固定2.5伏)。虽然我希望有从VSS(0V)到Vdda witch的输入范围设置为3伏。所以VREF应该设置为1.6500伏特。我没有外部参考电压,所以必须使用内部。请帮助我们在0、3、3V之间进行测量,非常感谢!
加博 以上来自于百度翻译 以下为原文 Hi, I'm new in developing embedded systems and just trying to built my own voltmeter based on PSoC 5LP using PSoC Creator 4.0/4.1. When I try to configure the ADC_SAR I cannot set the Vref value. I have learned from the datasheet that this is normal because when using internal reference the Vref is read only (fixed 2.500volts). Although I would like to have the input range from Vss (0V) up to Vdda witch is set to 3,3volts. So the Vref should be set to 1.6500 volts. I have no external reference voltage so have to use the internal. Please help how to perform the measurement between 0-3,3V. Many thanks! Gabor |
|
相关推荐
7个回答
|
|
使用“内部VREF绕过”作为参考。这将参考电压设置为2.048 V,然后将输入范围设置为2×Vref,从而得到0~4.096V的输入范围。
你不能把内部参考电压转换成不同的电压,它是固定的。 以上来自于百度翻译 以下为原文 Use 'internal Vref bypassed' as reference. This set the reference voltage to 2.048V. Then set the input range to 2*Vref, so you get a input range of 0-4.096V. This gives a nice resolution of 1mV per bit. You cannot chgange the internal reference voltage to a different voltage, its fixed. |
|
|
|
|
|
|
|
lxhzx 发表于 2019-7-1 16:06 谢谢!但是使用内部旁路不会直接影响(保持未被触动)。另外,我只有选项(0到2.048 V,0到VREF * 2)(VSSA到Vdda(0~5V))和(Vssa到VDA* 2)输入范围。在第一种情况下,Vref读到1.024V只读,在第二种情况下只读到2.500 V,并且在第三种情况下它可以被设置…但不适用于3.3V。你还有其他想法吗? 以上来自于百度翻译 以下为原文 thanks a lot! But using internal bypassed does not influence Vref directly (stays untouched). Plus I have only the options (0.0 to 2.048V as 0 to Vref*2) (Vssa to Vdda (0-5V)) and (Vssa to VDA*2) for input range. In first case the Vref goes to 1.024V read only, in the second case to 2.500V read only, and in the 3rd case it can be set... but does not work for 3.3V. Do you have any other idea? |
|
|
|
tomsonbill 发表于 2019-7-1 16:37 哦,我的,那是“没有足够的咖啡”错误:(是的,SAR ADC只测量2.048伏。如果你需要一个更大的范围,要么使用分压器,使用Delsig ADC(它可以做6×Vref)或者从GND测量到VDDA。 除了使用外部参考,没有任何范围上升到3.3V准确。为什么DOE你需要精确的范围-只使用下一个更高的范围… 以上来自于百度翻译 以下为原文 Oh my, that was "not enough coffee" error :( Yes, the SAR ADC measures only to 2.048V. If you need a larger range, either use a voltage divider, use the DelSig ADC (which can do 6*Vref) or measure from GND to Vdda. Apart from using an external reference, there is no range that goes up to 3.3V exactly. Why doe you need that exact range - just use the next higher one... |
|
|
|
lxhzx 发表于 2019-7-1 16:47 再次感谢您的回复!要说,通过我不需要3.3V ExATLLI只是想知道如果我设置的输入范围GND到VDDA和VDDA被设置为3.3伏,显示电压Valuon LCD从0V到5V(使用机载电位器)…我已经检查了电压表上的实际电压,它实际上是在0…3.3V的范围内。我试图找出测量和显示值的原因,并得出ADC没有被配置的结论。就是这样。 以上来自于百度翻译 以下为原文 thanks for response again! To say the through I do not need the 3.3V exatly I just wondered if I set the input range to GND to Vdda and Vdda was set to 3.3 V and the displayed voltage on LCD went from 0v up to 5V (using the onboard potentiometer) ..... I have checked the real voltage on potentiometer with voltmeter and it was really in 0...3.3V range. Than I tried to find the reason of the measured and displayed values and came to the idea that ADC was not configured corretctly. That's all. |
|
|
|
tomsonbill 发表于 2019-7-1 16:56 很可能你没有在项目中设置新的电压。在WorkStudio资源管理器中,转到“设计范围资源”。在“系统”选项卡上,您可以设置正确的电压。 以上来自于百度翻译 以下为原文 Most likely you did not set the new voltage in the project. In the workspace explorer, go to the "design-wide resources". On the "System" tab you can set the correct voltage. |
|
|
|
lxhzx 发表于 2019-7-1 17:09 宾果,就是这样!谢谢你的帮助!(抱歉迟到了……) 以上来自于百度翻译 以下为原文 Bingo, that's it! Thank you for your kind help! (sorry for late response ...) |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2098 浏览 1 评论
1845 浏览 1 评论
3664 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
556浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
409浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
433浏览 2评论
379浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
905浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 10:02 , Processed in 1.062646 second(s), Total 91, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191