【正文】
014P 3 .7 / R D17P 3 . 6 / W R16P 3 .5 /T 115P 2 .7 /A 1 528P 2 .0 / A 821P 2 .1 / A 922P 2 .2 /A 1 023P 2 .3 /A 1 124P 2 .4 /A 1 225P 2 .5 /A 1 326P 2 .6 /A 1 427U1A T 8 9 C5 1X1CR Y S T A LC13 3 p FC23 3 p FC31 0 u FR14 .7 KR21 0 kQ1P N P12345678J19 0 3 2 5 3 0 0 8Q2P N PQ3P N PQ4P N PQ5P N PR44 .7 KR54 .7 KR64 .7 KR74 .7 KR81 0 kR91 0 kR 1 01 0 kR 1 11 0 kR 1 21 0 kR 1 31 0 kR 1 41 0 kR 1 51kD2DI O DE L E DD3DI O DE L E DD4DI O DE L E DD5DI O DE L E DD6DI O DE L E DD7DI O DE L E DD8DI O DE L E DD9DI O DE L E DHIJKLMNOV C CY0Y1Y2Y4Y0Y1Y2Y3K1K2K3K4K1K2K3K4V C CP 3 . 0ABCDEFGDP2 134HIJKLMNOG NDG NDP 3 . 0L S 1S P E A K E RA B C D E F G DP1 2 3 4V C CVCCGND 圖 37總體設(shè)計(jì)原理圖 本設(shè)計(jì)電路,硬件部分共由五個(gè)模塊組成:按鍵模塊、復(fù)位電路模塊、晶振電路模塊、發(fā)聲指示模塊、時(shí)間顯示模塊。 K1K2K3K4G N D 圖 34按鍵 電路 顯示電路 時(shí)間顯示部分的電路也很簡(jiǎn)單,由二個(gè)兩位的共 陽(yáng) 8 段數(shù)碼管、四盞 Led 燈。 圖 32時(shí)鐘電路 復(fù)位電路 當(dāng) MCS5l 系列單片機(jī)的復(fù)位引腳 RST(全稱(chēng) RESET)出現(xiàn) 2 個(gè)機(jī)器周期以上的高電平時(shí),單片機(jī)就執(zhí)行復(fù)位操作。因此, LED 數(shù)碼管屬于電流控制型器件,其發(fā)光亮度 L(單位是 cd/ m2)與正向電流 IF 有關(guān),用公式表示: L=KIF 即亮度與正向電流成正比。 數(shù)碼管顯示 工作原理 LED 數(shù)碼管分共陽(yáng)極與共陰極兩種,其工作特點(diǎn)是,當(dāng)筆段電極接低電平,公共陽(yáng)極接高電平時(shí),相應(yīng)筆段可以發(fā)光。外接晶體引腳。 AT89C51 的引腳介紹 AT89C51 單片機(jī)內(nèi)部總線是單總線結(jié)構(gòu) ,即數(shù)據(jù)總線和地址總線是公用的 . AT89C51 有 40 條引腳 , 這 40 條引腳可分為 I/O 接口線、電源線、控制線、外接晶體線 4 部分。 具有十分重要的意義。 本文討論的單片機(jī)多功能時(shí)鐘系統(tǒng)的核心是目前應(yīng)用極為廣泛的 51 系列單片機(jī),配置了外圍設(shè)備,構(gòu)成了一個(gè)可編程的計(jì)時(shí)定時(shí)系統(tǒng),具有體積小,可靠性高,功能多等特點(diǎn)。 本次課程設(shè)計(jì)之 電子時(shí)鐘設(shè)計(jì),具有最簡(jiǎn)單的計(jì)時(shí)功能及調(diào)整時(shí)間的功能。 關(guān)鍵詞: 89C51 芯片 , 數(shù)字電子時(shí)鐘 , 校時(shí) 課 程 設(shè) 計(jì) 用 紙 第 II 頁(yè) ABSTRACT Digital electronic clock is a timing device to display seconds, divided, the use of digital circuit, pared with the traditional mechanical clock, it has the advantages of accurate, intuitive display, no mechanical transmission device. With the development of modern digital technology, digital electronic clock is widely used in all areas of production life, such as the time the program automatic control, regular radio, closed automatically lights, timing switches oven, onoff power equipment etc.. The curriculum design of electronic clock, design, have the function of timing and time to adjust the most simple function. Based on the 89C51 chip and the LED digital tube as the core, supplemented by the necessary circuit, and in the C program design as the basis, form a simple singlechip digital electronic clock. Able to accurately display the time through the digital tube, minutes and seconds, and can be carried out through the key school. Key words: 89C51 chip, digital electronic, clock timing 課 程 設(shè) 計(jì) 用 紙 第 III 頁(yè) 目錄 摘要 ........................................................................................................................................... I ABSTRACT .................................................................................................................................. II 目錄 ......................................................................................................................................... III 第 1 章 前言 ..............................................................................................................................1 課題背景 ..............................