[go: up one dir, main page]

CN201174169Y - Universal decoding and identification device for universal remote control receiver - Google Patents

Universal decoding and identification device for universal remote control receiver Download PDF

Info

Publication number
CN201174169Y
CN201174169Y CNU2007201225313U CN200720122531U CN201174169Y CN 201174169 Y CN201174169 Y CN 201174169Y CN U2007201225313 U CNU2007201225313 U CN U2007201225313U CN 200720122531 U CN200720122531 U CN 200720122531U CN 201174169 Y CN201174169 Y CN 201174169Y
Authority
CN
China
Prior art keywords
decoding
remote control
universal
signal
unit
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 - Lifetime
Application number
CNU2007201225313U
Other languages
Chinese (zh)
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.)
MSTAR SEMICONDUCTOR CO Ltd
MStar Software R&D Shenzhen Ltd
Original Assignee
MSTAR SEMICONDUCTOR CO Ltd
MStar Software R&D Shenzhen Ltd
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 MSTAR SEMICONDUCTOR CO Ltd, MStar Software R&D Shenzhen Ltd filed Critical MSTAR SEMICONDUCTOR CO Ltd
Priority to CNU2007201225313U priority Critical patent/CN201174169Y/en
Application granted granted Critical
Publication of CN201174169Y publication Critical patent/CN201174169Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Details Of Television Systems (AREA)

Abstract

本实用新型公开了一种用于通用遥控接收器的通用译码辨识装置,它可以节省微处理器的资源使用,并提升微处理器的效率,进而提高了多媒体输出的品质。所述装置包含有:一计数单元,用来接收一遥控控制讯号并计算该控制讯号中两相邻讯号转态间所经过的复数个讯号周期数;以及一逻辑单元,用来根据所述讯号周期数辨识复数个译码数据。

Figure 200720122531

The utility model discloses a universal decoding and identification device for a universal remote control receiver, which can save the use of microprocessor resources, improve the efficiency of the microprocessor, and further improve the quality of multimedia output. The device includes: a counting unit, used to receive a remote control signal and calculate the number of signal cycles passed between two adjacent signal transitions in the control signal; and a logic unit, used according to the signal The cycle number identifies a plurality of decoded data.

Figure 200720122531

Description

用于通用遥控接收器的通用译码辨识装置 Universal decoding and identification device for universal remote control receiver

技术领域 technical field

本实用新型涉及一种辨识遥控器指令的装置,尤其涉及一种用于通用遥控接收器的通用译码辨识装置。The utility model relates to a device for identifying instructions of a remote controller, in particular to a universal decoding and identifying device for a universal remote control receiver.

背景技术 Background technique

随着电子技术的进步,各种电子装置已成为现代化社会生活的一部份。电视、光盘播放器、数字多功能光盘播放器等消费性多媒体产品普遍被社会大众生活所运用。为了让使用者能够方便地操控各项功能,许多电子装置多半搭配有其对应的遥控器,尤其是无线遥控器,让使用者能透过遥控器任意操控电子装置。With the advancement of electronic technology, various electronic devices have become a part of modern social life. Consumable multimedia products such as televisions, CD players, and digital versatile CD players are generally used in the lives of the general public. In order to allow users to conveniently control various functions, many electronic devices are equipped with corresponding remote controls, especially wireless remote controls, so that users can freely control the electronic devices through the remote control.

熟知的红外线遥控系统是一对一的,也就是说,每一电子装置有一专属的遥控器,其所能进行的各项功能都会固定地对应于一种具有特定信息的遥控讯号。遥控器上则会设有多个用来操控不同功能的按键,当使用者要操控该电子装置执行某一功能时,使用者可在遥控器上按下该功能对应的按键,让遥控器发出的遥控讯号携载有该功能对应的特定信息。电子装置接收到此遥控讯号,就会判读遥控讯号中的特定信息,并依据特定信息与功能间的对应关系,执行相关的功能。The well-known infrared remote control system is one-to-one, that is, each electronic device has a dedicated remote control, and each function it can perform will be fixedly corresponding to a remote control signal with specific information. There are multiple buttons on the remote control to control different functions. When the user wants to control the electronic device to perform a certain function, the user can press the button corresponding to the function on the remote control to let the remote control send The remote control signal carries the specific information corresponding to the function. When the electronic device receives the remote control signal, it will interpret the specific information in the remote control signal, and execute related functions according to the correspondence between the specific information and functions.

一般而言,遥控器所使用的通讯技术为红外线或无线射频(Radio Frequency)传输技术。无线射频传输技术没有操作方位的问题,同时具双向性,不仅发送遥控信号,也可接收家电的状态信息而直接在遥控器上呈现。然而,红外线遥控器具有体积小、功耗低、功能强、成本低等特点,使得红外线遥控器成为目前使用最广泛的一种遥控装置。Generally speaking, the communication technology used by the remote controller is infrared or radio frequency (Radio Frequency) transmission technology. Wireless radio frequency transmission technology does not have the problem of operating orientation, and is bidirectional. It not only sends remote control signals, but also receives status information of home appliances and presents them directly on the remote control. However, the infrared remote controller has the characteristics of small size, low power consumption, powerful functions, and low cost, making the infrared remote controller the most widely used remote control device at present.

