QQT912/CW32F030/MCU厂资料/CW32F030_StandardPeripheral.../Examples/PWR/PWR_CurrentConsumption
yuquanjun e995e514da Rename project paths to ASCII for Keil ARMCC compatibility
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 04:49:23 +08:00
..
EWARM Rename project paths to ASCII for Keil ARMCC compatibility 2026-07-05 04:49:23 +08:00
MDK Rename project paths to ASCII for Keil ARMCC compatibility 2026-07-05 04:49:23 +08:00
USER Rename project paths to ASCII for Keil ARMCC compatibility 2026-07-05 04:49:23 +08:00
readme.txt Rename project paths to ASCII for Keil ARMCC compatibility 2026-07-05 04:49:23 +08:00

readme.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

示例目的:
          演示MCU通过按键进入/退出休眠和深度休眠模式。

硬件资源:
          1. CW32F030C8T6 StartKit
          2. 时钟HSILSE
          3. 系统时钟源为HSI时钟2分频24MHz PCLK、HCLK不分频PCLK=HCLK=SysClk=24MHz
          4. PA01设置为按键(KEY1)中断输入
          5. PB08/09设置为PUSH-PULL输出

演示说明:
          上电后MCU处于正常工作模式PB09(LED1)输出电平延时1s不断翻转。
		  第一次按下KEY1MCU进入休眠或者深度休眠模式LED1熄灭。
		  再一次按下KEY1MCU退出休眠或者深度休眠模式LED1点亮且不断翻转MCU返回正常工作模式。
		  注意修改cw32f030_pwr_modes.h中的宏定义即可选择低功耗模式。
		  
          
使用说明:
+ EWARM
          1. 打开PWR_CurrentConsumption.eww文件
          2. 编译所有文件Project->Rebuild all
          3. 载入工程镜像Project->Debug
          4. 运行程序Debug->Go(F5)

+ MDK-ARM
          1. 打开PWR_CurrentConsumption.uvproj文件
          2. 编译所有文件Project->Rebuild all target files
          3. 载入工程镜像Debug->Start/Stop Debug Session
          4. 运行程序Debug->Run(F5)