完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我有2个电位器。我想从1个ADCIMC和AMUX4中读取它们,以便在Poto0 Pin 2和PoT0引脚4之间进行更改。附上的项目很好,当我添加“Stand”功能时,问题就出现了。这应该只处理在什么时候它应该改变一些PWM输出信号和脉冲宽度。似乎它不会突然改变AMUX4输入选择。它似乎从同一个输入端口POT0引脚4(0x02)读取两个信息,并且我的字符“ADCDATAY速度”和“ADCDATAY停止时间”都由一个千分表控制。这只是当我运行“Syrink”函数时,我在计算AMUX方面遇到了一些问题。有人能仔细检查我是否把它设置好了吗?提前感谢西蒙
Sojv.Pojjk.Access 1.Zip 346.8 K 以上来自于百度翻译 以下为原文 Hello I have 2 potentiometers. I want to read from both of them using 1 adcinc and the amux4 to change between port0 pin2 and port0 pin 4. It works fine with attached project, the problem occours when I add the function "styring". This should only just handle when in time it should change some PWM output signals and pulse width. It seems that suddenly it wont change the amux4 inputselect. It seems to read both information from the same input port0 pin 4 (0x02), and both my chars "ADCData_speed;" and "ADCData_stoptime; are both controlled by one potmeter. This is only the case when I run the "styring" function, I have had some problems figuring out the amux. Can anyone double check If I did set it up right? thanks in advance Best regards Simon
|
|
相关推荐
10个回答
|
|
|
|
|
|
在芯片的观点,amux4参数,请选择ainmux0作为analog_column_mux和测试,如果它是好的。
鲍勃 以上来自于百度翻译 以下为原文 In chip-view, parameters of AMUX4, will you please select AinMux0 as Analog_Column_Mux and test, if it is ok. Bob |
|
|
|
您已经将AMUX4放置在列1中,这对偶数是正确的。
插脚。然而,当我看P02和P0E4时,你们没有定义它们。 作为模拟输入,现在它们被显示为STDCPU。 问候,Dana。 以上来自于百度翻译 以下为原文 You have placed AMUX4 in column 1 which is correct for even numbered pins. However when I look at P0_2 and P0_4 you do not have them defined as Analog Input, right now they are shown as STDCPU. Regards, Dana. |
|
|
|
|
|
|
|
其他一些项目
1)你的ADC时钟,VC1,设定为12 MHz,8 MHz的规格限制。VC1因子 等于3。 2)全球性质,OpAmp bias设置为低,应高。 3)你的名字使引脚引脚编辑器可读性更容易,尤其是在引脚的观众 4)考虑使用此 AdCDATAYSPORK= ADCSCIONBCURLFLAGGATEDATA(); 与此相对 adcdata_speed = adcinc_bgetdata();adcinc_fclearflag();/ *明确旗下阅读* / ADC 问候,Dana。 以上来自于百度翻译 以下为原文 Some other items - 1) Your ADC clock, VC1, is set for 12 Mhz, spec limit is 8 Mhz. VC1 Divisor should be >= 3. 2) In global proerties, OpAmp bias set for low, should be high. 3) Name your pins in pin editor to make readability easier, especially in pinout viewer 4) Consider using this ADCData_speed = ADCINC_bClearFlagGetData(); vs this ADCData_speed = ADCINC_bGetData(); ADCINC_fClearFlag(); /* Clear ADC flag for next reading */ Regards, Dana. |
|
|
|
谢谢所有的回复,我会用E-ALL。很感激,因为我没有时间去进一步探讨这ATM。我想。我将测试下一天的这一天。最好的问候西蒙
未完成的12JPG 133.9 K 以上来自于百度翻译 以下为原文 Thanks for all the replies, I will use em all. Very gratefull, since I don't have the time atm to study further into this. I want to though. I will test this one of the next days. Best regards Simon
|
|
|
|
我在上面附上错误图片。应该是笑脸XD
以上来自于百度翻译 以下为原文 Woops wrong picture I attached above. Should of been a smiley xD |
|
|
|
你好,我做了你写的每一件事,但它仍然不起作用。当我放在while循环中的“styring”功能,它有点像读取的值代替开关AMUX中相同的输入。作品没有“styring”功能,工作的很好,如果代码是用if语句。也许我只是厌恶编程:)但我相信´的案例。
以上来自于百度翻译 以下为原文 Hello I did everything you have written, but it still doesn't work. As soon as I put in the while loops in the "styring" function, it kinda like reads both the values from the same input instead of switching in with the amux. Works fine without the "styring" function, works fine if the code is written in if statements. Maybe I just suck at programming :) But I do believe that´s the case. |
|
|
|
我建议你到这里工作和不工作的项目。
鲍勃 以上来自于百度翻译 以下为原文 I would suggest you to post the working and the not-working project here. Bob |
|
|
|
“文件”
“档案工程” 使用Firefox或IE浏览器后,不。 问候,Dana。 以上来自于百度翻译 以下为原文 “File” “Archive Project” Use Firefox or IE, not chrome to post. Regards, Dana. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2071 浏览 1 评论
1827 浏览 1 评论
3642 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1762 浏览 6 评论
1513 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
511浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
362浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
860浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 16:11 , Processed in 1.255260 second(s), Total 96, Slave 79 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号