图1为现有红外线遥控系统10的示意图。红外线遥控系统10包含有发射端12及接收端14。发射端12包含有输入接口120、编码模块122及红外线发射器126。接收端14包含有红外线接收器140、控制模块144及功能模块146。在发射端12中,输入接口120包含有复数个按键,分别对应于不同功能,使用者可透过按压输入接口120的按键用以启动或结束电子装置的功能。编码模块122可根据一预设原则,将输入接口120所输出的讯号转换为0、1组成的数字讯号,并加入表头或填补数据等,编码为特定格式的封包,并透过红外线发射器126以红外光的形式发射控制讯号至接收端14。相反地,在接收端14中,红外线接收器140可将红外线发射器126所发射的讯号,透过光电转换的处理,将红外光的控制讯号传换为电子讯号。控制模块144包含有微控制器148及储存单元150,用来执行解调、译码及辨识发射端12的指令,其可将电子讯号由红外线载波转换至基频,以辨识发射端12所输出的控制指令,并透过功能模块146执行对应的功能F(1)…F(n)。FIG. 1 is a schematic diagram of a conventional infrared remote control system 10 . The infrared remote control system 10 includes a transmitter 12 and a receiver 14 . The transmitter 12 includes an input interface 120 , an encoding module 122 and an infrared transmitter 126 . The receiving end 14 includes an infrared receiver 140 , a control module 144 and a function module 146 . In the transmitting end 12 , the input interface 120 includes a plurality of keys corresponding to different functions. The user can press the keys of the input interface 120 to start or end the function of the electronic device. The encoding module 122 can convert the output signal of the input interface 120 into a digital signal composed of 0 and 1 according to a preset principle, and add a header or fill data, etc., encode it into a packet of a specific format, and transmit it through the infrared transmitter 126 transmits the control signal to the receiving end 14 in the form of infrared light. On the contrary, in the receiving end 14, the infrared receiver 140 can convert the signal emitted by the infrared emitter 126 into an electronic signal through photoelectric conversion processing. The control module 144 includes a microcontroller 148 and a storage unit 150, which are used to execute instructions for demodulation, decoding, and identification of the transmitter 12. It can convert the electronic signal from an infrared carrier to a base frequency to identify the output of the transmitter 12. , and execute the corresponding functions F(1) . . . F(n) through the function module 146 .

在红外线遥控系统10中,由于只有少量的数据由发射端12传送到接收端14,因此传输过程中最重要的是要保证正确性。现有技术已发展出不同的编码标准,在欧洲的地区,最普遍的标准是RC-5码和RECS 80码;在远东地区,则是NEC码。除此之外,许多消费类电子产品制造商(如Mitsubishi、Panasonic、JVC等)都有其专用的标准。上述的编码标准所采用的调变方式可概分为:相位调变(Phase Modulation)、脉波宽度调变(Pulse Width Modulation)及脉波位置调变(Pulse Position Modulation)。请参考第2图至第4图,分别显示相位调变、脉波宽度调变及脉波位置调变后0与1的波形示意图。相位调变以单位时间间隔中下降缘代表“0”,上升缘代表“1”。脉波宽度调变以发射红外线载波调变高、低位准之比(工作周期)代表“0”和“1”;例如:在NEC的编码标准中,“0”为高位准0.56毫秒(ms,millisecond),低位准0.56毫秒;“1”为高位准0.56毫秒,低位准1.68毫秒。脉波位置调变则以脉波出现的位置区别表示“0”和“1”。In the infrared remote control system 10, since only a small amount of data is transmitted from the transmitting end 12 to the receiving end 14, the most important thing in the transmission process is to ensure correctness. The existing technology has developed different coding standards. In Europe, the most common standards are RC-5 code and RECS 80 code; in the Far East, it is NEC code. In addition, many consumer electronics manufacturers (such as Mitsubishi, Panasonic, JVC, etc.) have their own dedicated standards. The modulation methods adopted by the above encoding standards can be broadly classified into: Phase Modulation, Pulse Width Modulation and Pulse Position Modulation. Please refer to FIG. 2 to FIG. 4, which respectively show the schematic diagrams of waveforms of 0 and 1 after phase modulation, pulse width modulation and pulse position modulation. In phase modulation, the falling edge represents "0" and the rising edge represents "1" in the unit time interval. Pulse width modulation is based on the ratio (duty cycle) of transmitting infrared carrier modulation high and low levels to represent "0" and "1"; for example: in the NEC coding standard, "0" is a high level of 0.56 milliseconds (ms, millisecond), the low level is 0.56 milliseconds; "1" means the high level is 0.56 milliseconds, and the low level is 1.68 milliseconds. In pulse position modulation, "0" and "1" are distinguished by the position where the pulse appears.

针对上述的调变方式,控制模块144使用不同的解调及译码方式,以取得发射端12所输出的控制指令。以脉波宽度调变为例,控制模块144中的微控制器148会根据其内建的定时器,计算高、低位准的持续时间,以辨识所接收的讯号为0或1。换句话说,控制模块144的译码过程需要使用到微控制器148的定时器。一般而言,在多媒体装置中,微控制器148除了执行解调、译码的功能外,还需执行影像、声音处理等计算功能。现有译码的过程需要使用到微控制器148的定时器,因而占用了微控制器148的重要资源,造成微控制器144执行影像、声音处理的效率降低,影响多媒体输出的质量;此外,前述多种解编码标准,现有遥控系统系以专属的一对一硬件实现其中一种解编码标准,对于系统厂商终端的实现也无弹性,例如液晶电视中需要有红外线接收器,但是液晶电视需要销售到世界各地,专属解编码的红外线系统对于系统厂商是非常不便利的。For the above modulation methods, the control module 144 uses different demodulation and decoding methods to obtain the control commands output by the transmitter 12 . Taking pulse width modulation as an example, the microcontroller 148 in the control module 144 calculates the duration of the high and low levels according to its built-in timer, so as to identify the received signal as 0 or 1. In other words, the decoding process of the control module 144 needs to use the timer of the microcontroller 148 . Generally speaking, in a multimedia device, the microcontroller 148 needs to perform computing functions such as video and audio processing in addition to demodulation and decoding functions. The existing decoding process needs to use the timer of the microcontroller 148, thus occupying important resources of the microcontroller 148, causing the microcontroller 144 to reduce the efficiency of image and sound processing, and affect the quality of multimedia output; in addition, The above-mentioned multiple decoding standards, the existing remote control system uses exclusive one-to-one hardware to implement one of the decoding standards, which is inflexible to the realization of the terminal of the system manufacturer. For example, an infrared receiver is required in an LCD TV, but the LCD TV It needs to be sold all over the world, and the exclusive decoding infrared system is very inconvenient for system manufacturers.

新型内容new content

