JPS6367643A - Generation of parity - Google Patents

Generation of parity

Info

Publication number
JPS6367643A
JPS6367643A JP61211864A JP21186486A JPS6367643A JP S6367643 A JPS6367643 A JP S6367643A JP 61211864 A JP61211864 A JP 61211864A JP 21186486 A JP21186486 A JP 21186486A JP S6367643 A JPS6367643 A JP S6367643A
Authority
JP
Japan
Prior art keywords
data
bits
parity
code
bit
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.)
Pending
Application number
JP61211864A
Other languages
Japanese (ja)
Inventor
Yasuhiro Niwa
丹羽 康弘
Yasuteru Takei
泰照 武居
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.)
Rohm Co Ltd
Original Assignee
Rohm 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP61211864A priority Critical patent/JPS6367643A/en
Publication of JPS6367643A publication Critical patent/JPS6367643A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To contrive to improve the precision of data by producing a parity based on the bit of a part obtained by dividing the bit number of data into N parts. CONSTITUTION:The bit number L of data D is divided into N parts Di (D1-DN) and Di-Ds is added after deleting an optional part Ds out of the part Di. This binary addition value is referred to as X and multiplied by (n) and this arithmetic result nX is added with the part Ds. Thus a parity p=Ds+nX (n: integer) is obtained. Here the number of bits of the member of nX are set equal to those of the part Ds. Thus the number of bits of a parity code is cut down to less than 1/2 number of bits of the genuine data excluding the parity code. Then the data length is reduced together with reduction of redundancy and therefore the precision of data is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ディジタルデータの誤り検出などに用いる
パリティ生成方法に係り、特に、データの確度などの改
善に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a parity generation method used for detecting errors in digital data, and particularly to improving data accuracy.

〔従来の技術〕[Conventional technology]

従来、TV、VTRなどの機器のチャンネル切換えなど
を遠隔操作によって行う場合、エンコーダからチャンネ
ル切換えなどの特定の機能を表わすコードを赤外線など
の搬送媒体を用いて送信し、その送信コードを機器側の
デコーダで受信してデコードする方法が採られている。
Conventionally, when switching channels on devices such as TVs and VTRs by remote control, a code indicating a specific function such as channel switching is transmitted from an encoder using a carrier medium such as infrared rays, and the transmitted code is transmitted to the device side. A method is adopted in which the signal is received and decoded by a decoder.

このような遠隔制御において、特定の機能を表わすディ
ジタルデータは、真のデータコードにそのデータの誤り
検出のためのパリティコード、を付加して1ワードとし
ている。
In such remote control, digital data representing a specific function is made into one word by adding a parity code for detecting errors in the data to a true data code.

たとえば、8ビツトからなるデータを表わすコードA、
Bを送信する場合に、第8図に示すように、コードA、
Bを4ビツトずつの上位側ビットおよび下位側ビットに
当て、パリティコードとしてコードAの反転コードτと
コードBの反転コード丁を付加してlワードを16ビツ
トとしており、デコード側では各コードA、Bと各反転
コードτ、■とを用いてデータの誤り検出を行う。
For example, code A representing data consisting of 8 bits,
When sending code B, as shown in FIG.
B is applied to the upper and lower bits of 4 bits each, and the inverted code τ of code A and the inverted code d of code B are added as parity codes to make l word 16 bits, and on the decoding side, each code A , B and each inversion code τ, ■ are used to detect errors in data.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで、このようなパリティチェックでは、真のデー
タを表わすコードのビット数と、パリティチェックのた
めのコードを表わすビット数とが等しいため、第8図に
示した例では16ビツトとデータ長が長く、1ワード当
りの送信に必要な電力損失が大きく、また、記憶手段に
記憶するデータ量も大きくなる。
By the way, in such a parity check, the number of bits of the code representing true data is equal to the number of bits representing the code for parity check, so the data length is long at 16 bits in the example shown in Figure 8. , the power loss required for transmission per word is large, and the amount of data stored in the storage means is also large.

また、この場合、コードA、Hのデータの確度は反転コ
ードA、Bの付加によって、1ワードが2つの冗長度で
措成されているため、信頼性が低く、単位データの送受
速度が低い欠点がある。
In addition, in this case, the accuracy of the data of codes A and H is low because one word is made up of two redundancies due to the addition of inverted codes A and B, and the transmission and reception speed of unit data is low. There are drawbacks.

そこで、この発明は、データ長を短縮化するとともに、
データの確度向上を図ったパリティ生成方法の提供を目
的とする。
Therefore, this invention shortens the data length and
The purpose is to provide a parity generation method that improves data accuracy.

〔問題点を解決するための手段〕[Means for solving problems]

この発明のパリティ生成方法は、第1図に示すように、
任意のビット数を持つデータのビット数をN分割し、N
分割によって得られたパートDi(=D1 、  D2
  ・・・DN)中の任意のパートをDs、パートDi
からパートDs  (S=1.2 ・・・N)を除いた
パートの2進加算値をXとすると、パリティpを p = Ds + n X (ただしnは整数)・・・
(1) から求め、かつ、パリティpのビット数を各パートDi
のビット数と等しく設定したことを内容とする。
The parity generation method of this invention is as shown in FIG.
Divide the number of bits of data with any number of bits into N,
Part Di obtained by division (=D1, D2
...DN) any part in Ds, part Di
If the binary addition value of the part excluding part Ds (S=1.2...N) is X, then the parity p is p = Ds + n X (where n is an integer)...
(1) and the number of bits of parity p for each part Di
The content is set equal to the number of bits.

〔作   用〕[For production]

この発明のパリティ生成方法は、第2図に示すように、
データDのビット数LGN分割し、このN分割によって
得られたパートをDi(”Dl。
The parity generation method of this invention is as shown in FIG.
Data D is divided into bits LGN, and the parts obtained by this N division are Di("Dl.

D2 ・・・DN)とすると、ステップS2でパートD
iからパートDiの中の任意のパートDSを除いた後の
Di−Dsを加算し、その2進加算値をXとし、この2
進数加算値Xを3倍し、その演算結果nXと、任意のパ
ー)Dsとを加算し、式(1)に示したパリティpを得
る。そして、nXの項のビット数をパートDSのビット
数と等しく設定している。
D2...DN), part D is set in step S2.
Add Di-Ds after removing any part DS in part Di from i, and let the binary addition value be X, and this 2
The base addition value X is multiplied by 3, and the calculation result nX and an arbitrary par) Ds are added to obtain the parity p shown in equation (1). The number of bits in the term nX is set equal to the number of bits in part DS.

したがって、このようなパリティ生成方法によると、各
パートD i  (=D1 、  D2 ・・・DN)
が持つビット数mは、Nに比例して小さくなり、データ
Dのビット数りの1/2以下のビット数となる。
Therefore, according to such a parity generation method, each part D i (=D1, D2...DN)
The number m of bits that data D has decreases in proportion to N, and becomes less than 1/2 of the number of bits of data D.

そルて、nXの項のビット数をパー)Dsのビット数と
等しく設定することにより、パリティpのビット数は各
パートDiのビット数mと等しくなり、パリティコード
のビット数は、パリティコード以外の真のデータのビッ
トpの1/2以下になり、データ長が減少し、冗長度の
低減によってデータの確度向上が図られる。
Then, by setting the number of bits of the term nX equal to the number of bits of par) Ds, the number of bits of parity p becomes equal to the number of bits m of each part Di, and the number of bits of parity code becomes equal to the number of bits of parity code The data length is reduced to 1/2 or less of the bit p of the other true data, and data accuracy is improved by reducing redundancy.

〔実 施 例〕〔Example〕

以下、この発明の実施例を図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は、この発明のパリティ生成方法の実施例を示す
FIG. 1 shows an embodiment of the parity generation method of the present invention.

このパリティ生成方法は、パリティ演算手段2に対して
パリティ演算プログラムおよびその演算結果を記憶する
記憶手段4を設置することによって実現され、第2図は
、パリティ生成プログラムを示し、パリティ演算手段2
に任意のビット数りを持つデータDが加えられるものと
する。
This parity generation method is realized by installing a parity calculation program and storage means 4 for storing the calculation results in the parity calculation means 2. FIG.
It is assumed that data D having an arbitrary number of bits is added to .

