完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我一直在寻找一种方法来测量PSoC 5LP中每个组件的消耗。我想的最合理的方法是只启用那个组件(而不是其他组件)并测量消耗。 这就是问题所在。你到底是怎么做到的? 我做了一些阅读,我在CyfTeTyFCFG C中偶然发现了这一点: /*启用UDB数组*/ CythSexxTdNdReG8((CyFaL*)CyReGypMyActhfCFG0, CygGETX-XtNd1-ReG8((CyFaLy*)CyrgErpMa ActhyCFG0)0x40U; CythSexxTnNdReG8((CyFaL*)CyrgypMyApvestCR2, cy_get_xtnd_reg8((void cyfar *)cyreg_pm_avail_cr2)| 0x10u); 我没有什么cy_set_xtnd_reg8一些研究,cyreg_pm_act_cfgx和cyreg_pm_avail_crx,这是我所理解的: GyStSyxxtNd.ReG8是一种用于写入寄存器的方法。 >;cyreg_pm_act_cfgx是一套用于启用/禁用特定子系统寄存器(UDB,clkdist,模拟如果,等) >;cyreg_pm_avail_crx是一组用来做特定的子系统可用/不可用的寄存器(或多或少相同的子系统) 到目前为止,我虽然用全零(0x00)在thecy_set_xtnd_reg8method二禁用某些寄存器,不使用(例如,比较器)。但这是要走的路吗? 有什么区别betweencyreg_pm_act_cfgxandcyreg_pm_avail_crxsince看起来他们都或多或少同样的事情吗? 我引用的TRM,系统参考指南,登记图和生成的代码(cyfitter_cfg。H)。 以上来自于百度翻译 以下为原文 Hello, I've been trying to find a way to measure the consumption of each individual components in the PSoC 5LP. The most logical way that I thought about is to enable ONLY that component (and NOTHING ELSE) and measure the consumption. And this is where the problem comes in. How exactly do you do that? I've done some reading and I stumbled across this in cyfitter_cfg.c : /* Enable UDB array */ CY_SET_XTND_REG8( (void CYFAR *)CYREG_PM_ACT_CFG0, CY_GET_XTND_REG8((void CYFAR *)CYREG_PM_ACT_CFG0) | 0x40u ); CY_SET_XTND_REG8( (void CYFAR *)CYREG_PM_AVAIL_CR2, CY_GET_XTND_REG8((void CYFAR *)CYREG_PM_AVAIL_CR2) | 0x10u ); I did some research on what CY_SET_XTND_REG8, CYREG_PM_ACT_CFGx and CYREG_PM_AVAIL_CRx are, and this is what I understood : > CY_SET_XTND_REG8 is a method used to write to registers > CYREG_PM_ACT_CFGx are a set of registers used to enable/disable specific subsystems (UDB, clkdist, analog if, etc.) > CYREG_PM_AVAIL_CRx are a set of registers used to make specific subsystems available/unavailable (more or less the same subsystems as above) So far, I though of using all zeros (0x00) as the second argument in the CY_SET_XTND_REG8 method to disable certain registers that are not used (example, comparators). But is that the way to go? And what is the difference between CYREG_PM_ACT_CFGx and CYREG_PM_AVAIL_CRx since it looks like they both do more or less the same thing? My references are the TRM, Systems Ref Guide, Register Map and the generated code (cyfitter_cfg.h). |
|
相关推荐
4个回答
|
|
|
为什么你不信任数据表呢?
对于几乎每个模块都有一个START()函数,一些模块具有额外的省电状态,可以用SIP()API将它们发送到。 鲍勃 以上来自于百度翻译 以下为原文 Is there any reason why you do not trust into the datasheets? For nearly each module there is a start() function, and some have additional power-saving states which you can send them into with the sleep() APIs. Bob |
|
|
|
|
|
这可能是有用的
HTTP://www. CyPress?COM/?DoCID=44199 AN7900 问候,Dana。 以上来自于百度翻译 以下为原文 This might be useful - http://www.cypress.com/?docID=44199 AN77900 Regards, Dana. |
|
|
|
|
|
再次问好,
我已经解决了这个问题。原来有API用来关闭像时钟之类的组件。 但我有一个奇怪的话。 当我试图关闭在设计中没有使用的某些组件(例如,模拟路由泵)时,使用它的API,全球消耗就会增加。当我评论或删除主代码中的这行代码时,消费就会下降。 有什么想法吗? 以上来自于百度翻译 以下为原文 Hello again, I've fixed my problems for this one. It turns out that there are APIs for turning off components like clocks, etc. But I have one weird remark. When I try to turn off certain components that is not used in the design (for example, the analog routing pump) using its API, the global consumption increases. And when I comment or delete this line of code in the main, the consumption falls back down. Any ideas why that is so? |
|
|
|
|
|
你可以考虑在这上面贴一个例子,当你得到答案的时候。
为大家张贴论坛 在柏树创建一个技术案例 CyPress网站 “支持” “技术支持” “创造一个案例” 你必须先在赛普拉斯网站上注册。 问候,Dana。 以上来自于百度翻译 以下为原文 You might consider posting a CASE on this and when you get answer posting back on forum for everyone - To create a technical case at Cypress - www.cypress.com “Support” “Technical Support” “Create a Case” You have to be registered on Cypress web site first. Regards, Dana. |
|
|
|
|
只有小组成员才能发言,加入小组>>
787个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7297 浏览 0 评论
2484 浏览 1 评论
2178 浏览 1 评论
4041 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2086 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7802浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6363浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
757浏览 2评论
729浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
8208浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 01:26 , Processed in 0.815744 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1968