【正文】
成績(jī): 課程論文 題 目: 10 秒秒表的設(shè)計(jì) 設(shè)計(jì)要求: 掌握數(shù)碼管顯示控制系統(tǒng)的顯示原理,學(xué)習(xí) 數(shù) 碼 管 顯 示 數(shù) 字 和 字 符 的 編 程 方 法 . 試設(shè)計(jì)一簡(jiǎn)易秒表,使得七段符顯示管的 ag 分別接在單片機(jī)的P 口上,輸出低電平時(shí),顯示管點(diǎn)亮, 要求從數(shù)字“ 0”顯示到數(shù)字“ 9”,延時(shí)間隔為 1 秒。 if(i==2) { i=0。 } } } } void INTO_Timer0() { TMOD=0x01。 if(!key) { b++。 static unsigned char k。本次的實(shí)際經(jīng)驗(yàn)之后,讓我對(duì)單片機(jī)定時(shí)賦初值有了更新的認(rèn)識(shí),對(duì)程序的循環(huán)順序、結(jié)構(gòu)類(lèi)型都有了非常深刻的認(rèn)識(shí),對(duì)真正硬件的連接也有了認(rèn)識(shí),不再將自己的知識(shí)局限于自己狹隘的空間中。 軟件編譯采用 KEIL C51 軟件 , Keil C51 是美國(guó) Keil Software 公司出品的 51 系列兼容單片機(jī) C 語(yǔ)言軟件開(kāi)發(fā)系統(tǒng), 與匯編相比, C 語(yǔ)言在 10 功能上、結(jié)構(gòu)性、可讀性、可維護(hù)性上有明顯的優(yōu)勢(shì),因而易學(xué)易用。具有模擬電路仿真、數(shù)字電路仿真、單片機(jī)及其外圍電路組成的系統(tǒng)的仿真、 RS232 動(dòng)態(tài)仿真、 I2C 調(diào)試器、 SPI 調(diào)試器、鍵盤(pán)和 LCD 系統(tǒng)仿真的功能;有各種虛擬儀器,如示波器、邏輯分析儀、信號(hào)發(fā)生器等 。而在芯片內(nèi)部, XTAL1 和 XTAL2 之間跨接晶體振蕩器和微調(diào)電容,從而構(gòu)成一個(gè)穩(wěn)定的自激振蕩器。 3 系統(tǒng)硬件設(shè)計(jì) 本系統(tǒng)由控制器模塊、 復(fù)位模塊 、 LED 顯示模塊組成,系統(tǒng)硬件組成框圖如圖 1 所示。 2 系統(tǒng)設(shè)計(jì) 設(shè)計(jì)任務(wù)與要求 設(shè)計(jì)任務(wù) 掌 握 數(shù) 碼 管 顯 示 控 制 系 統(tǒng) 的 顯 示 原 理 ,學(xué) 習(xí) 數(shù) 碼 管顯 示 數(shù) 字 和 字 符 的 編 程 方 法 . 試設(shè)計(jì)一簡(jiǎn)易秒表,使得七段符顯示管的 ag 分別接在單片機(jī)的 P 口上,輸出低電平時(shí),顯示管點(diǎn)亮, 要求從數(shù)字“ 0”顯示到數(shù)字“ 9”,延時(shí)間隔為 1 秒。所有這些,都是以鐘表數(shù)字化為基礎(chǔ)的。 關(guān)鍵字 :秒表;單片機(jī) AT89S52;硬件;軟件;仿真 Abstract: The design of the multifunction stopwatch system uses AT89S52 microcontroller as the central device, and use its timer / counter timing and the count principles, bined with display circuit, LED digital tube, as well as the external interrupt circuit to design a timer. Be able to correctly time at the same time to record a time, and the next time after the last time the time to search automatically added a second in which software systems using assembly language programming, including the display program, timing, interrupt service, external interrupt service routine, delay procedures, key consumer shaking procedures, and KEIL in the missioning, operation, hardware system uses to achieve PROTEUS powerful, simple and easy to observe the cut in the simulation can be observed on the actual working condition. Keyword: Stopwatch; AT89S52 scm; Hardware; Software; Simulation 2 1 緒論 當(dāng)今,計(jì)算機(jī)技術(shù)帶來(lái)了科研和生產(chǎn)的許多重大飛躍,微型計(jì)算機(jī)的應(yīng)用已滲透到生產(chǎn)、生活的各個(gè)方面。 贛 南 師 范 學(xué) 院 物理與電子信息學(xué)院 課程設(shè)計(jì)Ⅳ 設(shè)計(jì) 報(bào)告書(shū) 基于 AT89S52 單片機(jī)的 10 秒秒表的設(shè)計(jì) 姓名: 班級(jí): 09 電子信息工程 學(xué)號(hào): 指導(dǎo)老師: 時(shí)間: