完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,”
我使用PSoC控制器CY8C3244PVI-133 我把它放在睡眠模式和唤醒只有当微微中断中断。 当它醒来时,我开始1MSEC定时器中断,并设置一个标志,我用它来改变状态,同时(1)循环。 我的睡眠电流是40USEC。有源电流为20mA 我注意到,当外部中断引脚PICU以外的引脚有任何过渡时,控制器唤醒,电流也增加。 这是我写的一个代码,比如如果偶然控制器醒来然后开始1msec定时器中断,再回去睡觉,但我的中断不能正常工作,即使我直接把睡眠模式,这是不打算睡了。 为什么会这样呢? 请指导。 以上来自于百度翻译 以下为原文 Hello all,' I am using PSOC controller cy8c3244pvi-133 i am putting it in sleep mode and wakeup only when PICU interrupt occures. when it wakes up i start 1msec timer interrupt and set one flag which I use for changing the state in while(1) loop. my sleep current is 40usec. and active current is 20mA I have noticed that when there is any transition of pins other than external interrupt pins PICU, controller wakes up and current is also increases. for this I wrote a code such as if by accident controller wakes up then start 1msec timer interrupt and again go back to sleep but my interrupt is not working and even if I directly put to sleep mode, it is not going to sleep. why this is happening? please guide. |
|
相关推荐
4个回答
|
|
这是一个有点难以猜测蓝色,恐怕我们需要更多的信息来帮助你摆脱这一点。
最好是在这里发布完整的项目,使用Creator的“创建工作区束”并上传生成的存档。DooToSuxChor上传时,一些bug阻止文件进入论坛。 鲍勃 以上来自于百度翻译 以下为原文 It is a bit difficult to make a guess right into the blue, I'm afraid we need some more information to help you out of this. Best would be to post the complete project here, use Creator's "Create Workspace Bundle" and upload the resulting archive. DO NOT USE CHROME when uploading, some bug preventst the file from getting into the forum. Bob |
|
|
|
你好
谢谢你的回复。 我正在发布我的代码。 我使用两个外部端口引脚中断。 控制器有睡眠模式程序。 C有我的应用,其中射频模块发送信号,因为任何两个端口引脚中断发生。 C有状态,即从睡眠到唤醒由于PICU,用RF发送信号,然后再回到睡眠状态。 请使用PSoC创建者2.2打开项目 请指导。 传输3.1捆01.ZIP 3.5兆字节 以上来自于百度翻译 以下为原文 hi thanks for reply. I am posting my code. I am using two external port pin interrupts. controller.c has sleep mode routines. application.c has my application where RF module sends signal as any of the two port pin interrupts are occured main.c has states i.e from sleep to wakeup due to PICU, send signal using RF and then again back to sleep please use psoc creator 2.2 to open the project please guide.
|
|
|
|
我看不见你的代码乍看中的缺陷。只有ISRS的设置是“派生的”,并且应该理解为“水平”,因为我理解文档。
我会尽量减少项目到最小的程序只是显示错误。 鲍勃 以上来自于百度翻译 以下为原文 I cannot see a flaw in your code at first sight. Only the setting of the isrs is "derived" and ought to be changed to "level" as I understood the documentation. I would try to reduce the project to the smallest program just showing the error. Bob |
|
|
|
您正在管理GPIO的每一个HTTP//wwwyCyPress?RID=57571
以上来自于百度翻译 以下为原文 You are managing GPIO per - http://www.cypress.com/?rID=57571 |
|
|
|
只有小组成员才能发言,加入小组>>
757个成员聚集在这个小组
加入小组2137 浏览 1 评论
1877 浏览 1 评论
3700 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1815 浏览 6 评论
1561 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
756浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
512浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
471浏览 2评论
423浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
1113浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-5 09:39 , Processed in 0.795555 second(s), Total 47, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号