【正文】
電 子 時 鐘 的 設(shè) 計(jì) 與 制 作 鄭州輕院輕工職業(yè)學(xué)院 ??飘厴I(yè)設(shè)計(jì)(論文) 題 目 電子時鐘的設(shè)計(jì)與制作 學(xué)生姓名 王 愛 鋒 專業(yè)班級 08 級電子信息工程技術(shù)一班 學(xué) 號 0 8 1 0 3 1 8 2 系 別 機(jī) 電 工 程 系 指導(dǎo)教師 (職稱 ) 趙文麗(講師) 完成時間 2021年 4 月 15 日 電 子 時 鐘 的 設(shè) 計(jì) 與 制 作 摘 要 基于 51 單片機(jī)可校時數(shù)字時鐘電路設(shè)計(jì),單片機(jī)計(jì) 算機(jī)即單片微型計(jì)算機(jī)。( SingleChip Microputer )是集 CPU ,RAM ,ROM ,計(jì)數(shù)和多種接口于一體的微控制器。 石英晶體振蕩器是高精度的計(jì)時工具,而電子鐘,石英表,石英鐘都采用了石英技術(shù),因此計(jì)時精度高,穩(wěn)定性好,使用方便,不需要經(jīng)常調(diào)校。而數(shù)字式電子鐘用集成電路計(jì)時時,譯碼代替機(jī)械式傳動,用 LED 顯示器代替指針顯示進(jìn)而顯示時間,減小了計(jì)時誤差,這種表具有時,分,秒顯示時間的功能,還可以進(jìn)行時和分的校對,片選的靈活性好。本文利用單片機(jī)實(shí)現(xiàn)數(shù)字時鐘計(jì)時功能的主要內(nèi)容,其中 AT89S51是核心元件同時采用數(shù)碼管動態(tài)顯示“時”,“分”,“秒”的現(xiàn)代計(jì)時裝置。與傳統(tǒng)機(jī)械表相比,它具有走時精確 ,顯示直觀等特點(diǎn)。它的計(jì)時周期為 24小時,顯滿刻度為“ 23 時 59 分 59 秒”,另外具有校時功能,斷電后有記憶功能,恢復(fù)供電時可實(shí)現(xiàn)計(jì)時同步等特點(diǎn)。 本設(shè)計(jì)由單片機(jī) AT89S51 芯片和 LED 數(shù)碼管為核心,輔以必要的電路,構(gòu)成了一個單片機(jī)數(shù)字時鐘。 關(guān)鍵詞 : 單片機(jī) 數(shù)字時鐘 LED 數(shù)碼管顯示 按鍵 電 子 時 鐘 的 設(shè) 計(jì) 與 制 作 Abstract The base and 51 digital clock when the microcontroller can be the school circuit design, singlechip puter that is singlechip microputer. (SingleChip Microputer) is a CPU, RAM, ROM, counting and multiple interfaces in one microcontroller. Quartz crystal oscillator is a highprecision timing tools, electronic clock, quartz watch, quartz is used quartz technology, high precision timing, good stability, easy to use, does not require frequent adjustment. The digital electronic clock with the time integrated circuits, the decoding instead of mechanical transmission, with LED display instead of a pointer display and then display the time and reduce the timing error, this table has the hours, minutes and seconds displays the time function, but also in progress and subproofreading, the flexibility of a good chip select. In this paper, MCU function digital clock timing the main contents of which AT89S51 is a core element at the same time the use of digital control dynamic display time, sub, second modern timing devices. Compared with the traditional mechanical watch, it has a traveltime accuracy, display and intuitive and so on. It is a time period of 24 hours, substantially fullscale as 23:59:59, another time with a school function, memory function after power outages, power restoration can be realized when the time synchronization and so on. The design by the MCU AT89S51 chip and LED digital tube as the core, supplemented by the necessary circuitry to form a single chip digital clock. Key words: shrapnel machine digital clock LED digital tube display button 電 子 時 鐘 的 設(shè) 計(jì) 與 制 作 目 錄 引言 …………. ………… . ………. ……… …. …………. … ……… .… …. …………. 1 1 AT89S51 芯片簡介: ............................................................................. 2 內(nèi)部結(jié)構(gòu) ...................................................................................... 2 . 中央處理器: ........................................................................................... 3 . 數(shù)據(jù)存儲器( RAM): .......................................................................... 3 89S51 的引腳說明: ................................................................... 4 . Pin9: RESET/Vpd 復(fù)位信號復(fù)用腳: ................................................. 5 . Pin30: ALE/PROG 引腳: ..................................................................... 5 . Pin31: EA/Vpp 引腳: ............................................................................ 6 2 驅(qū)動器 74LS245 簡介: .................................................................... 7 3 LED 數(shù)碼管簡介 ..................................................................................... 8 LED 數(shù)碼管顯示器結(jié)構(gòu)與原理 .................................................. 8 LED 顯示器接口及顯示方式 ...................................................... 8 . 數(shù)碼管使用條件: ................................................................................... 9 . 數(shù)碼管使用注意事項(xiàng): ......................................................................... 10 4 相關(guān)硬件的其他元器件的簡介 ....................................................... 11 晶體振蕩器簡介 .......................................