freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

山東省電子設(shè)計(jì)大賽-資料下載頁(yè)

2025-04-25 12:59本頁(yè)面
  

【正文】 ile(key7289==0)。 } while(key7289)。 nop1()。 while(key7289==0)。 nop1()。 lcdi_send(0x1)。}//LCD子程序void ini_lcd() //LCD初始化子程序{ lcdi_send(0x30)。 lcdi_send(0x1)。 //總清 lcdi_send(0xc)。 lcdi_send(0x2)。 //光標(biāo)右移,AC+1}void lcdd_send(short X) //LCD發(fā)送數(shù)據(jù)子程序{chk_busy()。 nop1()。 lcd_di=1。lcd_rw=0。lcd_e=0。 P0=X。 for(dealy=0。dealy5。dealy++)。// lcd_e=1。 X=X。 P0=0xff。}void lcdi_send(short X) //LCD發(fā)送指令子程序{chk_busy()。 nop1()。 lcd_di=0。lcd_rw=0。lcd_e=0。 P0=X。 for(dealy=0。dealy5。dealy++)。// lcd_e=1。 X=X。 P0=0xff。 }void chk_busy(){short i=0xff。 while(iamp。0x80) {lcd_di=0。 lcd_rw=1。 lcd_e=0。 i=P0。 lcd_e=1。 }}//7289子程序void ini_7289(){short i。 cs7289=1。 key7289=1。 dio7289=1。 //7289初始化子程序 for(i=0。i50。i++) for(dealy=0。dealy5000。dealy++)。 //延時(shí)25ms send7289(0xa4)。 cs7289=1。}void send7289(short X) //7289發(fā)送數(shù)據(jù)子程序{short i,j=1。 cs7289=0。 for(dealy=0。dealy6。dealy++)。 //延時(shí)50us for(i=7。i=0。i) {j=ji。 dio7289=Xamp。j。 j=1。j=1。clk7289=1。 for(dealy=0。dealy1。dealy++) 。 //延時(shí)10us clk7289=0。 for(dealy=0。dealy1。dealy++) 。 //延時(shí)10us } dio7289=0。}short receive() //7289接收數(shù)據(jù)子程序{short i,X=0。 dio7289=1。 for(dealy=0。dealy6。dealy++)。 //延時(shí)50us for(i=0。i=7。i++) {clk7289=1。 for(dealy=0。dealy1。dealy++)。 //延時(shí)10us X=X1。 if(dio7289)X++。 clk7289=0。 for(dealy=0。dealy1。dealy++)。 //延時(shí)10us } dio7289=0。 return(X)。}//ad//AD子程序int ad1(){short k,x。 int ad_zhi=0,xz。 EA=0。 ad_start=1。 for(k=0。k5。k++) { while(ad_stb)。 x=ad_244。 x=xamp。0xf。 ad_zhi=ad_zhi*10+x。 } ad_start=0。 EA=1。EX0=1。 ad_zhi=ad_zhi1。 xz=ad_zhi50。 xz=xz/100。 ad_zhi=ad_zhi+xiuzheng[xz]。 return(ad_zhi)。void d_change(long X){char qian,bai,shi,ge,shifen,baifen。 long int yu。 if(X999999) error1()。 qian=X/100000。 yu=X%100000。 bai=yu/10000。 yu=yu%10000。 shi=yu/1000。 yu=yu%1000。 ge=yu/100。 yu=yu%100。 shifen=yu/10。 baifen=yu%10。 qian=qian+0x30。 bai=bai+0x30。 shi=shi+0x30。 ge=ge+0x30。 shifen=shifen+0x30。 baifen=baifen+0x30。 if(qian==0x30) {qian=0x20。 if(bai==0x30) {bai=0x20。 if(shi==0x30) shi=0x20。 } } shuju[0]=qian。 shuju[1]=bai。 shuju[2]=shi。 shuju[3]=ge。 shuju[4]=39。.39。 shuju[5]=shifen。 shuju[6]=baifen。}void baojing(){short i。 for(i=0。i50。i++) {baoj=0。 for(dealy=0。dealy10。dealy++)。 baoj=1。 for(dealy=0。dealy10。dealy++)。 }}參考書目:《電子電路設(shè)計(jì)與實(shí)踐》 山東科學(xué)技術(shù)出版社 姚福安著《新型集成電路》 西安電子科技大學(xué)出版社 楊振江著《8051單片機(jī)實(shí)踐與應(yīng)用》 清華大學(xué)出版社 吳金戎著《積分式A/D轉(zhuǎn)換器其他專用集成電路分冊(cè)》 科學(xué)技術(shù)文獻(xiàn)出版社 梁廷貴著AbstractThe 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 posed of ICL713 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.Subject terms: microcontroller, meterage, sampling circuit, differential measuring amplifier LCD, weight, bill
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1