<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7%2Fzh</id>
		<title>第十九课--Microduino 内部基准源ADC采样/zh - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7%2Fzh"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;action=history"/>
		<updated>2026-04-30T21:56:26Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=5125&amp;oldid=prev</id>
		<title>Radiumray9@gmail.com：/* 目的 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=5125&amp;oldid=prev"/>
				<updated>2014-10-29T03:33:01Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;目的&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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 style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年10月29日 (三) 03:33的版本&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-l4&quot; &gt;第4行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第4行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==目的==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==目的==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;前面讲过LM35采集时每升高10mv电压代表着温度上升1℃，两者成线性关系。因此对电压稳定性要求很高。本实验将通过调用Microduino 内部基准源（3.3V或1.1V电压）结合LM35采集温度。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;前面讲过LM35采集时每升高10mv电压代表着温度上升1℃，两者成线性关系。因此对电压稳定性要求很高。本实验将通过调用Microduino 内部基准源（3.3V或1.1V电压）结合LM35采集温度。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;*'''[[Microduino-Core]]'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''[[Microduino-Core&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/zh&lt;/ins&gt;]]'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;*'''[[Microduino-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;FT232R&lt;/del&gt;]]'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''[[Microduino-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;USBTTL/zh&lt;/ins&gt;]]'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*其他硬件设备&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*其他硬件设备&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**面包板跳线&amp;#160; 	&amp;#160;  一盒&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**面包板跳线&amp;#160; 	&amp;#160;  一盒&amp;#160; &amp;#160;&lt;/div&gt;&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-l12&quot; &gt;第12行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第12行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**LM35D温度传感器&amp;#160; 一个&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**LM35D温度传感器&amp;#160; 一个&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**数字万用表	一个&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**数字万用表	一个&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==原理图==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==原理图==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;原理图接法与以往一样LM35的VCC接5V，GND接GND，VOUT接A0.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;原理图接法与以往一样LM35的VCC接5V，GND接GND，VOUT接A0.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Radiumray9@gmail.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=2125&amp;oldid=prev</id>
		<title>2014年4月22日 (二) 03:31 Pkj</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=2125&amp;oldid=prev"/>
				<updated>2014-04-22T03:31:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;amp;diff=2125&amp;amp;oldid=1945&quot;&gt;显示更改&lt;/a&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=1945&amp;oldid=prev</id>
		<title>Pkj：/* 原理图 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=1945&amp;oldid=prev"/>
				<updated>2014-04-14T07:11:21Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;原理图&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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 style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年4月14日 (一) 07: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-l33&quot; &gt;第33行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第33行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''Microduino core：两路外部中断，分别为D2、D3；'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''Microduino core：两路外部中断，分别为D2、D3；'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''Microduino core+：三路路外部中断，分别为D2、D3和D6。'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''Microduino core+：三路路外部中断，分别为D2、D3和D6。'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;[[File:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;第十九课&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;中断原理图&lt;/del&gt;.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lesson19&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;schematic&lt;/ins&gt;.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==程序==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==程序==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=1225&amp;oldid=prev</id>
		<title>Pkj：Created page with &quot;{{Language|第十九课--Microduino_内部基准源ADC采样}} {| style=&quot;width: 800px;&quot; |- | ==目的== 了解中断，并通过按键来学习掌握中断的用法。 ==中...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_%E5%86%85%E9%83%A8%E5%9F%BA%E5%87%86%E6%BA%90ADC%E9%87%87%E6%A0%B7/zh&amp;diff=1225&amp;oldid=prev"/>
				<updated>2014-03-02T15:12:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language|第十九课--Microduino_内部基准源ADC采样}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==目的== 了解中断，并通过按键来学习掌握中断的用法。 ==中...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language|第十九课--Microduino_内部基准源ADC采样}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
了解中断，并通过按键来学习掌握中断的用法。&lt;br /&gt;
==中断==&lt;br /&gt;
===中断的基本原理===&lt;br /&gt;
一个正在做的事情被外部的事情打断，当执行完外部事情后，继续做原本的事情。例如：老师在上课，有同学迟到要进教室突然打断老师上课请老师准许进教室，老师准许之后又开始讲课，这就是中断。&lt;br /&gt;
===中断概念===&lt;br /&gt;
所谓中断，是指CPU在正常运行程序时，由于内部/外部事件或由程序预先安排的事件，引起CPU中断正在运行的程序，而转到为内部/外部事件或为预先安排的事件服务的程序中去，服务完毕，再返回去执行波暂时中断的程序。&lt;br /&gt;
&lt;br /&gt;
由于某个事件的发生，CPU暂停当前正在执行的程序，转而执行处理该事件的一个程序。该程序执行完成后，CPU接着执行被暂停的程序。这个过程称为中断。&lt;br /&gt;
===中断分类===&lt;br /&gt;
*中断源的位置&lt;br /&gt;
**中断源在CPU的内部，称为内部中断；&lt;br /&gt;
**中断源在CPU的外部，称为外部中断。&lt;br /&gt;
*中断引脚的不同或者CPU响应中断的不同条件：可屏蔽中断和不可屏蔽中断。&lt;br /&gt;
===中断好处===&lt;br /&gt;
*实行分时操作提高 CPU 的效率，只有当服务对象向CPU发出中断申请时才去为它服务，这样我们就可以利用中断功能同时为多个对象服务，从而大大提高了CPU的工作效率。&lt;br /&gt;
*实现实时处理，利用中断技术，各个服务对象可以根据需要随时向 CPU 发出中断申请，及时发现和处理中断请求。&lt;br /&gt;
==设备==&lt;br /&gt;
'''[[Microduino-Core]]'''&lt;br /&gt;
'''[[Microduino-FT232R]]'''&lt;br /&gt;
*其他硬件设备&lt;br /&gt;
**面包板跳线  	 一盒  &lt;br /&gt;
**面包板  	 一块  &lt;br /&gt;
**LED发光二极管  一个&lt;br /&gt;
**220欧姆电阻  	 一个  &lt;br /&gt;
**按键	         一个&lt;br /&gt;
**USB数据连接线   一根 &lt;br /&gt;
==原理图==&lt;br /&gt;
*'''Microduino core：两路外部中断，分别为D2、D3；'''&lt;br /&gt;
*'''Microduino core+：三路路外部中断，分别为D2、D3和D6。'''&lt;br /&gt;
[[File:第十九课-中断原理图.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
*不使用外部中断&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
int botton= 2;          // 定义输入信号引脚&lt;br /&gt;
int pin = 13;&lt;br /&gt;
volatile int state = LOW;&lt;br /&gt;
 &lt;br /&gt;
void setup()&lt;br /&gt;
{                &lt;br /&gt;
  // 设置输入信号引脚为输入状态、输出引脚为输出状态&lt;br /&gt;
  pinMode(botton,INPUT); &lt;br /&gt;
  pinMode(pin,OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
void loop()                     &lt;br /&gt;
{&lt;br /&gt;
  state = digitalRead(botton);      //读取微动开关状态&lt;br /&gt;
 &lt;br /&gt;
  digitalWrite(ledOut, state);    //把读取的状态赋予LED指示灯&lt;br /&gt;
 &lt;br /&gt;
  //模拟一个长的流程或者复杂的任务&lt;br /&gt;
  for (int i = 0; i &amp;lt; 100; i++)&lt;br /&gt;
  {&lt;br /&gt;
    //延时10毫秒&lt;br /&gt;
    delay(10); &lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*使用外部中断&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
int pin = 13;&lt;br /&gt;
volatile int state = LOW;&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(pin, OUTPUT);&lt;br /&gt;
  attachInterrupt(0, blink, RISING);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  digitalWrite(pin, state);//把读取的状态赋予LED指示灯&lt;br /&gt;
  //模拟一个长的流程或者复杂的任务&lt;br /&gt;
  for (int i = 0; i &amp;lt; 100; i++)&lt;br /&gt;
  {&lt;br /&gt;
    //延时10毫秒&lt;br /&gt;
    delay(10); &lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void blink()&lt;br /&gt;
{&lt;br /&gt;
  state = !state;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
结果&lt;br /&gt;
未使用中断时按下开关，按住一会儿LED状态才能改变，使用中断之后LED状态就会立刻变化。&lt;br /&gt;
==中断语法==&lt;br /&gt;
*语法：&lt;br /&gt;
**attachInterrupt(interrupt, function, mode)&lt;br /&gt;
*参数：&lt;br /&gt;
**interrupt：中断引脚数 &lt;br /&gt;
**function：中断发生时调用的函数，该函数会取代正在执行的程序，此函数必须不带参数和不返回任何值。该函数有时被称为中断服务程序。 &lt;br /&gt;
**mode：定义何时发生中断以下四个contstants预定有效值：&lt;br /&gt;
***LOW： 当引脚为低电平时，触发中断&lt;br /&gt;
***CHANGE： 当引脚电平发生改变时，触发中断&lt;br /&gt;
***RISING ：当引脚由低电平变为高电平时，触发中断&lt;br /&gt;
***FALLING ：当引脚由高电平变为低电平时，触发中断.&lt;br /&gt;
===重新分配中断===&lt;br /&gt;
中断可以再任何时候通过attachInterrupt()命令进行改变。当重新使用attachInterrupt()时，先前分配的中断就会从对应引脚上移除。&lt;br /&gt;
===启用\停止中断===&lt;br /&gt;
microduino也可以忽略所有中断。如果你需要在一段代码中不执行中断，只需要执行 noInterrupts()命令。当这段代码执行完以后，你可以使用 interrupts()命令重新启用中断。&lt;br /&gt;
===删除中断===&lt;br /&gt;
终端也可以通过detachInterrupt(interrupt_number)命令进行删除。 &lt;br /&gt;
==注意事项==&lt;br /&gt;
当中断函数发生时，delya()和millis()的数值将不会继续变化。当中断发生时，串口收到的数据可能会丢失。你应该声明一个变量来在未发生中断时储存变量。&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	</feed>