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

正文內(nèi)容

基于單片機的出租車計費器的畢業(yè)設(shè)計論文(留存版)

2025-09-13 20:09上一頁面

下一頁面
  

【正文】 17 致謝 本論文是在何淑珍老師的悉心指導(dǎo)下完成的,何老師的淵博學(xué)識和豐富經(jīng)驗給我留下了深刻的印象。 include /***********************1ms 延時函數(shù) *****************************/ void delay_1ms(uint q) { uint i,j。 //保存數(shù)據(jù) write_24c02(10,wan_3w_price / 256)。 wan_3l_price = read_24c02(8)。 else key_value =0。 break。 25 else zong_jia = bai_3l_price + (shi * 60 + fen 3) * bai_wait_price。 //¥ } } } /*********************顯示函數(shù) ******************/ void jishu_chashu() { if((flag_1s == 1) amp。 read_iic_data()。 if(value = 20) { flag_1s = 1。 //開定時器 0 中斷 TR0 = 1。 write_sfm4(1,10,zong_jia)。 distance = 0。 break。 if(key_value = 5) //按鍵松開松手檢測 { 23 key_value = 0。 bai_3w_price = read_24c02(4)。 //保存數(shù)據(jù) write_24c02(6,bai_wait_price / 256)。 //行使的距離 uint zong_jia。這在以前的學(xué)習(xí)過程中是不曾學(xué)到的 。 P2 口:即可以做地址總線輸出地址高 8 位,也可以做普通 I/O 用,(此時為準(zhǔn)雙向口)。ALE 的負(fù)載驅(qū)動能力為 8 個 LS型 TTL(低功耗高速 TTL)。 9 2)時鐘電路引腳 XTAL1 和 XTAL2 XTAL2(18 腳 ):接外部晶體和微調(diào)電容的一端。 按鍵復(fù)位電路圖如圖 所示。 關(guān)鍵字 STC89C52; 1602液晶;出租車計費器 3 ABSTRACT The design is based on a monolithic integrated circuit STC89C52 taxi billing design, with reset circuit, clocking circuit, keyboard circuit. Reset circuit is initialized, besides the normal operation of the initial dilemma, as a foreigner, through the reset circuit can start again. 12MHz adopts the clock circuit, as a system of crystal oscillator, higher clock source. The characters in the crystal that the initial 1602, charges, fees mileage waiting time, three buttons can be adjusted by charging fees, just waiting time, mileage. Through the simulation of the taxi, buttons, stop. Suspension In the liquid crystal display can run 1602, operation time, when suspension can be obtained by the putation of the total is mainly for the core controller, STC89C52 SCM P0 mouth after 1602 LCD module, P1 mouth after the keys, through the keystroke. Keyword: STC89C52; 1602 LCD; Taxi devices 4 1 課程設(shè)計任務(wù)書 課程設(shè)計任務(wù) 基于單片機出租車模擬計價器,采用 at24c02 存儲芯片 +LCD1602 液晶顯示等設(shè)計而成。用 24c02 來存 儲單價,通過按鍵來模擬增加里程,模擬出租車向前開。 圖 復(fù)位電路 鍵盤接口電路 (1)獨立式鍵盤:獨立式鍵盤中,每個按鍵占用一根 I/O 口線,每個按鍵電路相對獨立。在單片機內(nèi)部它是振蕩電路反向放大器的輸出端,振蕩電路的頻率就是晶體固有頻率。 PSEN( 29 腳);程序存儲允許輸出信號引腳,在訪問片外程序存儲器時,此端定時輸出負(fù)脈沖作為讀片外存儲器的選通信號。 P3 口:雙功能口,即可以做普通 I/O 口用(此時為準(zhǔn)向口,也可以按每位定義實現(xiàn)第二功能操作)。在短短的三個月時間內(nèi)完成設(shè)計內(nèi)容,在很大程度上得益于老師的幫助。 //總的價 bit flag_300ms = 0。 //保存數(shù)據(jù) write_24c02(7,wan_3l_price % 256)。 bai_3w_price = bai_3w_price * 256 + read_24c02(3)。 key_new = 1。 //得到按鍵值 case 0x37: key_can = 4。 } if(key_can == 2) { flag_time_en = ~flag_time_en。 write_sfm4(1,0,distance)。 //允許定時器 0 定時 } void main() { init_1602()。 value = 0。 zidong_chushifa_iic()。 //¥ write_zifu(2,12,0x5c)。 if(distance = 30)//3 公里內(nèi)的價格 { if(flag_bai_hei == 0) { if(fen = 3) zong_jia = bai_3l_price。 //得到按鍵值 case 0x1f: key_can = 5。 0x3f) != 0x3f) //按鍵按下 key_value ++。 bai_wait_price = bai_wait_price * 256 + read_24c02(5)。 //保存數(shù)據(jù) write_24c02(9,wan_3w_price % 256)。 bit flag_time_en = 0。另外通過本次設(shè)計,是我認(rèn)識到自己理論知識的應(yīng)用能力有很大的欠缺,需要在以后的學(xué)習(xí)中進(jìn)一步提高。 表 1 P3 口的第二功能表 引腳 第二功能 RXD (串行輸入口) TXD (串行輸出口) INT0(外部中斷 0) INT1(外部中斷 1) T0(定時器 0 外部中斷) T1(定時器 1 外部中斷) WR(外部存儲器寫選通) RD(外 部存儲器讀寫通) 11 3 軟件設(shè)計 單片機資源使用 在本次設(shè)計中像電路鍵盤用到了 P2口,其中 到 口作為鍵盤的輸 入,顯示電路用到了 P1 和 P3口, P1口為液晶的數(shù)據(jù)口。 PSEN端有效,即允許讀 出 ERROM/ROM 中的指令碼。要檢查 89C52 的振蕩電路是否正常工作,可用示波器查看 XTAL2 端是否有脈沖信號輸出。 I/O 口內(nèi)部有上拉電阻時,外部可不接上拉電阻。可以設(shè)置每公里單價,以及夜間單價和白天單價的不同模式,設(shè)置后掉電無需重新設(shè)置,設(shè)置有等待 /繼續(xù)計時模式。在 1602液晶上可以顯示運行的時間,運行時暫停的時間,通過計算可以得出總共的費用和總的路程。上電瞬間 RESET 引腳獲
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1