CN103078649B - The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof - Google Patents

The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof Download PDF

Info

Publication number
CN103078649B
CN103078649B CN201210563720.XA CN201210563720A CN103078649B CN 103078649 B CN103078649 B CN 103078649B CN 201210563720 A CN201210563720 A CN 201210563720A CN 103078649 B CN103078649 B CN 103078649B
Authority
CN
China
Prior art keywords
button
recognition
sequence number
remote controller
pressing keys
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210563720.XA
Other languages
Chinese (zh)
Other versions
CN103078649A (en
Inventor
贾静平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
North China Electric Power University
Original Assignee
North China Electric Power University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by North China Electric Power University filed Critical North China Electric Power University
Priority to CN201210563720.XA priority Critical patent/CN103078649B/en
Publication of CN103078649A publication Critical patent/CN103078649A/en
Application granted granted Critical
Publication of CN103078649B publication Critical patent/CN103078649B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses Infrared remote controller recognition by pressing keys system and the using method thereof of a kind of single-chip computer control system in single-chip microcomputer design field.System comprises computer, single-chip microcomputer in-circuit debugger, recognition by pressing keys developers, AC power source adapter and D.C. regulated power supply, and recognition by pressing keys developers comprises programmable chip, base, light-receiving head, mode selector switch circuit, runs switching switch circuit, crystal oscillating circuit and button sequence number display circuit; Using method is: with key code recognizer provided by the invention at button learning procedure, automatically by key code sequentially stored in EEPROM memory cell; In recognition by pressing keys step, can automatic Verification button sequence number whether corresponding with actual key; Then button sequence number recognizer provided by the invention and user program are linked, write programmable chip together; Finally programmable chip is inserted user's board.The present invention makes single-chip microcomputer designer break away from the puzzlement of Infrared remote controller key code identification, decreases design difficulty and workload.

Description

The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof
Technical field
The invention belongs to single-chip microcomputer design field, particularly relate to a kind of Infrared remote controller recognition by pressing keys system and using method thereof of single-chip computer control system.
Background technology
When using single-chip microcomputer deisgn product, designer is often required that product must have function of infrared remote control, and they will select a kind of remote controller from the market, some buttons are fallen with mask sheet, according to conceptual design, in position the upper button retaining sufficient amount, then specifies the function of each button.As a part for product software, Infrared remote controller key code recognizer must be worked out, so that the function program forwarding each button defined to goes to realize corresponding function.
Present situation is: on market, the Infrared remote controller of various model is multifarious, and their coded format is also different, and designer is often stuck in here, can not work out key code recognizer, cannot carry out next step design.
The SCM Based infrared remote control code identification method delivered at present has:
1, the model (such as uPD6121) of known remote control coding chip, and from data, find its coded format: 32 codings, a lead code (9MS high level, 4.5MS low level), logical zero is 0.56MS high level 0.56MS low level, and logical one is 1.68MS high level 0.56MS low level, 8 user codes, 8 user's radix-minus-one complements, 8 bit data codes, 8 bit data radix-minus-one complements.More than after 108MS being running fire code (9MS high level 2.5MS low level).According to so detailed encoding format information, by time delay wait method or add outer interrupt method with timer and identified, find 32 binary codes of each button, then they are compiled in product program respectively, to forward the program segment that same keypress function is corresponding to, complete corresponding function.
The shortcoming of this method is:
Before establishment product program, first must determine the model of coding chip in remote controller, search data, determine coded format, this code of remote control recognizer could be worked out.But often cannot determine chip model, or can not find related data, use Design of Infrared Remote Device Utilizing product person to first, oneself compiles recognition by pressing keys program is a difficult problem.
Physical location and its function of button are fixed by program, want to change its function, must rewrite program.
If initial selected remote controller stops production, can't buy, or had more cheap, more good-looking, want to change remote controller, then must rewrite program, equal to redesign software.
2, recent, occur being called as " coding/decoding method of intelligent infrared ray remote control system " (Weifang College's journal the 10th volume the 6th phase), this method does not consider infrared coding form, the time that direct calculating same logic continues, and judge two kinds of different logics according to the ratio of duration, represent with " 0 " or " 1 ", the launching code of each button in Infrared remote controller is obtained after decoding, and these launching codes are stored, when needing, then by encode accordingly through modulation after launch.
In this article, remote controllers all in family combines by (object of the method is), namely realizes a remote controller or all electric equipments that can receive infrared remote control of machine control.For this reason, author, while making infrared receiver/decoder module, has has also designed and produced infrared transmission module.
Obviously, such method just copies the coded excitation function of other remote controller, can not provide recognition by pressing keys for single-chip microcomputer designer.Can not for designing the product of various controlling functions.
And can not shelter be had between infrared transmitter and receiver, and should mutually aim at.Electrical equipment in family is that dispersion is placed, if this device can not be hand-held, how to use? the function i ntegration of various remote controller on a device, its keypress function is different, and quantity is a lot, how to facilitate certain function of certain remote controller selected quickly directly perceived? these problems there all are not solution.
3, " design of universal infrared remote-control decoder " delivered on " modern electronic technology " magazine on August 15th, 2011 (Dong Feng more than 63999 armies, National University of Defense technology Liu Qiang), mathematical measure used, by vector quantization and clustering procedure, the problem that the pulse duration solving identity logic level has some to disperse, solves by iterative method the problem that code repeats transmission.
The shortcoming of the method is:
Its function, with method 2, for designing the product of various controlling functions, can not just copy the function of certain remote controller.
In fact, as long as select the suitable numeration pulse period to measure the pulse duration of logic level, its decentralization is limited (comparing with pulse duration), just can deal with problems with simple Logic judgment (several instructions); Generally, after an information is sent, there is the code that terminates, its pulse duration is much larger than the width of other pulse, just can the end position of simple determination information by Logic judgment, there is not duplicate message and take storage resources problem, so much mathematical measure need not be used.
4, on " microcomputer and application " magazine the 30th volume the 21st phase, within 2011, delivered the paper " Infrared remote controller decoding software design and application " of University Of Science and Technology Of Shandong's Liu Wanbin.
Its function is: the infrared coding decoding each key when not grasping the coded format of remote controller.
Its method is: the width adding each pulse of method record of timer counter with outer interruption, judges cognizance code.Then the same code compiled in a program compares, and time identical, namely turns to corresponding program section, performs corresponding function.
The shortcoming of the method is:
Require that designer first determines remote controller, write its code recognizer, determine the code of each button, the program of being enrolled compares in statement and (does not store the code of all buttons).When having button to press, its code is compared with the code enrolled in program statement, then forwards each program segment to.
The shortcoming of the method is:
Just code identification, be not the identification of button sequence number, the function of each button is just fixed in the dust by program, want to change the physical location of button, want to change remote controller, just must coding again, having certain difficulty, is not that everybody can easily complete. not only time-consuming but also require great effort.
In sum, any method up to the present all must write code of remote control recognizer by designer voluntarily, and after program compiles and edits, just with remote controller and on button be fixed together, change remote controller, or change the position of keypress function on it, all must rewriting program.
Summary of the invention
The object of the invention is to: provide an instrument to single-chip microcomputer designer, need not oneself design with the relevant program of Infrared remote controller, utilize this instrument can Direct Recognition in Infrared remote controller by be which button, thus turn to the corresponding program of herewith button, complete corresponding function; Each function key physical location on a remote control can set arbitrarily or change, and remote controller also can be changed at any time, need not rewriting program.Completely designer is freed from the identification of Infrared remote controller code.
To achieve these goals, the technical scheme that the present invention proposes is, an Infrared remote controller recognition by pressing keys system for single-chip computer control system, is characterized in that described system comprises computer, single-chip microcomputer in-circuit debugger, recognition by pressing keys developers, AC power source adapter and D.C. regulated power supply;
Wherein, described computer is connected with single-chip microcomputer in-circuit debugger;
Described single-chip microcomputer in-circuit debugger is connected with recognition by pressing keys developers;
Described D.C. regulated power supply is connected with recognition by pressing keys developers, for providing electric energy for recognition by pressing keys developers;
One end of described AC power source adapter is connected with single-chip microcomputer in-circuit debugger, and the other end is connected with AC power, after alternating voltage is converted to direct voltage, be supplied to single-chip microcomputer in-circuit debugger;
Described recognition by pressing keys developers comprises programmable chip, base, light-receiving head, mode selector switch circuit, runs switching switch circuit, button sequence number display circuit and crystal oscillating circuit;
Described programmable chip clips on base, and programmable chip comprises program storage, eeprom memory and register; Wherein, program storage is used for storage program, eeprom memory for storing key code, register for storing by the sequence number of depresses button;
Described light-receiving head is connected with programmable chip, for receiving the infrared signal of remote controller;
Described mode selector switch circuit is connected with programmable chip respectively with operation switching switch circuit;
Described mode selector switch circuit is used for the mode of operation of selection key identification developers, and described mode of operation comprises button mode of learning and recognition by pressing keys pattern;
Described operation switching switch circuit is for selecting the operational mode of described system, and described operational mode comprises online operational mode and offline operation pattern;
Described crystal oscillating circuit is for generation of the oscillating impulse needed for running of programmable chip.
Described recognition by pressing keys developers comprises display circuit, and described display circuit is connected with programmable chip, for showing by the sequence number of depresses button.
A using method for the Infrared remote controller recognition by pressing keys system of single-chip computer control system, is characterized in that described using method comprises:
Step 1: setting Infrared remote controller needs the key number N used;
Step 2: be the key assignments sequence number in Infrared remote controller, sequence number is from 1 to N, and each button can only distribute 1 sequence number;
Step 3: mode selector switch circuit is switched to button mode of learning, switches to on-line operation pattern by operation switching switch circuit;
Step 4: utilize single-chip microcomputer in-circuit debugger that key code identification source program provided by the present invention is compiled into machine code program, and by the program storage of this machine code program write programmable chip;
Step 5: utilize single-chip microcomputer in-circuit debugger to run above-mentioned key code recognition machine coded program in recognition by pressing keys developers;
Or, operation switching switch circuit is switched to offline operation pattern, recognition by pressing keys developers is disconnected with single-chip microcomputer in-circuit debugger, in recognition by pressing keys developers, directly runs above-mentioned key code recognition machine coded program;
Step 6: by Infrared remote controller alignment light Receiver, pressed the button that sequence number is 1 to N successively every at least 2 seconds;
Each depresses button, key code recognizer can automatically identify the code of button, and described key code to be stored in the memory cell of eeprom memory in order;
Step 7: operation switching switch circuit is switched to on-line operation pattern, button sequence number recognizer provided by the invention and user program are linked, obtain end user's source program, single-chip microcomputer in-circuit debugger is utilized to be compiled into end user's machine code program under Programmer pattern, and by the program write programmable chip after compiling;
Described button sequence number recognizer is in wait state when the button of Infrared remote controller does not press, continuously inquire about in Infrared remote controller and whether have key presses, when inquire Infrared remote controller has button to be pressed time, identify the code of button, and described code is compared with the key code in each memory cell of eeprom memory, when identical with the key code in storage element by the code of depresses button, determine by the sequence number of depresses button according to the position at this memory cell place, and by this sequence number stored in register;
Described user program is after button sequence number recognizer performs, and inquiry register, obtains by the sequence number of depresses button, call correspondingly subprogram according to by the sequence number of depresses button, perform corresponding controlling functions;
Step 8: taken off by programmable chip recognition by pressing keys developers, inserts user's plate.
In described step 6, when each depresses button, display circuit display is by the sequence number of depresses button.
Also comprise the step of key range after described step 6 with before step 7, be specially: mode selector switch circuit is switched to recognition by pressing keys pattern, press any button in Infrared remote controller, display circuit display the sequence number of button.
The present invention has broken away from the puzzlement of Infrared remote controller key code identification, designer need not oneself design with the relevant program of Infrared remote controller again, only need just can be simple and direct and design single-chip microcomputer infrared remote control system neatly with the present invention, thus decrease design difficulty and workload, shorten the design cycle, improve operating efficiency.
Accompanying drawing explanation
Fig. 1 is the Infrared remote controller recognition by pressing keys system construction drawing of single-chip computer control system;
Fig. 2 is the using method flow chart of the Infrared remote controller recognition by pressing keys system of single-chip computer control system.
Embodiment
Below in conjunction with accompanying drawing, preferred embodiment is elaborated.It is emphasized that following explanation is only exemplary, instead of in order to limit the scope of the invention and apply.
Fig. 1 is the Infrared remote controller recognition by pressing keys system construction drawing of single-chip computer control system.As shown in Figure 1, the Infrared remote controller recognition by pressing keys system of single-chip computer control system comprises computer, single-chip microcomputer in-circuit debugger, recognition by pressing keys developers, AC power source adapter and D.C. regulated power supply.
Wherein, computer is connected with single-chip microcomputer in-circuit debugger, and single-chip microcomputer in-circuit debugger is connected with recognition by pressing keys developers.In the present embodiment, computer adopts ordinary PC, and the model of single-chip microcomputer in-circuit debugger is MPLAB-ICD2.Ordinary PC is connected by USB with MPLAB-ICD2.MPLAB-ICD2 connects recognition by pressing keys developers (in Fig. 1 DMSB.DDB) by crystal head line.
D.C. regulated power supply is connected with recognition by pressing keys developers, for providing electric energy for recognition by pressing keys developers.One end of AC power source adapter is connected with single-chip microcomputer in-circuit debugger, and the other end is connected with AC power, after alternating voltage is converted to direct voltage, be supplied to single-chip microcomputer in-circuit debugger.
Recognition by pressing keys developers comprises programmable chip, base, light-receiving head, mode selector switch circuit and runs switching switch circuit, crystal oscillating circuit and button sequence number display circuit.In the present embodiment, the model of programmable chip is PIC16F876A, and programmable chip clips on base, and then can take off from recognition by pressing keys developers easily.Program memory, eeprom memory and register is comprised in programmable chip; Wherein, program storage is used for storage program, and eeprom memory is for storing key code; Register is for storing by the sequence number of depresses button.Light-receiving head (in Fig. 1 TL538) is connected with programmable chip, for receiving the infrared signal of remote controller.Mode selector switch circuit (in Fig. 1 S) is connected with programmable chip respectively with operation switching switch circuit (in Fig. 1 S1).Mode selector switch circuit is used for the mode of operation of selection key identification developers, and described mode of operation comprises button mode of learning and recognition by pressing keys pattern.Run switching switch circuit for selecting the operational mode of described system, described operational mode comprises online operational mode and offline operation pattern.Recognition by pressing keys developers also comprises display circuit, and in the present embodiment, display circuit is LED (in Fig. 1 L5, L4, L3, L2, L1, L0).This LED can with binary number (L5 is highest order, and L0 is lowest order) display each by the sequence number of button.
Fig. 2 is the using method flow chart of the Infrared remote controller recognition by pressing keys system of single-chip computer control system.First the Infrared remote controller recognition by pressing keys system of single-chip computer control system provided by the invention will carry out button learning process.Because PIC single chip microcomputer system designer is all familiar with the usage of MPLAB-ICD2, therefore, the general operation of the present invention to MPLAB-ICD2 does not repeat.Button learning process can be carried out in both modes:
Pattern 1, on-line operation pattern
Step 1: carefully connect the wire by shown in Fig. 1 (first not adding 220 volts of power supplys).In figure: " recognition by pressing keys developers DMSB.DDB " in dotted line frame is hardware provided by the invention (base of PIC16F876A is the movable base of band clamping); PC is personal computer; ICD2 is PIC single chip microcomputer in-circuit debugger (on sale on market, to comprise 9 volts of power supply adaptors); On sale on 5 volts of D.C. regulated power supply markets.
Be that the blank chip of PIC16F876A clips on the movable base of DMSB.DDB by model; Connect 220 volts of power supplys, to system power-up.Setting Infrared remote controller needs the key number N used.
Step 2: be the key assignments sequence number in Infrared remote controller, sequence number is from 1 to N, and each button can only distribute 1 sequence number, the physical location of button in Infrared remote controller can be fixed arbitrarily by designer.
Step 3: mode selector switch circuit is switched to button mode of learning, switches to on-line operation pattern by operation switching switch circuit.
Step 4: with ICD2 single-chip microcomputer in-circuit debugger, under Debugger pattern, key code identification source program DMSB1.ASM provided by the invention is compiled into machine code program DMSB1.HEX, and writes PIC16F876A.
Step 5: run DMSB1.HEX program with ICD2 on hardware DMSB.DDB again.
Step 6: then Infrared remote controller is aimed at the light-receiving head TL538 on DMSB.DDB, at least every 2 seconds, presses the button remote controller successively from 1 to N; Often by a button, the LED (L5, L4, L3, L2, L1, L0) on DMSB.DDB can with binary number (L5 is highest order, and L0 is lowest order) show this by the sequence number of button.Please note and observe the sequence number of institute by button whether with showing; Must depresses button successively in order, otherwise just misplaced.6 LED that the present embodiment provides can show 63 keys altogether, substantially enough, more than 63 time only a high position do not show, button learning process still can normally be carried out.
More than after operation, learning process terminates.
Pattern 2, offline operation pattern
Step 1: carefully connect the wire by shown in Fig. 1 (first not adding 220 volts of power supplys).Be that the blank chip of PIC16F876A clips on the movable base of DMSB.DDB by model; Connect 220 volts of power supplys, to system power-up.Setting Infrared remote controller needs the key number N used.
Step 2: be the key assignments sequence number in Infrared remote controller, sequence number is from 1 to N, and each button can only distribute 1 sequence number, the physical location of button in Infrared remote controller can be fixed arbitrarily by designer.
Step 3: mode selector switch circuit is switched to button mode of learning, switches to on-line operation pattern by operation switching switch circuit.(switch S namely in Fig. 1 on DMSB.DDB and S1 open).
Step 4: with ICD2 single-chip microcomputer in-circuit debugger, under Programmer pattern, key code identification source program DMSB1.ASM provided by the invention is compiled into DMSB1.HEX program, and writes PIC16F876A.
Step 5: disconnect 220 volts of power supplys, crystal head is taken off from DMSB.DDB; Operation switching switch circuit is switched to offline operation pattern (closing by the S1 on DMSB.DDB in Fig. 1), mode selector switch circuit is still in button mode of learning.5 volts of D.C. regulated power supplies are received on 220 volts of power supplys, powers up to DMSB.DDB.Now just start to run DMSB1.HEX program on hardware DMSB.DDB.
Step 6: Infrared remote controller is aimed at the light-receiving head TL538 on DMSB.DDB, at least every 2 seconds, presses the button remote controller successively from 1 to N; Often by a button, the LED (L5, L4, L3, L2, L1, L0) on DMSB.DDB can with binary number (L5 is highest order, and L0 is lowest order) show this by the sequence number of button.Please note and observe the sequence number of institute by button whether with showing; Must depresses button successively in order, otherwise just misplaced.
More than after operation, learning process terminates.
After above-mentioned button learning process terminates, in order to reaffirm whether the sequence number of button correctly stores, and can perform one-touch identifying, namely
Step 7: mode selector switch circuit is switched to recognition by pressing keys pattern (closing by the S key in Fig. 1), make system be in " recognition by pressing keys " pattern, arbitrarily press any key, checks that whether LED show value is identical with institute's button sequence number.
Cause this, button learning process completes, and the code identification of button also completes automatically, and has suffered stored in the EEPROM of PIC16F876A sequentially.
Next, be button sequence number recognizer (DMSB2.ASM) provided by the invention is linked up with user program form end user program DMSB.ASM, compiled and write chip.
Step 8: operation switching switch circuit is switched to on-line operation pattern (opening by the S1 on the DMSB.DDB in Fig. 1).
Designer is by the design of oneself, and the following Infrared remote controller used of regulation always has how many buttons (assuming that being N number of), and specifies that their sequence number is successively: 1,2 ..., N.Specify the function that this N number of button will complete separately, and write the application program (DMSB3.ASM) of oneself according to the function that will complete.
Button sequence number recognizer (DMSB2.HEX) is when no button, be in wait state, ceaselessly inquire about on remote controller and whether have key presses, once have, just identify pressed key code, then the code that this code stores with EEPROM in PIC16F876A is compared, time identical, just find out the position of this code in EEPROM, because code stores in order, program also just calculates the sequence number of this button, and sequence number is determined in " button study " stage with the corresponding relation of button; Button sequence number recognizer is in a ram cell of this sequence number write singlechip chip PIC16F876A, and this element is exactly the register K used in program DMSB2.ASM.
At DMSB2.ASM procedure epilogue of the present invention, designer should dose query statement, and numerical value in inquiry K, according to Query Result, is automatically brought to corresponding program section, completes corresponding controlling functions.So just complete (the program DMSB3.ASM of DMSB2.ASM with user oneself) software linker.Program after link is end user's program (DMSB.ASM).
With ICD2 under Programmer pattern, program DMSB.ASM is compiled into DMSB.HEX, then it is write the program storage (note: only program writing, destroy the data in EEPROM) of PIC16F876A.(in " button study " stage) is by the EEPROM of the code of N number of button write PIC16F876A before this.
Step 9: last, takes off PIC16F876A chip from DMSB.DDB, inserts on the single-chip computer control system of designer oneself, can run the product of its design.
To programming chip in batch, then can using the PIC16F876A chip (as master slice) finished writing in upper step, be clipped on the active socket of recognition by pressing keys developers DMSB.DDB, click Readtargetdevice and ReadsdeviceEEPROM on PIC single chip microcomputer in-circuit debugger MPLABICD2 respectively, key code in DMSB.HEX and EEPROM on master slice is read, take off master slice afterwards, blank PIC16F876A chip on folder.Under Programmer pattern, the data write blank chip in DMSB.HEX and EEPROM, just complete programming process.So return multiple operation, multiple chip can be write.
For a long time, engineers and technicians design use the single-chip computer control system of Infrared remote controller time, suffer from and do not know how in the design of Infrared remote controller for oneself, and the existing method delivered, there is many shortcomings, not easily use, not easily grasp, nimble not.
Use system and method provided by the invention, designer can arrive market and buy the Infrared remote controller oneself liked, and arrange and press bond number N, leave N number of button in place, button facial mask unnecessary on remote controller covers.This N number of button is paid in sequence number 1,2 respectively ... N.Controlling functions in the sequence number of button and application program must one_to_one corresponding, but the physical location of button oneself is selected.The button of different sequence number completes different controlling functions.Certain sequence number can distribute to any button physically on remote controller, only it is to be noted that difference button physically can not distribute identical sequence number. and a button can only have a sequence number.Afterwards, first will complete above-mentioned button learning process, after learning process completes, program has all suffered the code of N number of button stored in the EEPROM of PIC16F876A.Finally, button sequence number recognizer be connected with user program and write chip, not knowing of running into when designer designs Single Chip Microcomputer (SCM) system can be solved and how carry out by Infrared remote controller the difficult problem that designs.
The present invention gives technical staff's powerful in this field vast: the puzzlement having broken away from the identification of Infrared remote controller key code, need not oneself design with the relevant program of Infrared remote controller, only need use hardware and software provided by the invention, just can be simple and direct and design single-chip microcomputer infrared remote control system flexibly.Decrease design difficulty and workload, shorten the design cycle, improve efficiency.Utilize native system, can also programming chip in batch, eliminate fever writes, reduce cost.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (5)

1. an Infrared remote controller recognition by pressing keys system for single-chip computer control system, is characterized in that described system comprises computer, single-chip microcomputer in-circuit debugger, recognition by pressing keys developers, AC power source adapter and D.C. regulated power supply;
Wherein, described computer is connected with single-chip microcomputer in-circuit debugger;
Described single-chip microcomputer in-circuit debugger is connected with recognition by pressing keys developers;
Described D.C. regulated power supply is connected with recognition by pressing keys developers, for providing electric energy for recognition by pressing keys developers;
One end of described AC power source adapter is connected with single-chip microcomputer in-circuit debugger, and the other end is connected with AC power, after alternating voltage is converted to direct voltage, be supplied to single-chip microcomputer in-circuit debugger;
Described recognition by pressing keys developers comprises programmable chip, base, light-receiving head, mode selector switch circuit, runs switching switch circuit, button sequence number display circuit and crystal oscillating circuit;
Described programmable chip clips on base, and programmable chip comprises program storage, eeprom memory and register; Wherein, program storage is used for storage program, eeprom memory for storing key code; Register is for storing by the sequence number of depresses button;
Described light-receiving head is connected with programmable chip, for receiving the infrared signal of remote controller;
Described mode selector switch circuit is connected with programmable chip respectively with operation switching switch circuit;
Described mode selector switch circuit is used for the mode of operation of selection key identification developers, and described mode of operation comprises button mode of learning and recognition by pressing keys pattern;
Described operation switching switch circuit is for selecting the operational mode of described system, and described operational mode comprises online operational mode and offline operation pattern;
Described crystal oscillating circuit is for generation of the oscillating impulse needed for running of programmable chip.
2. system according to claim 1, it is characterized in that described recognition by pressing keys developers comprises display circuit, described display circuit is connected with programmable chip, for showing by the sequence number of depresses button.
3. a using method for the Infrared remote controller recognition by pressing keys system of single-chip computer control system, is characterized in that described using method comprises:
Step 1: setting Infrared remote controller needs the key number N used;
Step 2: be the key assignments sequence number in Infrared remote controller, sequence number is from 1 to N, and each button can only distribute 1 sequence number;
Step 3: mode selector switch circuit is switched to button mode of learning, switches to on-line operation pattern by operation switching switch circuit;
Step 4: utilize single-chip microcomputer in-circuit debugger that key code identification source program is compiled into machine code program, and by the program storage of this machine code program write programmable chip;
Step 5: utilize single-chip microcomputer in-circuit debugger to write the machine code program of programmable chip in operating procedure 4 in recognition by pressing keys developers;
Or, operation switching switch circuit is switched to offline operation pattern, single-chip microcomputer in-circuit debugger is disconnected with recognition by pressing keys developers, in recognition by pressing keys developers, directly run the key code recognizer after compiling;
Step 6: by Infrared remote controller alignment light Receiver, pressed the button that sequence number is 1 to N successively every at least 2 seconds;
Each depresses button, key code recognizer can automatically identify the code of button, and described key code to be stored in the memory cell of eeprom memory in order;
Step 7: operation switching switch circuit is switched to on-line operation pattern, button sequence number recognizer and user program are linked, obtain end user's program, single-chip microcomputer in-circuit debugger is utilized to compile end user's program under Programmer pattern, and by the program write programmable chip after compiling;
Described button sequence number recognizer is in wait state when the button of Infrared remote controller does not press, continuously inquire about in Infrared remote controller and whether have key presses, when inquire Infrared remote controller has button to be pressed time, identify the code of this button, and the code of pressed button is compared with the key code in each memory cell of eeprom memory, when identical with the key code in storage element by the code of depresses button, the sequence number of this button is determined, then stored in register according to the position at this memory cell place;
Described user program is after button sequence number recognizer performs, and inquiry register, obtains by the sequence number of depresses button, call corresponding subprogram according to this sequence number, perform corresponding controlling functions;
Step 8: taken off by programmable chip recognition by pressing keys developers, inserts user's plate.
4. using method according to claim 3, is characterized in that in described step 6, and when each depresses button, display circuit display is by the sequence number of depresses button.
5. using method according to claim 4, the step of key range is also comprised before with step 7 after it is characterized in that described step 6, be specially: mode selector switch circuit is switched to recognition by pressing keys pattern, press any button in Infrared remote controller, display circuit shows this by the sequence number of depresses button.
CN201210563720.XA 2012-12-21 2012-12-21 The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof Expired - Fee Related CN103078649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210563720.XA CN103078649B (en) 2012-12-21 2012-12-21 The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210563720.XA CN103078649B (en) 2012-12-21 2012-12-21 The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof

Publications (2)

Publication Number Publication Date
CN103078649A CN103078649A (en) 2013-05-01
CN103078649B true CN103078649B (en) 2015-12-09

Family

ID=48155067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210563720.XA Expired - Fee Related CN103078649B (en) 2012-12-21 2012-12-21 The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof

Country Status (1)

Country Link
CN (1) CN103078649B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109686076A (en) * 2018-12-28 2019-04-26 天长市志铖电子科技有限公司 A kind of control method and remote controler of remote controler

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758297A (en) * 2005-09-08 2006-04-12 四川长虹电器股份有限公司 Integral remote control method for household electrical equipment
CN202261582U (en) * 2011-07-12 2012-05-30 冠捷显示科技(厦门)有限公司 Television capable of learning and distinguishing various remote controllers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567011B1 (en) * 1999-10-14 2003-05-20 Universal Electronics Inc. Media system and remote control for same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758297A (en) * 2005-09-08 2006-04-12 四川长虹电器股份有限公司 Integral remote control method for household electrical equipment
CN202261582U (en) * 2011-07-12 2012-05-30 冠捷显示科技(厦门)有限公司 Television capable of learning and distinguishing various remote controllers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于STC12C2052AD的学习型万能遥控器设计;刘理云等;《北京电子科技学院学报》;20110630;第19卷(第2期);65-72 *

Also Published As

Publication number Publication date
CN103078649A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN100570660C (en) Universal studying programmable remote controller and control method thereof
CN100576183C (en) The supervising device of SATA hard disk and method for supervising thereof
CN105323328A (en) Automatic address identification method by utilizing MODBUS communication protocol on RS-485
CN109831858A (en) A kind of intelligent illuminating system
CN105094263A (en) Startup and shutdown linkage control device and system
CN101882263B (en) Demonstration and verification integrated system based on algorithm synthesis integration
CN105263233A (en) Intelligent lamplight control system based on WIFI and control method
CN104077204A (en) Reconfigurable 8-bit RSIC (reduced instruction set computer) SCM (Single Chip Microcomputer) simulator
CN106023991A (en) Handheld voice interaction device and interaction method orienting to multi-task interaction
CN103078649B (en) The Infrared remote controller recognition by pressing keys system of single-chip computer control system and using method thereof
CN201425777Y (en) Infrared signal learning device
CN110968329A (en) Burner and operation method and burning system thereof
CN107450953A (en) A kind of renewal BIOS method and device
CN102789298B (en) Power control circuit and method
CN210867739U (en) Automatic networking equipment for smart home system
CN210199699U (en) Non-contact terminal input device based on gestures
CN103296864A (en) Power supply responding to multiple control signal formats
CN103164125B (en) A kind of display device utilizing touch key-press to realize digit input function
CN106097697A (en) Based on the one-to-many IR remote controller emulation mode touching display screen
Mamatha et al. Design and Development of Low Cost IR Based home Automation System
CN104378141A (en) Near-field communication key and control method thereof
CN213302377U (en) Keyboard simulation device
CN103634989A (en) Device and method for setting LED drive power output parameters
CN214896281U (en) Infrared learning, storage and sending circuit based on infrared communication
CN202502481U (en) Universal instrument input apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151209

Termination date: 20181221

CF01 Termination of patent right due to non-payment of annual fee