本实用新型所要解决的技术问题是提供一种用于通用遥控接收器的通用译码辨识装置,它可以节省微处理器的资源使用,并提升微处理器的效率,进而提高了多媒体输出的品质。The technical problem to be solved by the utility model is to provide a universal decoding and identification device for a universal remote control receiver, which can save the resource usage of the microprocessor, improve the efficiency of the microprocessor, and then improve the quality of multimedia output .

为了解决以上技术问题,本实用新型提供了一种用于通用遥控接收器的通用译码辨识装置,它包含有:一计数单元,用来接收一遥控控制讯号并计算该控制讯号中两相邻讯号转态间所经过的复数个讯号周期数;以及一逻辑单元,用来根据所述讯号周期数辨识复数个译码数据。In order to solve the above technical problems, the utility model provides a universal decoding and identification device for a universal remote control receiver, which includes: a counting unit, used to receive a remote control signal and calculate two adjacent A plurality of signal cycles passed between signal transitions; and a logic unit used to identify a plurality of decoding data according to the signal cycles.

因为本实用新型通过计算遥控器所发出的控制讯号中相邻讯号转态(transition)间的讯号周期数,例如每一波形下降缘至相邻的一波形上升缘所经过的讯号周期数,据以辨识控制讯号所对应的指令,根据本实用新型的揭示可节省微处理器中用来计算高、低位准的持续时间的定时器,因此节省微处理器的资源使用,并提升其效率,加强多媒体输出的质量。此外,除了透过硬件电路进行译码的运作外,本实用新型也可透过微处理器进行原始数据译码运算,以符合不同红外线遥控系统的需求,提供系统厂商最大的设计弹性与便利性,从而实现通用型遥控接收器,节省系统厂商的生产时间、成本。Because the utility model calculates the number of signal cycles between adjacent signal transitions in the control signal sent by the remote controller, such as the number of signal cycles from the falling edge of each waveform to the rising edge of an adjacent waveform, the data To identify the corresponding command of the control signal, according to the disclosure of the utility model, the timer used to calculate the duration of the high and low levels in the microprocessor can be saved, so the resource usage of the microprocessor can be saved, and its efficiency can be improved. The quality of multimedia output. In addition, in addition to the decoding operation through the hardware circuit, the utility model can also perform the original data decoding operation through the microprocessor to meet the needs of different infrared remote control systems and provide system manufacturers with maximum design flexibility and convenience , so as to realize a universal remote control receiver and save production time and cost of system manufacturers.

附图说明 Description of drawings

下面结合附图和具体实施方式对本实用新型做进一步详细说明。The utility model will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

图1为现有红外线遥控系统的示意图。FIG. 1 is a schematic diagram of an existing infrared remote control system.

图2为相位调变的波形示意图。FIG. 2 is a schematic diagram of a waveform of phase modulation.

图3为脉波宽度调变的波形示意图。FIG. 3 is a schematic diagram of a pulse width modulation waveform.

图4为脉波位置调变的波形示意图。FIG. 4 is a schematic diagram of a waveform of pulse position modulation.

图5为本实用新型实施例辨识遥控器指令的流程图。FIG. 5 is a flow chart of identifying remote control commands according to an embodiment of the present invention.

图6为本实用新型实施例用于电子装置的红外线遥控系统的示意图。FIG. 6 is a schematic diagram of an infrared remote control system for an electronic device according to an embodiment of the present invention.

图7为译码辨识装置的示意图。FIG. 7 is a schematic diagram of a decoding and identification device.

图8显示根据本实用新型实施例的译码逻辑单元的示意图。FIG. 8 shows a schematic diagram of a decoding logic unit according to an embodiment of the present invention.

【主要组件符号说明】[Description of main component symbols]

10、60红外线遥控系统10, 60 infrared remote control system

12、62发射端12, 62 transmitter

14、64接收端14, 64 receiving end

120、620输入接口120, 620 input interface

122、622编码模块122, 622 encoding module

126、626红外线发射器126, 626 infrared emitters

140、640红外线接收器140, 640 infrared receiver

642译码辨识装置642 decoding identification device

144、644控制模块144, 644 control module

146、646功能模块146, 646 function modules

148微控制器148 microcontrollers

150储存单元150 storage units

700接收端700 receiver

702计数单元702 counting unit

704逻辑单元704 logic unit

800边缘侦测单元800 edge detection units

802缓存器802 buffer

804译码辨识单元804 decoding identification unit

806译码数据库806 decoding database

808先进先出储存单元808 FIFO storage unit

810多任务器810 multitasker

50流程50 processes

500、502、504、506、508步骤500, 502, 504, 506, 508 steps

812讯号812 signal

814、816、817讯号路径814, 816, 817 signal path

具体实施方式 Detailed ways

如图5所示,它是本实用新型实施例辨识遥控指令的流程50的示意图,包含以下步骤:As shown in FIG. 5 , it is a schematic diagram of a process 50 for identifying remote control commands according to an embodiment of the present invention, which includes the following steps:

步骤500:开始。Step 500: start.

步骤502:接收遥控器所输出的遥控控制讯号。Step 502: Receive a remote control signal output by the remote controller.

步骤504:计算控制讯号中波形下降缘至相邻的波形上升缘所经过的讯号周期数。Step 504: Calculate the number of signal cycles from the falling edge of the waveform of the control signal to the rising edge of the adjacent waveform.

步骤506:根据控制讯号中每一波形下降缘至相邻的波形上升缘所经过的讯号周期数,辨识控制讯号所对应的指令。Step 506: Identify the command corresponding to the control signal according to the number of signal cycles elapsed from the falling edge of each waveform in the control signal to the rising edge of the adjacent waveform.

步骤508:结束。Step 508: end.