第2図に示すように、パリティ演算手段2において、ス
テップS1でデータDのビット数りをN分割し、このN
分割によって得られたパートをDi  (=D+ 、D
2  ・・・DN)とすると、ステップS2でパートD
iからパートDiの中の任意のパートDSを除いた後の
パー)Di−Dsを加算し、その2進加算値をXとし、
そのXを記憶手段4に格納する。
As shown in FIG. 2, the parity calculation means 2 divides the number of bits of data D into N in step S1, and
Di (=D+, D
2...DN), part D is set in step S2.
After removing any part DS in part Di from i, add Di-Ds, and let the binary addition value be X,
The X is stored in the storage means 4.

次に、ステップS3で加算値Xを3倍し、その演算結果
nXを記憶手段4に再び格納する。ここで、nは、たと
えば、ax15+3.aX16+5、ax15+5.a
X16+7.ax15+9゜ax16+10.aX16
+11.ax16+13などのイ直を取り、aは整数で
ある。
Next, in step S3, the added value X is multiplied by three, and the calculation result nX is stored in the storage means 4 again. Here, n is, for example, ax15+3. aX16+5, ax15+5. a
X16+7. ax15+9゜ax16+10. aX16
+11. Take a straight line such as ax16+13, where a is an integer.

次に、記憶手段4に格納されている演算結果nXと、任
意のパートDSとを加算し、式(1)に示したパリティ
pを得る。そして、nXの項のビット数をパートDSの
ビット数と等しくする。
Next, the calculation result nX stored in the storage means 4 and an arbitrary part DS are added to obtain the parity p shown in equation (1). Then, the number of bits in the term nX is made equal to the number of bits in part DS.

したがって、このようなパリティ生成方法によると、各
パー)Di  (=D+ 、D2  ・・・DN)が持
つビット数mは、Nに比例して小さくなる。
Therefore, according to such a parity generation method, the number m of bits that each par) Di (=D+, D2 . . . DN) has becomes smaller in proportion to N.

たとえば、N=2.3・・・Kとすると、このNに対応
して各パートDiのビット数mは、m=L/2.L/3
・・・L/にとなり、データDのビット数りに比較して
1/2以下のビット数になる。
For example, if N=2.3...K, then the number m of bits of each part Di corresponding to N is m=L/2. L/3
...L/, and the number of bits is less than 1/2 compared to the number of bits of data D.

そして、nXの項のビット数をパートDsのビット数と
等しくすることで、パリティpのビット数は各パートD
iのビット数と等しくなり、パリティコードのビット数
は、真のデータのビット数の1/2以下になり、1ワー
ドを表わすデータ長は、N=2とした場合、真のデータ
のビット数の1/2のビット数を加えたものが最大であ
り、Nに比例してビット数が減少する。
Then, by making the number of bits of the term nX equal to the number of bits of part Ds, the number of bits of parity p becomes equal to the number of bits of part Ds.
The number of bits of the parity code is equal to the number of bits of i, the number of bits of the parity code is less than 1/2 of the number of bits of the true data, and the data length representing one word is the number of bits of the true data when N=2. The maximum value is the sum of 1/2 the number of bits, and the number of bits decreases in proportion to N.

たとえば、データA、Bのビット数を8ビツト、N=2
とした場合、パリティpは、p=4となり、第3図に示
すように、1ワードをデータコードA、Bおよびパリテ
ィコードPで構成した場合、1ワードのビット数は12
ビツト構成となり、第8図に示した例に比較して4ビツ
トの削;成となるとともに、冗長度の低減によってデー
タの誼度向上が図られる。
For example, set the number of bits of data A and B to 8 bits, N=2
In this case, the parity p is p=4, and as shown in FIG. 3, when one word is composed of data codes A and B and parity code P, the number of bits in one word is 12.
This has a bit structure, which reduces the number of bits by 4 bits compared to the example shown in FIG. 8, and also improves the level of data by reducing redundancy.

第4図は、この発明のパリティ生成方法の具体的な実施
例である遠隔操作用エンコーダを示す。
FIG. 4 shows a remote control encoder that is a specific embodiment of the parity generation method of the present invention.

