<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://www.iec.wiki/index.php?action=history&amp;feed=atom&amp;title=SPI</id>
	<title>SPI - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://www.iec.wiki/index.php?action=history&amp;feed=atom&amp;title=SPI"/>
	<link rel="alternate" type="text/html" href="https://www.iec.wiki/index.php?title=SPI&amp;action=history"/>
	<updated>2026-08-10T10:22:01Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://www.iec.wiki/index.php?title=SPI&amp;diff=7101&amp;oldid=prev</id>
		<title>Admin：​/* 物理接口与信号线 */</title>
		<link rel="alternate" type="text/html" href="https://www.iec.wiki/index.php?title=SPI&amp;diff=7101&amp;oldid=prev"/>
		<updated>2026-05-12T08:11:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;物理接口与信号线&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年5月12日 (二) 16:11的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;第24行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第24行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;MISO (Master Input Slave Output)：&amp;#039;&amp;#039;&amp;#039; 从设备发送、主设备接收的数据线。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;MISO (Master Input Slave Output)：&amp;#039;&amp;#039;&amp;#039; 从设备发送、主设备接收的数据线。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;CS/SS (Chip Select)：&amp;#039;&amp;#039;&amp;#039; 片选信号，用于选择当前的通讯对象。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;CS/SS (Chip Select)：&amp;#039;&amp;#039;&amp;#039; 片选信号，用于选择当前的通讯对象。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 通讯模式 (CPOL/CPHA) ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 通讯模式 (CPOL/CPHA) ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key iec_wiki:diff:1.41:old-7100:rev-7101:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.iec.wiki/index.php?title=SPI&amp;diff=7100&amp;oldid=prev</id>
		<title>Admin：​创建页面，内容为“{| class=&quot;wikitable&quot; style=&quot;float: right; width: 320px; margin-left: 1em; font-size: 90%; border: 1px solid #a2a9b1;&quot; |+ style=&quot;font-weight: bold; font-size: 1.2em; padding: 5px;&quot; | SPI (串行外设接口) |- ! style=&quot;background-color: #f2f2f2; width: 30%;&quot; | 物理连接 | 4 线制 (SCK, MOSI, MISO, CS) |- ! style=&quot;background-color: #f2f2f2;&quot; | 传输方式 | 同步、全双工 |- ! style=&quot;background-color: #f2f2f2;&quot; | 典型速率 | 1 Mbps 至 50+ Mbps |- !…”</title>
		<link rel="alternate" type="text/html" href="https://www.iec.wiki/index.php?title=SPI&amp;diff=7100&amp;oldid=prev"/>
		<updated>2026-05-12T08:11:15Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;float: right; width: 320px; margin-left: 1em; font-size: 90%; border: 1px solid #a2a9b1;&amp;quot; |+ style=&amp;quot;font-weight: bold; font-size: 1.2em; padding: 5px;&amp;quot; | SPI (串行外设接口) |- ! style=&amp;quot;background-color: #f2f2f2; width: 30%;&amp;quot; | 物理连接 | 4 线制 (SCK, MOSI, MISO, CS) |- ! style=&amp;quot;background-color: #f2f2f2;&amp;quot; | 传输方式 | 同步、全双工 |- ! style=&amp;quot;background-color: #f2f2f2;&amp;quot; | 典型速率 | 1 Mbps 至 50+ Mbps |- !…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;float: right; width: 320px; margin-left: 1em; font-size: 90%; border: 1px solid #a2a9b1;&amp;quot;&lt;br /&gt;
|+ style=&amp;quot;font-weight: bold; font-size: 1.2em; padding: 5px;&amp;quot; | SPI (串行外设接口)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #f2f2f2; width: 30%;&amp;quot; | 物理连接&lt;br /&gt;
| 4 线制 (SCK, MOSI, MISO, CS)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #f2f2f2;&amp;quot; | 传输方式&lt;br /&gt;
| 同步、全双工&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #f2f2f2;&amp;quot; | 典型速率&lt;br /&gt;
| 1 Mbps 至 50+ Mbps&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background-color: #f2f2f2;&amp;quot; | 核心架构&lt;br /&gt;
| 主从结构 (Master-Slave)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SPI&amp;#039;&amp;#039;&amp;#039; (Serial Peripheral Interface) 是一种高速、全双工、同步的串行通讯接口。它最初由摩托罗拉公司推出，通过一主多从的架构实现微控制器与各种外围设备之间的近距离数据交换。&lt;br /&gt;
&lt;br /&gt;
== 物理接口与信号线 ==&lt;br /&gt;
&lt;br /&gt;
标准 SPI 通讯通常需要 4 根线：&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;SCLK (Serial Clock)：&amp;#039;&amp;#039;&amp;#039; 由主设备产生的时钟信号，决定通讯速率。&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;MOSI (Master Output Slave Input)：&amp;#039;&amp;#039;&amp;#039; 主设备发送、从设备接收的数据线。&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;MISO (Master Input Slave Output)：&amp;#039;&amp;#039;&amp;#039; 从设备发送、主设备接收的数据线。&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;CS/SS (Chip Select)：&amp;#039;&amp;#039;&amp;#039; 片选信号，用于选择当前的通讯对象。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 通讯模式 (CPOL/CPHA) ==&lt;br /&gt;
&lt;br /&gt;
SPI 通过设置时钟极性（CPOL）和时钟相位（CPHA）来定义四种工作模式，主从双方必须保持一致：&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 0：&amp;#039;&amp;#039;&amp;#039; CPOL=0, CPHA=0 (时钟空闲为低，第一个跳变沿采样)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 1：&amp;#039;&amp;#039;&amp;#039; CPOL=0, CPHA=1 (时钟空闲为低，第二个跳变沿采样)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 2：&amp;#039;&amp;#039;&amp;#039; CPOL=1, CPHA=0 (时钟空闲为高，第一个跳变沿采样)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 3：&amp;#039;&amp;#039;&amp;#039; CPOL=1, CPHA=1 (时钟空闲为高，第二个跳变沿采样)&lt;br /&gt;
&lt;br /&gt;
== 50kW 系统中的 EMC 与设计要点 ==&lt;br /&gt;
&lt;br /&gt;
在大功率电控系统中，SPI 的高频特性使其极易成为“干扰放大器”，也极易受到外界噪声影响：&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;串行阻尼电阻：&amp;#039;&amp;#039;&amp;#039; 在 SCLK 和 MOSI 靠近发送端处串联 22Ω - 100Ω 的电阻。&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;作用：&amp;#039;&amp;#039;&amp;#039; 匹配传输线阻抗，消除由于高速上升沿引起的[[振铃现象]]和过冲，降低 EMI 辐射。&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;信号地回路：&amp;#039;&amp;#039;&amp;#039; SPI 是单端信号，必须确保信号线紧贴地平面走线。在跨板连接时，建议采用“信号/地/信号”交替的排线方式。&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;采样可靠性：&amp;#039;&amp;#039;&amp;#039; 在大功率 dv/dt 剧烈跳变时（如功率管开关瞬间），SPI 容易出现误码。建议在软件层面对关键数据实施 CRC 校验。&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;电气隔离：&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#* 在 50kW 系统中，如果 MCU 与采样芯片（如高压侧电流采样）不在同一电位上，必须使用高速数字隔离器（如 ISO77xx 系列）。&lt;br /&gt;
#* 注意隔离器的传播延迟（Propagation Delay）是否满足 SPI 的最高时钟频率需求。&lt;br /&gt;
&lt;br /&gt;
== 参见 ==&lt;br /&gt;
* [[I2C]]&lt;br /&gt;
* [[UART]]&lt;br /&gt;
* [[隔离技术]]&lt;br /&gt;
* [[信号完整性]]&lt;br /&gt;
&lt;br /&gt;
[[Category:通信协议]]&lt;br /&gt;
[[Category:电子电路]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>