本实用新型计算控制讯号中波形下降缘至相邻的波形上升缘所经过的讯号周期数,以辨识控制讯号所对应的指令。以脉波宽度调变为例(如第3图所示),脉波宽度调变系以发射红外线载波调变高、低位准之比(工作周期)代表“0”和“1”,如:在NEC的编码标准中,假设使用讯号周期为1微秒(μs,microsecond),“0”为高位准0.56毫秒,低位准0.56毫秒;“1”为高位准0.56毫秒,低位准1.68毫秒。因此,当波形下降缘至相邻的波形上升缘所经过的讯号周期数约为560(0.56ms/1μs)时,则对应的位为“0”;当波形下降缘至相邻的波形上升缘所经过的讯号周期数约为1680(1.68ms/1μs)时,则对应的位为“1”。较佳地,可根据波形下降缘至相邻的波形上升缘所经过的讯号周期数,以辨识对应的位信息。当取得控制讯号的所有位后,即可据以辨识控制讯号所对应的指令。较佳地,脉波宽度调变系以低位准时间区别“0”和“1”的讯号,而计算波形下降缘至时序上落后于该波形下降缘的相邻波形上升缘所经过的讯号周期数。当然,若脉波宽度调变系以高位准时间区别“0”和“1”的讯号,本实用新型亦可计算波形下降缘至时序上领先于该波形下降缘的相邻波形上升缘所经过的讯号周期数;在讯号型态上,也可因应设计者的习惯,将高、低位准反相;熟知此技艺的人士当可根据调变方式的不同,做不同的变化。The utility model calculates the number of signal cycles from the falling edge of the waveform in the control signal to the rising edge of the adjacent waveform, so as to identify the command corresponding to the control signal. Taking pulse width modulation as an example (as shown in Figure 3), the pulse width modulation system represents "0" and "1" by the ratio (duty cycle) of transmitting infrared carrier modulation high and low levels, such as: In the NEC coding standard, it is assumed that the signal period is 1 microsecond (μs, microsecond), "0" is 0.56 milliseconds for high level, 0.56 milliseconds for low level; "1" is 0.56 milliseconds for high level, 1.68 milliseconds for low level. Therefore, when the number of signal cycles from the falling edge of the waveform to the rising edge of the adjacent waveform is about 560 (0.56ms/1μs), the corresponding bit is "0"; when the falling edge of the waveform to the rising edge of the adjacent waveform When the number of signal cycles passed is about 1680 (1.68ms/1μs), the corresponding bit is "1". Preferably, the corresponding bit information can be identified according to the number of signal cycles elapsed from the falling edge of the waveform to the rising edge of the adjacent waveform. After obtaining all the bits of the control signal, the command corresponding to the control signal can be identified accordingly. Preferably, the pulse width modulation is to distinguish the signals of "0" and "1" by the low-level time, and calculate the signal period from the falling edge of the waveform to the rising edge of the adjacent waveform that is behind the falling edge of the waveform in timing. number. Of course, if the pulse width modulation system uses high-level time to distinguish "0" and "1" signals, the utility model can also calculate the passage from the falling edge of the waveform to the rising edge of the adjacent waveform that is ahead of the falling edge of the waveform in timing The number of signal cycles; in terms of signal type, the high and low levels can also be inverted according to the designer's habit; those who are familiar with this technology can make different changes according to the different modulation methods.

为了根据讯号周期数辨识控制讯号所对应的指令,可先设定复数个预设指令,每一预设指令对应于一预设讯号周期数组合;然后,当依序判断出控制讯号中每一波形下降缘至相邻的一波形上升缘所经过的讯号周期数的组合后,可比对该组合是否与一预设讯号周期数组合相符。若是,则可辨识该控制讯号所对应的指令即为该预设讯号周期数组合所对应的预设指令。也就是说,当取得每一波形下降缘至相邻的一波形上升缘所经过的讯号周期数后,可根据所有讯号周期数的组合,辨识遥控器所发出的指令。In order to identify the command corresponding to the control signal according to the number of signal cycles, a plurality of preset commands can be set first, and each preset command corresponds to a combination of preset signal cycle numbers; then, when each of the control signals is judged in sequence After the combination of the number of signal cycles elapsed from the falling edge of the waveform to the rising edge of an adjacent waveform, it can be compared whether the combination matches a preset number of signal cycles. If yes, it can be identified that the command corresponding to the control signal is the default command corresponding to the preset signal cycle number combination. That is to say, after obtaining the number of signal cycles from the falling edge of each waveform to the rising edge of an adjacent waveform, the commands issued by the remote controller can be identified according to the combination of all signal cycle numbers.

为了避免噪声或电磁突波干扰,在判断讯号周期数时,可设定第一临限值及第二临限值,当所判断的讯号周期数大于第一值与第一临限值之差且小于第一值与第二临限值之和时,仍判断讯号周期数为该第一值,而第一临限值与第二临限值可以藉由遥控器内硬件缓存器而设定,因此十分具有弹性,甚至可以将第一临限值与第二临限值经由单一缓存器设定为相同值,而达到类似效果,当可为熟知此技艺的人士所了解。如此一来,若控制讯号受到噪声干扰使得波形不稳定时,仍可正确辨识所对应的指令;应注意到,一般家电所使用的红外线收发系统系曝露于许多噪声干扰的环境之中,而红外线传输本身亦容易受到噪声干扰的影响,因此,让讯号判断基准点具有可调整的弹性,对于辨识控制指令的灵敏度与正确性系十分有利。In order to avoid noise or electromagnetic surge interference, the first threshold value and the second threshold value can be set when judging the number of signal cycles. When the judged signal cycle number is greater than the difference between the first value and the first threshold value and When it is less than the sum of the first value and the second threshold value, it is still judged that the number of signal cycles is the first value, and the first threshold value and the second threshold value can be set by the hardware register in the remote control, Therefore, it is very flexible, even the first threshold value and the second threshold value can be set to the same value through a single register to achieve a similar effect, which should be understood by those skilled in the art. In this way, if the control signal is disturbed by noise and the waveform is unstable, the corresponding command can still be correctly identified; The transmission itself is also easily affected by noise interference. Therefore, it is very beneficial for the sensitivity and correctness of the identification control command to have an adjustable reference point for signal judgment.

