📄 实用电子秤.htm
字号:
<P class=style27>clk7289=0; </P>
<P class=style27>for(dealy=0;dealy<1;dealy++) ; // 延时 10us </P>
<P class=style27>} </P>
<P class=style27>dio7289=0; </P>
<P class=style27>} </P>
<P class=style27>short receive() //7289 接收数据子程序 </P>
<P class=style27>{short i,X=0; </P>
<P class=style27>dio7289=1; </P>
<P class=style27>for(dealy=0;dealy<6;dealy++); // 延时 50us </P>
<P class=style27>for(i=0;i<=7;i++) </P>
<P class=style27>{clk7289=1; </P>
<P class=style27>for(dealy=0;dealy<1;dealy++); // 延时 10us </P>
<P class=style27>X=X<<1; </P>
<P class=style27>if(dio7289)X++; </P>
<P class=style27>clk7289=0; </P>
<P class=style27>for(dealy=0;dealy<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<5;k++) </P>
<P class=style27>{ while(ad_stb); </P>
<P class=style27>x=ad_244; </P>
<P class=style27>x=x&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>>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>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<50;i++) </P>
<P class=style27>{baoj=0; </P>
<P class=style27>for(dealy=0;dealy<10;dealy++); </P>
<P class=style27>baoj=1; </P>
<P class=style27>for(dealy=0;dealy<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></DIV>
<DIV class=pagebreak></DIV>
<DIV class=ding_box>
<DIV align=left>
<TABLE>
<TBODY>
<TR>
<TD align=middle width=700></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript src="实用电子秤.files/25.js"></SCRIPT>
</DIV>
<DIV class=text_tag>
<H5>Tags:<B> 实用电子秤 </B> </H5><SPAN>责任编辑:尘封往事</SPAN>
<LI style="DISPLAY: none">
<SCRIPT language=javascript src="实用电子秤.files/count.htm"></SCRIPT>
</LI></DIV>
<DIV align=right>【<A href="http://www.c51.cn/Article/Comment.asp?ArticleID=2242"
target=_blank>发表评论</A>】【<A
href="http://www.c51.cn/User/User_Favorite.asp?Action=Add&ChannelID=1&InfoID=2242"
target=_blank>加入收藏</A>】【<A
href="http://www.c51.cn/Article/SendMail.asp?ArticleID=2242"
target=_blank>告诉好友</A>】【<A
href="http://www.c51.cn/Article/Print.asp?ArticleID=2242"
target=_blank>打印此文</A>】【<A href="javascript:window.close();">关闭窗口</A>】
</DIV>
<DIV class=xg>
<LI>上一篇论文: <A class=LinkPrevArticle
title="文章标题:高速实时数字信号处理技术探析(下) 作 者:未知 更新时间:2006-2-21 14:15:23"
href="http://www.c51.cn/Article/mcuzh/200602/2220.html">高速实时数字信号处理技术探析(下)</A>
</LI>
<LI>下一篇论文: <A class=LinkNextArticle
title="文章标题:液体点滴速度监控装置 作 者:未知 更新时间:2006-2-21 15:17:09"
href="http://www.c51.cn/Article/mcuzh/200602/2243.html">液体点滴速度监控装置</A>
</LI></DIV>
<DIV class=box_xgimg>
<DIV class=title_xg>最新图文 </DIV>
<TABLE cellSpacing=5 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR vAlign=top>
<TD align=middle><A class="" title=基于SH6613的空调遥控器设计
href="http://www.c51.cn/Article/mcuzh/200808/8131.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807102649254.jpg" width=125
border=0></A><BR><A class="" title=基于SH6613的空调遥控器设计
href="http://www.c51.cn/Article/mcuzh/200808/8131.html"
target=_blank>基于SH6613的空调遥控…</A></TD>
<TD align=middle><A class="" title=基于单片机实现遥控编码器PT2262的软件解码
href="http://www.c51.cn/Article/mcuzh/200808/8130.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807102506345.jpg" width=125
border=0></A><BR><A class="" title=基于单片机实现遥控编码器PT2262的软件解码
href="http://www.c51.cn/Article/mcuzh/200808/8130.html"
target=_blank>基于单片机实现遥控编…</A></TD>
<TD align=middle><A class="" title=P89C51RD2的可定制人机交互界面设计
href="http://www.c51.cn/Article/mcuzh/200808/8128.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807102015614.jpg" width=125
border=0></A><BR><A class="" title=P89C51RD2的可定制人机交互界面设计
href="http://www.c51.cn/Article/mcuzh/200808/8128.html"
target=_blank>P89C51RD2的可定制人机…</A></TD>
<TD align=middle><A class="" title=基于单片机的车载超级电容测试系统设计与实现
href="http://www.c51.cn/Article/mcuzh/200808/8126.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807101537278.jpg" width=125
border=0></A><BR><A class="" title=基于单片机的车载超级电容测试系统设计与实现
href="http://www.c51.cn/Article/mcuzh/200808/8126.html"
target=_blank>基于单片机的车载超级…</A></TD></TR>
<TR vAlign=top>
<TD align=middle><A class="" title=高温超导磁浮车悬浮高度测量研究
href="http://www.c51.cn/Article/mcuzh/200808/8117.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807095415229.jpg" width=125
border=0></A><BR><A class="" title=高温超导磁浮车悬浮高度测量研究
href="http://www.c51.cn/Article/mcuzh/200808/8117.html"
target=_blank>高温超导磁浮车悬浮高…</A></TD>
<TD align=middle><A class="" title=基于OMAP的无线传感网节点处理器的设计与实现
href="http://www.c51.cn/Article/mcuzh/200808/8116.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807095242470.jpg" width=125
border=0></A><BR><A class="" title=基于OMAP的无线传感网节点处理器的设计与实现
href="http://www.c51.cn/Article/mcuzh/200808/8116.html"
target=_blank>基于OMAP的无线传感网…</A></TD>
<TD align=middle><A class="" title=基于ZigBee的无线管理系统设计
href="http://www.c51.cn/Article/lexu/200808/8115.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807095036677.jpg" width=125
border=0></A><BR><A class="" title=基于ZigBee的无线管理系统设计
href="http://www.c51.cn/Article/lexu/200808/8115.html"
target=_blank>基于ZigBee的无线管理…</A></TD>
<TD align=middle><A class="" title=MMC在便携式数据采集系统中的应用
href="http://www.c51.cn/Article/lexu/200808/8114.html" target=_blank><IMG
class=pic1 height=95 src="实用电子秤.files/20080807094904555.jpg" width=125
border=0></A><BR><A class="" title=MMC在便携式数据采集系统中的应用
href="http://www.c51.cn/Article/lexu/200808/8114.html"
target=_blank>MMC在便携式数据采集系…</A></TD></TR></TBODY></TABLE></DIV>
<DIV class=box_xg>
<DIV class=title_xg>相关文章列表 </DIV>
<UL>
<LI><A class=LinkArticleCorrelative
title="文章标题:智能型电话远程遥控器 作 者:未知 更新时间:2006-2-21 15:34:17"
href="http://www.c51.cn/Article/mcuzh/200602/2250.html"
target=_self>智能型电话远程遥控器</A><BR><A class=LinkArticleCorrelative
title="文章标题:简易智能电动车设计报告 作 者:未知 更新时间:2006-2-21 15:32:36"
href="http://www.c51.cn/Article/mcuzh/200602/2249.html"
target=_self>简易智能电动车设计报告</A><BR><A class=LinkArticleCorrelative
title="文章标题:多功能数字钟 作 者:未知 更新时间:2006-2-21 15:31:08"
href="http://www.c51.cn/Article/mcuzh/200602/2248.html"
target=_self>多功能数字钟</A><BR><A class=LinkArticleCorrelative
title="文章标题:多点温度检测系统 作 者:未知 更新时间:2006-2-21 15:28:25"
href="http://www.c51.cn/Article/mcuzh/200602/2247.html"
target=_self>多点温度检测系统</A><BR><A class=LinkArticleCorrelative
title="文章标题:基于新型规则的可编程交通控制系统设计 作 者:未知 更新时间:2006-2-21 15:27:01"
href="http://www.c51.cn/Article/mcuzh/200602/2246.html"
target=_self>基于新型规则的可编程交通控制系统设计</A><BR><A class=LinkArticleCorrelative
title="文章标题:低频数字式相位测量仪 作 者:未知 更新时间:2006-2-21 15:22:22"
href="http://www.c51.cn/Article/mcuzh/200602/2245.html"
target=_self>低频数字式相位测量仪</A><BR><A class=LinkArticleCorrelative
title="文章标题:可编程微波炉控制器系统设计 作 者:未知 更新时间:2006-2-21 15:18:52"
href="http://www.c51.cn/Article/mcuzh/200602/2244.html"
target=_self>可编程微波炉控制器系统设计</A><BR><A class=LinkArticleCorrelative
title="文章标题:液体点滴速度监控装置 作 者:未知 更新时间:2006-2-21 15:17:09"
href="http://www.c51.cn/Article/mcuzh/200602/2243.html"
target=_self>液体点滴速度监控装置</A><BR></LI></UL></DIV>
<FORM name=form1 onsubmit="return Check();" action=Comment.asp method=post>
<TABLE style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 width=600
align=center border=0>
<TBODY>
<TR>
<TD align=right width=110>姓 名:</TD>
<TD width=180><INPUT maxLength=16 name=Name> <FONT color=red>*</FONT> </TD>
<TD align=right width=60>Oicq:</TD>
<TD width=170><INPUT maxLength=15 name=Oicq> </TD></TR>
<TR>
<TD align=right width=110>评 分:</TD>
<TD colSpan=3><INPUT
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
type=radio value=1 name=Score> 1分 <INPUT
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
type=radio value=2 name=Score> 2分 <INPUT
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
type=radio CHECKED value=3 name=Score> 3分 <I
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -