【正文】
智能 鈴 摘要 提示作息時間的打鈴器在各學(xué)校等單位經(jīng)常被使用,其中智能程控打鈴器應(yīng)運(yùn)最廣泛。智能程控打鈴器不但解除了作息管理的麻煩,而且改變了人工打鈴、工控制電器等落后現(xiàn)象,它可以使電器自動的周期性工作。在這里我就是運(yùn)用單片機(jī)以及一些具有特定功能的芯片來實(shí)現(xiàn)程序控制地自動周期性打鈴器,除了打鈴功能外還具備了電子時鐘的功能,在斷過電后,要繼續(xù)準(zhǔn)確的顯示時間和打鈴。在生 活和生產(chǎn)的各個領(lǐng)域中,凡是有自動控制要求的地方幾乎都有單片機(jī)的 身影,都有使用單片機(jī)的需求。單片機(jī)的應(yīng)用大有想象和拓展空間。單片機(jī)穩(wěn)定可靠、體積小 、價格廉價,所以很多科技產(chǎn)品都是采用單片機(jī)來完成所要完成的控制,而要完成這些控制只要把單片機(jī)與計(jì)算機(jī)編寫的程序聯(lián)系起來,就可以做到。因此單片機(jī)在使用中可以根據(jù)程序的不同而改變控制,增加了電路的靈活性。我在設(shè)計(jì)中使用了單片機(jī) AT89S51和芯片 DS12887 來控制打鈴器的一切任務(wù),以及在時鐘電路中用芯片 74HC164 來驅(qū)動數(shù)碼管,用來顯示電子時鐘。 關(guān)鍵詞 智能程控打鈴器單片機(jī) AT89S51 芯片 DS12887 芯片 74HC164 智能程控打鈴器 Intelligent ProgramControlled Ring A Bell 智能程控打鈴器 II Rong Xueqing College of Information, Huaibei, Normal University 235000 Abstract Ringer which can prompts the time of working and resting is familiarity to everyone of us. It is used in all kings of schools and working units. Intelligence P rogrammable Ringer which is one kind of the ringers is most popular used by engin eers. It not only releases the trouble of controlling work and rest, but also changes the way people ring and the lagging phenomenon of manual control electronics and so on. It can makes the machines work proudly. Single chip on puter and chip that has s ome specifically function are the devices I use to control auto periodic the function of auto periodic ring, it also has the function of electric clock. It can re sumes accurately displaying the time and ringing on time after switching of the power. In every domain of the generative life, the single chip on the puter which is used in the place that need auto control emerges almost everywhere. It is used by factory’s very mon. The application of single chip on puter has much larger imagina bly and continuations space. Single chip on puter is stable and reliable. It’s volu me is very small, and the price of it is cheapness. All these are the merits of the single chip on puter. So many science and technology products manufactures use the si ngle chip on puter to realize the controlling. In order to plete these controlling what wo do just connect the single chip on puter to the puter use of the single chip on puter is easy to change with the difference of the progra ms. It make the circuit much more flexi able. The type of single chip on puter that I use is AT89S51 and chip use these two chips to plete all the tasks of controlling ringer. In the timer circuit I use Chip 74HC164 to drive the digital trans istor. The function of the timer circuit is displaying the time. Key words Intelligence Programmable Ringer。 Single chip on puter AT89S51。 Chip DS12887。 Chip 74HC164 智能程控打鈴器 III 目次 引言 ............................................. 1 1 單片機(jī) AT89S51 和時鐘芯片 DS12887 介紹 .......... 2 單片機(jī) AT89S51 介紹 ....................... 2 時鐘芯片 DS12C887 介紹 .................... 12 2 基本理論 ...................................... 18 硬件電路 .................................. 18 .................................. 20 3 電路版制作過程 ................................ 22 電路制作 .................................. 22 原理圖常見錯誤 ............................ 22 PCB 中常見錯 .............................. 23 4 結(jié)論 .......................................... 24 參考文獻(xiàn) ........................................ 25 致謝 ............................. 錯誤 !未定義書簽。 智能程控打鈴器 1 引言 打鈴器是一種常見的電子產(chǎn)品,特別是程控智能打鈴器廣泛應(yīng)用于學(xué)校、機(jī)關(guān)、工廠、車站、碼頭、醫(yī)院、郵電等企事業(yè)單位。打鈴器的數(shù)字化提高了打鈴器的應(yīng)用力度,用單片機(jī)控制的數(shù)字打鈴器可以準(zhǔn)確的對時間進(jìn)行調(diào)整,以及打鈴控制進(jìn)行設(shè)置。由于 應(yīng)運(yùn)了時鐘芯片而使一個普通的打鈴器除了本身的打鈴功能還具備電子時鐘,年歷等功能。 智能程控打鈴器顯而易見是用程序控制的,而編寫程序的目的是對硬件中的單片機(jī)來進(jìn)行控制,從而使硬件電路達(dá)到預(yù)定的要求。何謂單片機(jī):一臺能夠工作的計(jì)算機(jī)要有這樣幾個部份構(gòu)成: CPU(進(jìn)行運(yùn)算、控制)、 RAM(數(shù)據(jù)存儲)、 ROM(程序存儲)、輸入 /輸出設(shè)備(例如:串行口、并行輸出口等)。在個人計(jì)算機(jī)上這些部分被分成若干塊芯片,安裝一個稱之為主板的印刷線路板上。而在單片機(jī)中,這些部分,全部被集中到一塊集成電路芯片中了,所以就稱為單片( 單芯片)機(jī),而且有一些單片機(jī)中除了上述部份外,還集成了其它部分如 A/D, D/A 等。單片機(jī)的應(yīng)用使得電路更加簡單,開發(fā)的成本更加的節(jié)省。與早期單片機(jī)開發(fā)相比,現(xiàn)在單片機(jī)開發(fā)幾乎不可能離開計(jì)算機(jī),學(xué)習(xí)單片機(jī)同樣也需要有計(jì)算機(jī)?,F(xiàn)在對單片機(jī)功能的開發(fā)不僅要對它的原理和功能有所了解,更始需要我們在設(shè)計(jì)的同時把單片機(jī)與計(jì)算機(jī)編寫程序聯(lián)系起來,以使單片機(jī)能夠更好的完成預(yù)定的任務(wù)。本次課題中就應(yīng)用到了計(jì)算機(jī)為單片機(jī)編寫控制程序。而且現(xiàn)在在單片機(jī)的開發(fā)上更有軟件所占的比重大過硬件的趨勢,這就意味著外部電路越來越簡單而通 過編寫軟件來完成的功能越來越多。 智能程控打鈴器 2 1 單片機(jī) AT89S51 和時鐘芯片 DS12887 介紹 由于在我的設(shè)計(jì)方案中主要是靠單片機(jī) AT89S51和時鐘芯片 DS12887來實(shí)現(xiàn)打鈴和 電子時鐘功能的,所以我先詳細(xì)介紹下它們。 單片機(jī) AT89S51 介紹 AT89S51是一種帶 4K字節(jié)閃爍可編程可擦除只讀存儲器( FPEROM— Falsh Program mable and Erasable Read Only Memory)的低電壓,高性能 CMOS8位微處理器,俗稱單片機(jī) 。該器件采用 ATMEL高密度非易失存儲器制造技術(shù)制造,與工業(yè)標(biāo)準(zhǔn)的 MCS51指令集和輸出管腳相兼容。由于將多功能 8位 CPU和閃爍存儲器組合在單個芯片中, ATMEL的 AT89S51是一種高效微控制器,為很多嵌入式控制系統(tǒng)提供了一種靈活性高且價廉的方案。 AT89S51的引腳功能圖,如圖 1所示: 圖 1 : ?與 MCS51 兼容 ?4K字節(jié)可編程閃爍存儲器 ?數(shù)據(jù)保留時間: 10年 ?全靜態(tài)工作: 0Hz24Hz ?三級程序存儲器鎖定 ?128*8位內(nèi)部 RAM ?32可編程 I/O線 ?兩個 16位