General one-key telecontrol regulation method and apparatus

The invention is a universal one-key remote control debug method, including: 1) inputting each machine core code, code data and cod names of code sending subprograms into a memory, and firming commonly used infrared code sending subprograms into a microprocessor, where all the subprograms correspond to the code sending subprograms one to one; 2) selecting machine core code to debug or edit; 3) obtaining entry parameter control data of machine core to debug and obtaining the code name of the infrared code sending subprogram; 4) determining to debug or edit, and if debug, shift to step 9); 5) inputting code name of debug term to edit; 6) inputting key number to define the debug term to remote controller; 7) storing the control data corresponding to the code name of the debug term into a memory cell corresponding to the key number; 8) if continue editing, shift to step 5)and otherwise to step 13); 9) inputting key number; 10) calculating the cell position of the control data in the memory about to send code according to the key number, 11) taking the control data out of the memory; 12) calling infrared code sending subprogram, and generating code sending signal by the microprocessor software, and making TV set core receive the signal and enter in an appointed term; 13) ending. The invention uses one-key remote control and has high operating efficiency.