Files
stc32g128k/Docs/50_module-breakdown/mod-power.md

20 lines
992 B
Markdown
Raw Blame History

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.

# 模块拆分 - 电源与供电管理 (Docs/50_module-breakdown/mod-power.md)
本模块描述手环的电源供电状态。根据系统设计手环不启用任何关屏低功耗或停机Power-Down模式以保证屏幕时钟常显与全时无线监听。
## 1. 模块职责说明
* **职责范围**
1. 系统初始化时使能 LCD 屏幕与背光电源。
2. 维持 `SGM_CTRL` 引脚输出高电平1确保屏幕不进入断电休眠。
3. 不进行时钟挂起操作,使 CPU 保持在 active 状态以进行实时的 433MHz 射频信号捕获。
## 2. 接口与函数设计
* `void Power_Init(void)`
1. 配置 `SGM_CTRL` 引脚为推挽输出模式。
2. 设置 `SGM_CTRL = 1`(物理引脚 `P3.4`)开启 LCD 屏幕与背光供电。
* `void Enter_Deep_Sleep(void)`:已作废。手环永不进入此函数,保持主循环及射频实时解调。
<!-- Checked and verified with always-on screen and sleep removal changes -->