JP2985239B2 - Learning remote control transmitter - Google Patents

Learning remote control transmitter

Info

Publication number
JP2985239B2
JP2985239B2 JP2169045A JP16904590A JP2985239B2 JP 2985239 B2 JP2985239 B2 JP 2985239B2 JP 2169045 A JP2169045 A JP 2169045A JP 16904590 A JP16904590 A JP 16904590A JP 2985239 B2 JP2985239 B2 JP 2985239B2
Authority
JP
Japan
Prior art keywords
remote control
pulse
data
control signal
pulse width
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
JP2169045A
Other languages
Japanese (ja)
Other versions
JPH0457595A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2169045A priority Critical patent/JP2985239B2/en
Publication of JPH0457595A publication Critical patent/JPH0457595A/en
Application granted granted Critical
Publication of JP2985239B2 publication Critical patent/JP2985239B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は主に、テレビジョン受信機などの各種電子機
器に使用される学習リモコン送信機に関するものであ
り、更に詳しく言えば、複数の個々の送信機の内の任意
のリモコン信号をエミュレート(模倣)するためにプロ
グラムできる再構成可能なリモコン送信機に関するもの
で、1キー当りのリモコン信号を記憶するのに必要なメ
モリの容量が少なくて済み、所定のメモリに、より多く
のリモコン信号で学習できる学習リモコン送信機に関す
るものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention mainly relates to a learning remote control transmitter used for various electronic devices such as a television receiver, and more specifically, to a plurality of individual transmissions. Reconfigurable remote control transmitter that can be programmed to emulate any remote control signal in the machine, requiring less memory to store remote control signals per key The present invention relates to a learning remote control transmitter capable of learning in a predetermined memory with more remote control signals.

