【正文】
audio output circuit Sunplus SPCE061A MCU with audio output of dualchannel 1 Obit D / A converters can plete user training, identification of various operations, such as the voice prompts. SPCE061A provide audio lose A way for the dualchannel DAC, in this manner, DAC1 and DAC2 conversion of analog current output signal passed AUD1 and AUD2pin output, enter the number of volume into the PDAC1 (write) (0 x7017) and P DAC2 (write) (0 x7016) unit.178。nSPTM mand system also provides high puting speed of 16 16bit multiplication instructions and directives within the plot operation, the DSP for the application of additional features in a plex digital signal processing both Very convenient than the DSP chip for much cheaper.178。 suspension system to support 1 O interrupt vector And l4 from the system can be a clock, timer / counter, time benchmark generator, external interrupt, key wakeup call, Universal Asynchronous serial munication and software interruption interrupt source, Very suitable for realtime applications。s personality characteristics and parameters Store, a speaker parameters database. In recognition, will be voice recognition and speaker parameters database matching, voice recognition and plete control of the keyboard, and activate or release of locks, the final pletion of the lock. System is relying on hardware and software to closely cooperate with the Sunplus SPCE061A SCM flexible control achieved.Voice entry due to the interference of external environment, it is possible errors, but through a number of training can make parison and identification of voice greatly improved3 system hardware design The system using a single kernel of Sunplus SPCE061A, the chip has ADC, DAC, timer / counter, RAM, FLASH, and other devices, coupled with appropriate external circuit and supporting Sunplus pany39。s living standards improve and strengthen the sense of security, safety locks system bees essential, therefore a password lock, magnetic locks, electronic locks, laser lock, voiceactivated lock locks, etc., they are On the basis of traditional keys, using one or more passwords, different voices, different magnetic field, different sound, different light beams of different images (such as fingerprints, retina retina, etc.) to control open the lock. In this paper, using speech recognition technology and keyboard to control the importation of the integration of SCM in Sunplus SPCE061A achieve a voice on the electronic certification system password lock.2 voice electronic passwordlock system This system is mainly posed of Sunplus SPCE061A SCM, MIC input circuit, voice output circuit, 4 4 keyboard, six Qiduan LED display and output control and FLASH memory ponents. System is the main function: the training, the speaker39。 voice recognition, electronic password lock。跳出 0275 AT_WRON:LCALL AT_WR 0277 LCALL XSF 0279 LCALL BP 027B LCALL T100MSD 027D LCALL BP 027F LCALL T500MSD 0281 LCALL KILLXS 0283 LCALL T500MSD 0285 LCALL XSF 0287 LCALL T500MSD 0289 LCALL KILLXS 028B LCALL T500MSD 028D LCALL XSF 028F LCALL T500MSD 0290 NOP 0291 NOP 0292 LCALL XSA 0294 AJMP EXIT 0297 OPEN:MOV A, TIMERS1 029B CJNE A, 09H,CLT1 029E CLT1:JC GOON1 02A1 MOV TIMERS1,00H 02A4 GOON1:INC TIMERS1 。錯誤次數(shù)小3次 024B LCALL XSE 調(diào)用密碼錯誤狀態(tài)程序 024D LCALL WARN2S 報警 024F LCALL LOCK_1M 鎖定一分鐘 025B NEXT1:LCALL WARN2S 。密碼比較正確,則調(diào)用開鎖子程序 0240 LCALL XSD 0242 INC TIMERS2 0244 MOV R7,TIMERS2 。 0239 LCALL AT_RADE 023B LCALL C_PSW 。鳴笛子程序 0227 LCALL T100MSD 022A SETB SPK 022C NOP022D RET按鍵的功能描述 022E EN:NOP 022F JB BUF_FULL, GOON 0233 AJMP EXIT 0235 GOON:CLR BUF_FULL 0236 JB F_F2, AT_WRON 。鎖定1分鐘 020B M1_LOOP:LCALL SEC 020E DJNZ R4,M1_LOOP 0211 NOP 0212 RET 0213 WARN2S:PUSH PSW 0215 PUSH ACC 0217 MOV R5, 14H 。密碼輸入的次數(shù)清零。查看現(xiàn)在的狀態(tài)以防誤按 0183 SETB TR1 。消除AT緩沖,調(diào)電存儲后一定要加上 0129 LCALL XSC 012C LCALL BP 012F LCALL BP 0132 LCALL T100MSD 0135 LCALL BP 0138 CLR FLAG1 0139 AJMP CH_KEY 013B FU4:NOP 013C LCALL BP 013F LCALL T100MSD 0142 LCALL BP 0145 LCALL T100MSD 0148 LCALL BP 014B LCALL T100MSD 014E LCALL BP 0151 LCALL T100MSD 0154 LCALL BP 0157 CLR FLAG1 0158 AJMP CH_KEY 015A FU3:NOP 015B LCALL BP 015E LCALL T100MSD 0161 LCALL BP 0164 LCALL KILLXS 。延時100ms 0117 SETB L3 0119 SETB 011B AJMP CH_KEY開門子程序 011D CL:NOP 011E SETB L3 0120 MOV BUFF, 00H 。密碼輸入一位,鳴叫一聲。比較輸入的次數(shù)。輸入數(shù)字的位數(shù) 00AE MOV A, TIMERS 00B1 CLR C 00B4 SUBB A, 01H 00B5 JNZ PS_2 00B7 MOV PS1, BUFF 。標志為1,則為功能鍵數(shù)字按鍵輸入并且存放到緩沖區(qū)內(nèi)等待比較00A7 KEY_DIG:NOP 。判斷按鍵功能。按鍵識別子程序 009F MOV BUFF, A 。返回 0084 CH_KEY:LCALL KS 。程序開始 007E LCALL CH_KEY 。調(diào)用默認顯示 0066 MOV TIMERS1,00H 0069 NOP 006A MOV PS1, 08H 。調(diào)用 005E LCALL INITPS 。定義串口數(shù)據(jù)端 SCL BIT ORG 0000H 0000 AJMP MAIN ORG 000BH 000B AJMP SCAN ORG 001BH 001B AJMP SCAN