资源描述:
《苏州科技学院-智能仪器实验报告》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、苏州科技学院电子与信息工程学院智能仪器实验报告班级:电子0911姓名:学号:2012年6月forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)the
2、borrower,guarantorloans第12页实验一显示实验说明:所有实验都是根据CT107D实验板的原理图来仿真的程序:forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhether
3、viewsareclear;(D)theborrower,guarantorloans第12页#include#include#defineucharunsignedchar#defineuintunsignedint#definerst573P2&=0x1f#defineledY4CP2
4、=0x80#definebeeY5CP2
5、=0xa0#definesmgY6CP2
6、=0xc0#definesmgY7CP2
7、=0xe0sbitP36=P3^6;sbitP06=
8、P0^6;sbitP04=P0^4;sbitS7=P3^0;sbitS6=P3^1;uchartable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};//共阳极编码voiddelaynms(uintms)//秒延迟程序{uintx,y;for(x=ms;x;x--)for(y=110;y;y--);}voidinit107(){rst573;P36=0;//ledP0=0xff;ledY4C;rst573;//beeP04=0;P06=0;b
9、eeY5C;rst573;//smgP0=0x00;smgY6C;rst573;}voiddisp1(uintnum1)//数码管显示程序{uintqian,bai,shi,ge;qian=num1/1000;//千,百,十,个处理bai=num1/100%10;shi=num1/10%10;ge=num1%10;smgY6C;P0=0xfe;rst573;smgY7C;P0=table[qian];rst573;delaynms(2);smgY6C;P0=0xfd;rst573;P0=table[bai
10、];smgY7C;rst573;delaynms(2);P0=0xfb;smgY6C;rst573;P0=table[shi];smgY7C;rst573;delaynms(2);P0=0xf7;smgY6C;rst573;P0=table[ge];smgY7C;rst573;delaynms(2);}forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherd
11、oubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)theborrower,guarantorloans第12页voiddisp2(uintnum2)//数码管显示程序{forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;
12、(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)theborrower,guarantorloans第12页uintqian,bai,shi,ge;qian=num2/1000;//千,百,十,个处理bai=num2/100%10;shi=num2