第6图显示根据本实用新型实施例用于电子装置的红外线遥控系统60的示意图。红外线遥控系统60包含有发射端62及接收端64。发射端62包含输入接口620、编码模块622及红外线发射器626。接收端64包含红外线接收器640、译码辨识装置642、控制模块644及功能模块646。在发射端62中,输入接口620包含有复数个按键,分别对应于不同功能,使用者可透过按压输入接口620的按键以启动或结束电子装置的功能。编码模块622可根据一预设原则,将输入接口620所输出的讯号转换为0、1的数字讯号,并加入表头或填补数据等,编码为特定格式的封包,并透过红外线发射器626以红外光的形式发射控制讯号至接收端64。相反地,在接收端64中,红外线接收器640可将红外线发射器626所发射的讯号,透过光电转换的处理,将红外光的控制讯号传换为电子讯号。译码辨识装置642可实现流程50,用来辨识发射端62所输出的控制讯号的指令。控制模块644用来根据译码辨识装置642的辨识结果命令功能模块646执行对应的功能F’(1)…F’(n)。FIG. 6 shows a schematic diagram of an infrared remote control system 60 for electronic devices according to an embodiment of the present invention. The infrared remote control system 60 includes a transmitter 62 and a receiver 64 . The transmitting end 62 includes an input interface 620 , an encoding module 622 and an infrared transmitter 626 . The receiving end 64 includes an infrared receiver 640 , a decoding and identifying device 642 , a control module 644 and a function module 646 . In the transmitting end 62 , the input interface 620 includes a plurality of buttons corresponding to different functions. The user can activate or end the function of the electronic device by pressing the button of the input interface 620 . The encoding module 622 can convert the output signal of the input interface 620 into a digital signal of 0 and 1 according to a preset principle, and add a header or fill data, etc., encode it into a packet of a specific format, and send it through the infrared transmitter 626 The control signal is transmitted to the receiving end 64 in the form of infrared light. On the contrary, in the receiving end 64, the infrared receiver 640 can convert the signal emitted by the infrared emitter 626 into an electronic signal through photoelectric conversion processing. The decoding and identifying device 642 can implement the process 50 for identifying the command of the control signal output by the transmitter 62 . The control module 644 is used to instruct the function module 646 to execute the corresponding functions F'(1)...F'(n) according to the recognition result of the decoding and recognition device 642 .

第7图显示根据本实用新型实施例的译码辨识装置642的示意图,包含有接收端700、计数单元702及逻辑单元704。接收端700用来由红外线接收器640接收该发射端62所输出的控制讯号。计数单元702用来计算接收端700所接收的控制讯号中波形下降缘至相邻的波形上升缘所经过的讯号周期数。逻辑单元704则根据计数单元702的计算结果,辨识控制讯号所对应的指令。译码辨识装置642计算控制讯号中波形下降缘至相邻的波形上升缘所经过的讯号周期数,以辨识控制讯号所对应的指令。以脉波宽度调变为例(如第3图所示),脉波宽度调变系以发射红外线载波的低位准与高位准之比(工作周期)代表“0”和“1”,如:在NEC的编码标准中,于此实施例中,假设计数单元702使用讯号周期为1微秒(μs,microsecond),“0”为高位准0.56毫秒,低位准0.56毫秒;“1”为高位准0.56毫秒,低位准1.68毫秒。因此,当计数单元702从下降缘起算所计算得出的讯号周期数约为560(0.56ms/1μs)时,则逻辑单元704可判断对应的位为“0”;当计数单元702从下降缘起算所计算得出的讯号周期数约为1680(1.68ms/1μs)时,则逻辑单元704可判断对应的位为“1”。换句话说,译码辨识装置642系根据波形下降缘至相邻的波形上升缘所经过的讯号周期数,以判断对应的位。当取得控制讯号的所有位后,透过逻辑单元704辨识控制讯号所对应的指令。应注意到,当脉波宽度调变以载波低位准时间区别“0”和“1”的讯号,计数单元702计算波形下降缘至时序上落后于该波形下降缘的相邻波形上升缘所经过的讯号周期数。当然,若脉波宽度调变系以高位准时间区别“0”和“1”的讯号,则计数单元702可计算波形下降缘至时序上领先于该波形下降缘的相邻波形上升缘所经过的讯号周期数。熟知此技艺者当可根据调变方式的不同,做不同的变化,例如根据波形下降缘至相邻(时序上落后或领先)的波形上升缘所经过的讯号周期数作为判断依据即可。FIG. 7 shows a schematic diagram of a decoding and identifying device 642 according to an embodiment of the present invention, including a receiving end 700 , a counting unit 702 and a logic unit 704 . The receiving end 700 is used for receiving the control signal output by the transmitting end 62 through the infrared receiver 640 . The counting unit 702 is used to count the number of signal cycles from the falling edge of the waveform to the rising edge of the adjacent waveform in the control signal received by the receiving end 700 . The logic unit 704 identifies the command corresponding to the control signal according to the calculation result of the counting unit 702 . The decoding and identifying device 642 calculates the number of signal cycles from the falling edge of the waveform in the control signal to the rising edge of the adjacent waveform, so as to identify the command corresponding to the control signal. Taking pulse width modulation as an example (as shown in Figure 3), the pulse width modulation system represents "0" and "1" by the ratio (duty cycle) of the low level and high level of the transmitted infrared carrier, such as: In the NEC coding standard, in this embodiment, it is assumed that the counting unit 702 uses a signal period of 1 microsecond (μs, microsecond), "0" is a high level of 0.56 milliseconds, and a low level of 0.56 milliseconds; "1" is a high level 0.56 milliseconds, low level 1.68 milliseconds. Therefore, when the number of signal cycles calculated by the counting unit 702 from the falling edge is about 560 (0.56ms/1μs), the logic unit 704 can determine that the corresponding bit is “0”; When the calculated signal cycle number is approximately 1680 (1.68ms/1μs), the logic unit 704 can determine that the corresponding bit is "1". In other words, the decoding and identifying device 642 judges the corresponding bit according to the number of signal cycles elapsed from the falling edge of the waveform to the rising edge of the adjacent waveform. After all the bits of the control signal are obtained, the logic unit 704 is used to identify the command corresponding to the control signal. It should be noted that when the pulse width modulation uses the carrier low level time to distinguish the signal of "0" and "1", the counting unit 702 counts the time elapsed from the falling edge of the waveform to the rising edge of the adjacent waveform that is behind the falling edge of the waveform in timing number of signal cycles. Of course, if the pulse width modulation system uses high level time to distinguish "0" and "1" signals, the counting unit 702 can calculate the time elapsed from the falling edge of the waveform to the rising edge of the adjacent waveform that is ahead of the falling edge of the waveform in timing number of signal cycles. Those who are familiar with this technique can make different changes according to different modulation methods, for example, according to the number of signal cycles elapsed from the falling edge of the waveform to the rising edge of the adjacent waveform (behind or ahead in timing) as the basis for judgment.

在译码辨识装置642中,较佳地于红外线接收器640与接收端700间设置一除噪单元(未绘示),用来消除控制讯号的电磁突波(glitch)干扰。In the decoding and identification device 642 , a denoising unit (not shown) is preferably provided between the infrared receiver 640 and the receiving end 700 to eliminate electromagnetic glitch interference of the control signal.

在译码辨识装置642中,逻辑单元704根据计数单元702的计数结果,判断所对应之位,其可以由控制模块644中的微处理器及程序代码(未绘于第6图中)实现,或者以独立的硬件电路或韧体实现。第8图显示根据本实用新型实施例的逻辑单元704的示意图,其包含有边缘侦测单元800、缓存器802、译码辨识单元804、译码数据库(code bank)806及先进先出储存单元808。缓存器802可设定第一临限值及第二临限值。根据第一临限值及第二临限值,当计数单元702所计数的讯号周期数大于第一值与第一临限值之差且小于该第一值与第二临限值之和时,边缘侦测单元800判断讯号周期数为第一值。当控制讯号受到噪声干扰使得波形不稳定时,仍可正确判断所对应的译码数据。译码数据库806用来储存复数个译码数据。当边缘侦测单元800所取得的每一波形下降缘至相邻的一波形上升缘所经过的讯号周期数的组合等于一预设讯号周期数组合时,译码辨识单元804可辨识控制讯号所对应的指令为该预设讯号周期数组合所对应的译码数据或指令。先进先出储存单元808用来储存译码数据库806所输出的译码数据或指令码,并以先进先出的传输方式,将指令传输至控制模块644中,以执行对应的功能。计数单元702取得每一波形下降缘至相邻的波形上升缘所经过的讯号周期数后;边缘侦测单元800可弹性地判断边缘所在位置是否合理,而送出所判断的正确讯号周期数;译码辨识单元804可根据所有讯号周期数的组合,辨识遥控器所发出讯号所代表的数据或指令,译码辨识单元804较佳地为状态机(statemachine),举例而言,因为每个接收讯号前面都会有表头,译码辨识单元804先辨识每个接收讯号的表头是否正确,然后才进入正式辨识译码数据,经由讯号路径816将译码数据送入译码数据库806,更进一步地,译码辨识单元804可经由讯号路径817将译码数据库806中的译码数据取回,根据译码数据进行进一步辨识解析所代表的指令,并再度经由讯号路径816将指令送入译码数据库806暂存;然后将指令存入先进先出储存单元808后传至控制模块644做适当处理,控制模块644较佳地为微处理器,例如8051微处理器。In the decoding identification device 642, the logic unit 704 judges the corresponding bit according to the counting result of the counting unit 702, which can be realized by the microprocessor and the program code (not shown in the 6th figure) in the control module 644, Alternatively, it may be implemented with independent hardware circuits or firmware. FIG. 8 shows a schematic diagram of a logic unit 704 according to an embodiment of the present invention, which includes an edge detection unit 800, a register 802, a decoding identification unit 804, a decoding database (code bank) 806 and a first-in-first-out storage unit 808. The register 802 can set a first threshold and a second threshold. According to the first threshold value and the second threshold value, when the number of signal cycles counted by the counting unit 702 is greater than the difference between the first value and the first threshold value and less than the sum of the first value and the second threshold value , the edge detection unit 800 determines that the number of signal cycles is a first value. When the waveform of the control signal is disturbed by noise and the waveform is unstable, the corresponding decoded data can still be correctly judged. The decoding database 806 is used to store a plurality of decoding data. When the combination of the number of signal cycles from the falling edge of each waveform to the rising edge of an adjacent waveform obtained by the edge detection unit 800 is equal to a preset combination of signal cycles, the decoding and identification unit 804 can identify the control signal. The corresponding command is the decoded data or command corresponding to the preset signal cycle number combination. The FIFO storage unit 808 is used to store the decoding data or instruction codes output by the decoding database 806 , and transmit the instructions to the control module 644 in a first-in-first-out transmission manner to execute corresponding functions. After the counting unit 702 obtains the number of signal cycles from the falling edge of each waveform to the rising edge of the adjacent waveform; the edge detection unit 800 can flexibly judge whether the position of the edge is reasonable, and send the correct number of signal cycles judged; The code identification unit 804 can identify the data or instructions represented by the signal sent by the remote controller according to the combination of all signal cycle numbers. The decoding identification unit 804 is preferably a state machine (statemachine), for example, because each received signal There will be headers in the front, and the decoding identification unit 804 first identifies whether the headers of each received signal are correct, and then enters the formal identification of the decoding data, and sends the decoding data to the decoding database 806 through the signal path 816, and further , the decoding identification unit 804 can retrieve the decoding data in the decoding database 806 through the signal path 817, further identify and analyze the represented instruction according to the decoding data, and send the instruction into the decoding database through the signal path 816 again 806 temporary storage; then store the instruction in the FIFO storage unit 808 and then send it to the control module 644 for proper processing. The control module 644 is preferably a microprocessor, such as an 8051 microprocessor.

此外,在第8图中,先进先出储存单元808另可用来直接储存计数单元702的计数结果(或称作原始数据,raw data),于此实施例中,讯号812可以接收计数单元702的计数结果,经由讯号路径814以及多任务器810的选择,直接存入先进先出储存单元808;然后经由中断呼叫后端的微处理器(如8051)来取走先进先出储存单元808内的原始数据进行译码运作,仍可达到不占用微处理器内部定时器资源的目的。也就是说,计数单元702的计数结果可不经由边缘侦测单元800、译码辨识单元804及译码数据库806的处理,直接透过先进先出储存单元808传送至控制模块644中,以符合其它特殊应用,例如非脉波宽度调变解碼的情形。因此,本实用新型可应用于不同类型的遥控系统,系统厂商可根据不同的红外线遥控系统,弹性地实现解编码功能,系统厂商(如液晶电视的生产厂商)可透过本实用新型的红外线遥控系统,非常便利地实现不同的解编码要求,以节省生产时间、成本。In addition, in Figure 8, the FIFO storage unit 808 can also be used to directly store the counting result (or called raw data, raw data) of the counting unit 702. In this embodiment, the signal 812 can receive the counting result of the counting unit 702 The counting result is directly stored in the first-in-first-out storage unit 808 through the selection of the signal path 814 and the multiplexer 810; The decoding operation of the data can still achieve the purpose of not occupying the internal timer resource of the microprocessor. That is to say, the counting result of the counting unit 702 can be directly sent to the control module 644 through the first-in-first-out storage unit 808 without being processed by the edge detection unit 800, the decoding identification unit 804, and the decoding database 806, so as to meet other requirements. Special applications, such as the case of non-PWM decoding. Therefore, the utility model can be applied to different types of remote control systems. System manufacturers can flexibly realize the decoding function according to different infrared remote control systems. System manufacturers (such as manufacturers of LCD TVs) can use the infrared remote control of the utility model System, it is very convenient to realize different decoding requirements to save production time and cost.

根据本实用新型于所揭示的第8图硬件架构,可以支持三种弹性译码模式,包含完全译码模式(full decode mode)、原始数据译码模式(raw data mode)、以及软件译码模式(software decode mode)。于完全译码模式下,译码辨识单元804经由讯号路径816将译码数据送入译码数据库806,再经由讯号路径817将译码数据库806中的译码数据取回,根据译码数据进行进一步辨识解析所代表的指令,并再度经由讯号路径816将指令送入译码数据库806暂存,因此可以将讯号所代表的指令完整解析出来而暂存于译码数据库806,发出中断呼叫请微处理器来取出指令反应。于原始数据译码模式下,译码辨识单元804经由讯号路径816将译码数据送入译码数据库806,便直接发出中断请微处理器来读取译码数据进行处理。于软件译码模式下,计数单元702的计数结果经由讯号路径814以及多任务器810的选择,直接存入先进先出储存单元808,直接发出中断请微处理器来读取计数结果进行处理。因此本硬件架构可以提供系统设计者最大的设计弹性,实现通用接收器并达成通用解碼的目的。According to the hardware architecture disclosed in Figure 8 of the present invention, three flexible decoding modes can be supported, including full decoding mode (full decode mode), raw data decoding mode (raw data mode), and software decoding mode (software decode mode). In the full decoding mode, the decoding identification unit 804 sends the decoding data into the decoding database 806 through the signal path 816, and then retrieves the decoding data in the decoding database 806 through the signal path 817, and performs Further identify the command represented by the analysis, and send the command to the decoding database 806 for temporary storage through the signal path 816 again, so that the command represented by the signal can be completely parsed out and temporarily stored in the decoding database 806. Processor to fetch instruction response. In the original data decoding mode, the decoding identification unit 804 sends the decoding data to the decoding database 806 through the signal path 816, and then directly sends an interrupt to request the microprocessor to read the decoding data for processing. In the software decoding mode, the counting result of the counting unit 702 is directly stored in the FIFO storage unit 808 through the selection of the signal path 814 and the multiplexer 810, and an interrupt is directly sent to ask the microprocessor to read the counting result for processing. Therefore, this hardware architecture can provide system designers with maximum design flexibility, realize a universal receiver and achieve the purpose of universal decoding.

综上所述,本实用新型系计算遥控器所发出的控制讯号中,相邻讯号转态(transition)间的讯号周期数,例如每一波形下降缘至相邻的一波形上升缘所经过的讯号周期数,据以辨识控制讯号所对应的指令,根据本实用新型的揭示可节省微处理器中用来计算高、低位准的持续时间的定时器,因此节省微处理器的资源使用,并提升其效率,加强多媒体输出的质量。此外,除了透过硬件电路进行译码的运作外,本实用新型亦可透过微处理器进行原始数据译码运算,以符合不同红外线遥控系统的需求,提供系统厂商最大的设计弹性与便利性,从而实现通用型遥控接收器,节省系统厂商的生产时间、成本。In summary, the utility model calculates the number of signal cycles between adjacent signal transitions in the control signal sent by the remote controller, for example, the time from the falling edge of each waveform to the rising edge of an adjacent waveform The number of signal cycles is used to identify the corresponding command of the control signal. According to the disclosure of the utility model, the timer used to calculate the duration of the high and low levels in the microprocessor can be saved, so the resource usage of the microprocessor is saved, and Improve its efficiency and enhance the quality of multimedia output. In addition, in addition to the decoding operation through the hardware circuit, the utility model can also perform the original data decoding operation through the microprocessor to meet the needs of different infrared remote control systems and provide system manufacturers with maximum design flexibility and convenience , so as to realize a universal remote control receiver and save production time and cost of system manufacturers.

Claims (7)

