完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我想弄清楚PSOC1芯片是否允许我有16个或更多的ADCin输入引脚。我希望使用一个或两个ADC的,然后多路复用输入内部。玩一些随机芯片在设计师,我不知道如何我将采取超过8个输入。我不需要超过每千克10KHz的采样率。这也许更适合PSOC3或5?在这个项目中,我也希望在代码中改变一些引脚的配置(比如在ADC输入到CAPSENSE输入之间),这是可能的还是应该看PSOC 3或5。
谢谢。 以上来自于百度翻译 以下为原文 Hello, I'm trying to figure out if any of the PSOC 1 chips will allow me to have 16 or more ADC input pins. I was hoping to use one or two ADC's and then multiplex the input internally. Playing with some random chips in Designer, I couldn't figure out how I would take more than 8 inputs. I wouldn't need more than say 10khz sample rate per pin. Is this perhaps more suitable for PSOC 3 or 5? In the project this is for I also want to in code change some of the configuration of pins (say between an ADC input to a capsense input), again is this possible or should I look into psoc 3 or 5. Thanks. |
|
相关推荐
12个回答
|
|
可以使用MUX总线在CY8C24X91设备上有超过16个输入到ADC。在下面的链接中有一个相同的示例项目。
使用模拟多路复用总线测量多个模拟输入 但是每个信道不可能有10kSPS吞吐量。一个8位增量ADCIMC的最大速度为65kSPS。这将转化为每秒大约400个样本每秒。所以,如果速度是关键的,我认为PSoC3或PSoC5将是最好的选择。 最好的问候, 加内什 以上来自于百度翻译 以下为原文 It is possible to have more than 16 inputs to an ADC in a CY8C24x94 device, using the Mux bus. An example project for the same is available in the below link. Measuring Multiple Analog Inputs Using Analog Mux Bus But 10ksps throughput is not possible per channel. An 8 bit incremental ADCINC has a maximum speed of 6.5ksps. That would translate to around 400 samples per second per channel. So, if speed is critical, I think PSoC3 or PSoC5 would be the best choice. Best Regards, Ganesh |
|
|
|
如果GANSIH提到的是速度,PSOC3/PSoC5是值得一试的。PSOC3中的ADC为8比特分辨率给出了384 kSPS的最大采样率。在PSoC3中可用的模拟多路复用器可以用来容易地复用CANNENS,并实现每个信道所需的10kSPS采样率。
-乌达扬 以上来自于百度翻译 以下为原文 If speed is cruicial as mentioned by ganesh, PSoC3/PSoC5 is worth a try. The ADC in PSoC3 gives a maximum sampling rate of 384 ksps for 8 bit resolution. Analog MUX available in PSoC3 can be used to multiplex cahnnels easily and achieve the necessary 10ksps sample rate per channel. -Udayan |
|
|
|
在连续模式下,对于一个单通道,Acple 85 5kSPS将是。由于ADC内抽取器的管路特性,采样率约为1/4Rh。
戴夫 以上来自于百度翻译 以下为原文 Acually 385ksps would be for a singl channel in the continous mode. Because of the pipe-line nature og the decimator inside the ADC, the sample rate is about 1/4rh of that. Dave |
|
|
|
谢谢你的回复!所以看起来我可以用PSCO3获得16个频道的6KHz?-看起来不错。我希望做的是使用16个输入引脚,最多16到ADC。不是所有的引脚都需要这个速度(它们可以被采样得不那么频繁),有时会被禁用或连接到CAPSENSE,或者作为数字IO。
随着我正在构建的设备,我想使用PSoC的灵活性来调整一对简单的无源输入模块,这些模块将使用相同的引脚,但对它们的操作有不同的模式。我希望在代码中而不是在编程时动态地改变这个配置。我正准备放弃我的设计,由于PSoC5与SAR尚未生产,但PSoC3可能只是工作。 这给了我另一个问题,看看PSoC®3:CY8C32数据表,第47页:我不知道是否有16个引脚可以路由到AcCOR的CAPSENSE,似乎不是这样。 再次感谢 以上来自于百度翻译 以下为原文 Thanks for the replies! So it seems I could get 6khz per channel with 16 channels using the psoc3?- that seems fine. What I was hoping to do is use 16 input pins with up to 16 muxed to an ADC. Not all pins would require this speed (they could be sampled less frequently), and some at times might be disabled or connected to capsense, or made as a digital IO. With the device I am building I want to use the PSOC's flexibility to acomodate a couple simple passive input modules that would use the same pins but with various modes as to their operation. I would want to change this configuration dynamically in code rather than at programming time. I was about ready to abandon my design due to the PSOC 5 with the SAR not being in production yet, but PSOC 3 might just work. This gives me another question, looking at the PSoC® 3: CY8C32 datasheet, page 47: I can't tell if there are 16 pins that could route to the ADC or the capsense, it doesn't seem so. Thanks again |
|
|
|
再次问好,
实际上我意识到我不需要那么多的输入,我在最后一篇文章中的问题我现在还没有尝试。 我一直在使用上面提供的代码,它工作得很好。在阅读之后,我似乎已经在PSoC 1上的最慢可用的增量ADCIS。在16个通道中计算400个SPS,假设增量ADC。如果我使用SARORD Delta Sigma会有什么样的表现?我现在只需要大约5个频道,但我需要最少2KSPS。 而且,24x92的模拟/数字块比其他的块少吗?我想我可以有超过1个增量ADC的运行与一个不同的芯片。 我意识到需要等待Delta Sigma的稳定化,以及SAR缺少采样和保持,但是可以做些事情来解决这个问题,得到3KSPs * 5个通道吗?从我能估计到的,我的测试没有给出稳定的结果。 再次感谢! 以上来自于百度翻译 以下为原文 Hello Again, I actually realized that I don't need nearly that many inputs, and my questions in my last post I'm not attempting at this point. I have been working with that code provided above and it works very well. After the reading I have done it seems as if the incremental ADC is among the slowest available on the psoc 1. Your calculation of 400 sps at 16 channels assumes the incremental ADC. What would be the performance if I was to use the SAR or Delta Sigma? I need only about 5 channels now but I need a minimum 2ksps. Also, doesn't the 24x94 have less analog/digital blocks than some of the others?, I would imagine I could have more than 1 incremental ADC's running with a different chip. I realize the need to wait for stabalization with the delta sigma, and the lack of sample and hold for the SAR, but can something be done to work around this and get say 3ksps * 5 channels? From what I can estimate I can, but my tests don't give me stable results. Thanks again! |
|
|
|
如果你只需要测量5个信号,那么我建议你使用CY8C24466和TreADC。TrimADC可以同时转换3个输入。您可以在两个ADCROCKE中转换所有5个信号。这会给你带来很好的吞吐量。
但是,由于它只有两个模拟列,所以不能将CyrADC放置在CY8C24X92设备中。你可以在CY8C24X91中尝试DALALADC,它可以同时测量两个信号。用DualADC,你可以测量所有5个通道在3个ADCROCKE中。 最好的问候, 加内什 PSoC Hacker 以上来自于百度翻译 以下为原文 If you need to measure only 5 signals, then I would suggest you use CY8C29466 and the TriADC. A TriADC can convert 3 inputs simultaneously. You can convert all the 5 signals in two ADC cycles. That will give you a very good throughput. However, a TriADC cannot be placed in CY8C24x94 device as it has only two analog columns. You could try the DualADC in the CY8C24x94, which can measure two signals at the same time. With a DualADC, you can measure all 5 channels in 3 ADC cycles. Best Regards, Ganesh The PSoC Hacker |
|
|
|
你好,甘尼什,
谢谢你的回复。我有一个CY8C9466与三联工作似乎在复用之前,它甚至似乎工作到大约12kHz。在阅读了关于这个主题的网页:HTTP://www. PalePoSoC.COM/PSoC1-KB-Adv/30转换输入,to AN递增ADC.HTML,我正在尝试你所称的选项1,以最大化我的采样率,但是我似乎对干扰值有问题。在ATM文件中,我调用代码来切换MUX,然后浪费1U(所有高功率)来解决。我专门在用户代码区打电话,说“切换MUX的好地方”,在计数器之后,积分器停止,计数器重新启动,但在重新启动积分器之前。我假设在计数器启动之前(在用户代码段中),或者在计数器被停止之前,我必须调用它。 对我的问题或怀疑有什么想法? 再次感谢! 以上来自于百度翻译 以下为原文 Hello Ganesh, Thanks for your replies. I have a CY8C29466 with the TriADC that seems to work before multiplexing, it even appears to work up to about 12khz. After reading your page on this topic : http://www.planetpsoc.com/psoc1-kb-analog/30-changing-the-inputs-to-an-incremental-adc.html I am attempting what you call option 1 to maximize my sample rate, however I seem to be having issues with interfering values. In the asm file for the triADC_INT I call code to switch the mux, and then waste 1us (everything high power) for settling. I specifically have my call at the user code region that says "a good place to switch mux", which is after the counters, and integrators are stopped, the counters restarted, but before the integrators are restarted. I am assuming that I must need to call this before the counters are started (not in the user code section), or before the counters are stopped in the first place. Any ideas on my problem, or suspicions? Thanks again! |
|
|
|
如何同步前台进程和后台进程?如何跟踪ADC在前景进程中测量哪些输入?当您在用户代码区域中切换输入时,先前转换的结果已经存储在ADC结果变量中。所以,不应该有干扰。还有,你说你要延迟1U来解决问题?你在哪里提供这个延误?在我看来,选择3也应该对你很好。1。将输入1、输入2和输入3设置到TrimADC通道1, 2和3 2。GETSimes(1)3。等待数据就绪4。读取结果1、结果2和结果3 5。将输入4和输入5设置到TreADC通道1和2 6。GETSimes(1)7。读取结果4和结果5 8。从步骤1重复最好的问候,GSONH PSoC黑客
以上来自于百度翻译 以下为原文 How are you synchronizing the foreground and background processes? How are you tracking which inputs are measured by the ADC in the foreground process? When you switch the input in the user code area, the result of the previous conversion is already stored in the ADC result variables. So, there should be no interference. Also, you say you are providing a delay of 1uS for settling? Where are you providing this delay? In my opinion, option-3 should also work fine for you. 1. Set Input1, Input2 and Input3 to the TriADC channels 1, 2 and 3 2. GetSamples(1) 3. Wait for data ready 4. Read Result1, Result2 and Result3 5. Set Input4 and Input5 to the TriADC channels 1 and 2 6. GetSamples(1) 7. Read Result4 and Result5 8. Repeat from step 1 Best Regards, Ganesh The PSoC Hacker |
|
|
|
你好,甘尼什,
谢谢你的回复,你说的“过程”,我想你是指我的代码与asynchronousinterrupt ADCcode同步。我用verysimplelock防止中断破坏我的数据,在最坏情况下抛出一个样本。我意识到我其实是锁定在错误的地方,允许数据被损坏,在某些情况下,我希望能够使这项工作现在如果这是唯一的问题。 还有,你提到: 然而,如果你看看triadc8。H没有样本参数如单通道adcinc无效triadc8_1_getsamples(void);谢谢你的帮助, 外部的 克里斯哈比 GETSimes(1) 以上来自于百度翻译 以下为原文 Hello Ganesh, Thanks for the reply. When you say "processes" I think you are refering to synchronizing my code with the asynchronous interrupt ADC code. I am using a very simple lock to prevent the interupt from corrupting my data, in the worst cast throwing out a sample. I realized that I actually was locking in the wrong place allowing for the data to be corrupted in certain cases, I should hopefully be able to make this work now if this is the only problem. Also, you mention: however, if you look at TRIADC8.h there is no number of samples argument like the single channel ADCINC void TRIADC8_1_GetSamples(void);Thanks for your help, extern Kris Hubby GetSamples(1) |
|
|
|
嗨,克里斯,用TrADC代替TrADC8。TrIDADC8是TrADC的简化版本,不具有TrEADC的灵活性。使用TreADC用户模块并将分辨率设置为8位。可以使用此用户模块进行单样本转换。最好的问候,GSONH PSoC黑客
以上来自于百度翻译 以下为原文 Hi Kris, Use the TriADC instead of TriADC8. The TriADC8 is a simplified version of TriADC and does not have the flexibility of TriADC. Use the TriADC user module and set the resolution to 8 bits. You can do single sample conversion using this user module. Best Regards, Ganesh The PSoC Hacker |
|
|
|
我对这个职位很感兴趣。有了PSoC 1,我如何做一个采样和保持放大器。我试图捕捉一个缓慢移动的模拟信号后1毫秒后的样品在相同的信号再次为尖峰电压。是否需要外部采样和保持放大器?
以上来自于百度翻译 以下为原文 I am interested in this post. With the PsoC 1 how can I make a sample and hold amp. I am trying to capture a slow moving analog signal then 1 mS later sample the same signal again for a voltage spike. Do I need an external samle and hold amp? |
|
|
|
忘记我的电子邮件。这毕竟是一个简单的答案。
谢谢 菲利普 以上来自于百度翻译 以下为原文 Forget my email. It was an easy answer after all. Thanks Philip |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2071 浏览 1 评论
1827 浏览 1 评论
3640 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1761 浏览 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-25 20:37 , Processed in 1.245964 second(s), Total 100, Slave 83 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号