【正文】
課 程 : 單片機(jī)的 C 語(yǔ)言應(yīng)用程序設(shè)計(jì) 題 目: 基于 AT89S52 單片機(jī) 的籃球 計(jì)時(shí) 計(jì)分器 系 別: 專(zhuān) 業(yè): 班 級(jí): 姓 名: 學(xué) 號(hào) 組 員 : 指導(dǎo)老師: 完成時(shí)間: 摘 要 隨著單片機(jī)載各個(gè)領(lǐng)域的廣泛應(yīng)用,許多用單片機(jī)作控制的球賽計(jì)時(shí)計(jì)分器系統(tǒng)也應(yīng)運(yùn)產(chǎn)生,如用單片機(jī)控制 LCD 液晶顯示器計(jì)時(shí)計(jì)分器,用單片機(jī)控制 LED 七段顯示器計(jì)時(shí)計(jì)分器等。 本 設(shè)計(jì) 介紹一種有 AT89S52 編程控制基于 LCD12864 液晶顯示的籃球比球賽計(jì)時(shí)計(jì)分系統(tǒng)。本系統(tǒng)具有賽程定時(shí)設(shè)置、賽程時(shí)間暫停、蜂鳴報(bào)警、記錄犯規(guī)、比分加減、進(jìn)行加時(shí)賽等功能。本設(shè)計(jì)具有價(jià) 格低廉、性能穩(wěn)定、操作方便且修改靈活等特點(diǎn)。廣泛適合各類(lèi)學(xué)校和小團(tuán)體作為賽程計(jì)時(shí)計(jì)分。 主控芯片采用 AT89S52 單片機(jī),采用 C 語(yǔ)言進(jìn)行編程,編程后利用 Keil uVision3 來(lái)進(jìn)行編譯,再將生成的 HEX 文件裝入芯片中,采用 proteus 軟件來(lái)仿真,檢驗(yàn)功能是否能夠正常實(shí)現(xiàn)。仿真成功后,焊接硬件電路,通過(guò) ISP 下載器將 hex 文件燒制到單片機(jī)。 關(guān)鍵詞: 單片機(jī) 液晶顯示 蜂鳴報(bào)警 定時(shí) 設(shè)置 Abstract With the MCU contains a wide range of applications in various fields, many with a single chip timing for the control of the game scoring device transport system should also produce, such as liquid crystal display LCD with MCU time scoring device, LED seven segment display with microcontroller timing control points, etc. . This paper describes a programmable control with AT89S52 LCD12864 liquid crystal display based on game time scoring than basketball. The system has a set time schedule, schedule time to pause, beep alarm, record fouls, the score addition and subtraction, for overtime and other functions. This design has low price, stable performance, easy to operate and modify flexible. Wide for all types of schools and small groups as the race time points. Master chip AT89S52 microcontroller, using C programming language, programmed to be piled using Keil uVision3, and then generate the HEX file into the chip, using proteus simulation software, testing whether the function of the normal implementation. After a successful simulation, welding hardware circuit, through the ISP downloader hex file will burn to the microcontroller. Key Words: Scm, liquid crystal display Beep Alarm Timing Set 目 錄 1 計(jì)方案選擇與論證 .................................. 1 方案選擇與論證 ................................................................................................. 1 方案一 利用數(shù)字電路和數(shù)碼管實(shí)現(xiàn) ...................................................... 1 方案二 采用單片機(jī)和液晶顯示電路實(shí)現(xiàn) .............................................. 2 最終方案的選擇 ........................................................................................ 2 2 系統(tǒng)硬件實(shí)現(xiàn) ..................................... 3 單片機(jī)選擇 ......................................................................................................... 3 硬件電路實(shí)現(xiàn) ..................................................................................................... 4 電源模塊 ..................................................................................................... 4 時(shí)鐘電路模塊 .......................................................................................... 4 復(fù)位電路模塊 ............................................................................................ 5 按鍵控制鍵盤(pán)模塊 ..................................................................................... 5 顯示模塊 .......................................................................................