第4図に示すように、このエンコーダは、遠隔操作の対
象となるTV、VTRなどのaHに対して遠隔操作用コ
ントローラに設置されるものであり、キーマトリクス1
0は、コントローラの操作パネル面のキーボードに対応
する。
As shown in FIG. 4, this encoder is installed in a remote control controller for aH such as a TV or VTR that is to be remotely controlled, and key matrix 1
0 corresponds to the keyboard on the operation panel of the controller.

そして、エンコーダユニット12は1チツプのICで構
成されており、キーマトリクス10からのキー人力に対
応したコード出力を発生する。このエンコーダユニット
12において、入力検出回路120は、キーマトリクス
10からのキー人力を検出するものであるが、その場合
、発振器121からのキースキャン信号をキーマトリク
ス10に与えてキー人力データやスライドスイッチによ
るデータ入力を電気信号として検出し、データ入力信号
を発生する。
The encoder unit 12 is composed of a one-chip IC, and generates a code output corresponding to the key input from the key matrix 10. In this encoder unit 12, the input detection circuit 120 detects the key force input from the key matrix 10. In this case, the input detection circuit 120 provides the key scan signal from the oscillator 121 to the key matrix 10 to detect the key force data and the slide switch. detects data input as an electrical signal and generates a data input signal.

このデータ入力信号は、発振器121からのクロックパ
ルスCLKとともにパターン信号発生回路122に加え
られ、パターン信号発生回路122は、クロックパルス
CLKに同期してデータ人力信号に対応したパターン信
号を、第1図に示した記憶手段4として設置されたメモ
リ・10から読み出して変調回路123に加える。メモ
リ40から読み出されるパターン信号は、たとえば、第
5図のAに示すように、スタートコードST、機器ごと
に設定された識別コードを表わすIDコード下位ビット
IDL(たとえば4ビツト)およびIDコード上位ビッ
トIDM(たとえば4ビツト)、機器の機能を表わす機
能コードPおよび機器を指定するデバイスコードQを表
わすデータコード下位ビットDATAL(たとえば4ビ
ツト)およびデータコード上位ビットDATAM (た
とえば4ビツト)からなる。
This data input signal is applied to the pattern signal generation circuit 122 together with the clock pulse CLK from the oscillator 121, and the pattern signal generation circuit 122 generates a pattern signal corresponding to the data input signal in synchronization with the clock pulse CLK as shown in FIG. The data is read from the memory 10 installed as the storage means 4 shown in FIG. The pattern signal read out from the memory 40 includes, for example, a start code ST, ID code lower bits IDL (for example, 4 bits) representing an identification code set for each device, and ID code upper bits, as shown in A of FIG. IDM (for example, 4 bits), a data code lower bit DATAL (for example, 4 bits) representing a function code P representing the function of the equipment, and a device code Q for specifying the equipment, and a data code upper bit DATAM (for example, 4 bits).

変調回路123は、たとえば、パルス幅変調回路で構成
されており、メモリ40から読み出した殿送パルスを変
調し、その変調出力を第1図に示したパリティ演算手段
2としてのパリティ演算回路20に加える。
The modulation circuit 123 is composed of, for example, a pulse width modulation circuit, modulates the transmission pulse read out from the memory 40, and sends the modulated output to the parity calculation circuit 20 as the parity calculation means 2 shown in FIG. Add.

