【正文】
implementation procedures. Internal clock used in the design mode, then ends in the XTAL1 and XTAL2 crystal, and the internal stability of the reverse device constitutes a selfexcited oscillator clock pulse sent directly into the onchip timing control unit, the LCD clock last by 6 LCD display tube display, when minutes and seconds Segment LCD display with 基于單片機(jī)的液晶屏顯示的電子時(shí)鐘設(shè)計(jì) V sevensegment display, its structure, except in the electrode plate a to g of these seven strokes, the lower electrode plates are also sprayed with the strokes corresponding to the dayshaped electrode, and then the publicside COM. Another clock proofing and proofreading ordinary electronic watches using the same mode of operation to plete, just press K1, K2 of these two keys to the school when the school hours. AT89C52 the XTAL1 and XTAL2, respectively reverse the input and output, RST as a reset input, which were followed by a pullup resistor, pin is pulled, P1 mouth as an electronic clock Choice, P3 mouth part as an electronic clock outputs. Key words electronic clock MCU LCD 基于單片機(jī)的液晶屏顯示的電子時(shí)鐘設(shè)計(jì) VI 目 錄 摘 要 ........................................................................................................................ III Abstract ................................................................................................................... IV 1 概述 ............................................................................................................................ 1 ................................................................ 1 2 系統(tǒng)總體方案及硬件設(shè)計(jì) ............................................................................................. 2 ............................................................................................ 2 ...................................................................................................... 2 時(shí)鐘電路 ................................................................................................. 2 復(fù)位電路 ................................................................................................. 3 LCD 顯示電路 ........................................................................................ 4 AT80C51 單片機(jī)芯片 .............................................................................. 4 3 軟件設(shè)計(jì) ..................................................................................................................... 7 流程圖 ......................................................................................................... 7 4 ROTEUS 軟件下的仿真 ................................................................................................. 9 軟件介紹 ..................................................................................................... 9 ...................................................................................................... 9 5 結(jié)論 ........................................................................................................................... 12 參考文獻(xiàn) ................................................................................................................... 13 致 謝 ........................................................................................................................ 14 附 錄 1 .................................................................................................................... 15 附 錄 2 .................................................................................................................... 16基于單片機(jī)的液晶屏顯示的電子時(shí)鐘設(shè)計(jì) 1 1 概述 單片機(jī)即微處理器,自 1976 年 Inter 公司推出的 MCS48,迄今已有 20多年了。 時(shí)鐘,自從它發(fā)明的那天起,就成為人類(lèi)的朋友,但隨著時(shí)間的推移,科學(xué)技術(shù)的不斷發(fā)展,人們對(duì)時(shí)間計(jì)量的精確度要求越來(lái)越高,應(yīng)用越來(lái)越廣。 現(xiàn)今,高精度的計(jì)時(shí)工具大多數(shù)都使用了石英晶體振蕩器,由于電子鐘,石英表,石英鐘都采用了石英技術(shù),因此走時(shí)精度高,穩(wěn)定性好,使用方便,不需要經(jīng)常調(diào)校,數(shù)字 式電子鐘用集成電路計(jì)時(shí),譯碼代替機(jī)械式傳動(dòng),用 LED 顯示器代替顯示器代替指針顯示進(jìn)而顯示時(shí)間,減小了計(jì)時(shí)誤差,這種表具有時(shí),分,秒顯示時(shí)間的功能,還可以進(jìn)行時(shí)和分的校對(duì),片選的靈活性好。 1. 任選一款 51 系列單片機(jī) 2. 能完成時(shí)分秒的顯示 3. 能完成校對(duì)時(shí)分 PROTEUS 軟件進(jìn)行仿真 基于單片機(jī)的液晶屏顯示的電子時(shí)鐘設(shè)計(jì) 2 2 系統(tǒng)總體方案及硬件設(shè)計(jì) 采用 AT89C52 來(lái)設(shè)計(jì)液晶電子鐘。從圖中可以看出該設(shè)計(jì)有微處理器模塊,串行口通信模塊,時(shí)鐘模塊,數(shù)據(jù)存儲(chǔ)模塊以及顯示模 塊等組成。但由于圖中的 C C2 電容起著系統(tǒng)時(shí)鐘頻率微調(diào)和穩(wěn)定的作用,因此,在本時(shí)鐘系統(tǒng)的的實(shí)際應(yīng)用中一定要正確的選擇參數(shù) ( 30? 3 PF) ,并保證對(duì)稱(chēng)性(盡可能匹配),選用正牌廠家生產(chǎn)的瓷片或云母電容,如果可能的話,溫度系數(shù)要盡可能地低。 基于單片機(jī)的液晶屏顯示的電子時(shí)鐘設(shè)計(jì) 3 圖 2 系統(tǒng)時(shí)鐘電路 復(fù)位電路 隨著微電