<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PWR on 吾思 梦阁</title><link>https://wstek.win/tags/pwr/</link><description>Recent content from 吾思 梦阁</description><generator>Hugo</generator><language>zh-cn</language><managingEditor>wusitech@qq.com (WuSi09)</managingEditor><webMaster>wusitech@qq.com (WuSi09)</webMaster><copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright><lastBuildDate>Fri, 06 Nov 2026 23:59:00 +0800</lastBuildDate><atom:link href="https://wstek.win/tags/pwr/index.xml" rel="self" type="application/rss+xml"/><item><title>STM32 PWR：电源域、复位、PVD、低功耗与主频修改</title><link>https://wstek.win/posts/stm32-pwr/</link><pubDate>Thu, 05 Nov 2026 21:00:00 +0800</pubDate><author>wusitech@qq.com (WuSi09)</author><guid>https://wstek.win/posts/stm32-pwr/</guid><description>
<![CDATA[<h1>STM32 PWR：电源域、复位、PVD、低功耗与主频修改</h1><p>作者：WuSi09（wusitech@qq.com）</p>
        
          <p>总结自：<a href="https://www.bilibili.com/video/BV1th411z7sn">STM32入门教程-2023版</a> 第 13 章（13-1、13-2）。</p>
<p>代码基于 <strong>STM32F103C8T6 + STM32F10x 标准外设库 3.5.0</strong>（API 已按 STM32F10x StdPeriph 3.5 头文件核对；Delay/OLED/Key 为课程配套驱动），不包含新建工程和接线步骤。</p>
<table>
	<thead>
			<tr>
					<th>视频</th>
					<th>视频里讲了什么</th>
					<th>本文对应</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>13-1</td>
					<td>PWR 简介、电源框图、复位、电压调节器、PVD、低功耗模式、电流</td>
					<td>0x00 ~ 0x40</td>
			</tr>
			<tr>
					<td>13-2</td>
					<td>修改主频、睡眠/停止/待机模式（代码、唤醒）</td>
					<td>0x50 ~ 0x70</td>
			</tr>
	</tbody>
</table>
<p>视频之外还补了：电源去耦与布局、RCC_CSR 复位标志、PVD 中断、RTC/WKUP 唤醒、GPIO 漏电、电流测量、电池寿命、12 条故障排查。</p>
<h2 id="0x00-pwr-管什么">
<a class="header-anchor" href="#0x00-pwr-%e7%ae%a1%e4%bb%80%e4%b9%88"></a>
0x00 PWR 管什么
</h2><p>PWR（Power Control）负责三件事：</p>
<ul>
<li><strong>电源监测</strong>：PVD 监测 VDD，电压低于/高于阈值时触发中断，做紧急保存；</li>
<li><strong>低功耗模式</strong>：Sleep、Stop、Standby，空闲时把电流从几十 mA 降到 µA 级；</li>
<li><strong>备份域供电</strong>：VDD 掉电后由 VBAT 维持 RTC/BKP。</li>
</ul>
<p>对电池设备来说，低功耗不是“可选项”，而是能不能活过一周的关键。</p>
<h2 id="0x10-电源域">
<a class="header-anchor" href="#0x10-%e7%94%b5%e6%ba%90%e5%9f%9f"></a>
0x10 电源域
</h2><p><a class="article-gallery-item" href="/images/posts/stm32-pwr/pwr-block.webp"><img src="/images/posts/stm32-pwr/pwr-block.webp" alt="STM32 电源框图" loading="lazy" decoding="async" onload="this.parentNode.dataset.pswpWidth=this.naturalWidth;this.parentNode.dataset.pswpHeight=this.naturalHeight"></a>
</p>
<p>F103 的电源域分三块：</p>
<table>
	<thead>
			<tr>
					<th>电源</th>
					<th>范围</th>
					<th>供给</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>VDD / VSS</td>
					<td>2.0 ~ 3.6 V</td>
					<td>IO、电压调节器、备份域</td>
			</tr>
			<tr>
					<td>VDDA / VSSA</td>
					<td>2.0 ~ 3.6 V</td>
					<td>ADC、温度传感器、复位、PLL</td>
			</tr>
			<tr>
					<td>VBAT</td>
					<td>1.8 ~ 3.6 V</td>
					<td>LSE、RTC、BKP、PC13~PC15</td>
			</tr>
	</tbody>
</table>
<p>内部还有：</p>
        
        <hr><p>本文2026-11-05首发于<a href='https://wstek.win/'>吾思 梦阁</a>，最后修改于2026-11-06</p>]]></description><category>STM32</category></item></channel></rss>