パリティ演算回路20は、変調回路123がら加えられ
た任意のピッ1−BLを持つデータDとして (alIDコード下位ビットIDLおよびIDコード上
位ビットIDM (b)データコード下位ビットD A T A Lおよ
びデータコード上位ビットD A T A Mを取り込
み、式(11の演算によって、第5図の八に示すように
、(al、(b)について、IDコードに対応して10
コードパリティIDP、データコードDA T A L
 、 D A T A Mに対応してデータコードパリ
ティD AT A Pを生成する。
The parity arithmetic circuit 20 generates data D having arbitrary pins 1-BL added from the modulation circuit 123 (al ID code lower bit IDL and ID code upper bit IDM (b) data code lower bit D A T A L and data The upper bits of the code DATAM are taken in, and by the calculation of formula (11), as shown in Figure 5, 8, for (al, (b)), 10
Code parity IDP, data code DATA L
, D AT A P is generated corresponding to D AT A M.

各パリティIDP、DATAPの生成は、弐(1)から
次のような算出方法に換算して行うことができる。たと
えば、fal、(blのデータにおいて、4ビツトの上
位ビットをMとし、下位ビットをLとすると1.以下の
各式(2)〜(8)によって、M  +L  =A+ 
    ・・・・(2)A1 +M −Az    ・
・・・(3)A2 十M=へ3    ・・・・(4)
A3+M=A4      ・ ・ ・ ・(5)A4
  +M   ”A5      ・ ・ ・ ・(6
)A5+M=A6      ・ ・ ・ ・(7)A
6+M=P       ・ ・ ・ ・(8)パリテ
ィPが得られる。
The generation of each parity IDP and DATAP can be performed by converting 2(1) into the following calculation method. For example, in the data of fal, (bl, if the upper bits of the 4 bits are M and the lower bits are L, then 1. By each of the following equations (2) to (8), M + L = A +
...(2) A1 +M -Az ・
...(3) A2 10M=to3 ...(4)
A3+M=A4 ・ ・ ・ ・(5) A4
+M “A5 ・ ・ ・ ・(6
)A5+M=A6 ・ ・ ・ ・(7)A
6+M=P (8) Parity P is obtained.

第1表は、データコード下位ビットD A T A L
、データコード上位ピントDATAMおよびパリティコ
ードの一例を表わす。
Table 1 shows the data code lower bit DATA L
, represents an example of a data code upper focus DATAM and a parity code.

(この頁以下余白) 第  1  表 この第1表から明らかなように、8ビツト措成のデータ
に対して4ビツトのパリティPによって同時に3ビツト
以上のビット誤りが生じない限り、データの一致が生じ
ないため、データの確度が飛躍的に向上することが分か
る。
(Margins below this page) Table 1 As is clear from Table 1, unless 3 or more bit errors occur at the same time due to the 4-bit parity P for 8-bit data, the data will not match. It can be seen that since this does not occur, the accuracy of the data is dramatically improved.

そして、(al、(blごとに求めたパリティPを表わ
すコードを、第5図のAに示すように、IDコードパリ
ティIDPをIDコード上位ビットIDMの後方部に、
また、データコードパリティDATAPをデータコード
上位ビットDATAの後方部に置くことによって、1ワ
ードのデータを構成する。この場合、1ワードは、スタ
ートビットSTに続く24ビツト構成であり、第5図の
Bは具体的なデータパルスを示す。この実施例では、メ
モリ40にIDLとしてro 101j、IDMとして
rloolJ、IDPとしてrolooJ、デバイスコ
ードQとしてro 100」が固定データとして格納さ
れており、1ワードのデータの形成ごとに読み出される
。これらの固定データは、たとえば、ICの製造時にメ
モリ40にデバイスに対応する識別データとして四き込
む。
Then, as shown in A of FIG. 5, the code representing the parity P obtained for each (al, (bl) is written as the ID code parity IDP in the rear part of the ID code upper bit IDM.
Furthermore, one word of data is constructed by placing the data code parity DATAP at the rear of the data code upper bit DATA. In this case, one word consists of 24 bits following a start bit ST, and B in FIG. 5 shows a specific data pulse. In this embodiment, "ro 101j as IDL, rloolJ as IDM, rolooJ as IDP, ro 100 as device code Q" are stored in the memory 40 as fixed data, and are read out every time one word of data is formed. These fixed data are stored in the memory 40 as identification data corresponding to the device, for example, when the IC is manufactured.

ところで、データ中の論理「1」は、第6図のCに示す
ように、低(L)レベル区間がT、高()■)レベル区
間が2Tとなるパルス、論理「0」は、第6図のDに示
すように、Lレベル区間およびI]レベル区間が共にT
であるパルス、また、スタートビットSTおよびエンド
ビットENDは、第6図の已に示すように、Lレベル区
間2Tを持つパルスで与えられる。ただし、Tはクロッ
クパルスCLKで与えられる単位時間を表わす。このよ
うなパルス幅関係から明らかなように、パリティのビッ
ト数の低減によって、1ワードのビット数が少なくなる
ので、メモリ40の記憶8最の低減およびその記憶エリ
ヤの狭小化が図られ、しかも、ビット数の削減の分だけ
電力損失が抑えられるため省電力化が図られる。
By the way, a logic "1" in the data means a pulse whose low (L) level interval is T and a high ()■) level interval is 2T, and a logic "0" means a pulse whose low (L) level interval is T and the high ()■) level interval is 2T, as shown in FIG. As shown in D in Figure 6, both the L level section and the I] level section are T.
The pulse, start bit ST and end bit END are given as pulses having an L level section 2T, as shown in FIG. However, T represents the unit time given by the clock pulse CLK. As is clear from such a pulse width relationship, by reducing the number of parity bits, the number of bits per word decreases, so the memory 80 of the memory 40 is reduced and its storage area is narrowed. , power loss is suppressed by the reduction in the number of bits, resulting in power savings.

そして、このようなパルスの組み合わせからなるスター
トビットSTに続く1ワードのデータは、タイミング回
路124に加えられて、メモリ40から読み出されたタ
イミング信号に応じて1ワードごとに区分されて遠隔制
御信号として出力され、エンコーダユニット12から出
力段に設置されたトランジスタエ4のベースに加えられ
る。
One word of data following the start bit ST consisting of such a combination of pulses is applied to the timing circuit 124, divided into words according to the timing signal read out from the memory 40, and remotely controlled. The signal is output as a signal and applied from the encoder unit 12 to the base of the transistor 4 installed in the output stage.

トランジスタ14は、1ワードのデータを表わすパルス
によってスイッチング動作を行い、トランジスタ14の
導通時に赤外線発光ダイオード16に電流を流す。この
結果、発光ダイオード16は、断続する赤外線発光によ
って、1ワードのデータを機器側のデコーダに向けて送
信することができ、18は送出赤外線を示す。
The transistor 14 performs a switching operation by a pulse representing one word of data, and when the transistor 14 is conductive, current flows through the infrared light emitting diode 16. As a result, the light emitting diode 16 can transmit one word of data to the decoder on the device side by intermittent infrared light emission, and 18 indicates the transmitted infrared light.

第7図は、遠隔操作の対象である機器側に設置されて、
送出赤外線18を受光してデータコードを復号化するデ
コーダを示す。
Figure 7 shows a device installed on the side of the device that is subject to remote control.
A decoder is shown that receives the transmitted infrared rays 18 and decodes the data code.

このデコーダは、それぞれ単一のICからなる受信回路
ユニット22と、デコーダユニット24とから構成され
ている。
This decoder is composed of a receiving circuit unit 22 and a decoder unit 24, each of which is composed of a single IC.

受信回路ユニット22の入力部には、エンコーダからの
送出赤外線18を受光する受光素子としての受光ダイオ
ード26が設置されている。受光ダイオード26は赤外
′a18の受光時、内部抵抗が低減して抵抗28に受光
電流を流す。この受光電流によって、抵抗28にデータ
を表わす電圧降下が生じ、この電圧降下は送出されるパ
ルスデータに対応して断続したものとなり、パルス電圧
となる。
A light receiving diode 26 as a light receiving element that receives the infrared rays 18 sent out from the encoder is installed at the input section of the receiving circuit unit 22. When the light-receiving diode 26 receives infrared light a18, its internal resistance decreases and a light-receiving current flows through the resistor 28. This light-receiving current causes a voltage drop representing data in the resistor 28, and this voltage drop becomes intermittent in correspondence with the sent pulse data, resulting in a pulse voltage.

このパルス電圧は、入力信号として受信回路ユニット2
2の前段部に設置された入力段増幅器220によって増
幅された後、検波回路221によって検波される。この
検波出力は、波形成形回路222を経て波形された後、
受信回路ユニット22からデコーダユニット24に加え
られる。
This pulse voltage is applied to the receiving circuit unit 2 as an input signal.
After being amplified by an input stage amplifier 220 installed at the front stage of the signal generator 2, the signal is detected by a detection circuit 221. After this detection output is waveformed through the waveform shaping circuit 222,
It is applied from the receiving circuit unit 22 to the decoder unit 24.

デコーダユニット24に加えられる受信回路ユニット2
2の出力信号は、復調回路242に加えられて、エンコ
ーダユニット12での変調処理に対応した復調処理をメ
モリ243からの搬送信号を読出して行う。
Receiving circuit unit 2 added to decoder unit 24
The output signal No. 2 is applied to the demodulation circuit 242, and the carrier signal is read out from the memory 243 and subjected to demodulation processing corresponding to the modulation processing in the encoder unit 12.

そして、復調信号であるデータコードを、誤り検出手段
としてのパリティチェック回路244に加えてデータコ
ードの誤り検出を行う。
Then, the data code, which is the demodulated signal, is applied to a parity check circuit 244 as an error detection means to detect errors in the data code.

このデータコードの誤り検出は、メモリ243に予め送
出される総てのデータコードと、そのパリティPを格納
して置き、各データコードとパリティPの双方から比較
判別を行った後、誤りが無いと判断した場合、そのデー
タコードのみをデコード回路245に加える。
This data code error detection is performed by storing all the data codes sent out in advance in the memory 243 and their parities P, and after comparing and determining both each data code and the parity P, it is determined that there are no errors. If so, only that data code is applied to the decoding circuit 245.

デコード回路245では、データコードを復号化して特
定の遠隔操作を表わす制御データをメモIJ 243か
ら読出し、その読み出した制御データを出力回路246
に加える。したがって、出力回路246は、制御データ
を表わす信号を振り分けて出力端子01.02 ・・・
Onからja器の本体回路側の制御用マイクロコンピユ
ータなどに向けて出力し、エンコーダからの遠隔制御デ
ータに応じて必要な遠隔操作を実現する。
The decoding circuit 245 decodes the data code to read control data representing a specific remote operation from the memo IJ 243, and outputs the read control data to the output circuit 246.
Add to. Therefore, the output circuit 246 distributes signals representing control data to the output terminals 01, 02, . . .
The signal is output from ON to the control microcomputer on the main circuit side of the JA device, and the necessary remote control is realized according to the remote control data from the encoder.

そして、この送出されたデータのパリティPを含めたビ
ット数が少なく、データ長が短いので、デコーダ側でも
メモリ243の記・tqエリヤの狭小化および電力損失
の低減を図ることができるとともに、送出されたデータ
の認識確度が高められ、迅速かつ信頼性の高い遠隔操作
が得られる。
Since the number of bits including the parity P of this sent data is small and the data length is short, it is possible to narrow down the memory 243 storage area and reduce power loss on the decoder side as well. The recognition accuracy of the data obtained is improved, and quick and reliable remote control is obtained.

なお、実施例ではTV、、VTRなどの機器の遠隔制御
を例に取って説明したが、この発明のパリティ生成方法
は、各種のデータの誤り検出に用いることができるもの
であり、遠隔操作に限定されるものではない。
Although the embodiments have been explained using remote control of devices such as TVs and VTRs, the parity generation method of the present invention can be used to detect errors in various data, and is suitable for remote control. It is not limited.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この発明によれば、データのビッ
ト数をN分割して得たパートのビットを基準にしてパリ
ティを形成するため、パリティのビット数が少なくなる
ので、パリティビットを含めたデータのビット数が少な
くなり、冗畏度の低減によってデータの確度向上が図ら
れ、しかも、データ長の短縮化によって記・tα手段の
データ量の低減および記憶エリヤの狭小化が実現でき、
さらに、データ長の短縮化によって省電力化が図られ、
電池駆動時の電池寿命が長くなるなどの効果が得られる
As explained above, according to the present invention, parity is formed based on the bits of the part obtained by dividing the number of data bits into N, so the number of parity bits is reduced. The number of bits of data is reduced, the degree of redundancy is reduced, and the accuracy of data is improved. Moreover, the data length is shortened, and the amount of data in the recording/tα means is reduced and the storage area is narrowed.
Furthermore, by reducing the data length, power consumption is reduced.
Effects such as longer battery life when powered by batteries can be obtained.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明のパリティ生成方法の実施例を示すブ
ロック図、第2図は第1図に示したブロツク図における
パリティ生成方法を示すフローチャート、第3図は1ワ
ードのデータ構成を示す図、第4図はこの発明のパリテ
ィ生成方法の具体的な実施例であるエンコーダを示すブ
ロック図、第5図は第4図のエンコーダから送出される
1ワードのデータコードを示す図、第6図は第5図に示
したデータコードの論理パルスを表わす図、第7図は第
4図に示したエンコーダから送出されるデータコードを
復号化するデコーダを示すブロック図、第8図は従来の
パリティを示す図である。 2・・・パリティ演算手段、4・・・記憶手段。 第1図
FIG. 1 is a block diagram showing an embodiment of the parity generation method of the present invention, FIG. 2 is a flowchart showing the parity generation method in the block diagram shown in FIG. 1, and FIG. 3 is a diagram showing the data structure of one word. , FIG. 4 is a block diagram showing an encoder which is a specific embodiment of the parity generation method of the present invention, FIG. 5 is a diagram showing a one-word data code sent from the encoder of FIG. 4, and FIG. is a diagram showing the logic pulses of the data code shown in FIG. 5, FIG. 7 is a block diagram showing a decoder that decodes the data code sent from the encoder shown in FIG. 4, and FIG. 8 is a diagram showing the conventional parity code. FIG. 2... Parity calculation means, 4... Storage means. Figure 1

Claims (1)

【特許請求の範囲】 任意のビット数を持つデータのビット数をN分割し、N
分割によって得られたパートDi(=D_1.D_2・
・・D_N)中の任意のパートをDs(S=1、2・・
・N)、パートDiからパートDsを除いたパートの2
進加算値をXとすると、パリティpを p=Ds+nX(ただしnは整数) から求め、かつ、パリティpのビット数を各パートDi
のビット数に等しく設定したことを特徴とするパリティ
生成方法。
[Claims] Divide the number of bits of data having an arbitrary number of bits into N,
Part Di obtained by division (=D_1.D_2・
... D_N) any part in Ds (S=1, 2...
・N), part 2 excluding part Ds from part Di
If the base addition value is X, find the parity p from p=Ds+nX (where n is an integer), and calculate the number of bits of the parity p for each part Di
A parity generation method characterized in that the parity is set equal to the number of bits.
JP61211864A 1986-09-09 1986-09-09 Generation of parity Pending JPS6367643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61211864A JPS6367643A (en) 1986-09-09 1986-09-09 Generation of parity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61211864A JPS6367643A (en) 1986-09-09 1986-09-09 Generation of parity

Publications (1)

Publication Number Publication Date
JPS6367643A true JPS6367643A (en) 1988-03-26

Family

ID=16612872

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61211864A Pending JPS6367643A (en) 1986-09-09 1986-09-09 Generation of parity

Country Status (1)

Country Link
JP (1) JPS6367643A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5954028A (en) * 1996-08-08 1999-09-21 Honda Giken Kogyo Kabushiki Kaisha Air-fuel ratio control system for internal combustion engines

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5954028A (en) * 1996-08-08 1999-09-21 Honda Giken Kogyo Kabushiki Kaisha Air-fuel ratio control system for internal combustion engines

Similar Documents

Publication Publication Date Title
US4336612A (en) Error correction encoding and decoding system
US4337458A (en) Data encoding method and system employing two-thirds code rate with full word look-ahead
US4276646A (en) Method and apparatus for detecting errors in a data set
EP0122027A1 (en) Variable-length encoding-decoding system
EP0426657A3 (en)
US4858235A (en) Information storage apparatus
US4964139A (en) Multi-purpose circuit for decoding binary information
US4868922A (en) Data modulation/demodulation system utilizing demodulation clocks that differ in phase
JPS6367643A (en) Generation of parity
JPH0656958B2 (en) Information data restoration device
KR0148004B1 (en) Error detection apparatus
US6215728B1 (en) Data storage device capable of storing plural bits of data
US20220283979A1 (en) Adaptive serial general-purpose input output interface and signal receiver thereof
KR102111069B1 (en) Device for deciding data read start and method thereof
EP0327309A3 (en) Memory apparatus having error correction function
SU1531174A1 (en) Memory with correction of single errors
SU849517A1 (en) Device for receiving messages in data-transmitting systems with control feedback
SU1662012A1 (en) Device for finding errors in non-systematic convolution code
SU1291984A2 (en) Device for decoding linear convolution codes
SU932636A2 (en) Error detection device
SU959289A1 (en) Apparatus for detecting digital signal errors in monitored codes
SU649152A1 (en) Code combination analysis arrangement
SU1446656A1 (en) Storage with error correction
SU1615724A1 (en) Device for parity check of binary code
SU1429160A1 (en) Apparatus for multichannel magnetic recording of digital information