【正文】
鄭州輕工業(yè)學(xué)院 本科畢業(yè)設(shè)計(jì)(論文) 題 目 基于單片機(jī)的智能數(shù)字鐘的設(shè)計(jì) 學(xué)生姓名 專業(yè)班級(jí) 學(xué) 號(hào) 院 (系) 電氣信息工程學(xué)院 指導(dǎo)教師 完成時(shí)間 2021年 12 月 10 日 基于單片機(jī)的智能 數(shù)字鐘的設(shè)計(jì) 摘 要 本設(shè)計(jì)論文介紹了用 AT89C2051 單片機(jī)控制的數(shù)字鐘的硬件結(jié)構(gòu)與軟件設(shè)計(jì) ,給出了匯編語(yǔ)言源程序。此數(shù)字鐘是一個(gè)將“時(shí)”、“分”、“秒” 顯示于人的視覺器官的計(jì)時(shí)裝置。它的計(jì)時(shí)周期為 12 小時(shí),顯示滿刻度為 12 時(shí) 59 分 59秒 99 毫秒,另外應(yīng)有校時(shí)功 能。 電路由時(shí)鐘脈沖發(fā)生器、時(shí)鐘計(jì)數(shù)器、譯碼驅(qū)動(dòng)電路和數(shù)字顯示電路以及時(shí)間調(diào)整電路組成。用晶體振蕩器產(chǎn)生時(shí)間標(biāo)準(zhǔn)信號(hào),這里采用石英晶體振蕩 器。 根據(jù) 60秒為 1分、 60 分為 1小時(shí)、 24小時(shí)為 1天的計(jì)數(shù)周期,分別組成兩個(gè) 60進(jìn)制(秒、分)、一個(gè) 12 進(jìn)制(時(shí))的計(jì)數(shù)器。構(gòu)成秒、分、時(shí)的計(jì)數(shù),實(shí)現(xiàn)計(jì)時(shí)的功能。顯示器件選用 LED七段數(shù)碼管。在譯碼顯示電路輸出的驅(qū)動(dòng)下,顯示出清晰、直觀的數(shù)字符號(hào)。針對(duì)數(shù)字鐘會(huì)產(chǎn)生走時(shí)誤差的現(xiàn)象,在電路中就設(shè)計(jì)有有校準(zhǔn)時(shí)間功能的電路。 關(guān)鍵詞 :?jiǎn)纹瑱C(jī) ; AT89C2051; 數(shù)字鐘 ; 計(jì)時(shí) Based on SCM multipurpose digital clock design Abstract The paper mainly presents the hardware and software design of the digital clock using AT89C2051. The source program using assemble Language is given. This digital clock is a timedevice, which can display hour, minute, second. Its time period is 12 hours and the full scale of the display is 12 hours, 59 minutes, 59 seconds and 99 milliseconds and it has the function of time adjustment. The circuit consists of the clock pulse generator, the clock counter, decoding drive circuit, digital display circuit and the time adjustment circuit. It generates time standard signal using crystal oscillator, here is the quartz crystal oscillator. Because 60 seconds is 1 minute, 60 minutes is 1 hour and 24 hours is 1 day, we uses two counters of 60 parts and a counter of 12 part separately to constitute the count of percentage of second, second, minute, and hour. So it can realize time function. Display ponent selects sevensegment numerical tube LED. Driven by decoding output circuit, it can display showing clear and intuitive figures. Due to walking error of digital clock, we design time calibration circuit in the system. Key words:Singlechip microputer。 AT89C2051。 Digital clock。 Time 目 錄 第 1 章 緒 論 1 前言 1 設(shè)計(jì)的目的及意義 1 第 2 章 數(shù)字鐘的功能實(shí)現(xiàn)與設(shè)計(jì)方案 2 數(shù)字鐘的功能及設(shè)計(jì)要求 2 數(shù)字鐘的實(shí)現(xiàn)形式 2 方案的確定 3 微處理器 3 顯示電路 3 按鍵電路 4 第 3 章 數(shù)字鐘的硬件系統(tǒng)設(shè)計(jì) 5 數(shù)字時(shí)鐘的硬件系統(tǒng)框架 5 數(shù)字時(shí)鐘的主機(jī)電路設(shè)計(jì) 5 系 統(tǒng)控制芯片 CPU( AT89C2051) 的選擇 5 系統(tǒng)時(shí)鐘電路設(shè)計(jì) 10 系統(tǒng)復(fù)位電路設(shè)計(jì) 12 按鍵與按鈕電路設(shè)計(jì) 13 鬧鈴聲光指示電路設(shè)計(jì) 13 數(shù)字鐘的顯示電路設(shè)計(jì) 13 校時(shí)電路 設(shè)計(jì) 183