【正文】
I/O 口 6)微處理器( CPU):該 CPU 是八位, CPU 與通常的是基本相同的,同樣的操作也包括兩部分,一個(gè)用于控制來(lái)增加功能,不僅可以處理一個(gè)字節(jié)的數(shù)據(jù)也可以進(jìn)行處理的變量的唯一途徑。 9 腳是復(fù)位腳, 14 腳為輸出腳,第 1 19 腳接晶振。 掃鍵開(kāi)始 開(kāi)始 初始化 調(diào)用鍵掃描處理子程序 鍵按下? 逐行掃描,按 P 口值查鍵號(hào) 按鍵號(hào)轉(zhuǎn)至相應(yīng)的發(fā)射程序 返回 發(fā) 射 開(kāi) 始 置入發(fā)射脈沖個(gè)數(shù)( R1) 發(fā) 3ms 脈沖 停發(fā) 1ms Y N 圖 紅外信號(hào)發(fā)射程序 它的發(fā)射過(guò)程:先設(shè)置好脈沖的發(fā)射個(gè)數(shù),若是 1,則回到主程序;若不是 1,則把 1ms 脈沖送入,然后停發(fā) 1ms 脈沖,具體如圖 。 調(diào)試前不加電源的檢查 檢查是電路圖和實(shí)物圖是否對(duì)應(yīng),其中包括少接,錯(cuò)誤地,多接入的情況下等。要是有問(wèn)題,則需找出問(wèn)題,進(jìn)行解決。 (四)測(cè)量電路的寬帶必須小于測(cè)量?jī)x器。由于此前進(jìn)行了嚴(yán)格的篩選設(shè)備,整個(gè)紅外遙控系統(tǒng),測(cè)量精度的靈敏度,穩(wěn)定性有不錯(cuò)的表現(xiàn),在本設(shè)計(jì)中實(shí)現(xiàn)。 KEYVAL2: MOV R2,10H LJMP KEYVAL4 。 KEYFUN04: MOV A,06H LJMP REMOTE RET 。 READ1: CLR A MOV DPH,A MOV DPL,A HARD1: JB ,HARD11 INC DPTR NOP NOP AJMP HARD1 HARD11: MOV A,DPH JZ READOUTT0 CLA A READ11: INC A READ12: JNB ,READ12 MOV R1,06H READ13: JNB ,READ13 DEC A DEC A JZ FUN0 DEC A JZ FUN1 DEC A JZ FUN2 DEC A JZ FUN3 DEC A JZ FUN4 DEC A JZ FUN5 DEC A JZ FUN6 DEC A JZ FUN7 NOP NOP LJMP READOUTT0 。s eyes can see the visible wavelength from long to short according to the arrangement, in order to red, orange, yellow, green, green, blue, violet. One of the red wavelengths for ~ muon m, Purple is wavelength range ~ muon m. Purple is shorter than the wavelength of light called ultraviolet ray, red wavelengths of light is longer than that of infrared light. Infrared remote control is to use wavelength for ~ muon m between the near infrared to transfer control signal. Commonly used infrared remote control system of general points transmit and receive two parts. The main ponent part for the launch of infrared light emitting diode. It is actually a special light emitting diode, due to its internal material differs from ordinary light emitting diode, resulting in its ends on certain voltage, it is a rather infrared light. Use of infrared light emitting diode the infrared wavelengths, for 940nm appearance and ordinary, just the same light emitting diode five different colors. Infrared light emitting diode generally have black and blue, transparent three colors. Judgement of infrared light emitting diode and judgment method, using a multimeter to ordinary diode electric block measure of infrared light emitting diode, reverse resistance. The infrared light emitting diode luminescence efficiency to use special instrument to measure precise, and use only spare conditions to pull away from roughly judgement. Receiving part of infrared receiving tube is a photosensitive diode. In actual application of ir receiving diode to reverse bias, it can work normally, ., the infrared receiving circuit application in diode is used to reverse, higher sensitivity. Infrared receiving diode usually have two round and rectangular. Due to the power of infrared light emitting diode (or less monly 100mW), so ir receiving diode received signals is weak, so will increase highgain amplifier circuit. In mon CX20216A, etc PC1373H muon infrared receiving special amplifier circuit. In recent years both amateur or formal products, mostly using infrared receiving head finished. The head of infrared receiving product packages generally has two kinds: one kind USES sheet shielding, A kind of plastic packaging. There are three pin, namely the power is (VDD), power negative (GND) and data output (VO or OUT). Infrared receiving head foot arrangement for types varied, manufacturer39。 延時(shí)程序 DELAY: MOV R0,OFFH DELAY1: DJNZ R0,DELAY1 RET。 KEYFUN06: MOV A,08H LJMP REMOTE RET 。 KEYVAL4: MOV DPTR,KEYVALTAB MOV B,A CLR A MOV R0,A KEYVAL5: MOV A,R0 SUBB A,08H JNC KEYOUT MOV A,R0 MOVC A,A+DPTR INC R0 CJNE A,B,KEYVAL5 DEC R0 MOV A,R0 ADD A,R2 MOV B,A RL A ADD A,B MOV DPTR,KEYFUNTAB JMP A+DPTR KEYFUNTAB: LJMP KEYFUN00 LJMP KEYFUN01 LJMP KEYFUN02 LJMP KEYFUN03 LJMP KEYFUN04 LJMP KEYFUN05 LJMP KEYFUN06 LJMP KEYFUN07 KEYVALTAB DB 0FEH,0FDH,0FBH,0F7H,0EFH,ODFH,0BFH,7FH。 參考文獻(xiàn) [1]李建華 . 實(shí)用遙控器原理與制作 .北京 : 人民郵電出版社 ,1996 [2]舒經(jīng)文 . 最新彩電機(jī)芯及其遙控系統(tǒng)的原理與維修 . 北京 : 電子工業(yè)出版社 , 1993 [3] 李華 . MCS51系列單片機(jī)實(shí)用接口技術(shù) . 北京 : 航天航空大學(xué)出版社 ,1999 [4] 張肅文 ,陸兆文 . 高頻電子電路 .高等教育出版 社 . [5] 張毅剛.單片機(jī)原理及應(yīng)用[ M].北京:高等教育出版社, 2021. [6] 黃尊熹.單片機(jī)原理接口與應(yīng)用[ M].西北工業(yè)大學(xué)出版社 ,- 150. [7] 樓然苗 ,李光飛. 51 系列單片機(jī)設(shè)計(jì)實(shí)例[ M].北京 :北京航空航天大學(xué)出版社 ,2021,103-120. [8] 余永權(quán) .Flash 單片機(jī)原理及應(yīng)用 [M]. 北京 :電子工業(yè)出版社 ,1997. [9] 何立民 .單片機(jī)應(yīng)用系統(tǒng)設(shè)計(jì) [M]北京 :北京航空航天大學(xué)出版社 ,1990. [10] 劉曉明,安敏,王軍 .兩種紅