1、一种用于通用遥控接收器的通用译码辨识装置,其特征在于,它包含有:1. A universal decoding and identification device for a universal remote control receiver, characterized in that it includes: 一计数单元,用以接收一遥控控制讯号并计算该控制讯号中两相邻讯号转态间所经过的复数个讯号周期数;A counting unit is used to receive a remote control signal and count the number of signal cycles between two adjacent signal transitions in the control signal; 一缓存器,用以储存设定第一临限值及第二临限值;a register for storing and setting the first threshold value and the second threshold value; 一边缘侦测单元,耦接于该缓存器,用以于当所述讯号周期数的讯号周期数大于第一值与该第一临限值之差且小于该第一值与该第二临限值之和时,仍判断该讯号周期数为该第一值;An edge detection unit, coupled to the register, used for when the signal cycle number of the signal cycle number is greater than the difference between the first value and the first threshold value and smaller than the first value and the second threshold value When the sum of limit values is exceeded, the number of signal cycles is still judged to be the first value; 一译码辨识单元,耦接于该边缘侦测单元,用以辨识所述译码数据;以及a decoding identification unit, coupled to the edge detection unit, for identifying the decoding data; and 一译码数据库,耦接于该译码辨识单元,用以储存所述译码数据。A decoding database, coupled to the decoding identification unit, is used for storing the decoding data. 2、如权利要求1所述的用于通用遥控接收器的通用译码辨识装置,其特征在于,另包含一除噪单元,耦接于该计数单元之前,用以消除该控制讯号的电磁突波干扰。2. The universal decoding and identification device for a universal remote control receiver as claimed in claim 1, further comprising a denoising unit coupled in front of the counting unit to eliminate the electromagnetic shock of the control signal. wave interference. 3、如权利要求1所述的用于通用遥控接收器的通用译码辨识装置,其特征在于,该译码辨识单元根据所述译码数据的组合辨识该遥控控制讯号所代表的遥控指令。3. The universal decoding and identifying device for a universal remote control receiver as claimed in claim 1, wherein the decoding and identifying unit identifies the remote control command represented by the remote control control signal according to the combination of the decoded data. 4、如权利要求1所述的用于通用遥控接收器的通用译码辨识装置,其特征在于,还包含一先进先出储存单元,用以储存所述译码数据,而该计数单元发出中断呼叫给微控制器,使得该微控制器读取该先进先出储存单元的内容。4. The universal decoding identification device for a universal remote control receiver as claimed in claim 1, further comprising a first-in-first-out storage unit for storing said decoding data, and the counting unit sends an interrupt A call is made to the microcontroller so that the microcontroller reads the contents of the FIFO storage unit. 5、如权利要求1所述的用于通用遥控接收器的通用译码辨识装置,其特征在于,其中该译码辨识单元根据所述译码数据的组合辨识该遥控控制讯号所代表的遥控指令,并将该遥控指令储存至该译码数据库。5. The universal decoding and identifying device for a universal remote control receiver according to claim 1, wherein the decoding and identifying unit identifies the remote control command represented by the remote control signal according to the combination of the decoded data , and store the remote control command into the decoding database. 6、如权利要求1所述的用于通用遥控接收器的通用译码辨识装置,其特征在于,还包含一先进先出储存单元,耦接至该译码数据库,用以储存所述译码数据,而该计数单元发出中断呼叫给微控制器,使得该微控制器读取该先进先出储存单元的内容。6. The universal decoding identification device for a universal remote control receiver as claimed in claim 1, further comprising a first-in-first-out storage unit coupled to the decoding database for storing said decoding data, and the counting unit sends an interrupt call to the microcontroller, so that the microcontroller reads the content of the FIFO storage unit. 7、如权利要求1所述的用于通用遥控接收器的通用译码辨识装置,其特征在于,还包含:7. The universal decoding and identifying device for a universal remote control receiver according to claim 1, further comprising: 一多任务器,耦接至该译码数据库以及该计数单元;以及a multiplexer, coupled to the decoding database and the counting unit; and 一先进先出储存单元,耦接至该多任务器。A FIFO storage unit is coupled to the multiplexer.
CNU2007201225313U 2007-08-28 2007-08-28 Universal decoding and identification device for universal remote control receiver Expired - Lifetime CN201174169Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201225313U CN201174169Y (en) 2007-08-28 2007-08-28 Universal decoding and identification device for universal remote control receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201225313U CN201174169Y (en) 2007-08-28 2007-08-28 Universal decoding and identification device for universal remote control receiver

Publications (1)

Publication Number Publication Date
CN201174169Y true CN201174169Y (en) 2008-12-31

Family

ID=40201293

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201225313U Expired - Lifetime CN201174169Y (en) 2007-08-28 2007-08-28 Universal decoding and identification device for universal remote control receiver

Country Status (1)

Country Link
CN (1) CN201174169Y (en)

Similar Documents

Publication Publication Date Title
CN101404113B (en) A Method of Using Software to Realize Infrared Remote Control Decoding in Embedded System
US9811499B2 (en) Transcoding and transmission over a serial bus
CN202907115U (en) Secondary remote control device, television and remote control system
EP1801763A2 (en) Method for communicating infrared remote control data and learning infrared remote control device
WO2023185263A1 (en) Modulation signal processing apparatus and method, and micro control unit and electronic device
CN101465050A (en) Method for controlling controlled electric appliance through remote controller and remote controller
CN102695013B (en) Intelligent television volume adjusting method and system
CN102074106A (en) Learning method of learning type remote controller
CN201174169Y (en) Universal decoding and identification device for universal remote control receiver
CN100595742C (en) Unified Access Method for Embedded Peripherals
CN111225258A (en) Display apparatus and control method thereof
CN100435074C (en) TV infrared remote control receiving device and receiving method in notebook computer
JP5444455B2 (en) Wireless remote control signal transmitting device and wireless remote control signal receiving device
CN219181725U (en) CAN data frame synchronization structure and atmosphere lamp light stream frame synchronization control system
JPH09139987A (en) Method and remote control method for learning of ir code
CN101127156B (en) Universal decoding and identification device for universal remote control receiver
US8072315B2 (en) Method and apparatus for universally decoding commands of a remote controller
CN101155278A (en) Electrical equipment with multi-remote controller control function and implementation method thereof
CN110942612A (en) A remote control control method, remote control and remote control system
CN101465047A (en) Intelligent remote controller and control method thereof
TWI398109B (en) Universal infrared receiving apparatus and associated method
CN103186978B (en) Control the circuit structure of Infrared Remote-Control Sending
CN101365078A (en) Remote control command code forwarding method for television set receiver
CN107425933A (en) A kind of CDR terminal devices using IIC communications protocol
CN217883447U (en) Single bus communication device based on microcontroller

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20081231

CX01 Expiry of patent term