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

正文內(nèi)容

基于單片機的出租車計價器設(shè)計--課程設(shè)計-閱讀頁

2024-11-30 02:49本頁面
  

【正文】 對各電路模塊功能進行逐級測試。我們想到外接一個5V的直流電源,發(fā)現(xiàn)這樣會使整個系統(tǒng)顯示累贅而難以操作。于是將555的電源和地接到了最小系統(tǒng)的Vcc和地。在軟件設(shè)計過程中遇到一個嚴(yán)重的問題就是系統(tǒng)的時序設(shè)計。導(dǎo)致按鍵功能和顯示功能不能同時出現(xiàn)。將中斷子程序的部分內(nèi)容調(diào)整到主程序中調(diào)用子程序則這解決了這一問題。在課程設(shè)計的過程中,還是碰到了許多的問題。通過這幾天晚上的苦想和反復(fù)調(diào)試,以及參考網(wǎng)上的程序,最終還是把問題解決了。在動手的過程中,不僅能增強實踐能力,而且在理論上可以有更深的認(rèn)識;這次設(shè)計給了我極大的鼓舞和信心,相信在以后的學(xué)習(xí)中可以通過不斷的摸索和實踐來提高其他方面的知識。在本次課程設(shè)計過程中,我學(xué)會了在網(wǎng)絡(luò)上查找有關(guān)本設(shè)計的各硬件的資源,其中包括:AT89S51單片機及其引腳說明、555引腳圖及其引腳功能等,為本次課程設(shè)計提供了一定的資料。 參考文獻[1] 張友德 趙志英 涂時亮 編 單片微型機原理、應(yīng)用與實驗 上海: 全書[2] 徐光翔 南京大學(xué)出版社 sbit P21=P2^1。 //接 74 LS 138 控制 數(shù)碼管 sbit pulse_in=P1^0。bit dispflag。bit begin_signal。//單程 還是往返 標(biāo)志 uint times。uint record。uint s,m。 //等待時間 char baiwei,shiwei,gewei,xiaoshu。 //鍵盤 的鍵值 uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x40}。39。 void init()。void select(bit a,bit b,bit c)。uchar keyscan(void)。 for(i=0。i++) for(j=0。j++) 。 TH0=(6553625000)/256。 EA=1。 TR0=1。 counter=counter*10/rate。 gewei=(counter/10)%10。 baiwei=(counter/1000)%10。 else if(s_or_d==0) m=80+2*(counter30)+t/300。 select(1,1,0)。 delay(2)。 P0=table[gewei]|0x80。 select(1,0,0)。 delay(2)。 P0=table[baiwei]。 xiaoshu=m%10。 shiwei=(m/100)%10。 select(1,1,1)。 delay(2)。 P0=table[gewei]|0x80。 select(1,0,1)。 delay(2)。 P0=table[baiwei]。 } else { P0=0x00。 gewei=(t/10)%10。 baiwei=(t/1000)%10。 //顯示 等待時間 P0=table[xiaoshu]。 select(0,1,0)。 delay(2)。 P0=table[shiwei]。 select(0,0,0)。 delay(2)。 TL0=(6553625000)%256。 if(pulse_in!=pulse) { pulse=~pulse。 } } if (times==39)//1 s timer pleted { times=0。 record=pulse_counter。 }// s_temple=pulse_counter/2。}void select(bit a,bit b,bit c){ P20=a。 P22=c。 for(i=0。i++)。 temp=P3。0x0f。 temp=P3。0x0f。 switch(temp) { case 0x7e:num=1。 case 0x7d:num=2。 case 0x7b:num=3。 case 0x77:num=4。 } while(temp!=0x0f) { temp=P3。0x0f。 temp=P3。0x0f。 temp=P3。0x0f。 switch(temp) { case 0xbe:num=5。 case 0xbd:num=6。 case 0xbb:num=7。 case 0xb7:num=8。 } while(temp!=0x0f) { temp=P3。0x0f。 temp=P3。0x0f。 temp=P3。0x0f。 switch(temp) { case 0xde:num=9。 case 0xdd:num=10。 case 0xdb:num=11。 case 0xd7:num=12。 } while(temp!=0x0f) { temp=P3。0x0f。 temp=P3。0x0f。 temp=P3。0x0f。 switch(temp) { case 0xee:num=13。 case 0xed:num=14。 case 0xeb:num=15。 case 0xe7:num=16。 } while(temp!=0x0f) { temp=P3。0x0f。}void singleway(void)// 單程 開始 函數(shù) { begin_signal=1。}void doubleway(void)//往返 開始 函數(shù) { begin_signal=1。}void pause(void)//暫停 函數(shù) { begin_signal=0。 t=0。}void check2(void)// 查詢 函數(shù) { dispflag=0。break。break。break。break。break。break。 while (1) { divide(pulse_counter)。 sentence(
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1