?? dpjjx17.htm
字號:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb_2312-80">
<META NAME="Generator" CONTENT="Microsoft FrontPage 5.0">
<TITLE>單片機第十五課</TITLE>
<META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
</HEAD>
<BODY LINK="#0000ff" VLINK="#800080" background="../back.jpg">
<FONT FACE="宋體" LANG="ZH-CN">
<P ALIGN="JUSTIFY" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">單片機第十七課</font></P>
<P ALIGN="JUSTIFY" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">位及位操作指令</font></P>
</FONT>
<P ALIGN="JUSTIFY" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2" FACE="宋體" LANG="ZH-CN">通過前面那些流水燈的例子,我們已經習慣了“位”一位就是一盞燈的亮和滅,而我們學的指令卻全都是用“字節”來介紹的:字節的移動、加法、減法、邏輯運算、移位等等。用字節來處理一些數學問題,比如說:控制冰箱的溫度、電視的音量等等很直觀,可以直接用數值來表在??墒侨绻盟鼇砜刂埔恍╅_關的打開和合上,燈的亮和滅,就有些不直接了,記得我們上次課上的流水燈的例子嗎?我們知道送往</font><font size="2"><FONT FACE="System" LANG="ZH-CN">P1</FONT><FONT FACE="宋體" LANG="ZH-CN">口的數值后并不能馬上知道哪個燈亮和來滅,而是要化成二進制才知道。工業中有很多場合需要處理這類開關輸出,繼電器吸合,用字節來處理就顯示有些麻煩,所以在</FONT><FONT FACE="System" LANG="ZH-CN">8031</FONT></font><font size="2" FACE="宋體" LANG="ZH-CN">單片機中特意引入一個位處理機制。</font></P><OL>
<FONT FACE="宋體" LANG="ZH-CN">
<P ALIGN="JUSTIFY" style="line-height: 150%; margin-top: 0; margin-bottom: 0"><LI>
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">位尋址區</LI></font></p>
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"></P>
</font>
<P ALIGN="JUSTIFY" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2" FACE="宋體" LANG="ZH-CN">在</font><font size="2"><FONT FACE="System" LANG="ZH-CN">8031</FONT><FONT FACE="宋體" LANG="ZH-CN">中,有一部份</FONT><FONT FACE="System" LANG="ZH-CN">RAM</FONT><FONT FACE="宋體" LANG="ZH-CN">和一部份</FONT><FONT FACE="System" LANG="ZH-CN">SFR</FONT><FONT FACE="宋體" LANG="ZH-CN">是具有位尋址功能的,也就是說這些</FONT><FONT FACE="System" LANG="ZH-CN">RAM</FONT></font><font size="2" FACE="宋體" LANG="ZH-CN">的每一個位都有自已的地址,可以直接用這個地址來對此進行操作。</font></P>
<TABLE BORDER CELLSPACING=1 CELLPADDING=7 WIDTH=512 height="580">
<TR><TD WIDTH="11%" VALIGN="TOP" height="44">
<FONT FACE="System" LANG="ZH-CN" size="2"><CODE>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">字節地址</code></FONT></TD>
<TD WIDTH="89%" VALIGN="TOP" COLSPAN=8 height="44">
<FONT FACE="System" LANG="ZH-CN" size="2"><CODE>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">位地址</code></FONT></TD>
</TR>
<TR><TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">2FH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">7FH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">78H</font></CODE></TD>
</TR>
<TR><TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">2EH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">77H</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">70</font></CODE></TD>
</TR>
<TR><TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">2DH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">6FH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">68H</font></CODE></TD>
</TR>
<TR><TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">2CH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">67H</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">60H</font></CODE></TD>
</TR>
<TR><TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">2BH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">5FH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">58H</font></CODE></TD>
</TR>
<TR><TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">2AH</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<CODE><P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2">57H</font></CODE></TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </TD>
<TD WIDTH="11%" VALIGN="TOP" height="25">
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -