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

📄 单片机c语言教程.htm

📁 17个C源程序分享
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0038)http://www.51hei.com/mcuteach/150.html -->
<HTML lang=zh-CN xml:lang="zh-CN" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>单片机c语言教程</TITLE>
<META content=单片机c语言教程 name=keywords>
<META content=51单片机学习网站为您提供的单片机c语言教程。 name=description>
<META http-equiv=content-type content=text/html;charset=gb2312><LINK 
href="单片机c语言教程_files/style.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript type=text/JavaScript>
function resizepic(o)
{
var maxwidth=550;
var maxheight=800;
var a=new Image();
a.src=o.src
if(a.width > maxwidth)
{
o.style.width=maxwidth;
}
if (a.height> maxheight)
{
o.style.height=maxheight;
}
}
function bbimg(o)
{
var zoom=parseInt(o.style.zoom, 10)||100;
zoom+=event.wheelDelta/12;
if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
</SCRIPT>

<META content="MSHTML 6.00.6001.18203" name=GENERATOR></HEAD>
<BODY>
<TABLE class=tableborder cellSpacing=0 cellPadding=0 width=826 align=center 
border=0>
  <TBODY>
  <TR>
    <TD width=33 background=单片机c语言教程_files/pd_dh.gif vborder="0">
      <DIV align=center><A href="http://www.51hei.com/">首页</A></DIV></TD>
    <TD width=793 background=单片机c语言教程_files/pd_dh.gif height=35 vborder="0">
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD align=middle height=22><A 
            href="http://www.51hei.com/mcuteach/">基础教程</A> | <A 
            href="http://www.51hei.com/mcu/">单片机设计实例</A> | <A 
            href="http://www.51hei.com/chip/">常用芯片</A> | <A 
            href="http://www.51hei.com/dianzi/">电子基础</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE class=tableborder cellSpacing=0 cellPadding=0 width=826 align=center 
border=0>
  <TBODY>
  <TR>
    <TD width=10><IMG height=33 src="单片机c语言教程_files/info_left.gif" 
width=10></TD>
    <TD width=503 background=单片机c语言教程_files/info_mid.gif>当前位置:<A class=sss 
      href="http://www.51hei.com/">单片机教程</A> &gt;&gt; <A class=sss 
      href="http://www.51hei.com/mcuteach/">基础教程</A> &gt;&gt; 浏览文章</TD>
    <TD width=284 background=单片机c语言教程_files/info_mid.gif>今天是:<FONT 
      color=#ff0000>
      <SCRIPT src="单片机c语言教程_files/3.js"></SCRIPT>
      </FONT></TD>
    <TD align=right width=10><IMG height=33 
      src="单片机c语言教程_files/info_right.gif" width=10></TD></TR></TBODY></TABLE>
<SCRIPT src="单片机c语言教程_files/a2.js"></SCRIPT>

<TABLE class=tableborder cellSpacing=0 cellPadding=0 width=826 align=center 
border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width=*>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR>
          <TD height=5></TD></TR>
        <TR vAlign=top>
          <TD class=tableright align=left width=625>
            <TABLE cellSpacing=0 cellPadding=0 width=624 border=0>
              <TBODY>
              <TR>
                <TD width="100%" height=25>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD align=left width=22><IMG height=26 
                        src="单片机c语言教程_files/l_01.gif" width=22></TD>
                      <TD class=titleback3 align=middle width=*>
                        <DIV align=left><SPAN class=head>基础教程</SPAN></DIV></TD>
                      <TD align=right width=36><IMG height=26 
                        src="单片机c语言教程_files/l_03.gif" 
                  width=36></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD class=showbody1 vAlign=top width=624>
                  <TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" 
                  cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TH vAlign=center align=middle height=32>
                        <H1>单片机c语言教程</H1></TH></TR>
                    <TR>
                      <TD align=middle bgColor=#f7f7f7 
                        height=25>作者:&nbsp;&nbsp;&nbsp;&nbsp;来源:本站原创&nbsp;&nbsp;&nbsp;&nbsp;点击数:
                        <SCRIPT language=Javascript 
                        src="单片机c语言教程_files/GetHits.htm"></SCRIPT>
                        &nbsp;&nbsp;&nbsp;更新时间:2007年07月19日&nbsp;&nbsp;&nbsp;</TD></TR>
                    <TR>
                      <TD align=middle> </TD></TR>
                    <TR>
                      <TD vAlign=top width=623><BR>
                        <DIV class=Message id=Message>
                        <SCRIPT src=""></SCRIPT>

                        <P>c语言是很好用的结构化语言,80年代后,c也能用在单片机上了。本站为了方便大家学习制作了一个单片机c语言教程,如果你是新手先看下下面的c51介绍吧,过去长期困扰人们的所谓“高级语言产生代码太长,运行速度太慢,运行效率不高,所以不适合单片机使用”keil公司出品的单片机c语言集成开发环境成功的解决了这个难题,使得单片机c语言的效率大大的提高,而且在关键部位还能嵌入汇编语言代码,从而挖掘程序的最高潜力。目前,8051上的C语言的代码长度,已经做到了汇编水平的1.2~1.5倍。4K字节以上的程度,C语言的优势更能得到发挥。至于运行速度的问题,只要有好的仿真器,找出关键的代码,再进一步做一下人工优化,就可很容易达到美满。单片机c语言是高效的单片机开发语言,本站提供的单片机c语言教程共17课时,由浅入深,看完了这些教程你就基本了解了c51,能进行一般的单片机c语言程序设计了,现在让我们开始学习吧</P>
                        <P><IMG onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        href="http://www.51hei.com/mcuteach/149.html" 
                        target=_blank>第一课 建立你的第一个KeilC51项目<BR></A></FONT><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        href="http://www.51hei.com/mcuteach/148.html" 
                        target=_blank>第二课 C51HEX文件的生成和单片机</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第三课 C51数据类型" 
                        href="http://www.51hei.com/mcuteach/146.html" 
                        target=_blank>第三课 C51数据类型</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第四课 C51常量" 
                        href="http://www.51hei.com/mcuteach/145.html" 
                        target=_blank>第四课 C51常量</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第五课 C51变量" 
                        href="http://www.51hei.com/mcuteach/144.html" 
                        target=_blank>第五课 C51变量</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第六课 C51运算符和表达式" 
                        href="http://www.51hei.com/mcuteach/143.html" 
                        target=_blank>第六课 C51运算符和表达式</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第七课 运算符和表达式(关系运算符)" 
                        href="http://www.51hei.com/mcuteach/142.html" 
                        target=_blank>第七课 运算符和表达式(关系运算</A>符) <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第八课 运算符和表达式(位运算符)" 
                        href="http://www.51hei.com/mcuteach/141.html" 
                        target=_blank>第八课 运算符和表达式(位运算符</A>) <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第九课 C51运算符和表达式(指针和地址运算符)" 
                        href="http://www.51hei.com/mcuteach/140.html" 
                        target=_blank>第九课 C51运算符和表达式(指针和</A>地址运算符) <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第十课 C51表达式语句及仿真器" 
                        href="http://www.51hei.com/mcuteach/139.html" 
                        target=_blank>第十课 C51表达式语句及仿真器</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第十一课 C51复合语句和条件语句" 
                        href="http://www.51hei.com/mcuteach/138.html" 
                        target=_blank>第十一课 C51复合语句和条件语句</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第十二课 C51开关分支语句" 
                        href="http://www.51hei.com/mcuteach/137.html" 
                        target=_blank>第十二课 C51开关分支语句</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第十三课 C51循环语句" 
                        href="http://www.51hei.com/mcuteach/136.html" 
                        target=_blank>第十三课 C51循环语句</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第十四课 C51函数" 
                        href="http://www.51hei.com/mcuteach/135.html" 
                        target=_blank>第十四课 C51函数</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 
                        style="CURSOR: pointer" 
                        onclick=javascript:window.open(this.src); alt=点此在新窗口浏览图片 
                        src="单片机c语言教程_files/Nav.gif" 
                        onload=javascript:resizepic(this) border=0><A 
                        title="第十五课 C51数组的使用" 
                        href="http://www.51hei.com/mcuteach/134.html" 
                        target=_blank>第十五课 C51数组的使用</A> <BR><IMG 
                        onmousewheel="return bbimg(this)" 

⌨️ 快捷键说明

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