完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
DMA向导不允许将8位SAR ADC连接到8位VDAC。
它抱怨不兼容的突发大小。具体的错误是“所选的源和目的地具有不兼容的突发大小。不能选择有效的大小。 附上一个包含三个相关组件的最小示例项目。这足以重现错误信息。还附加了错误消息的截图。 我怀疑这是由于SAR ADC被永久地卡在16位寄存器配置中,从DMA的角度来看,即使该组件配置为8位分辨率。这意味着DMA配置假定最小的突发大小为2字节,即使1字节的突发大小应该是很好的。 在SAR ADC数据表的DMA部分中,我看到了关于AcdSARARWRK0YOPTR源的注释:“接收一个2字节的结果,用于转换,结果总是具有12位分辨率。”这支持先前怀疑DMA突发大小不能缩小以匹配配置的8位RES。洗脱。 DMA向导将分辨率从1到3字节缩放DeltasigMA ADC突发大小,因为分辨率从8位变为20位。DeltasigMA数据表还将这些突发大小列为依赖于分辨率的ADCJ-DESIGLDEXYSAMPYPTR的有效长度。我惊讶的是,SAR ADC不能同样地缩放突发宽度。 这是一个错误,还是仅仅是SAR ADC硬件的限制? 除了使用DeltasigMA ADC而不是SAR ADC之外,还有什么可行的建议吗? 我怀疑有可能把DMA源地址指向ADCYSARA WRK0YRG,它包含相关的8位值。 我认为一种选择是链接一对TDS,每个TD读取一个字节,其中第一个TD传递第一个字节到8位VDAC,而第二个TD只将另一个字节扔掉。 我还发现这两个未解决的线程遇到相同的突发宽度问题。 从SAR到VDAC的DMA 为什么我无法通过DMA将数据从ADCYSAR传输到VDAC8? PNG 182.8 K SalaAdcdDMAYDAC.Cyrj.CaseVo.01.Zip 18.2 K 以上来自于百度翻译 以下为原文 The DMA Wizard does not allow linking an 8-bit SAR ADC to an 8-bit VDAC. It complains about incompatible burst sizes. The specific error is "The selected Source and Destination have incompatible Burst sizes. No valid size can be selected". A minimal example project just containing the three relevant components added to the schematic is attached. This is enough to reproduce the error message. Also attached a screenshot of the error message. I suspect this is due to the SAR ADC being permanently stuck in a 16-bit register configuration from the DMA's perspective, even if the component is configured with 8-bit resolution. This means that the DMA configuration assumes a minimum burst size of 2 bytes, even though a burst size of 1 byte should be fine. In the DMA section of the SAR ADC datasheet, I see this comment about the ADC_SAR_WRK0_PTR source: "Receive a 2-byte result for a conversion with a result that always has 12-bit resolution." This supports the previous suspicion that the DMA burst size cannot shrink to match the configured 8-bit resolution. The DMA Wizard scales the DeltaSigma ADC burst size correctly from 1 to 3 bytes as the resolution changes from 8-bit to 20-bit. The DeltaSigma datasheet also lists these burst sizes as valid lengths of ADC_DelSig_DEC_SAMP_PTR depending on resolution. I'm just surprised that the SAR ADC cannot scale burst width similarly. Is this a bug, or just a limitation of the SAR ADC hardware? Are there any workaround suggestions besides just using the DeltaSigma ADC instead of the SAR ADC? I doubt it's possible to just point the DMA source address to ADC_SAR_WRK0_REG, which contains the relevant 8-bit value. I'm thinking one option is to chain a pair of TDs that each read one byte, where the first TD passes the first byte along to the 8-bit VDAC, and the second TD just throws the other byte away. I also found these two unresolved threads which encountered the same burst width issue. DMA from SAR to VDAC Why I am unable to transfer data from ADC_SAR to VDAC8 Via DMA?
|
|
相关推荐
1个回答
|
|
DMA向导所使用的ADCYSAR组件的突发大小在目录C:程序文件(x86) CyPress PSoC创建者 4.1 PSoC创建者 PSoC 内容 CyCultEngultCyCultCual.CyLbAdcSARYV3L0PSOC5ADCXARSARV3Y0.CYDMACAP下面描述帐篷的文件。
DMACAPPACTION & GT; 类别名称=“SARAY-ADC” 启用=“true” BythyInα突发=“2” BytSynIn BurtSysIsSuffig= =“true” Spkes宽度=“2” “假” EACHI BurSTyReql请求=“true”& gt; 位置名称=“$$StasyName”`SARA WRK0ZPTR“启用=“true”方向=“源”/gt; & lt;/类别& gt; &; 从这个文件中发现,只有一个“类别”支持2字节的突发传输。它可以用来描述DMA能力文件中的多个“类别”。因此,您可以修改ADCYSAR组件以拥有一个附加的“类别”来支持8位传输。请参阅以下文档中的“7.4添加/创建DMA功能文件”。 PSoC®创建者组件编辑器 当做, 诺里基 以上来自于百度翻译 以下为原文 The burst size of the ADC_SAR component used by the DMA Wizard is described in the DMA Capability file at the directory C:Program Files (x86)CypressPSoC Creator4.1PSoC CreatorpsoccontentCyComponentLibraryCyComponentLibrary.cylibADC_SAR_v3_0PSoC5ADC_SAR_v3_0.cydmacap Following is the content of the file. It was found from this file, there is only one "Category" supporting 2-byte burst transfer. It is available to describe multiple "Category" in a DMA Capability file. So you can modify the ADC_SAR component to have an additional "Category" supporting 8-bit transfer. Please refer "7.4 Add/Create DMA Capability File" in the following document. PSoC® Creator™ Component Author Guide | Cypress Semiconductor Regards, Noriaki |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1824 浏览 1 评论
3633 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1509 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
507浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
357浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
409浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
854浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-21 22:29 , Processed in 0.579770 second(s), Total 73, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号