Cypress技术论坛
直播中

王妍炜

7年用户 248经验值
私信 关注
[问答]

当DMA和DAC工作时什么是正确的解决方案?

你好,
正如您可以在DAC API中读取的,使用PSoC 5,您必须将DAC值写入寄存器两次。我想是因为虫子。
那么,当使用DMA时,解决方案是什么?我必须用两个DAC发送两个函数(保存在两个数组中),同时用SAR ADC采样。所以在这个时候,我的项目中有4个DMA通道。
可悲的是,我发现DAC有时会有输出的问题。为了测试目的,我添加了两个以上的DMA通道,将相同的数据写入到DAC中两次。输出更稳定,但我在系统中有更多的问题。
在PSoC 5(Debug?)下,当DMA和DAC工作时,什么是正确的解决方案?
拜伊
弗兰兹

以上来自于百度翻译


     以下为原文
  Hi,
     
    as you can read in the DAC Api, with PSoC 5 you have to write the DAC Value to the register twice. I think because of a bug.
     
    So what is the solution when working with DMA? I have to send out two functions (saved in two arrays) with two DACs and sample simultanous with SAR ADC. So at this time there are 4 DMA channels in my project.
     
    Sadly I see that the DACs have sometimes glitchy output. For testing purpose I added two more DMA Channels writing the same data twice to the first ones into the DAC. The output is more stable but I had some more problems in the system.
     
    What is die correct solution when working with DMA and DACs under PSoC 5 (production?)
     
    Bye
    Franz

回帖(3)

王琳

2019-5-16 14:10:30
在C源中,您仍然可以看到,除了PSoC5LP版本之外,对PSoC5设备进行了第二次写入。
有趣的是,我从来没有假设或经历过与DAC有关的问题,并且在ADC & GT;DMA-GT;DAC的附注中,从来没有提到过PSOC5的任何特殊之处。
鲍勃

以上来自于百度翻译


     以下为原文
  In the C-sources you can still see that a second write is made for PSoC5 devices except for the PSoC5LP version.
    Interesting, I never assumed or experienced an issue with the DAC and in the appnotes concerning ADC -> DMA -> DAC there was never anything special for PSoC5 mentioned.
     
    Bob
举报

王妍炜

2019-5-16 14:18:44
我用硬件选通同步到DMA选通。这种工作没有毛病。
谢谢!

以上来自于百度翻译


     以下为原文
   I've used hardware strobe synchronous to the DMA strobe. That works without glitches.
     
    Thanks!
举报

孙财秀

2019-5-16 14:30:09
哦。。谢谢你指出这一点…我以前没有意识到这个bug。

以上来自于百度翻译


     以下为原文
   Ohh.. Thanks for pointing this out... I was not aware of this bug before.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分