⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c8051f单片机使用注意事项.htm

📁 C8051F单片机使用注意事项,主要包括电源隔离
💻 HTM
📖 第 1 页 / 共 5 页
字号:
                    target=_top>模数转换、数模转换</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/1.htm#3" 
                    target=_top>端口</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/2.htm#1" 
                    target=_top>电源管理</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/2.htm#2" 
                    target=_top>存储器</A><BR></LI></UL></TD>
                <TD vAlign=top>
                  <UL>
                    <LI><A href="http://www.xhl.com.cn/jswd/2.htm#3" 
                    target=_top>定时器</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/2.htm#4" 
                    target=_top>串行口</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/3.htm#1" 
                    target=_top>开发工具及调试</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/3.htm#2" 
                    target=_top>中断、复位源</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/3.htm#3" 
                    target=_top>手工焊接</A> 
                    <LI><A href="http://www.xhl.com.cn/jswd/3.htm#4" 
                    target=_top><SPAN lang=EN-US 
                    style="mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-fareast-font-family: 宋体">C8051F</SPAN><SPAN 
                    style="mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman">单片机使用注意事项</SPAN></A> 
                    </LI></UL></TD></TR></TBODY></TABLE>
            <TABLE class=t06 cellSpacing=3 cellPadding=0 width="95%" 
            align=center border=0>
              <TBODY>
              <TR>
                <TD width="94%"><FONT color=#ff6600><B>开发工具及调试<BR></B></FONT>
                  <P style="MARGIN-BOTTOM: 0px"><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT 
                  color=#0099ff>问:为什么在</FONT></SPAN><FONT color=#0099ff><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下编译的</SPAN><SPAN 
                  lang=EN-US>C</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码大于</SPAN><SPAN 
                  lang=EN-US>4K</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">时出错,在</SPAN><SPAN 
                  lang=EN-US>4K</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">内正常?</SPAN></FONT> 
                  </P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#000000></FONT><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">答:</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中所使用的编译和链接文件是</SPAN><SPAN 
                  lang=EN-US>Keil</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">公司提供的评估版(有</SPAN><SPAN 
                  lang=EN-US>4K</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码限制),如果要编译超过</SPAN><SPAN 
                  lang=EN-US>4K</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码的</SPAN><SPAN 
                  lang=EN-US>C</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">程序,必须购买正版</SPAN><SPAN 
                  lang=EN-US>Keil</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">并安装好,再把</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中编译和链接文件的路径指定到</SPAN><SPAN 
                  lang=EN-US>Keil</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的编译和链接文件所在的位置。</SPAN></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;</P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#0099ff><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">问:</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下对汇编代码的编译有限制吗?在</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下最多能设几个断点?</SPAN></FONT></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">答:</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">环境下对汇编编译时没有代码长度的限制</SPAN>。<SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在调试时最多可以设置</SPAN><SPAN 
                  lang=EN-US>4</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个断点</SPAN>。</P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;</P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#0099ff><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">问:</SPAN><SPAN 
                  lang=EN-US>1</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、在</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下能不能把</SPAN><SPAN 
                  lang=EN-US>C8051F</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">系列单片机芯片内的目标代码读出来;</SPAN><SPAN 
                  lang=EN-US>2</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、如果能,读出的代码是否可以再下载到相同型号的另一块单片机芯片?</SPAN></FONT></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">答:</SPAN><SPAN 
                  lang=EN-US>1</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、如果芯片没有加密就可以把代码读出来;</SPAN><SPAN 
                  lang=EN-US>2</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、在</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下不能直接下载目标代码,只能把</SPAN><SPAN 
                  lang=EN-US>Hex</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">格式的文件通过</SPAN><SPAN 
                  lang=EN-US>U-EC2</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">转换成目标代码后下载到芯片中。</SPAN></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;</P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#0099ff><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">问:在</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下打不开寄存器观察窗口,不能设断点,为什么?</SPAN></FONT></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#000000></FONT><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">答:</SPAN><SPAN 
                  lang=EN-US>PC</SPAN><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">机的系统属性会导致出现这类问题,这时你需要打开“我的电脑”—“文件夹选项”—“查看”中的“隐藏文件”设置为:显示所有文件,同时将“隐藏已知文件类型扩展名”选项取消。</SPAN></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;</P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#0099ff><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">问:在</SPAN><SPAN 
                  lang=EN-US>IDE</SPAN><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">中如何设置才可以正确的进行硬件调试</SPAN><SPAN 
                  lang=EN-US style="COLOR: #3366ff"><O:P><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?</SPAN></O:P></SPAN></FONT></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#000000><SPAN 
                  style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">答:在硬件调试前要先正确的设置适配器接口及调试接口,设置步骤如下:</SPAN><SPAN 
                  lang=EN-US><O:P> </O:P></SPAN></FONT></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#000000><SPAN lang=EN-US>1.</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">打开</SPAN><SPAN 
                  lang=EN-US>OPTIONS-CONNECTIN OPTIONS<O:P>;</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">如果是使用的</SPAN><SPAN 
                  lang=EN-US>U-EC2</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">选择</SPAN><SPAN 
                  lang=EN-US>RS232 DEBUGER INTERFACE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">下的端口;如果在端口中已经有虚拟的端口直接选择对应的端口;如果没有对应的端口则选择</SPAN><SPAN 
                  lang=EN-US>OTHER COM</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">在弹出的端口中输入对应的端口号</SPAN><SPAN 
                  lang=EN-US>(</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">注意:只输入端口的数字号;例如虚拟端中为:</SPAN><SPAN 
                  lang=EN-US>COM3;</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">则输入</SPAN><SPAN 
                  lang=EN-US>3),</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">如果使用的是</SPAN><SPAN 
                  lang=EN-US>U-EC5</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">则选择</SPAN><SPAN 
                  lang=EN-US>USB DEBUGER INTERFACE<O:P> </O:P></SPAN></FONT></P>
                  <P class=MsoNormal 
                  style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT 
                  color=#000000><SPAN lang=EN-US>2.</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">在</SPAN><SPAN 
                  lang=EN-US>DEBUG INTERFACE</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">中选择器件对应的接口</SPAN><SPAN 
                  lang=EN-US>(</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">例如</SPAN><SPAN 
                  lang=EN-US>:F02X</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">选择</SPAN><SPAN 
                  lang=EN-US>JTAG</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">接口;</SPAN><SPAN 
                  lang=EN-US>F3XX</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">选择</SPAN><SPAN 
                  lang=EN-US>C2</SPAN><SPAN 
                  style="FONT-FAMILY: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">接口</SPAN><SPAN 
                  lang=EN-US>)</SPAN></FONT></P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -