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

📄 [转贴]实用电子秤5-5.htm

📁 一个基于单片机的智能电子秤开发项目
💻 HTM
📖 第 1 页 / 共 3 页
字号:
            <P class=style27>for(i=0;i&lt;=7;i++) </P>
            <P class=style27>{clk7289=1; </P>
            <P class=style27>for(dealy=0;dealy&lt;1;dealy++); // 延时 10us </P>
            <P class=style27>X=X&lt;&lt;1; </P>
            <P class=style27>if(dio7289)X++; </P>
            <P class=style27>clk7289=0; </P>
            <P class=style27>for(dealy=0;dealy&lt;1;dealy++); // 延时 10us </P>
            <P class=style27>} </P>
            <P class=style27>dio7289=0; </P>
            <P class=style27>return(X); </P>
            <P class=style27>} </P>
            <P class=style27>//ad </P>
            <P class=style27>//AD 子程序 </P>
            <P class=style27>int ad1() </P>
            <P class=style27>{short k,x; </P>
            <P class=style27>int ad_zhi=0,xz; </P>
            <P class=style27>EA=0; </P>
            <P class=style27>ad_start=1; </P>
            <P class=style27>for(k=0;k&lt;5;k++) </P>
            <P class=style27>{ while(ad_stb); </P>
            <P class=style27>x=ad_244; </P>
            <P class=style27>x=x&amp;0xf; </P>
            <P class=style27>ad_zhi=ad_zhi*10+x; </P>
            <P class=style27>} </P>
            <P class=style27>ad_start=0; </P>
            <P class=style27>EA=1;EX0=1; </P>
            <P class=style27>ad_zhi=ad_zhi&gt;&gt;1; </P>
            <P class=style27>xz=ad_zhi-50; </P>
            <P class=style27>xz=xz/100; </P>
            <P class=style27>ad_zhi=ad_zhi+xiuzheng[xz]; </P>
            <P class=style27>return(ad_zhi); </P>
            <P class=style27>void d_change(long X) </P>
            <P class=style27>{char qian,bai,shi,ge,shifen,baifen; </P>
            <P class=style27>long int yu; </P>
            <P class=style27>if(X&gt;999999) error1(); </P>
            <P class=style27>qian=X/100000; yu=X%100000; </P>
            <P class=style27>bai=yu/10000; yu=yu%10000; </P>
            <P class=style27>shi=yu/1000; yu=yu%1000; </P>
            <P class=style27>ge=yu/100; yu=yu%100; </P>
            <P class=style27>shifen=yu/10; </P>
            <P class=style27>baifen=yu%10; </P>
            <P class=style27>qian=qian+0x30; </P>
            <P class=style27>bai=bai+0x30; </P>
            <P class=style27>shi=shi+0x30; </P>
            <P class=style27>ge=ge+0x30; </P>
            <P class=style27>shifen=shifen+0x30; </P>
            <P class=style27>baifen=baifen+0x30; </P>
            <P class=style27>if(qian==0x30) </P>
            <P class=style27>{qian=0x20; </P>
            <P class=style27>if(bai==0x30) </P>
            <P class=style27>{bai=0x20; </P>
            <P class=style27>if(shi==0x30) shi=0x20; </P>
            <P class=style27>} </P>
            <P class=style27>} </P>
            <P class=style27>shuju[0]=qian; </P>
            <P class=style27>shuju[1]=bai; </P>
            <P class=style27>shuju[2]=shi; </P>
            <P class=style27>shuju[3]=ge; </P>
            <P class=style27>shuju[4]='.'; </P>
            <P class=style27>shuju[5]=shifen; </P>
            <P class=style27>shuju[6]=baifen; </P>
            <P class=style27>} </P>
            <P class=style27>void baojing() </P>
            <P class=style27>{short i; </P>
            <P class=style27>for(i=0;i&lt;50;i++) </P>
            <P class=style27>{baoj=0; </P>
            <P class=style27>for(dealy=0;dealy&lt;10;dealy++); </P>
            <P class=style27>baoj=1; </P>
            <P class=style27>for(dealy=0;dealy&lt;10;dealy++); </P>
            <P class=style27>} </P>
            <P class=style27>} </P>
            <P class=style27><STRONG>参考书目: </STRONG></P>
            <P class=style27>《电子电路设计与实践》 山东科学技术出版社 姚福安著 </P>
            <P class=style27>《新型集成电路》 西安电子科技大学出版社 杨振江著 </P>
            <P class=style27>《 8051 单片机实践与应用》 清华大学出版社 吴金戎著 </P>
            <P class=style27>《积分式 A/D 转换器其他专用集成电路分册》 </P>
            <P class=style27>科学技术文献出版社 梁廷贵著 </P>
            <H5 class=style27>Abstract </H5>
            <P class=style27>T he design is based on the microcontroller AT89S52 
            system, has reliably actualized the meterage of weigh from 10g to 
            10Kg , and has the part of sampling circuit composed of ICL7135 、 a 
            differential measuring amplifier .Our system can accurately measure 
            weigh, and calculate the price .The data collected are processed by 
            the microcontroller and then displayed in the LCD. In addition, to 
            make the display more visual and convenient, our system can easily 
            display the bill of every buyers. </P>
            <P class=style27>Subject terms: </P>
            <P class=style27>microcontroller, meterage, sampling circuit, 
            differential measuring amplifier LCD, weight , bill 
</P></FONT></TD></TR>
        <TR>
          <TD height=10></TD></TR>
        <TR>
          <TD align=middle>
            <TABLE cellSpacing=5 cellPadding=0 width=780 align=center 
            bgColor=#ffffff border=0>
              <TBODY>
              <TR>
                <TD width=148 height=10><FONT 
                  color=#006600><B>单片机与嵌入式网站</FONT></B></TD>
                <TD width=10 height=10><FONT color=#006600></FONT></TD>
                <TD width=148 height=10><FONT 
                  color=#006600><B>华方卓越关键字B</B></FONT></TD>
                <TD width=10 height=10><FONT color=#006600></FONT></TD>
                <TD width=148 height=10><FONT 
                  color=#006600><B>华方卓越关键字C</B></FONT></TD>
                <TD width=10 height=10><FONT color=#006600></FONT></TD>
                <TD width=148 height=10><FONT 
                  color=#006600><B>华方卓越关键字D</B></FONT></TD>
                <TD width=10 height=10><FONT color=#006600></FONT></TD>
                <TD width=148 height=10><FONT 
                  color=#006600><B>华方卓越关键字E</B></FONT></TD></TR>
              <TR>
                <TD width=148><A 
                  href="http://www.51usb.com/list.asp?ProdId=0069" 
                  target=_blank><FONT color=#0066cc>锐步电子全线NIOS 
                  II开发板狂降至980元,usb2.0 、usb1.1接口,提供众多IP核。</FONT></A></TD>
                <TD width=10></TD>
                <TD width=148>欢迎您的加入!</TD>
                <TD width=10></TD>
                <TD width=148>广告套餐二的关键字</TD>
                <TD width=10></TD>
                <TD width=148>欢迎您的加入!</TD>
                <TD width=10></TD>
                <TD width=148>广告套餐三的关键字</TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=5 cellPadding=0 width=760 align=center 
            bgColor=#ffffff border=0>
              <TBODY>
              <TR>
                <TD align=right height=5><FONT color=#006600><A 
                  href="http://www.glorywork.com/Develop/508.html" 
                  target=_blank><FONT 
              color=#0066cc>华方卓越关键字</FONT></A></FONT></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD height=10></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=5 cellPadding=0 width=790 align=center bgColor=#ffffff 
      border=0>
        <TBODY>
        <TR>
          <TD vAlign=bottom align=left>录入人员:雁舞白沙</TD>
          <TD vAlign=bottom align=left>录入时间:2006-3-9 22:36:46</TD>
          <TD vAlign=bottom align=right>【 <A href="http://www.glorywork.com/" 
            target=_blank>华方卓越 --- 电子工程师资料收藏站</A> 】--- 您是本帖第:
            <SCRIPT src="[转贴]实用电子秤5-5.files/pagecounter.htm"></SCRIPT>
             位浏览者!</TD></FONT></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=3 cellPadding=0 width=790 align=center bgColor=#ffffff 
      border=0>
        <TBODY>
        <TR>
          <TD align=middle 
            height=5>----------------------------------------------------------------------------------------------------------------------------------</TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=3 cellPadding=0 width=790 align=center bgColor=#ffffff 
      border=0>
        <TBODY>
        <TR>
          <TD align=middle width="33%"><A href="http://www.51usb.com/" 
            target=_blank><IMG height=60 
            alt="广告地带 一 20元/日 500元/月 联系信箱:buaijun@yahoo.com.cn ( 天行工作室广告有效期 20060101-20060331 )" 
            src="[转贴]实用电子秤5-5.files/51usbs2.gif" width=260 border=0></A></TD>
          <TD align=middle width="33%"><A href="http://www.51c51.net/" 
            target=_blank><IMG height=60 
            alt="广告地带 二 20元/日 500元/月 联系信箱:buaijun@yahoo.com.cn ( 单片机技术与潜入式系统:广告有效期 20060301-20060631 )" 
            src="[转贴]实用电子秤5-5.files/51c51-page-bar.gif" width=260 
          border=0></A></TD>
          <TD align=middle width="33%">广告地带 三 预定状态</TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=5 cellPadding=0 width=790 align=center bgColor=#ffffff 
      border=0>
        <TBODY>
        <TR>
          <TD align=middle 
            height=5>-------------------------------------------------------------------------------------------------- 
            <A href="http://218.106.165.186/">返 回 首 页</A> --- <A 
            href="javascript:window.close()">关 闭 本 页</A> --- 
  </TD></TR></TBODY></TABLE></TR></TBODY></TABLE></TD></TR></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=800 align=center bgColor=#c4d5fd 
border=0>
  <TBODY>
  <TR>
    <TD height=5></TD></TR>
  <TR>
    <TD bgColor=#0066cc height=3></TD></TR>
  <TR>
    <TD height=5></TD></TR>
  <TR>
    <TD align=middle>
      <TABLE cellSpacing=0 cellPadding=0 width=790 bgColor=#ffffff border=0>
        <TBODY>
        <TR>
          <TD align=middle>
            <TABLE cellSpacing=0 cellPadding=0 width=780 align=center 
            bgColor=#ffffff border=0>
              <TBODY>
              <TR>
                <TD vAlign=bottom align=left width=380>
                  <TABLE cellSpacing=0 cellPadding=0 width=380 bgColor=#ffffff 
                  border=0>没 有 了 
                    <TBODY></TBODY></TABLE></TD>
                <TD width=20></TD>
                <TD vAlign=bottom align=left width=380>
                  <TABLE cellSpacing=0 cellPadding=0 width=380 bgColor=#ffffff 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD colSpan=5 height=20> <IMG 
                        src="[转贴]实用电子秤5-5.files/11.gif"> <A title=[转贴]实用电子秤4/5 
                        href="http://218.106.165.186/Facture/417.html">[转贴]实用电子秤4/5</A></TD></TR>
                    <TR>
                      <TD colSpan=5 height=20> <IMG 
                        src="[转贴]实用电子秤5-5.files/11.gif"> <A title=[转贴]实用电子秤3/5 
                        href="http://218.106.165.186/Facture/416.html">[转贴]实用电子秤3/5</A></TD></TR>
                    <TR>
                      <TD colSpan=5 height=20> <IMG 
                        src="[转贴]实用电子秤5-5.files/11.gif"> <A title=[转贴]实用电子秤2/5 
                        href="http://218.106.165.186/Facture/415.html">[转贴]实用电子秤2/5</A></TD></TR>
                    <TR>
                      <TD colSpan=5 height=20> <IMG 
                        src="[转贴]实用电子秤5-5.files/11.gif"> <A title=[转贴]实用电子秤1/5 
                        href="http://218.106.165.186/Facture/414.html">[转贴]实用电子秤1/5</A></TD></TR>
                    <TR>
                      <TD colSpan=5 height=20> <IMG 
                        src="[转贴]实用电子秤5-5.files/11.gif"> <A title=[转贴]自行打造紫外线擦除器 
                        href="http://218.106.165.186/Facture/413.html">[转贴]自行打造紫外线擦除器</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=800 bgColor=#c4d5fd>
  <TBODY>
  <TR>
    <TD height=5></TD></TR>
  <TR>
    <TD bgColor=#0066cc height=5></TD></TR>
  <TR>
    <TD colSpan=3 height=5></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=800 bgColor=#ccccff border=0>
  <TBODY>
  <TR align=middle>
    <TD width="35%" bgColor=#0066cc></TD>
    <TD bgColor=#0066cc>
      <SCRIPT language=javascript src="[转贴]实用电子秤5-5.files/90.js"></SCRIPT>
      <NOSCRIPT><A title="51.la Free Site Stats" 
      href="http://www.51.la/?s=20&amp;id=90" target=_blank><IMG 
      src="[转贴]实用电子秤5-5.files/s.htm" border=0></A></NOSCRIPT></TD>
    <TD width="35%" bgColor=#0066cc></TD></TR></TBODY></TABLE><BGSOUND 
src=""></CENTER></BODY></HTML>

⌨️ 快捷键说明

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