【正文】
術(shù)的發(fā)展,特別是單片機(jī)的問世,出現(xiàn)了帶微處理器的智能密碼 控制系統(tǒng) ,它除具有傳統(tǒng) 電子密碼 控制系統(tǒng) 的功能外,還引入了智能化管理、專家分析系統(tǒng)等功能,從而使密碼 控制系統(tǒng) 具有很高的安全性、可靠性,應(yīng)用日益廣泛。 目 錄 中文摘要 …………………… ...………………………………………………… .Ⅰ 英文摘要 ………………………………… ……………………………………… ..Ⅱ 1 引言 ..................................................................................................... 1 選題背景 ................................................................................... 1 電子密碼控制簡介 .................................................................... 1 電子密碼控制的發(fā)展趨勢 ........................................................ 1 本設(shè)計(jì)所要實(shí)現(xiàn)的目標(biāo) ............................................................ 2 2 設(shè)計(jì)方案的選擇 .................................................................................. 3 方案一:采用數(shù)字電路控制 .................................................... 3 方案二:采用以單片機(jī)為核心的控制方案 ............................. 3 3 主要元器件介紹及 I2C 總線說明 ........................................................ 4 主控芯片 AT89C52..................................................................... 4 AT89C52 性能簡介 .................................................................. 4 AT89C52 引腳功能說明 ............................................................ 5 AT89C52 芯片內(nèi)部結(jié)構(gòu) ............................................................ 7 7SEGMPX6CABLUE 顯示器 ............................................. 8 晶體振蕩器 ............................................................................. 8 AT24C02 串行 EEPROM .............................................................. 9 I2C 總線說明 ........................................................................ 10 4 系統(tǒng)硬件構(gòu)成 .................................................................................... 14 設(shè)計(jì)原理 ................................................................................. 14 電路總圖構(gòu)成 ......................................................................... 14 電源輸入部分 ......................................................................... 15 鍵盤輸入部分 ......................................................................... 15 復(fù)位部分 ................................................................................. 16 晶振部分 ................................................................................. 17 顯示部分 ................................................................................. 17 報(bào)警部分 ................................................................................. 18 5 系統(tǒng)軟件設(shè)計(jì) .................................................................................... 19 主程序流程圖 ......................................................................... 19 按鍵功能流程圖 ..................................................................... 19 密碼設(shè)置流程圖 ..................................................................... 20 開鎖流程圖 ............................................................................. 21 結(jié)論 ....................................................................................................... 23 致謝 ....................................................................................................... 24 參考文獻(xiàn) ................................................................... 錯(cuò)誤 !未定義書簽。 Singlechip。經(jīng)實(shí)驗(yàn)證明,該密碼控制系統(tǒng)具有設(shè)計(jì)方法合理,簡單易行,成本低,安全使用等特點(diǎn),符合車輛、辦公室用鎖要求,具有推廣價(jià)值。這種電路設(shè)計(jì)具有防試探按鍵輸入、智能控制上鎖、開鎖、報(bào)警、修改密碼等多種功能。該系統(tǒng)采用 AT89C52單片機(jī)和 AT24C02串行 EEPROM,通過 AT89C52模擬 I2C 總線和 AT24C02 通訊 ,實(shí)現(xiàn)密碼控制的功能。 基于 AT89C52 的多功能密碼控制系統(tǒng)的設(shè)計(jì) 摘 要 隨著科技的日益發(fā)展,電子密碼控制系統(tǒng)已越來越符合人們的要求。本文介紹了基于單片機(jī)和串行 EEPROM 的智能密碼控制系統(tǒng) ,對系統(tǒng)硬件設(shè)計(jì)和軟件實(shí)現(xiàn)進(jìn)行了詳細(xì)的描述。 本文從經(jīng)濟(jì)實(shí)用的角度出發(fā),采用美國 Atmel 公司的單片機(jī) AT89C52 作為主控芯片與數(shù)據(jù)存儲(chǔ)器單元,結(jié)合外圍的矩陣鍵盤輸入、 LCD 液晶顯示、報(bào)警、開鎖等 ,用 C 語言編寫主控芯片的控制程序與 EEPROM 讀寫程序相結(jié)合,設(shè)計(jì)了一款可以多次更改密碼,具有報(bào)警功能的電子密碼控制系統(tǒng)。密碼長度可變、保密性強(qiáng)、靈活性高。 關(guān)鍵詞 密碼控制;單片機(jī); EEPROM 讀寫程序 THE DESIGN OF MULTIFUNCTIONS PASSWORD CONTROL SYSTEM BASED ON AT89C52 ABSTRACT As the development of science and technology day by day, the key control system is more in line with the requirements of people. The paper presents a cryptographic smart password control based on MCU and serial EEPROM, describes hardware structure and software design of the system. It adopts AT89C52 and AT24C02, realizes the function of cryptographic smart password control. AT89C5 municates with AT24C02 by I2C bus to achieve the password control function. This article from the economical and practical point of view, the use of the United States Atmel Corporation AT89C52 microcontroller as a master chip and the data memory unit, bined with the external matrix keyboard input, LED digital display, alarm, unlock and so on, dominated by the C programming language chip EEPROM of the control procedures and the bination of reading and writing program designed to change a password many times, the police function with the electronic the password control. This circuit design with antitest button input, intelligent control lock, unlock, alarm, multiple functions, such as Change Password. Password length can be changed, even more secret and flexible than show that the password control system is characterized by its reasonable designing methods, simple operation, low cost and property of safety and practicality. Besides, the password control can be used in the office and has great potential for mercial development. KEY WORD Password control。 EEPROM read and write procedures。 附錄 : 程序 ............................................................................................ 27 1 1 引言 選題背景 在安全技術(shù)防范領(lǐng)域,具有防盜報(bào)警功能的電子密碼 控制系統(tǒng) 逐漸代替?zhèn)鹘y(tǒng)的機(jī)械式密碼 控制系統(tǒng) ,克服了機(jī)械式密碼 控制的 密碼量少、安全性能差的缺點(diǎn),使 電子密碼 控制系統(tǒng) 無論在技術(shù)上還是在性能上都大大提高 了 一步。 電子密碼控制簡介 電子密碼控制是一種通過密碼輸入來控制電路或是芯片工作,從而控制機(jī)械開關(guān)的閉合,完成開鎖、閉鎖任務(wù)的電子產(chǎn)品。其特點(diǎn)如下: 1) 保密性好,編碼量多,遠(yuǎn)遠(yuǎn)大于機(jī)械控制。 2) 密碼可變,用戶可以隨時(shí)更 改密碼,防止密碼被盜,同時(shí)也可以避免因人員的更替而使控制的保密性下降。 4) 無活動(dòng)零件,不會(huì)磨損,壽命長。 6) 電子密碼控制系統(tǒng)具有操作簡單易行,一學(xué)即會(huì)的特點(diǎn) 。隨著電子元件的進(jìn)一步發(fā)展,電子密碼控制系統(tǒng)也出現(xiàn)了很多的種類,功能日益強(qiáng)大,使用更加方便,安全保密性更強(qiáng),由以前的單密碼輸入發(fā)展到現(xiàn)在的,密碼加感應(yīng)元件,實(shí)現(xiàn)了更為真正的電子加密,用戶只有