硬汉嵌入式论坛

 找回密码
 立即注册
查看: 5786|回复: 5
收起左侧

[μCOS-II] 运行UCOS的Stm32 如何让CPU进入休眠

[复制链接]

1

主题

2

回帖

5

积分

新手上路

积分
5
发表于 2014-4-28 10:04:27 | 显示全部楼层 |阅读模式
     我在Stm32上移植了ucos操作系统后,一切都正常,就是想让CPU进入低功耗(Stop 模式)状态,然后在一个任务中执行了PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);   
淡定了
回复

使用道具 举报

1

主题

2

回帖

5

积分

新手上路

积分
5
 楼主| 发表于 2014-4-28 10:07:59 | 显示全部楼层
结果CPU休眠后,立刻又醒了,然后处于HSI的时钟下运行。
      我想让CPU休眠后,在我的外部中断下再唤醒。不知道如何实现,请高人指教,谢谢!
淡定了
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106974
QQ
发表于 2014-4-28 10:09:53 | 显示全部楼层
WFI睡眠模式,会在任何的中断下都可以将其唤醒,其它的低功耗模式我还没有研究过。
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106974
QQ
发表于 2014-4-28 10:10:20 | 显示全部楼层
你这里立刻唤醒是因为嘀嗒定时器中断将其唤醒了。
回复

使用道具 举报

1

主题

2

回帖

5

积分

新手上路

积分
5
 楼主| 发表于 2014-4-28 10:17:05 | 显示全部楼层
但是在stop模式下滴答定时器中断是无法唤醒的啊。


The device can be woken up from the Stop mode by any of the EXTI line (the EXTI line
source can be one of the 16 external lines, the PVD output, the RTC alarm / wakeup /
tamper / time stamp events, the USB OTG FS/HS wakeup or the Ethernet wakeup).[s:149][s:149]
淡定了
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106974
QQ
发表于 2014-4-28 13:14:53 | 显示全部楼层

回 zjz2707 的帖子

zjz2707:但是在stop模式下滴答定时器中断是无法唤醒的啊。


The device can be woken up from the Stop mode by any of the EXTI line (the EXTI line
source can be one of the 16 external lines, the PVD output, the RTC alarm / wakeup /
....... (2014-04-28 10:17) 
stop模式我还没有用过
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-12 15:04 , Processed in 0.228364 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表