你好,
正如您可以在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 solu
tion 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