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

正文內容

畢業(yè)設計:基于at89s5單片機的暖風機設計(參考版)

2025-06-10 16:43本頁面
  

【正文】 關鍵詞 :單片機,足球賽 ,LCD ABSTRACT This time football scoring is deviced in order to solve the basketball game scoring exactly the problem and timing. The device is pleted by using microcontroller AT89S52 for timing and scoring functions. This paper introduces the hardware and software’s designing process, the device can be modified according to the actual situation and the time of the accurate score, and display with low power consumption, reliability, safely , low cost and so on. Key words: Single Chip Microputer , basketball, LCD 1 目 錄 1 緒論 ................................................................................................................... 21 背景知識介紹 ...................................................................................................................... 21 設計內容 .............................................................................................................................. 21 設計任務和要求 .................................................................................................................. 22 設計意義 .............................................................................................................................. 22 2 系統(tǒng)總體方案設計及硬件設計介紹 ....................................................................... 22 系統(tǒng)總體方案設計 .............................................................................................................. 22 硬件電路設計 ...................................................................................................................... 23 時鐘電路模塊 ............................................................................................................... 25 復位電路模塊 ............................................................................................................... 26 顯示模塊 ....................................................................................................................... 26 報警模塊 ....................................................................................................................... 27 系統(tǒng)電源設計 ............................................................................................................... 28 ISP 下載線接口 ............................................................................................................ 28 鍵盤接口 ....................................................................................................................... 29 系統(tǒng)硬件電路總電路圖 ...................................................................................................... 30 3 軟件設計 ............................................................................................................ 31 軟件設計環(huán)境介紹 .............................................................................................................. 32 軟件總體設計方案 .............................................................................................................. 32 延時子函數(shù) ..................................................................................。此裝置利用單片機 AT89S52 完成了計時和計分的功能。//鍵處理 doing()。i++) xianshi()。//讀取溫度值 for(i=0。 if(sdzhi99) sdzhi=99。 while(1) { read549()。 setdown=1。 set=1。 setmaxh=90。// setmaxt=50。 //開始計時 ET0=1。 TL0=(6553610000)%256。 } //////////////////// 主程序 36 void main(void) { uint i。 //return(ad)。 ad=1。 ad=1。 _nop_()。 _nop_()。 //上升沿讀入 if(TLC549_SDO) ad|=0x01。i8。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 TLC549_CS=1。 admezhi=0。 admezhi/=10。 admezhi+=adyzhi。 // speek=!speek。 //開始計時 ET0=1。 TL0=(6553610000)%256。xsbz=!xsbz。}} } ///定時中斷程序 /// void t0 (void) interrupt 1 using 0 { ms++。(!setdownbz)){Delay(10)。}。 if((setmode==4)amp。 if((setmode==3)amp。(setmint0)){setmint。(setmaxtsetmint+1)) setmaxt。 if(!setdown) {setdownbz=0。}} if((!setdown)amp。(!setupbz)){Delay(10)。}。 if((setmode==4)amp。 if((setmode==3)amp。(setmintsetmaxt1)){setmint++。(setmaxt99)) setmaxt++。 if(!setup) {setupbz=0。} if((!setup)amp。(!setbz)){Delay(10)。if(setmode4) setmode=0。 if(!set) {setbz=0。 } void key() { if((!set)amp。 Delay(60)。 XSOUT=table[abcd%10]。 Delay(60)。 XSOUT=table[abcd/10]。 if(setmode==3) abcd=setmaxh。 if(setmode==1) abcd=setmaxt。 Delay(60)。 XSOUT=XSOUT=0x7f。 Delay(60)。 //設置顯示 xsset: XSOUT=table[setmode]。 gwei=1。 gwei=0。 swei=1。 swei=0。 XSOUTamp。 bwei=1。} bwei=0。 if(tmpbuf[5]==1) XSOUT=0x7f。 Delay(60)。 XSOUT=table[0]。 Delay(60)。 XSOUT=table[sdzhi%10]。 Delay(60)。 XSOUT=table[sdzhi/10]。 abcd=sdzhi。 */ } 32 //////////////////// ///////顯示處理 /////// xianshi() { int abcd=0。(setminhsdzhi)amp。}//關 if((tzhisetmint)amp。}//加濕 if((setminhsdzhi)amp。} if(sdzhisetminh) {humiled=0。}// if(sdzhisetmaxh) {humiled=1。fanled=1。(tzhisetmaxt)) {fanjdq=0。speak=1。fanled=1。} if(tzhisetmint) {fanjdq=0。hotled=1。hotjdq=0。 else speak=0。 tzhi=tmpbuf[1]*10+tmpbuf[2]。 // if(tmpbuf[1]==0) // tmpbuf[1]=10。 tmpbuf[0]=tmph/100。 tmpbuf[2]=tmph%10。 tmpbuf[4]=tmpl%10。0xff)。0x0f)。 else tmpbuf[5]=0。 //為負 tmpbuf[5]=1。0xf0)。 DS18B20_Tmp_Read()。 if(TEMP0xfffe) tmp=TEMP。 TEMP=TEMP8。 //DS18B20 讀低字節(jié) TEMP_MSB = Read_Byte()。 //DS18B20命令 Write_Byte(0xBE)。 Reset_Bus()。 //DS18B20命令 Write_Byte(0x44)。 Reset_Bus()。 } void DS18B20_Tmp_Read(void) ////DS18B20讀操作 { uint TEMP。 Delay(6)。i8。 30 uchar value = 0。 retu
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1