従来の技術 第8図から第12図により従来の学習リモコン送信機の
動作とともに構成を説明すると、101は、エミュレート
されるリモコン送信機である。このリモコン送信機101
の発光部102を、学習リモコン送信機111のPINダイオー
ド112に対向して配置し、学習リモコン送信機111のモー
ド切替スイッチ125を通常モード126(この学習リモコン
送信機111のキー124を押すと、学習した所定のリモコン
信号が送信されるモード)から学習モード127(この学
習リモコン送信機111の特定のキー124にエミュレートし
たいリモコン送信機101の送信を学習するモード)に切
り替え、学習リモコン送信機111が学習モード127になっ
たことを表示回路121で確認する。その後で、エミュレ
ートするリモコン送信機101のキー103を押して発光部10
2から光信号104を送信する。
2. Description of the Related Art The operation and the configuration of a conventional learning remote control transmitter will be described with reference to FIGS. 8 to 12. Reference numeral 101 denotes an emulated remote control transmitter. This remote control transmitter 101
The light emitting section 102 of the learning remote control transmitter 111 is disposed so as to face the PIN diode 112, and the mode changeover switch 125 of the learning remote control transmitter 111 is set to the normal mode 126 (when the key 124 of the learning remote control transmitter 111 is pressed, The learning remote control transmitter is switched from a mode in which a learned predetermined remote control signal is transmitted to a learning mode 127 (a mode in which transmission of the remote control transmitter 101 to be emulated to a specific key 124 of the learning remote control transmitter 111 is learned). The display circuit 121 confirms that 111 has entered the learning mode 127. After that, press the key 103 of the remote control transmitter 101 to emulate
The optical signal 104 is transmitted from 2.

送信された光信号104は、学習リモコン送信機111のPI
Nダイオード112に受信される。
The transmitted optical signal 104 is the PI of the learning remote control transmitter 111.
Received by N diode 112.

PINダイオード112は学習モード中にエミュレートすべ
きリモコン送信機101からの光信号104を電気信号に変換
する光電気変換素子で、その変換された電気信号は、入
ってきた信号を忠実に増幅するプリアンプ部113に送ら
れる。
The PIN diode 112 is a photoelectric conversion element that converts the optical signal 104 from the remote control transmitter 101 to be emulated during the learning mode into an electric signal. The converted electric signal faithfully amplifies the incoming signal. This is sent to preamplifier section 113.

プリアンプ部113から出てきた信号は次の周波数回路1
14と波形整形回路117に分離される。
The signal output from the preamplifier unit 113 is transmitted to the next frequency circuit 1
14 and a waveform shaping circuit 117.

まず、周波数回路114は、学習モード時に、パルス群
の各バースト中のパルスの周波数(以下キャリア周波数
と称す)を周波数回路114内部の周波数カウンタ115で測
定する回路で、周波数カウンタ115はマイクロプロセッ
サ120を駆動するための基本クロック発生回路123から出
力されるクロック数を測定することによってキャリア周
波数の測定を行う様になっている。又、通常モード時に
は、学習リモコン送信機111のキー124が押されたときに
学習モードで測定し、記憶したキャリア周波数の値を周
波数カウンタ115にセットするだけでキャリア周波数を
発生させる回路でもある。
First, the frequency circuit 114 is a circuit for measuring the frequency of a pulse in each burst of a pulse group (hereinafter referred to as a carrier frequency) by a frequency counter 115 inside the frequency circuit 114 in the learning mode. The carrier frequency is measured by measuring the number of clocks output from the basic clock generation circuit 123 for driving the clock. In addition, in the normal mode, the circuit is a circuit that measures in the learning mode when the key 124 of the learning remote control transmitter 111 is pressed and generates the carrier frequency simply by setting the stored carrier frequency value in the frequency counter 115.

以上周波数回路114では、学習モード時に、プリアン
プ部113からきたリモコン信号のキャリア周波数を測定
するとともに、そのキャリア周波数は、測定完了と同時
にラッチ回路116に出力されラッチされる。
As described above, the frequency circuit 114 measures the carrier frequency of the remote control signal from the preamplifier unit 113 in the learning mode, and the carrier frequency is output to the latch circuit 116 and latched simultaneously with the completion of the measurement.

上記プリアンプ部113から出てきたリモコン信号は、
もう一方の回路であるリモコン信号のエンベローブカー
ブを取り出す波形整形回路117に入る。その波形整形回
路117から出てきた信号は、リモコン信号のキャリア周
波数成分を取り除いたパルス信号で、次のパルス幅回路
118のカウンタ部119に入り、第9図(a)に示すパルス
幅T1H,T1L,T2H,T2L,T3H,T3L……を順番に測定し、各パ
ルス幅2バイトずつのデータで、第9図(b)の様に、
ランダムアクセスメモリ122(以後SRAMと記す)に蓄積
するようになっている。
The remote control signal output from the preamplifier unit 113 is
It enters the other circuit, a waveform shaping circuit 117 for extracting the envelope curve of the remote control signal. The signal output from the waveform shaping circuit 117 is a pulse signal from which the carrier frequency component of the remote control signal has been removed.
, The pulse widths T1H, T1L, T2H, T2L, T3H, T3L... Shown in FIG. 9 (a) are measured in order, and data of each pulse width of 2 bytes is used. As in (b),
The data is stored in a random access memory 122 (hereinafter referred to as SRAM).

次に、リモコン信号のパルス幅を測定する方法につい
て第9図(a),(b),(c)も用いて説明すると、
リモコン信号のエンベローブカーブ入力の変化、すなわ
ち、リモコン信号のパルスの立ち上がりを検出して、マ
イクロプロセッサ120に割り込み128をかける。その後、
すぐにマイクロプロセッサ120を駆動する基本クロック
発生回路123から出力されるクロックを分周回路129で分
周した分周クロック(この場合には16分周している)の
数のカウントを開始してパルス幅T1Hの測定を開始す
る。すなわち、“パルス幅=クロックのカウント数”と
いうことになる。そして、今度はパルスの立ち下がりと
同時に、マイクロプロセッサ120に、再度、割り込み128
をかける。その後すぐに、マイクロプロセッサ120は分
周クロックのカウントを停止し、測定されたパルスの幅
T1HのデータをすぐにSRAM122の中の約500バイトの容量
で構成されるワークエリアに順番に取り込み記憶させ
る。
Next, a method of measuring the pulse width of the remote control signal will be described with reference to FIGS. 9 (a), (b) and (c).
A change in the envelope curve input of the remote control signal, that is, the rising edge of the pulse of the remote control signal is detected, and an interrupt 128 is applied to the microprocessor 120. afterwards,
Immediately starts counting the number of frequency-divided clocks (in this case, frequency-divided by 16) obtained by dividing the clock output from the basic clock generation circuit 123 that drives the microprocessor 120 by the frequency divider 129. Start measuring the pulse width T1H. That is, “pulse width = count number of clock”. Then, at the same time as the falling edge of the pulse, the microprocessor 120 is again interrupted 128
multiply. Immediately thereafter, microprocessor 120 stops counting the divided clock and measures the width of the measured pulse.
The data of T1H is immediately taken into the work area having a capacity of about 500 bytes in the SRAM 122 and is stored.

又、すぐにパルス幅回路118のカウンタ119のデータを
クリアして、又、次のパルス幅T1Lのカウントを開始す
る。次のパルスT2Hの立ち上がりまでマイクロプロセッ
サ120は時間待ち、または、他の仕事をしている。次に
来たパルスT2Hの立ち上がりで、カウントを停止して、
上記と同様にしてエンベローブカーブのパルス幅T1Lの
データをSRAM122のワークエリアに取り込む。この様に
してSRAM122のワークエリアが満杯になるまでカウント
を行い、記憶させる作業を続ける。終了と同時に、今度
は周波数回路114で測定されたキャリア周波数のデータ
をSRAM122の所定のエリアに取り込む。以上で、エミュ
レートすべきリモコン送信機のデータの取り込みが終了
する。なお、以後の説明のために、リモコン信号の中で
キャリア周波数が乗っている部分を、マークと呼び、キ
ャリア周波数のない部分をスペースと称する。すなわ
ち、リモコン信号が取り込まれたデータは、マークから
始まって、スペースと2バイトずつ交互にSRAM122のワ
ークエリアに書き込まれていることになる。
Further, the data of the counter 119 of the pulse width circuit 118 is immediately cleared, and the counting of the next pulse width T1L is started. The microprocessor 120 waits for time until the next rise of the pulse T2H, or is doing other work. At the next rising edge of pulse T2H, stop counting,
In the same manner as above, the data of the pulse width T1L of the envelope curve is taken into the work area of the SRAM 122. In this manner, counting is performed until the work area of the SRAM 122 becomes full, and the work of storing the count is continued. At the same time as the termination, the data of the carrier frequency measured by the frequency circuit 114 is taken into a predetermined area of the SRAM 122. This completes the capture of data from the remote control transmitter to be emulated. For the following description, a portion of the remote control signal where the carrier frequency is on is called a mark, and a portion without the carrier frequency is called a space. That is, the data in which the remote control signal is taken in is written in the work area of the SRAM 122 alternately by space and 2 bytes starting from the mark.

次に、SRAM122のワークエリアに取り込んだデータの
圧縮、並びに、登録の仕方について説明すると、このSR
AM122のワークエリアに取り込まれたリモコン信号のエ
ンベローブカーブのデータの最初の圧縮は、マーク,ス
ペースの組合せを1つの単位と見なして、いくつかのパ
ルス幅のグループに分類し、分類されたパルス幅群に4
ビットで構成されるパルス番号(16進法で記す)1,2,…
…A,B,C,……Fを付け、ワークエリアに蓄えられた2バ
イトずつのデータを上記パルス番号に置き換える事であ
る。
Next, the method of compressing and registering the data taken into the work area of the SRAM 122 will be described.
The first compression of the envelope curve data of the remote control signal taken into the work area of AM122 is based on the combination of mark and space as one unit, and classified into several groups of pulse widths. 4 in group
Pulse number composed of bits (in hexadecimal notation) 1,2, ...
.. A, B, C,... F, and the data of 2 bytes stored in the work area is replaced with the pulse number.

そのために、まず、SRAM122のワークエリアのデータ
に取り込んだマーク,スペースのデータを第9図(c)
の様に、マーク,マーク+スペース(今後はマーク+ス
ペースをピリオドと呼ぶ)のデータに置き換えて、再登
録する。
For this purpose, first, the mark and space data taken into the work area data of the SRAM 122 are shown in FIG. 9 (c).
And re-register by replacing the data of mark, mark + space (hereinafter, mark + space is called period).

次に、上記パルス幅の分類の仕方について第10図によ
り説明すると、分類は、パルス幅の上記マークとピリオ
ドをいくつかのパルス番号に分類するために行なわれ、
ある公称範囲内にある全てのマークとピリオドがある番
号に適切に分類されるように、グループ分けを行い、下
限値,中間値,及び上限値を決定するものである。
Next, a method of classifying the pulse width will be described with reference to FIG. 10. The classification is performed to classify the mark and the period of the pulse width into several pulse numbers.
Grouping is performed so that all marks and periods within a certain nominal range are appropriately classified into a certain number, and a lower limit, an intermediate value, and an upper limit are determined.

すなわち、使用される各パルス番号1,2,3,……に対し
て、マークとピリオドの上限値,下限値が設定される事
になる。次に、第11図(a)のように、このワークエリ
アに蓄えられたデータは、この上限値,下限値と比較さ
れ、中間値のデータに置き換えられ、その後で、すべ
て、前記パルス番号1,2,3,……に置き換えられ、このパ
ルス番号には、マーク、及びピリオドの各2バイトの幅
データの代表値である中間値が設定されることになる。
なお、第11図(b)はリモコン信号をパルス番号で表し
た説明図である。
That is, the upper limit and the lower limit of the mark and the period are set for each of the pulse numbers 1, 2, 3,... Used. Next, as shown in FIG. 11 (a), the data stored in the work area is compared with the upper limit value and the lower limit value, and is replaced with data of an intermediate value. , 2, 3,..., And the pulse number is set to an intermediate value which is a representative value of the 2-byte width data of the mark and the period.
FIG. 11 (b) is an explanatory diagram in which the remote control signal is represented by a pulse number.

この様にして、最初の圧縮は、リモコン信号の各2バ
イトで構成されるマーク,スペースが、4ビットで構成
されるパルス番号に置き換えられることによって行なわ
れる。
In this way, the first compression is performed by replacing the mark and space composed of each 2 bytes of the remote control signal with the pulse number composed of 4 bits.

次の圧縮は、符号化されたリモコンデータ、すなわ
ち、各キーのデータを更に圧縮しなければならない。送
信中に赤外線信号を正確に再構成できるようにそのデー
タは全ての重要なデータを保持せねばならない。
In the next compression, the encoded remote control data, that is, the data of each key, must be further compressed. The data must carry all the important data so that the infrared signal can be correctly reconstructed during transmission.

その圧縮の過程を第12図(A),(B)に示す。この
過程はリモコンコードの中でコードの繰り返しを省く行
程でもある。
The compression process is shown in FIGS. 12 (A) and (B). This process is also a step of eliminating code repetition in the remote control code.

圧縮の仕方は、第12図(A),(B)に示すように最
初の番号が2回目の番号と比較され、両者が一致しなけ
れば、最初の2つの番号と次の2つの番号と比較する。
そして、両方の2つの番号が、再び、一致しなければ、
初めの3つの番号と次の3つの番号と比較する。この様
にワークエリアに格納されている番号の最初の半分が格
納されている残りの半分と比較されるまで1番号ずつ増
して比較が続けられる。それでも一致が認められなけれ
ば、その比較は最初から繰り返されるが、最初の1番号
は省き、それでも一致が認められないときには、次の2
番号が省かれる。第12図(A)はヘッド信号のない場合
である。“121213"が繰り返されている。従って、“121
213"というパルス番号列と、繰り返しの番号の先頭のパ
ルス番号が0番目にあることを記憶すればよい。第12図
(B)はヘッド番号がある場合である。“12"がヘッド
信号で、“3435"が繰り返し信号である。従って“12343
5"というパルス番号列と繰り返し部分の先頭のパルス番
号が2番目にあることを記憶すればよい。これによりリ
モコンデータは圧縮されたことになる。
As shown in FIGS. 12A and 12B, the first number is compared with the second number. If the two numbers do not match, the first two numbers and the next two numbers are compared. Compare.
And if the two numbers do not match again,
Compare the first three numbers with the next three numbers. In this way, the comparison is continued by incrementing by one number until the first half of the number stored in the work area is compared with the other half stored. If no match is found, the comparison is repeated from the beginning, but the first number is omitted, and if no match is found, the next two
The number is omitted. FIG. 12A shows a case where there is no head signal. “121213” is repeated. Therefore, "121
It is sufficient to store the pulse number sequence of "213" and the fact that the leading pulse number of the repetition number is the 0th. FIG. 12 (B) shows a case where there is a head number. , “3435” is a repetitive signal.
It is sufficient to store the pulse number sequence of 5 "and the fact that the first pulse number of the repeated portion is the second. This means that the remote control data is compressed.

すなわち、SRAM122の約500バイトのワークエリアに蓄
えられたエミュレートされたリモコン信号は、データ信
号,キャリア周波数のデータ,パルス幅データの種類の
数,単発信号か連続信号か,繰り返しは何番目のパルス
番号からか,パルス幅のデータ、等に変換される。この
様にして、取り込まれたリモコン信号のデータは取り扱
うことができる格納サイズ生まで圧縮され、エミュレー
ト中にデータを再送信するためにデータを圧縮されてい
ない書式に再び伸長できるように、全ての圧縮データも
保持される。
That is, the emulated remote control signal stored in the work area of about 500 bytes of the SRAM 122 is a data signal, data of a carrier frequency, the number of types of pulse width data, a single signal or a continuous signal, and a repetition number. It is converted from pulse number or pulse width data. In this manner, the captured remote control signal data is compressed to a manageable storage size, and all data is re-decompressed to an uncompressed format for retransmission of the data during emulation. Is also held.

これらにより、学習過程と格納過程が終わる。それら
の過程はエミュレートされる送信機における全てのキー
に共通のものである。
Thus, the learning process and the storing process are completed. These steps are common to all keys in the emulated transmitter.

次にエミュレートした信号を送信機111が発信する動
作の概要について説明すると、エミュレートした信号を
発信するためには送信機が必要とする格納されたコード
を読みだし、伸長させ、かつ、送ることが必要となる。
これには、まず、SRAM122内の正しいデータブロックが
アドレスされるように、どのソースが選択されたかを決
定することにより行われる。それからあるキー124が押
されると、そのソースのための全てのデータブロックの
SRAMの番地がマイクロプロセッサ120へ転送される。所
定のコードが見つかると、SRAMのワークエリアへ所定の
データブロックがコピーされる。
Next, an outline of the operation of transmitting the emulated signal by the transmitter 111 will be described. In order to transmit the emulated signal, the stored code required by the transmitter is read, decompressed, and transmitted. It is necessary.
This is done by first determining which source has been selected so that the correct data block in SRAM 122 is addressed. Then, when a key 124 is pressed, all data blocks for that source are
The address of the SRAM is transferred to the microprocessor 120. When a predetermined code is found, a predetermined data block is copied to a work area of the SRAM.

それと同時に、リモコンコード複製のため、圧縮され
たコードが伸長される。それからその複製されたコード
に、スタート値と長さ値及び繰り返し回数の値等が加え
られる。残っている行うべき操作は、必要なキャリア周
波数を発生することである。これは、前記周波数回路11
4の周波数カウンタに所定のデータをセットすることで
行われる。
At the same time, the compressed code is expanded for remote control code duplication. Then, a start value, a length value, a value of the number of repetitions, and the like are added to the copied code. The remaining operation to be performed is to generate the required carrier frequency. This is the frequency circuit 11
This is performed by setting predetermined data in the frequency counter 4.

この周波数回路114へはマイクロプロセッサ120を駆動
する基本クロックが入力されており、この基本クロック
の数をセットされたデータまでカウントし値が同じにな
ったときに周波数カウンタ115の出力を反転させるよう
になっている。この動作を繰り返すことによりキャリア
周波数を作り出している。
A basic clock for driving the microprocessor 120 is input to the frequency circuit 114. The number of the basic clock is counted up to the set data, and when the value becomes the same, the output of the frequency counter 115 is inverted. It has become. By repeating this operation, a carrier frequency is created.

伸長されたコードの伝送は、送信開始と共にまず、パ
ルス幅カウンタ119の出力を“H"にして、1番目のデー
タをパルス幅カウンタ119にセットする。その後で、そ
のデータを1データずつ減算していく。そのデータが、
“0"になったとき、今度は、パルス幅カウンタの出力を
“L"にする。そして、次のデータをパルス幅カウンタに
セットする。そして、上記と同様な作業を繰り返す。
When transmitting the expanded code, first, the output of the pulse width counter 119 is set to “H” at the start of transmission, and the first data is set in the pulse width counter 119. After that, the data is subtracted one by one. The data
When it becomes "0", the output of the pulse width counter is set to "L". Then, the next data is set in the pulse width counter. Then, the same operation as described above is repeated.

この様にしてエミュレートしたリモコン信号のエンベ
ローブカーブの再構成を行う。キャリア周波数とエンベ
ローブカーブとAND130を取ることによりリモコン信号の
再構成が可能となる。再構成されたリモコン信号は、駆
動回路131を通して、赤外線発光ダイオード132を駆動
し、電気信号を光信号に変換して、エミュレートされた
リモコン送信機で動作するテレビジョン受信機等に対し
て送信することにより、そのテレビジョン受像機を動作
させることができる。
The envelope curve of the emulated remote control signal is reconstructed. By taking the carrier frequency, the envelope curve, and the AND 130, it is possible to reconstruct the remote control signal. The reconstructed remote control signal drives the infrared light emitting diode 132 through the drive circuit 131, converts the electric signal to an optical signal, and transmits the signal to a television receiver or the like that operates with the emulated remote control transmitter. By doing so, the television receiver can be operated.

この様にして、いくつかのリモコン送信機をエミュレ
ートでき、操作が簡単で、制御される機器の相互接続や
改造を必要としない再構成可能なリモコン送信機が得ら
れた。
In this way, a reconfigurable remote control transmitter that can emulate several remote control transmitters, is easy to operate, and does not require interconnection or modification of the controlled devices is provided.

発明が解決しようとする課題 しかしながら前記のようなキーの学習の仕方ではSRAM
122の容量が一定であれば学習可能なキー数に限りがで
て、更に学習できるキー数を増やしていくとSRAM122の
容量が増加して、1ランク上のSRAMを使う必要が生じ、
価格が上昇するという問題ができる、又、マイコン部と
その周辺回路を1チップ化し、ローコスト化を図るため
には、できるだけSRAMの容量を小さくする必要があっ
た。又、SRAMの容量が大きくなると、SRAMのアドレス線
が増え、プリント基板の設計も複雑になっているのが現
実であった。そのために、本発明は学習したパルスコー
ド列を登録するのに必要な1キー当りのSRAMの容量を少
なくした学習リモコン送信機を提供することを目的とす
るものである。
Problems to be Solved by the Invention However, in the method of learning keys as described above, SRAM is used.
If the capacity of 122 is constant, the number of keys that can be learned is limited, and if the number of keys that can be further learned is increased, the capacity of the SRAM 122 will increase, and it will be necessary to use an SRAM one rank higher,
In order to reduce the cost, it is necessary to reduce the SRAM capacity as much as possible in order to reduce the cost by integrating the microcomputer section and its peripheral circuits into one chip. Also, when the capacity of the SRAM is increased, the number of address lines of the SRAM is increased, and the design of the printed circuit board is actually complicated. Therefore, an object of the present invention is to provide a learning remote control transmitter in which the amount of SRAM per key required to register a learned pulse code string is reduced.

課題を解決するための手段 上記課題を解決するために、従来パルスコード列のデ
ータの登録方法である、パルスコード列を受信した順番
に2バイトで構成されるパルス幅データを4ビットで構
成されるパルス番号に変換してメモリに登録していた
が、本発明の学習リモコンでは、更に圧縮を進めるため
に、リモコン信号を構成するパルスコード列を、ヘッド
パルスブロック,データパルスブロック,トレーラブロ
ック等のいくつかのブロックに分け、パルスコード列の
中で、使用頻度の高い順番にパルス番号を並べて、使用
頻度の高い1番目ともう1つのパルス番号のみによって
構成されているブロックを、データパルスブロックと仮
定し、データパルスブロックを構成する2種類のパルス
番号に対して1ビットからなる“1"と“0"の番号を割り
当てて、再登録することにより、データパルスブロック
を、従来、4ビットのパルス番号の集まりで構成してい
たものを、本発明では、1ビットで構成されるパルス番
号の集まりで構成することにより、1キー当りのメモリ
登録容量を大幅に減少させることができるようにしたも
のである。
Means for Solving the Problems In order to solve the above-mentioned problems, pulse width data composed of 2 bytes in the order in which the pulse code sequence was received, which is a conventional method of registering a pulse code sequence, is composed of 4 bits. In the learning remote controller of the present invention, a pulse code string constituting a remote control signal is converted into a head pulse block, a data pulse block, a trailer block, etc., in order to further advance compression. Are divided into several blocks, and the pulse numbers are arranged in the pulse code train in the order of the frequency of use. The block composed of only the first and the other pulse numbers with the high frequency of use is referred to as a data pulse block. It is assumed that 1-bit “1” and “0” numbers are assigned to the two types of pulse numbers constituting the data pulse block. By re-registering the data pulse block, the data pulse block, which has conventionally been constituted by a set of 4-bit pulse numbers, is now constituted by a set of 1-bit pulse numbers in the present invention. Thus, the memory registration capacity per key can be greatly reduced.

作用 従って、本発明によれば、リモコンコードの登録時
に、使用頻度の多いパルス番号を含む2種類以下のパル
ス番号から構成されるデータパルスブロックを決定し、
そのデータパルスブロックの登録を1ビットで構成され
る2種類のパルス信号を登録することによって、データ
パルスブロックの登録するのに必要なメモリ容量を大幅
に減少させることができ、同じメモリ容量のICを使った
場合でも学習できるキー数を大幅に増やすことができる
とともに1キー当りのメモリ使用コストを下げるという
効果を有するものである。
Therefore, according to the present invention, at the time of registering a remote control code, a data pulse block composed of two or less types of pulse numbers including frequently used pulse numbers is determined.
By registering two types of pulse signals composed of one bit for the registration of the data pulse block, the memory capacity required for registering the data pulse block can be greatly reduced, and an IC having the same memory capacity can be obtained. In this case, the number of keys that can be learned can be greatly increased, and the memory use cost per key can be reduced.

実施例 本発明の学習リモコン送信機の一実施例の構成および
動作について第1図〜第7図により説明する。第1図に
おいて、1は、エミュレートされるリモコン送信機であ
る。このリモコン送信機1の発光部2を、本発明の学習
リモコン送信機11のPINダイオード12に対向して配置
し、学習リモコン送信機11のモード切替スイッチ25を通
常モード26(この学習リモコン送信機11の24を押すと、
学習した所定のリモコン信号が送信されるモード)から
学習したモード27(この学習リモコン送信機11の特定の
キー24にエミュレートしたいリモコン送信機1の信号を
学習するモード)に切り替え、学習リモコン送信機11が
学習モード27になったことを表示回路21で確認する。そ
の後、エミュレートされるリモコン送信機1のキー3を
押して発光部2から光信号4を送信する。
Embodiment The configuration and operation of an embodiment of a learning remote control transmitter according to the present invention will be described with reference to FIGS. In FIG. 1, reference numeral 1 denotes a remote control transmitter to be emulated. The light-emitting unit 2 of the remote control transmitter 1 is arranged to face the PIN diode 12 of the learning remote control transmitter 11 of the present invention, and the mode changeover switch 25 of the learning remote control transmitter 11 is set to the normal mode 26 (this learning remote control transmitter 11). If you press 24 of 11,
The mode is switched from a learned predetermined remote control signal transmission mode to a learned mode 27 (a mode for learning a signal of the remote control transmitter 1 to be emulated to a specific key 24 of the learning remote control transmitter 11), and the learning remote control transmission is performed. The display circuit 21 confirms that the machine 11 has entered the learning mode 27. After that, the key 3 of the remote control transmitter 1 to be emulated is pressed to transmit the optical signal 4 from the light emitting unit 2.

送信された光信号4は、学習リモコン送信機11のPIN
ダイオード12に受信される。
The transmitted optical signal 4 is the PIN of the learning remote control transmitter 11.
Received by the diode 12.

PINダイオード12は学習モード中にエミュレートすべ
きリモコン送信機1からの光信号4を電気信号に変換す
る光電気変換素子で、その変換された電気信号は、入力
された信号を忠実に増幅するプリアンプ部13に送られ
る。
The PIN diode 12 is a photoelectric conversion element that converts the optical signal 4 from the remote control transmitter 1 to be emulated during the learning mode into an electric signal. The converted electric signal faithfully amplifies the input signal. The signal is sent to the preamplifier unit 13.

プリアンプ部13から出てきた信号は、次の回路である
周波数回路14と波形整形回路17に分けられる。
The signal output from the preamplifier 13 is divided into a frequency circuit 14 and a waveform shaping circuit 17, which are the next circuits.

まず、周波数回路14は、学習モード時に、パルス群の
各バースト中のパルスの周波数(以下従来技術と同様キ
ャリア周波数と称す)を周波数回路14内部の周波数カウ
ンタ15で測定する回路で、周波数カウンタ15はマイクロ
プロセッサ20を駆動するための基本クロック発生回路23
から出力されるクロック数を測定することによって、キ
ャリア周波数の測定を行う様になっている。又、通常モ
ード時には、学習リモコン送信機11のキー24が押された
ときに、学習モード測定し記憶したキャリア周波数の値
を周波数カウンタ15にセットするだけでキャリア周波数
を発生させる回路でもある。
First, the frequency circuit 14 is a circuit that measures the frequency of a pulse in each burst of a pulse group (hereinafter referred to as a carrier frequency as in the prior art) by the frequency counter 15 inside the frequency circuit 14 in the learning mode. Is a basic clock generation circuit 23 for driving the microprocessor 20
The carrier frequency is measured by measuring the number of clocks output from the. In the normal mode, when the key 24 of the learning remote control transmitter 11 is pressed, the carrier frequency is generated only by setting the value of the carrier frequency measured and stored in the learning mode in the frequency counter 15.

周波数回路14では、学習モード時に、プリアンプ部13
から出力されたリモコン信号のキャリア周波数を測定す
るとともに、そのキャリア周波数は、測定完了と同時に
ラッチ回路16に出力されラッチされる。
In the frequency circuit 14, in the learning mode, the preamplifier 13
The carrier frequency of the remote control signal output from is measured, and the carrier frequency is output to the latch circuit 16 and latched simultaneously with the completion of the measurement.

上記プリアンプ部13から出てきたリモコン信号は、も
う一方の回路であるリモコン信号のエンベローブカーブ
を取り出す波形整形回路17に入る。その波形整形回路17
から出てきた信号は、リモコン信号のキャリア周波数成
分を取り除いたパルス信号で、次のパルス幅回路18のカ
ウンタ部19に入り、第2図(a)に示すパルス幅T1H,T1
L,T2H,T2L,T3H,T3L……を順番に測定し、各パルス幅2
バイトずつのデータで第2図(b)の様にランダムアク
セスメモリ22(以後SRAMと称す)に蓄積するようになっ
ている。
The remote control signal output from the preamplifier 13 enters a waveform shaping circuit 17 which extracts the envelope curve of the remote control signal, which is another circuit. Its waveform shaping circuit 17
Is a pulse signal from which the carrier frequency component of the remote control signal has been removed, enters the counter 19 of the next pulse width circuit 18, and has a pulse width T1H, T1 shown in FIG.
L, T2H, T2L, T3H, T3L ... are measured in order and each pulse width 2
The data is stored in a random access memory 22 (hereinafter referred to as an SRAM) in units of bytes as shown in FIG. 2 (b).

次に、リモコン信号のパルス幅を測定する方法につい
て第2図(a),(b),(c)も用いて説明すると、
リモコン信号のエンベローブカーブ入力の変化、すなわ
ち、リモコン信号のパルスの立ち上がりを検出して、マ
イクロプロセッサ20に割り込み28をかける。その後、す
ぐにマイクロプロセッサ20を駆動する基本クロック発生
回路23から出力されるクロックを分周回路29で分周した
分周クロック(この場合には16分周している)の数のカ
ウントを開始してパルス幅T1Hの測定を開始する。すな
わち、“パルス幅=クロックのカウント数”ということ
になる。そして、今度はパルスの立ち下がりと同時に、
マイクロプロセッサ20に、再度、割り込み28をかける。
その後すぐに、マイクロプロセッサ20は分周クロックの
カウントを停止し、測定されたパルス幅T1Hのデータを
すぐにSRAM22の中の約500バイトの容量で構成されるワ
ークエリアに順番に取り込み記憶させる。
Next, a method of measuring the pulse width of the remote control signal will be described with reference to FIGS. 2 (a), (b) and (c).
A change in the envelope curve input of the remote control signal, that is, the rising edge of the pulse of the remote control signal is detected, and an interrupt 28 is issued to the microprocessor 20. After that, immediately start counting the number of divided clocks (in this case, divided by 16) obtained by dividing the clock output from the basic clock generating circuit 23 that drives the microprocessor 20 by the dividing circuit 29. Then, measurement of the pulse width T1H is started. That is, “pulse width = count number of clock”. Then, at the same time as the pulse falls,
The interrupt 28 is again applied to the microprocessor 20.
Immediately thereafter, the microprocessor 20 stops counting the frequency-divided clock, immediately captures the data of the measured pulse width T1H in the SRAM 22 in a work area having a capacity of about 500 bytes, and stores the data.

又、すぐにパルス幅回路18のカウンタ19のデータをク
リアして、又、次のパルス幅T1Lのカウントを開始す
る。次のパルスT2Hの立ち上がりまでマイクロプロセッ
サ20は時間待ち、または、他の仕事をしている。次に来
たパルスT2Hの立ち上がりでカウンタを停止して、前記
と同様にしてエンベローブカーブのパルス幅T1Lのデー
タをSRAM22のワークエリアに取り込む。この様にして、
SRAM22のワークエリアが満杯になるまでカウントを行
い、記憶させる作業を続ける。終了と同時に、今度は周
波数回路14で測定されたキャリア周波数のデータをSRAM
22の所定のエリアに取り込む。以上で、エミュレートす
べきリモコン送信機のデータの取り込みが終了する。
Further, the data of the counter 19 of the pulse width circuit 18 is immediately cleared, and the counting of the next pulse width T1L is started. The microprocessor 20 waits for time until the next pulse T2H rises, or is doing other work. The counter is stopped at the next rising edge of the pulse T2H, and the data of the pulse width T1L of the envelope curve is taken into the work area of the SRAM 22 in the same manner as described above. In this way,
The counting is performed until the work area of the SRAM 22 becomes full, and the work of storing the count is continued. At the same time, the data of the carrier frequency measured by the frequency circuit 14 is transferred to the SRAM
Take in 22 predetermined areas. This completes the capture of data from the remote control transmitter to be emulated.

なお、以後の説明のために従来技術と同様、上記リモ
コン信号の中でキャリア周波数が乗っている部分を、マ
ークと呼び、キャリア周波数のない部分をスペースと呼
称する。すなわち、リモコン信号のデータは、マークか
ら始まって、スペースと、2バイトずつ交互に、SRAM22
のワークエリアに書き込まれていることになる。
For the following description, as in the prior art, the portion of the remote control signal on which the carrier frequency rides is called a mark, and the portion without the carrier frequency is called a space. In other words, the data of the remote control signal starts from the mark, and alternates between the space and the 2-byte data in the SRAM22.
Is written in the work area.

次に、SRAM22のワークエリアに取り込んだデータの圧
縮、並びに、メモリへの登録の仕方について説明する
と、このSRAM22のワークエリアに取り込まれたリモコン
信号のエンベローブカーブデータの最初の圧縮は、マー
ク,スペースの組合せを1つの単位と見なして、いくつ
かのパルス幅のグループに分類し、分類されたパルス幅
群に4ビットで構成されるパルス番号(16進法で記す)
1,2,……A,B,C,……Eを付け、ワークエリアに蓄えられ
た2バイトずつのデータを上記パルス番号に置き換える
事である。
Next, a method of compressing the data taken in the work area of the SRAM 22 and registering the data in the memory will be described. First compression of the envelope curve data of the remote control signal taken in the work area of the SRAM 22 is performed by the mark and the space. Is regarded as one unit, and classified into several groups of pulse widths, and a pulse number composed of 4 bits in the classified pulse width group (in hexadecimal notation)
1, 2,..., A, B, C,..., E, and replaces the 2-byte data stored in the work area with the pulse number.

そのために、まず、SRAM22のワークエリアに取り込ん
だマーク,スペースのデータを第2図(c)のようにマ
ーク,マーク+スペース(今後は従来技術と同様マーク
+スペースをピリオドと呼ぶ)のデータに置き換えて再
登録する。
For this purpose, first, the mark and space data taken into the work area of the SRAM 22 is converted into mark and mark + space data (the mark + space is called a period as in the prior art) as shown in FIG. 2 (c). Replace and re-register.

次に、上記パルス幅の分類の仕方について第3図によ
り説明する。
Next, a method of classifying the pulse width will be described with reference to FIG.

パルス幅の分類は、上記マークとピリオドをいくつか
のパルス番号に分類するために行なわれ、ある公称範囲
内にある全てのマークとピリオドがある番号に適切に分
類されるように、グループ分けを行い、下限値,中間
値,及び上限値を決定するものである。
The classification of the pulse width is performed to categorize the marks and periods into several pulse numbers, and group the groups so that all the marks and periods within a certain nominal range are properly classified into a certain number. Then, the lower limit, the intermediate value, and the upper limit are determined.

すなわち、使用される各パルス番号1,2,3,……に対し
て、マークとピリオドの上限値,下限値が設定される事
になる。次に、第4図(a)のように、このワークエリ
アに蓄えられたデータは、この上限値,下限値と比較さ
れ、中間値のデータに置き換えられ、その後で、すべ
て、前記パルス番号1,2,3,……に置き換えられ、このパ
ルス番号には、マーク及びピリオドの各2バイトの幅デ
ータの代表値である中間値が設定される。
That is, the upper limit and the lower limit of the mark and the period are set for each of the pulse numbers 1, 2, 3,... Used. Next, as shown in FIG. 4 (a), the data stored in the work area is compared with the upper limit value and the lower limit value, and replaced with data of an intermediate value. , 2, 3,..., And the pulse number is set to an intermediate value which is a representative value of 2-byte width data of a mark and a period.

なお、第4図(b)はリモコン信号をパルス信号で表
した説明図である。
FIG. 4B is an explanatory diagram showing the remote control signal as a pulse signal.

この様にして、最初の圧縮は、リモコン信号の各2バ
イトで構成されるマーク,スペースが、4ビットで構成
されるパルス番号に置き換えられることによって行なわ
れる。
In this way, the first compression is performed by replacing the mark and space composed of each 2 bytes of the remote control signal with the pulse number composed of 4 bits.

次の圧縮は、符号化されたリモコンデータ、すなわ
ち、各データのデータを更に圧縮しなければならない。
送信中に赤外線信号を正確に再構成できるようにそのデ
ータは全ての重要なデータを保持せねばならない。
In the next compression, the encoded remote control data, that is, the data of each data, must be further compressed.
The data must carry all the important data so that the infrared signal can be correctly reconstructed during transmission.

その圧縮の過程を第5図に示す。この過程は、リモコ
ンコードの中で、繰り返しのコードを省く行程でもあ
る。圧縮の仕方は、最初の番号が2回目の番号と比較さ
れ、両者が一致しなければ、最初の2つの番号と次の2
つの番号と比較する。そして、両方の2つの番号が、再
び、一致しなければ、初めの3つの番号と次の3つの番
号と比較する。この様にワークエリアに格納されている
番号の最初の半分が格納されている残りの半分と比較さ
れるまで1番号ずつ増して比較が続けられる。それで
も、一致が認められなければ、その比較は最初から繰り
返されるが、最初の1番号は省き、それでも一致が認め
られないときには、次の2番目が省かれる。第5図
(A)はヘッド信号のない番号である。“12121212121
2"が繰り返されている。従って“121212121212"という
パルス番号列と、繰り返しの部分の先頭のパルス番号が
0番目にあることを記憶すればよい。
FIG. 5 shows the compression process. This process is also a process of omitting a repeated code in the remote control code. The first number is compared with the second number, and if they do not match, the first two numbers and the next two
To one number. If the two numbers do not match again, the first three numbers are compared with the next three numbers. In this way, the comparison is continued by incrementing by one number until the first half of the number stored in the work area is compared with the other half stored. Still, if no match is found, the comparison is repeated from the beginning, but the first number is omitted, and if no match is found, the next second is omitted. FIG. 5A shows the numbers without head signals. “12121212121
Therefore, the pulse number sequence "121212121212" and the fact that the first pulse number of the repetition part is the 0th may be stored.

第5図(B)はヘッド番号がある場合で、“12"がヘ
ッド信号で、“3435"が繰り返し信号である。従って“1
23435"というパルス番号列と繰り返し部分の先頭のパル
ス番号が2番目にあることを記憶すればよい。これによ
りリモコンデータは圧縮されたことになる。
FIG. 5B shows a case where there is a head number, where "12" is a head signal and "3435" is a repetition signal. Therefore, “1
It is sufficient to store the pulse number sequence “23435” and the second pulse number at the beginning of the repetition portion. Thus, the remote control data is compressed.

ここまでの圧縮で、取り込んだ2バイトから成る幅パ
ルスデータを4ビットで構成できるまでに圧縮したが、
これは従来の圧縮手段と同じであり、本発明はこの圧縮
されたリモコンデータ(リモコンコード)を更に圧縮す
るものである。
With the compression up to this point, the acquired width pulse data consisting of 2 bytes was compressed so that it could be composed of 4 bits.
This is the same as the conventional compression means, and the present invention further compresses the compressed remote control data (remote control code).

リモコンコードは一般的に第6図(1),(2),
(3)のように、4種類のブロックで構成されている。
すなわち、スタートを意味するヘッドパルスブロック、
データを意味するデータパルスブロック、終了を意味す
るトレーラパルスブロック、繰り返しを意味する繰り返
しパルスブロックの4種類で構成されている。
Generally, the remote control code is shown in FIG. 6 (1), (2),
As shown in (3), it is composed of four types of blocks.
That is, a head pulse block meaning start,
It is composed of four types: a data pulse block indicating data, a trailer pulse block indicating end, and a repetition pulse block indicating repetition.

このブロックの内でデータパルスブロックは2種類の
パルス幅コードで構成され、1番重要なデータであるリ
モコンコードの機能を意味しており“1"と“0"のバイナ
リデータの集まりで構成されている。
Within this block, the data pulse block is composed of two types of pulse width codes, which means the function of the remote control code, which is the most important data, and is composed of a set of binary data "1" and "0". ing.

リモコンコードの機能が増えることによりデータパル
スブロックのデータ長が長くなるようになっているのが
現状である。
At present, the data length of the data pulse block is increased by increasing the functions of the remote control code.

第7図は、本発明によるリモコンコードの再圧縮方法
の説明図で、リモコンコード内で、一番使用頻度の高い
データパルスブロックを更に圧縮することにより、1キ
ー当りのリモコンコードのメモリ登録容量を大幅に減少
させることができる。そのためにまず、リモコンコード
のデータパルスブロック抽出の仕方について説明する。
第7図(A)は本発明によるデータ圧縮を行う前のパル
スコード列であり、4ビットで構成された各パルス幅デ
ータを、使用頻度の高い順番に並べて、使用頻度の高い
パルス幅データ1番と2番のみ、もしくは1番ともう1
つのみで構成されたブロックをデータパルスブロックと
仮定して圧縮処理を行う。第7図(A)では、1番使用
頻度の高いパルス番号は‘01'で、2番目は、‘02'とな
り、データパルスブロックはパルス番号‘01'と‘02'で
表され、データパルスブロックは必ず2種類以下のパル
ス番号でしか構成されないので違ったパルス番号がきた
所がデータパルスブロックとの境界ビットになる。この
事を表したのが第7図(B)である。
FIG. 7 is an explanatory diagram of a method of recompressing a remote control code according to the present invention. The most frequently used data pulse block in the remote control code is further compressed to thereby increase the memory registration capacity of the remote control code per key. Can be greatly reduced. First, a method of extracting a data pulse block of a remote control code will be described.
FIG. 7 (A) shows a pulse code string before data compression according to the present invention, in which pulse width data composed of 4 bits are arranged in order of frequency of use, and pulse width data 1 of frequency of use 1 Only number 2 and number 1 or number 1 and another
The compression process is performed on the assumption that a block composed of only one block is a data pulse block. In FIG. 7 (A), the pulse number that is most frequently used is “01”, the second is “02”, and the data pulse block is represented by pulse numbers “01” and “02”. Since a block always includes only two or less types of pulse numbers, a point where a different pulse number comes becomes a boundary bit with a data pulse block. This is shown in FIG. 7 (B).

上記によって圧縮されたリモコンコードのデータパル
スブロックを抽出して、予め決められた4ビットのデー
タパルスブロックであることを意味するコードを挿入す
る。この例では“1111"(16進数では‘F')を使うこと
にすると、前記圧縮したリモコンコードは第7図(C)
のように表される。
The data pulse block of the remote control code compressed as described above is extracted, and a code indicating a predetermined 4-bit data pulse block is inserted. In this example, if "1111"('F' in hexadecimal) is used, the compressed remote control code is as shown in FIG.
It is represented as

次に、データパルスブロックの圧縮の仕方について説
明する。抽出されたデータパルスブロックは2種類以下
のパルス幅コードで構成されていることに注目して、
“0"または“1"の1ビットに2種類のパルス幅データを
割り当てる。第7図(D)では、“0"を‘01'“1"を‘0
2'に割り当てて、データパルスブロックを書き直すこと
により圧縮をおこなった結果を示している。この変換に
より、データパルスのビット長さの情報が抜けることに
なる。そのために変換と同時に、第7図(E)の様にそ
のデータパルスブロックのビット長を記憶することによ
り、いままで、データパルスブロックを登録するのに数
10バイト以上要していたのに、この方法を使うことによ
りデータパルスブロックのメモリ登録容量を数バイトに
減少させることが可能になる。
Next, a method of compressing the data pulse block will be described. Note that the extracted data pulse block is composed of two or less pulse width codes.
Two types of pulse width data are assigned to one bit of “0” or “1”. In FIG. 7 (D), "0" is "01" and "1" is "0".
It shows the result of compression by rewriting the data pulse block by assigning it to 2 '. By this conversion, information on the bit length of the data pulse is lost. Therefore, by storing the bit length of the data pulse block at the same time as the conversion as shown in FIG.
By using this method, the memory registration capacity of the data pulse block can be reduced to several bytes, even though it required 10 bytes or more.

このことを利用して、リモコンコードを圧縮すると、
4ビットで構成されるヘッドパルス,トレーラと、1ビ
ットの集まりで表されるデータパルスブロックで記憶さ
れる。
Taking advantage of this, compressing the remote control code,
It is stored as a 4-bit head pulse, a trailer, and a data pulse block represented by a group of 1 bit.

すなわち、SRAM22のワークエリアに蓄えられたエミュ
レートされたリモコン信号は、データ信号、キャリア周
波数のデータ、パルス幅データ、パルス番号の種類、単
発信号か連続信号か、繰り返しは何番目のパルス信号か
らか、及び、データパルスブロック内のパルス幅デー
タ、データパルスブロックのビット長等のデータに変換
される。
That is, the emulated remote control signal stored in the work area of the SRAM 22 includes a data signal, carrier frequency data, pulse width data, a type of pulse number, a single-shot signal or a continuous signal, and the repetition starts from what pulse signal. The data is converted into data such as pulse width data in the data pulse block and bit length of the data pulse block.

これにより、学習過程と格納過程が終わる。それらの
過程はエミュレートされる送信機における全てのキーに
共通のものである。
Thus, the learning process and the storing process are completed. These steps are common to all keys in the emulated transmitter.

送信機11が使用者により希望に応じて構成された後
は、その送信機を活用するには、必要とするコードを読
み出し伸長させ、かつ、送ることを必要とする。これ
は、まず、SRAM22内にあるキーの正しいリモコンデータ
ブロックがアドレスされるように、どのキー24が選択さ
れたかを特定することにより行われる。あるキーが押さ
れると、そのソースのための全てのリモコンデータブロ
ックのSRAMの番地がマイクロプロセッサ20へ転送され
る。その中から所定のコードが見つかると、SRAM22のワ
ークエリアへ所定のリモコンデータブロックがコピーさ
れる。
After the transmitter 11 has been configured as desired by the user, in order to utilize the transmitter, it is necessary to read, decompress, and transmit the required code. This is done by first identifying which key 24 has been selected so that the correct remote control data block for the key in SRAM 22 is addressed. When a key is pressed, the SRAM addresses of all remote control data blocks for that source are transferred to microprocessor 20. When a predetermined code is found from the code, a predetermined remote control data block is copied to the work area of the SRAM 22.

それと同時に、リモコンコード複製のため、圧縮され
たコードが伸長される。それからその複製されたコード
に、スタート値と長さ値及び繰り返し回数の値等が加え
られるとともに、周波数回路14の周波数カウンタに所定
のデータをセットすることでキャリア周波数の発生が行
われる。
At the same time, the compressed code is expanded for remote control code duplication. Then, a start value, a length value, a value of the number of repetitions, and the like are added to the copied code, and a carrier frequency is generated by setting predetermined data in a frequency counter of the frequency circuit 14.

この周波数回路14にはマイクロプロセッサ20を駆動す
る基本クロックが入力されており、この基本クロックの
数をセットされたデータまでカウントし値が同じになっ
たときに周波数カウンタ15の出力を反転させるようにな
っている。この動作を繰り返すことによりキャリア周波
数を作り出している。
A basic clock for driving the microprocessor 20 is input to the frequency circuit 14, and the number of the basic clock is counted up to the set data, and the output of the frequency counter 15 is inverted when the value becomes the same. It has become. By repeating this operation, a carrier frequency is created.

伸長されたコードの伝送は、送信開始と共にまず、パ
ルス幅カウンタ19の出力を“H"にして、1番目のデータ
をパルス幅カウンタ19にセットする。その後で、そのデ
ータを1データずつ減算いていく。そのデータが、“0"
になったとき、今度は、パルス幅カウンタの出力を“L"
にする。そして、次のデータをパルス幅カウンタにセッ
トする。そして、上記と同様な作業を繰り返す。
In transmitting the expanded code, first, the output of the pulse width counter 19 is set to “H” at the start of transmission, and the first data is set in the pulse width counter 19. After that, the data is subtracted one by one. The data is “0”
The output of the pulse width counter is now “L”
To Then, the next data is set in the pulse width counter. Then, the same operation as described above is repeated.

この様にしてエミュレートしたリモコン信号のエンベ
ローブカーブの再構成を行う。キャリア周波数とエンベ
ローブカーブとAND30を取ることによりリモコン信号の
再構成が可能となる。再構成されたリモコンコードは、
駆動回路31を通して、赤外線発光ダイオード32を駆動す
ることによりテレビ,ビデオ等へのリモコン信号として
発信することになる。
The envelope curve of the emulated remote control signal is reconstructed. By taking the carrier frequency, envelope curve, and AND30, it is possible to reconstruct the remote control signal. The reconfigured remote control code is
By driving the infrared light emitting diode 32 through the drive circuit 31, the signal is transmitted as a remote control signal to a television, a video or the like.

この様にして、いくつかのリモコン送信機をエミュレ
ートでき、操作が簡単で、制御される機器の相互接続や
改造を必要としない再構成可能なリモコン送信機が得ら
れるものである。
In this way, a reconfigurable remote control transmitter that can emulate several remote control transmitters, is simple to operate, and does not require interconnection or modification of the controlled equipment is provided.

上記実施例によれば、リモコン信号を圧縮したパルス
コード列の中からデータパルスブロックを抽出し、その
データパルスブロックを更に圧縮することにより、一番
よく使われているパルス幅データのパルス番号を4ビッ
トから1ビットに圧縮することができるために、エミュ
レートしたリモコンコードのデータを登録するのに必要
なメモリの容量を少なくすることができ、一定のメモリ
容量(例えば64kビット)で取り扱うことのできるキー
数が大幅に増加させることができ、今まで16kビットのS
RAMを内蔵したワンチップマイコンでは、学習可能なキ
ー数が20キーから30キー程度であったのが、50キー以上
となり同じコストで大幅な機能アップが図れるとともに
機能が同じであれば、いままでメモリの大きな汎用のワ
ンチップマイコンがなかったため、マイコン,ゲートア
レイ,SRAMと専用のICをつかって3チップで、学習リモ
コン送信機を構成していたものが、本発明のメモリの圧
縮方法により、従来の汎用のワンチップマイコンでも同
じ機能を有することを可能にするものである。
According to the above embodiment, a data pulse block is extracted from a pulse code sequence obtained by compressing a remote control signal, and the data pulse block is further compressed, so that the pulse number of the most frequently used pulse width data is obtained. Since it is possible to compress from 4 bits to 1 bit, the memory capacity required for registering the data of the emulated remote control code can be reduced, and it can be handled with a fixed memory capacity (for example, 64 k bits). Can greatly increase the number of keys that can be
With a one-chip microcomputer with a built-in RAM, the number of keys that can be learned was from about 20 to 30 keys, but it became more than 50 keys, so it was possible to greatly improve the function at the same cost and if the functions were the same, until now Since there was no general-purpose one-chip microcomputer with a large memory, the learning remote control transmitter was composed of three chips using a microcomputer, a gate array, an SRAM and a dedicated IC. This enables the conventional general-purpose one-chip microcomputer to have the same function.

この圧縮の方法はデータパルスブロックが長くなけれ
ばなるほど効果が大きくなり、又、ビデオ用タイマー予
約機能付きリモコンのようにデータパルスブロックとト
レーラと交互に、更に、そのデータパルスブロックの内
容が1つ1つが違う場合、予め決めておく4ビットのパ
ルス予約番号を複数にしておくことにより、上記と同様
に圧縮した登録が可能となるものである。
This compression method becomes more effective as the data pulse block becomes longer. In addition, the data pulse block and the trailer are alternately provided as in a remote controller with a timer reservation function for video, and the content of the data pulse block is one. If one is different, the compressed registration can be performed in the same manner as described above by setting a predetermined 4-bit pulse reservation number to a plurality.

発明の効果 本発明は、上記実施例から明らかなように、パルスコ
ード列の登録を、ブロックわけを行い、データパルスブ
ロックを抽出し、そのデータパルスブロックを1ビット
2種類のパルス番号で表示することにより、データの登
録容量を大幅に減少させることができ、学習リモコン送
信機に使用するメモリ容量を1ランク下の集積回路にす
ることができるという利点を有するとともに、今まで学
習することができなかった長いパルスコード列を有する
リモコン信号も、1キー当りのメモリ登録容量を減少さ
せて、長いリモコン信号への対応も可能とするものであ
る。
According to the present invention, as is apparent from the above embodiment, the registration of the pulse code sequence is divided into blocks, the data pulse blocks are extracted, and the data pulse blocks are displayed with one bit and two types of pulse numbers. As a result, the data registration capacity can be greatly reduced, and the memory capacity used for the learning remote control transmitter can be reduced by one rank to an integrated circuit. A remote control signal having a long pulse code string, which has not been provided, can also be adapted to a long remote control signal by reducing the memory registration capacity per key.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明による学習リモコン送信機の一実施例の
構成図、第2図(a)は同リモコン信号の説明図、第2
図(b)はリモコン信号のパルス幅データの取り込み方
法を説明するワークエリア図、第2図(c)は取り込ん
だデータの再登録方法を説明するワークエリア図、第3
図は本発明に使用するリモコン信号のパルス幅の分類方
法の説明図、第4図(a)は本発明に使用するパルス幅
データの登録方法の説明図、第4図(b)はリモコン信
号をパルス番号で表した説明図、第5図(A),(B)
は本発明に使用するリモコン信号の繰り返し部分の検出
方法の説明図、第6図(1)、(2)、(3)はリモコ
ンコードのブロック化の代表例の説明図、第7図は本発
明によるリモコン信号の圧縮方法の説明図であり、第7
図(A)は圧縮を行う前のパルスコード列の状態説明
図、第7図(B)は上記(A)のブロック分けを行った
結果の状態説明図、第7図(C)は上記(B)のデータ
パルスブロックに予め設定されていたパルス番号で置換
した結果の状態説明図、第7図(D)は上記(C)のデ
ータパルスブロックを1ビットで表すパルス番号を使っ
て再登録した結果の状態説明図、第7図(E)は上記
(D)のデータパルスブロックの有効ビット記憶の状態
説明図、第8図は従来の学習リモコン送信機の構成図、
第9図(a)は同リモコン信号の説明図、第9図(b)
はリモコン信号のパルス幅データの取り込み方法を説明
するワークエリア図、第9図(c)は取り込んだデータ
の再登録方法を説明するワークエリア図、第10図は同リ
モコン信号のパルス幅の分類方法の説明図、第11図
(a)は同パルス幅データの登録方法の説明図、第11図
(b)はリモコン信号をパルス番号で表した説明図、第
12図(A),(B)は同リモコン信号の繰り返し部分の
検出方法の説明図である。 11……学習リモコン送信機、12……PINダイオード、14
……周波数回路、18……パルス幅回路、20……マイクロ
プロセッサ、22……SRAM、24……キー部、31……駆動回
路、32……発光ダイオード。
FIG. 1 is a block diagram of an embodiment of a learning remote control transmitter according to the present invention, FIG. 2 (a) is an explanatory diagram of the remote control signal, and FIG.
FIG. 2B is a work area diagram illustrating a method of capturing pulse width data of a remote control signal, FIG. 2C is a work area diagram illustrating a method of reregistering the captured data, and FIG.
FIG. 4 is an explanatory diagram of a method of classifying a pulse width of a remote control signal used in the present invention. FIG. 4 (a) is an explanatory diagram of a method of registering pulse width data used in the present invention, and FIG. 4 (b) is a remote control signal. FIG. 5 (A), (B).
FIG. 6 is an explanatory diagram of a method of detecting a repetitive portion of a remote control signal used in the present invention. FIGS. 6 (1), (2) and (3) are explanatory diagrams of a typical example of remote control code blocking, and FIG. FIG. 7 is an explanatory diagram of a method of compressing a remote control signal according to the present invention;
FIG. 7A is an explanatory diagram of the state of the pulse code train before compression, FIG. 7B is an explanatory diagram of the result of performing the block division of FIG. 7A, and FIG. FIG. 7D is a state explanatory view of the result of replacing the data pulse block with the preset pulse number in the data pulse block of FIG. 7B. FIG. 7D re-registers the data pulse block of FIG. FIG. 7 (E) is a state explanatory view of valid bit storage of the data pulse block of the above (D), FIG. 8 is a configuration diagram of a conventional learning remote control transmitter,
FIG. 9 (a) is an explanatory diagram of the remote control signal, and FIG. 9 (b)
FIG. 9 (c) is a work area diagram illustrating a method of re-registering the captured data, and FIG. 10 is a work area diagram illustrating a method of re-registering the captured data. FIG. 11 (a) is an explanatory diagram of a method for registering the same pulse width data, FIG. 11 (b) is an explanatory diagram showing a remote control signal by a pulse number, and FIG.
FIGS. 12A and 12B are explanatory diagrams of a method of detecting a repeated portion of the remote control signal. 11… Learning remote control transmitter, 12… PIN diode, 14
... frequency circuit, 18 ... pulse width circuit, 20 ... microprocessor, 22 ... SRAM, 24 ... key part, 31 ... drive circuit, 32 ... light emitting diode.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】学習モード時にエミュレートすべきリモコ
ン送信機のリモコン信号を受信する受信手段と、リモコ
ン信号の各バースト中のキャリア周波数を測定し、か
つ、リモコン信号再構成時にキャリア周波数を作る周波
数回路と、リモコン信号からキャリア周波数を取り除い
た後のエンベローブカーブの各パルスのパルス幅を測定
し、かつ、リモコン信号再構成時にリモコン信号の前記
エンベローブカーブを出力するパルス幅回路と、上記受
信手段とパルス幅回路及び周波数回路の出力に接続され
ており、パルス幅回路で測定されたパルス幅をパルス幅
毎に分類し、対応したパルス番号に変換し記憶させ、か
つ、エミュレートされる上記リモコン送信機上の押され
た各キーに対応する圧縮されたリモコン信号を再構成す
るようにプログラムされたマイクロプロセッサ手段と、
前記圧縮されたリモコン信号を格納し、このマイクロプ
ロセッサ手段によりアドレスされるメモリ手段と、上記
マイクロプロセッサ手段により制御され、選択されたリ
モコンされる製品または器具を制御するためにリモコン
信号を送り出す送信手段からなり、上記マイクロプロセ
ッサ手段が、上記圧縮され、パルス番号で構成されたリ
モコン信号を、さらに、パルス番号の繰り返しのないヘ
ッダーブロックと同じパルス番号が繰り返し出てくるデ
ータブロックに分類し、そのデータブロックのみを再圧
縮して記憶することを特長とする学習リモコン送信機。
1. A receiving means for receiving a remote control signal of a remote control transmitter to be emulated in a learning mode, a frequency for measuring a carrier frequency in each burst of the remote control signal, and generating a carrier frequency when reconfiguring the remote control signal. Circuit, a pulse width circuit that measures the pulse width of each pulse of the envelope curve after removing the carrier frequency from the remote control signal, and outputs the envelope curve of the remote control signal at the time of reconstructing the remote control signal; Connected to the outputs of the pulse width circuit and the frequency circuit, the pulse width measured by the pulse width circuit is classified for each pulse width, converted into a corresponding pulse number, stored, and emulated by the remote control transmission. Program to reconstruct compressed remote control signals corresponding to each key pressed on the machine And microprocessor means, which,
Memory means for storing the compressed remote control signal and addressed by the microprocessor means; and transmitting means for transmitting the remote control signal for controlling the selected remote controlled product or appliance controlled by the microprocessor means The microprocessor means further classifies the compressed, remote control signal composed of pulse numbers into data blocks in which the same pulse number as a header block having no repetition of pulse numbers appears repeatedly, and the data A learning remote control transmitter characterized in that only blocks are recompressed and stored.
【請求項2】リモコン信号を構成するパルス番号を使用
頻度の高い順番に並べて、使用頻度の高いパルス番号と
その番号に連なるもう1つのパルス番号のみで構成され
るブロックをデータブロックとし、そのブロックをリモ
コン信号内に、少なくとも1つ以上決定し、そのデータ
ブロックを予め決められた決定のパルス番号で置き換え
て、リモコン信号を再登録し、そのデータブロックを、
1ビットからなる“1"と“0"の1ビットのデータで再圧
縮をすると同時に、そのデータブロックの長さも記憶す
ることを特長とする請求項1記載の学習リモコン送信
機。
2. A pulse number constituting a remote control signal is arranged in an order of high frequency of use, and a block composed of only a pulse number of high frequency of use and another pulse number following the number is defined as a data block. In the remote control signal, at least one is determined, the data block is replaced with a predetermined determined pulse number, the remote control signal is re-registered, and the data block is
2. The learning remote control transmitter according to claim 1, wherein re-compression is performed with 1-bit data of "1" and "0", and the length of the data block is stored.
JP2169045A 1990-06-27 1990-06-27 Learning remote control transmitter Expired - Fee Related JP2985239B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2169045A JP2985239B2 (en) 1990-06-27 1990-06-27 Learning remote control transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2169045A JP2985239B2 (en) 1990-06-27 1990-06-27 Learning remote control transmitter

Publications (2)

Publication Number Publication Date
JPH0457595A JPH0457595A (en) 1992-02-25
JP2985239B2 true JP2985239B2 (en) 1999-11-29

Family

ID=15879300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2169045A Expired - Fee Related JP2985239B2 (en) 1990-06-27 1990-06-27 Learning remote control transmitter

Country Status (1)

Country Link
JP (1) JP2985239B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006041041B4 (en) 2005-09-08 2008-07-17 Smc K.K. Method for controlling the actuation of a cylinder device
JP2007194972A (en) * 2006-01-20 2007-08-02 Sharp Corp Learning type remote control unit

Also Published As

Publication number Publication date
JPH0457595A (en) 1992-02-25

Similar Documents

Publication Publication Date Title
US4623887A (en) Reconfigurable remote control
US4626848A (en) Programmable functions for reconfigurable remote control
KR900007131B1 (en) Programable remote control transmitter
US6522262B1 (en) Medium and system for signal envelope pattern recognition
JPH0685598B2 (en) Remote control transmitter
JPH0677383U (en) Remote control device
US5077552A (en) Interface for coupling audio and video equipment to computer
US5822098A (en) Device and method of communication by infrared radiation between a user and a remotely controllable apparatus
JP2985239B2 (en) Learning remote control transmitter
KR970004797B1 (en) Universal remote control transmitter with simplified device identification
JP2913781B2 (en) Learning remote control transmitter
DE69632930T2 (en) Method for controlling a video recorder
JPS6013623B2 (en) Data transmission method
JP2913780B2 (en) Learning remote control transmitter
JPH06165254A (en) Preset remote control transmitter
JP2674061B2 (en) Remote control device
JP2656172B2 (en) Remote control transmitter
JPS6322502B2 (en)
US4495639A (en) Electronic data compressor
SU1481821A1 (en) Vehicle operating parameter recorder
CN2130573Y (en) Pair wireless remote-controlled receiving and transmitting arrangement for TV game computer
SU1159025A1 (en) Information output device
SU479105A1 (en) Device for coupling a computer with on-off pulse sensors
JPS5958988A (en) Character broadcast receiver
RU2121221C1 (en) Coding device for checking remote-control systems at gravity humps

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081001

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees