【正文】
的雙通道IO位D/A轉(zhuǎn)換器可 以完成用戶訓(xùn)練、識(shí)別等各種操作的語音提示。整個(gè)顯示過程中采。LED顯示器中每個(gè)發(fā)光二極管要通過5~20mA電流才能達(dá)到正常亮度,而SPCEO61A的IO口輸出電流可達(dá)到5mA,不用驅(qū)動(dòng)電路即可達(dá)到正常亮度。SPCE061A內(nèi)置8通道1O位模/數(shù)轉(zhuǎn)換器,其中7個(gè)通道用于將模擬信號(hào)(例如電壓信號(hào))轉(zhuǎn)換為數(shù)字量信號(hào),1個(gè)通道只用于語音輸入,即通過內(nèi)置自動(dòng)增益控制放大器的麥克風(fēng)通道(MIC—IN)輸入。語音輸入由于受到外部環(huán)境的干擾,有可能出現(xiàn)錯(cuò)誤,但通過多次的訓(xùn)練可以使語音對(duì)比和識(shí)別有很大的提高。系統(tǒng)主要由凌陽SPCE061A單片機(jī)、MIC輸入電路、語音輸出電路、44鍵盤、6位七段LED顯示、輸出控制及FLASH存儲(chǔ)器組成。語音識(shí)別并配合電子密碼鎖的普通鎖具功能,實(shí)現(xiàn)雙重安全保障作用。s personality parameters reference template.SCM SPCE061A plete identification and display, the drive to realize the implementation of the electromagnetic lock function, and to detect its drive current value, to receive alarm signals sent by sensors, such as sending data. SCM receive the type code, and stored in FLASH in the password, if the correct password, the drive for the implementation of the electromagnetic lock, if your password is not correct, allowing operators to reenter your password, can enter up to three If the three are not correct, the MCU through intelligent munication lines to monitor the police. SCM will unlock operation and each time the electromagnetic actuator drive current value as a status information sent to the smart monitor, will receive the report from the sensor interface information is also sent to the intelligent monitoring, as smart Analysis of the basis. In the transmitter, electronic locks through the pulse transformer T will modulation good boost after data signals sent out in the receiver, pulse transformer T will receive the data signal demodulator buck evacuation to reduce the carrier signal transmission In the process of wear and tear. In order to reduce munication and mutual interference between the power supply, chokes L, the choice of coupling capacitance C to prehensive considerations, shown in Figure 4, a carrier frequency f0400kHz, in order to ensure that most of the energy transmission signal to the receiver Duan, L for a H, ~ surveillance function is to prevent the destruction of munication lines and electromagnetic actuator, for some reason the flow of electromagnetic coil currents too large burning coil. Current Monitor by MAXIM pany39。s integrated development environment, Can easily plete the design of hardware and software programming, thus achieving the abovementioned functions. Voice electronic code lock system is the core of speech recognition module. SPCE061A is Sunplus has developed a very high price of the 16bit microcontroller, embedded 2 K word of SRAM and 32 K word FLASH, with 32 programmable multipurpose I / O ports include 7 Channel 1 OGeneral A / D converter, builtin microphone amplifier, AGC function of the single voice of A / D converter, and the audio output of the dualchannel 1 Obit D / A converter in the V ~ operating range of frequency range of MHz ~ , high processing speed enable it to easily and quickly handle plex digital signal。().[9] 李伯成 微型計(jì)算機(jī)原理與接口技術(shù)[M] 北京:清華大學(xué)出版社 2005年1月.[17] AT89S51 DATA SHEEP Philips SemiSonduStors [J]. 2009[18] AT89S51 DATA SHEEP Philips SemiSonduStors [J]. 2009[19] Texas Instruments InSorporated, AT89S51 Family User’s Guide.[20] Voice of Electronic Passwordlock Design, China Control Net ,2008[21] Design Serial Infrared PhysiSalL ayer SpeSifiSation, Version . Ostober 15,1998附錄A 外文資料翻譯Voice of Electronic Passwordlock DesignThe design is the use of voice recognition technology and keyboard input, Sunplus SPCE061A SCM in achieving a voice electronic password lock authentication system. Voice recognition and electronic password lock function of the ordinary locks, and dual role of security. The password lock safe, effective, reliable, but also has voice recognition, password Preferences, confidentiality strong, tips and other features of error. As people39。關(guān)注我設(shè)計(jì)的進(jìn)程對(duì)于我遇到的設(shè)計(jì)方面的困難給以專業(yè)知識(shí)方面的講解和指導(dǎo)。 | 圖 顯示電路 開鎖電路通過單片機(jī)開鎖執(zhí)行機(jī)構(gòu),電路驅(qū)動(dòng)電磁鎖吸合,從而達(dá)到開鎖的目的,當(dāng)用戶輸入的密碼正確時(shí),單片機(jī)便輸出開門信號(hào),送到開鎖驅(qū)動(dòng)電路,然后驅(qū)動(dòng)電磁鎖,達(dá)到開門的目的。本設(shè)計(jì)的顯示部分由液晶顯示器LCD1602取代普通的數(shù)碼管來完成。然后啟動(dòng)程序,進(jìn)行保護(hù),再次在鍵盤上輸入密碼,系統(tǒng)進(jìn)行掃描,如果和之前一樣,則執(zhí)行相同程序,如不是,則執(zhí)行另一種程序。下圖為發(fā)送同步碼和16位地址碼的程序框圖。ABS文件由OH51轉(zhuǎn)換成標(biāo)準(zhǔn)的Hex文件,以供調(diào)試器dScope51或tScope51使用進(jìn)行源代碼級(jí)調(diào)試,也可由仿真器使用直接對(duì)目標(biāo)板進(jìn)行調(diào)試,也可以直接寫入程序存貯器如EPROM中。C51工具包的整體結(jié)構(gòu),其中uVision與Ishell分別是C51 for Windows和for Dos的集成開發(fā)環(huán)境(IDE),可以完成編輯、編譯、連接、調(diào)試、仿真等整個(gè)開發(fā)流程。用過匯編語言后再使用C來開發(fā),體會(huì)更加深刻。R1的作用在于限制按鍵按下瞬間電容C1的放電電流,避免產(chǎn)生火花,以保護(hù)按鍵觸。增加手動(dòng)復(fù)位按鍵是為了避免死機(jī)時(shí)無法可靠復(fù)位。在復(fù)位期間(即RST為高電平期間),P0口為高組態(tài),P1-P3口輸出高電平;外部程序存儲(chǔ)器讀選通信號(hào)PSEN無效。光標(biāo)加1), N=0(讀或?qū)懸粋€(gè)字符后地址指針減1 amp。3 顯示地址1234567891011121314151600H01H02H03H04H05H06H07H08H09H0AH0BH0CH0DH0EH0FH40H41H42H43H44H45H46H47H48H49H4AH4BH4CH4DH4EH4FH 0011 00004RSRS為寄存器選擇,高電平時(shí)選擇數(shù)據(jù)寄存器、低電平時(shí)選擇指令寄存器。為了結(jié)束讀操作,主機(jī)必須在第9個(gè)周期時(shí)發(fā)出停止條件或者在第9個(gè)時(shí)鐘周期內(nèi)保持SDA為高電平、然后發(fā)出停止條件。2)寫操作:寫操作分為字節(jié)寫和頁(yè)面寫兩種操作,對(duì)于頁(yè)面寫根據(jù)芯片的一次裝載的字節(jié)不同有所不同。主器件和從器件都可以工作于接收和發(fā)送狀態(tài)。帶有I2C接口的單片機(jī)有:CYGNAL的 C8051F0XX系列,PHILIPSP87LPC7XX系列,MICROCHIP的PIC16C6XX系列等。 應(yīng)答信號(hào):接收數(shù)據(jù)的IC在接收到8bit數(shù)據(jù)后,向發(fā)送數(shù)據(jù)的IC發(fā)出特定的低電平脈沖,表示已收到數(shù)據(jù)。各種被控制電路均并聯(lián)在這條總線上,但就像電話機(jī)一樣只有撥通各自的號(hào)碼才能工作,所以每個(gè)電路和模塊都有唯一的地址,在信息的傳輸過程中,I2C總線上并接的每一模塊電路既是主控器(或被控器),又是發(fā)送器(或接收器),這取決于它所要完成的功能。主機(jī)和從機(jī)的數(shù)據(jù)傳送,可以由主機(jī)發(fā)送數(shù)據(jù)到從機(jī),也可以由從機(jī)發(fā)到主機(jī)。 總線的運(yùn)行(數(shù)據(jù)傳輸)由主機(jī)控制。所有接到I2C總線設(shè)備上的串行數(shù)據(jù)SDA都接到總線的SDA上,各設(shè)備的時(shí)鐘線SCL接到總線的SCL上。 I2C總線介紹I2C(Inter-Integrated Circuit)總線是一種由PHILIPS公司開發(fā)的兩線式串行總線,用于連接微控制器及其外圍設(shè)備。管腳描述:SCL 為串行時(shí)鐘:串行時(shí)鐘輸入管腳用于產(chǎn)生器件所有數(shù)據(jù)發(fā)送或接收的時(shí)鐘這是一個(gè)輸入管腳。C規(guī)程,使用主/從機(jī)雙向通信,主機(jī)(通常為單片機(jī))和從機(jī)(AT24C02)均可工作于接收器和發(fā)送器狀態(tài)。為降低總的寫入時(shí)間,一次操作可寫入多達(dá)8個(gè)字節(jié)的數(shù)據(jù)。C總線式進(jìn)行數(shù)據(jù)讀寫的串行器件,占用很少的資源和I/O線,并且支持在線編程,進(jìn)行數(shù)據(jù)實(shí)時(shí)的存取十分方便。在掉電模式下,保存RAM的內(nèi)容并且凍結(jié)振蕩器,禁止所用其他芯片功能,直到下一個(gè)硬件復(fù)位為止。在芯片擦操作中,代碼陣列全被寫“1”且在任何非空存儲(chǔ)字節(jié)被重復(fù)編程以前,該操作必須被執(zhí)行。石晶振蕩和陶瓷振蕩均可采用。XTAL1:反向振蕩放大器的輸入及內(nèi)部時(shí)鐘工作電路的輸入。但在訪問外部數(shù)據(jù)存儲(chǔ)器時(shí),這兩次有效的/PSEN信號(hào)將不出現(xiàn)。如果微處理器在外部執(zhí)行狀態(tài)ALE禁止,置位無效。然而要注意的是:每當(dāng)用作外部數(shù)據(jù)存儲(chǔ)器時(shí),將跳過一個(gè)ALE脈沖。ALE/PROG:當(dāng)訪問外部存儲(chǔ)器時(shí),地址鎖存允許的輸出電平用于鎖存地址的地位字節(jié)。作為輸入,由于外部下拉為低電平,P3口將輸出電流(ILL)這是由于上拉的緣故。在給出地址“1”時(shí),它利用內(nèi)部上拉優(yōu)勢(shì),當(dāng)對(duì)外部八位地址數(shù)據(jù)存儲(chǔ)器進(jìn)行讀寫時(shí),P2口輸出其特殊功能寄存器的內(nèi)容。P2口:P2口為一個(gè)內(nèi)部上拉電阻的8位雙向I/O口,P2口緩沖器可接收,輸出4個(gè)TTL門電流,當(dāng)P2口被寫“1”時(shí),其管腳被內(nèi)部上