JPH06244828A - Receiver, preset correction circuit and communication device to be used for same - Google Patents

Receiver, preset correction circuit and communication device to be used for same

Info

Publication number
JPH06244828A
JPH06244828A JP5053012A JP5301293A JPH06244828A JP H06244828 A JPH06244828 A JP H06244828A JP 5053012 A JP5053012 A JP 5053012A JP 5301293 A JP5301293 A JP 5301293A JP H06244828 A JPH06244828 A JP H06244828A
Authority
JP
Japan
Prior art keywords
signal
value
data
bit width
circuit
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
JP5053012A
Other languages
Japanese (ja)
Inventor
Masaki Azuma
正記 東
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP5053012A priority Critical patent/JPH06244828A/en
Publication of JPH06244828A publication Critical patent/JPH06244828A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable data to be read without error even if binarizing reference voltage fluctuates on the side of a receiver in a communication transmitting data of '0' and '1' by signal which changes gently in order to prevent the radiation of noise from a communication line. CONSTITUTION:The edge of binarized binary signal B is detected by a comparator 81 and a cyclic counter 83 is preset to the output signal Z0 or Z2 of a preset correction circuit 86 by this edge detection signal. The output signal Z0 or Z2 of the preset correction circuit 86 is set to '7' when the time till the cyclic counter 83 is preset is short and is set to '0' or '1' on the contrary. Therefore, even if the reference voltage E1 of the comparator 81 fluctuates, the preset value of the cyclic counter 83 is set so as to compensate this and reading error is prevented.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、受信装置、この受信装
置に用いるプリセット値補正回路およびこの受信装置を
用いた通信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a receiving device, a preset value correction circuit used in the receiving device, and a communication device using the receiving device.

【0002】[0002]

【従来の技術】近年、マイクロプロセッサ技術の飛躍的
な革新・実用化により、各種機器、例えば車両などに複
数のマイクロプロセッサを搭載し、各プロセッサ間を通
信回線により接続したシステムが種々提案されている。
各プロセッサが共有すべきデータを通信回線を介して互
いにやり取りしたり、異常の発生をダイアグノーシスコ
ンピュータに知らせるといった目的に用いられている。
こうしたシステムとしては、車載の制御装置間を接続し
た車内LANや工場内の各種制御装置,工作機器などの
接続した構内LANなど、各種のものが知られている。
2. Description of the Related Art In recent years, due to the dramatic innovation and practical application of microprocessor technology, various systems have been proposed in which a plurality of microprocessors are mounted on various devices, such as vehicles, and each processor is connected by a communication line. There is.
It is used for the purpose of exchanging data to be shared by the processors with each other via a communication line and for notifying the diagnosis computer of the occurrence of an abnormality.
As such a system, various systems are known, such as an in-vehicle LAN in which on-vehicle control devices are connected to each other, various control devices in a factory, and a local area LAN to which machine tools are connected.

【0003】ところで、こうしてシステムに用いる通信
装置では、通信回線の電圧を、送信するデータ(通常は
「0」「1」の二値化信号)に基づいて、低電圧の信号
レベルとこれより高い信号レベルとの間で高速に反転す
る。従って、電位が0→1,1→0に変化するときに
は、いわゆるステップ応答となって、高周波成分により
ノイズが発生する。そこで、従来、この種の受信装置で
は、ノイズの放射を少なくするため、急峻な信号変化を
避ける工夫がなされている。
By the way, in the communication device used in the system in this way, the voltage of the communication line is set to a low voltage signal level or higher based on the data to be transmitted (usually a binary signal of "0" and "1"). Inverts rapidly to and from the signal level. Therefore, when the potential changes from 0 → 1, 1 → 0, a so-called step response occurs, and noise is generated by the high frequency component. Therefore, conventionally, in this type of receiving apparatus, in order to reduce noise emission, a device for avoiding a steep signal change has been made.

【0004】「1」「1」「0」「1」「1」「0」
「0」というデータを通信する場合を例に取ると、デー
タの「0」「1」の変化に対して、送信する側では、図
6に示すように、通信回線の電圧を緩やかに変化させ
る。一方、受信する側で、この電圧を、比較電圧TH1
と比較することにより「0」「1」の信号に変換し、1
ビットの長さでサンプリングすることにより、送信され
たデータを再現するのである。
"1""1""0""1""1""0"
Taking the case of communicating data of "0" as an example, in response to a change of "0" or "1" in the data, the transmitting side gently changes the voltage of the communication line as shown in FIG. . On the other hand, the receiving side compares this voltage with the comparison voltage TH1.
It is converted into a signal of “0” and “1” by comparing with
The transmitted data is recreated by sampling in bit lengths.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、この手
法では比較電圧が僅かに変化するだけで受信した信号の
「0」「1」の長さが大きく変化してしまい、サンプリ
ングにより受信エラーを起こすことがあるという問題が
あった。図6の例で言えば、比較電圧がTH1の場合と
TH2の場合とでは、「1」に対応して信号の長さは数
十パーセント異なってしまう。なお、本来基準となるべ
き比較電圧が変化するのは、各マイクロプロセッサが搭
載された電子制御装置間のグランド電位のゆらぎが主な
原因である。車両などではグランド電位はボディになる
が、車両ではセルモータやライトは数アンペアの電流を
必要とするため、ボディをグランドとして流れる電流も
大きく、局所的なグランド電位の変動を小さくすること
は困難である。
However, in this method, the length of "0" and "1" of the received signal changes greatly even if the comparison voltage slightly changes, and a reception error occurs due to sampling. There was a problem that there is. In the example of FIG. 6, the length of the signal differs by several tens of percent depending on “1” when the comparison voltage is TH1 and when the comparison voltage is TH2. The reason why the comparison voltage, which should originally be the reference, changes is mainly due to the fluctuation of the ground potential between the electronic control devices in which the respective microprocessors are mounted. In vehicles, the ground potential is the body, but in vehicles, cell motors and lights require a few amperes of current, so the current flowing through the body as ground is large and it is difficult to reduce local fluctuations in ground potential. is there.

【0006】このように比較電圧が変化して信号の
「0」「1」の長さが大きく変化すると、エッジからT
/2,T+T/2,2T+T/2,・・・・,M・T+
T/2(Mは0以上の整数)の時点でサンプリングして
いると、図6最下欄に示すように、「0」と「1」とを
読み違えてしまうことがあった。
When the comparison voltage changes and the length of "0" and "1" of the signal changes in this way, T from the edge.
/ 2, T + T / 2, 2T + T / 2, ..., M ・ T +
When sampling was performed at the time of T / 2 (M is an integer of 0 or more), "0" and "1" may be misread as shown in the bottom column of FIG.

【0007】本発明の受信装置は、こうした問題を解決
し、緩やかな信号変化に換えて送信された信号を正確に
読み取ること、更にはこれに適したプリセット値補正回
路および通信装置を提供することを目的としてなされ、
次の構成を採った。
The receiving apparatus of the present invention solves such a problem, accurately reads a transmitted signal in place of a gentle signal change, and further provides a preset value correction circuit and a communication apparatus suitable for this. For the purpose of
The following composition was adopted.

【0008】[0008]

【課題を解決するための手段】本発明にかかる第1の受
信装置は、2個以上のレベルの組合わせにより構成され
た情報を該レベル間を漸減・漸増する信号に変換した信
号を受信し、該信号から前記情報を復元する受信装置で
あって、前記信号を入力して所定の基準値と比較し、少
なくとも2値以上のデータに変換する変換手段と、該変
換手段により変換されたデータのビット幅を計測するビ
ット幅計測手段と、予め定められたビット幅の信号を受
け取ったとき、前記ビット幅計測手段が計測したビット
幅を基準ビット幅と比較し、該ビット幅の差異に基づい
て、その後に入力し信号のビット幅の前記計測を補正す
る計測補正手段とを備えたことを要旨とする。
A first receiving device according to the present invention receives a signal obtained by converting information constituted by a combination of two or more levels into a signal which gradually decreases or increases between the levels. A receiver for recovering the information from the signal, the converter receiving the signal, comparing it with a predetermined reference value, and converting the data into at least binary data, and the data converted by the converter. And a bit width measuring means for measuring the bit width of the bit width, the bit width measuring means compares the bit width measured by the bit width measuring means with a reference bit width, and based on the difference between the bit widths. And a measurement correction means for correcting the measurement of the bit width of the signal input after that.

【0009】本発明にかかる第2の受信装置は、2個以
上のレベルの組合わせにより構成された情報を該レベル
間を漸減・漸増する信号に変換した信号を受信し、該信
号から前記情報を復元する受信装置であって、前記情報
を構成する最小ビットの幅をN(Nは2以上の整数)個
に分割可能なクロック信号を出力するクロック回路と、
前記信号を入力して所定の基準値と比較するコンパレー
タと、該コンパレータの出力信号のエッジを検出し、エ
ッジ信号を出力するエッジ出力回路と、該エッジ信号を
受け取ったとき、外部から与えられたプリセット値にセ
ットされ、該プリセット値から前記クロック信号をサイ
クリックにカウントアップもしくはカウントダウンする
カウンタと、ビット幅が定まったスタートビットを受け
取ったとき、該ビット幅の間に出力されたクロックの数
と前記Nとの大小を判別し、該大小に応じて前記プリセ
ット値を、カウントを進める側または戻す側に補正する
プリセット値補正回路と、該カウンタが略N・(M+1
/2)個(Mは0以上の整数)の前記クロック信号をカ
ウントしたときの前記コンパレータの出力を前記データ
として記憶すると共に、該レジスタに所定個数のデータ
が蓄積されたとき、該蓄積されたデータを前記情報とし
て出力するレジスタとを備えたことを要旨とする。
A second receiving device according to the present invention receives a signal obtained by converting information constituted by a combination of two or more levels into a signal which gradually decreases / increases between the levels, and from the signal, the information A clock circuit for outputting a clock signal capable of dividing the width of the minimum bit forming the information into N (N is an integer of 2 or more),
A comparator which inputs the signal and compares it with a predetermined reference value, an edge output circuit which detects an edge of the output signal of the comparator and outputs an edge signal, and when the edge signal is received, it is given from the outside A counter that is set to a preset value and that cyclically counts up or down the clock signal from the preset value, and the number of clocks output during the bit width when a start bit with a fixed bit width is received. A preset value correction circuit that determines the magnitude of N and corrects the preset value to the side of advancing or returning the count according to the magnitude, and the counter is approximately N · (M + 1
/ 2) The output of the comparator when the number of clock signals (M is an integer of 0 or more) is counted is stored as the data, and when a predetermined number of data is stored in the register, the stored The gist of the present invention is to have a register for outputting data as the information.

【0010】こうした受信装置に使用するプリセット値
補正回路の発明は、この回路への入力値が前記カウンタ
プリセット値の初期値±許容値の範囲に入っている場合
には、該初期値を、入力値が該初期値+許容値より大き
い場合には、該初期値よりカウントダウン側の値を、入
力値が該初期値−許容値より小さい場合には、該初期値
よりカウントアップ側の値を各々出力する回路であるこ
とを要旨とする。
According to the invention of the preset value correction circuit used in such a receiving apparatus, when the input value to this circuit is within the range of the initial value ± allowable value of the counter preset value, the initial value is input. When the value is larger than the initial value + allowable value, the value on the countdown side from the initial value is set, and when the input value is smaller than the initial value−the allowable value, the value on the countup side than the initial value is set. The gist is that it is an output circuit.

【0011】本発明にかかる通信装置は、2個以上のレ
ベルの組合わせにより構成された情報を該レベル間を漸
減・漸増する信号に変換して出力する送信装置と、請求
項1もしくは請求項2記載の受信装置とからなることを
要旨とする。
A communication device according to the present invention includes: a transmission device for converting information constituted by a combination of two or more levels into a signal for gradually decreasing / increasing between the levels and outputting the signal; The gist of the present invention is that it comprises the receiving device described in 2.

【0012】[0012]

【作用】請求項1に記載された受信装置の発明によれ
ば、2個以上のレベルの組合わせにより構成された情報
を該レベル間を漸減・漸増する信号に変換した信号を入
力して、変換手段が、これを所定の基準値と比較し、少
なくとも2値以上のデータに変換する。変換されたデー
タのビット幅を、ビット幅計測手段により計測し、予め
定められたビット幅の信号を受け取ったときには、ビッ
ト幅計測手段が計測したビット幅を基準ビット幅と比較
し、このビット幅の差異に基づいて、計測補正手段によ
り、その後に入力する信号のビット幅の計測を補正す
る。この結果、本発明の受信装置は、変換手段における
基準値が相対的に変動すると、その変動を補正して情報
を受信する。
According to the invention of the receiving device described in claim 1, the signal which is obtained by converting the information constituted by the combination of two or more levels into the signal gradually decreasing / increasing between the levels, The conversion means compares this with a predetermined reference value and converts it into at least binary data. The bit width of the converted data is measured by the bit width measuring means, and when the signal of the predetermined bit width is received, the bit width measured by the bit width measuring means is compared with the reference bit width, and this bit width is measured. On the basis of the difference of (1), the measurement correction means corrects the measurement of the bit width of the signal input thereafter. As a result, when the reference value in the converting means changes relatively, the receiving device of the present invention corrects the change and receives the information.

【0013】請求項2に記載された第2の受信装置の発
明によれば、クロック回路は、2個以上のレベルの組合
わせにより構成された情報の最小ビット幅をN(Nは2
以上の整数)個に分割可能なクロック信号を出力し、後
述するカウンタのカウントに供する。コンパレータは、
2個以上のレベル間を漸減・漸増する信号に変換された
信号を入力し、これを所定の基準値と比較する。更に、
エッジ出力回路は、コンパレータの出力信号のエッジを
検出し、エッジ信号を出力する。このエッジ信号を受け
取ったとき、カウンタは、外部から与えられたプリセッ
ト値にセットされ、このプリセット値から前述したクロ
ック信号をサイクリックにカウントアップもしくはカウ
ントダウンする。
According to the invention of the second receiving device described in claim 2, the clock circuit sets the minimum bit width of information constituted by a combination of two or more levels to N (N is 2).
A clock signal which can be divided into the above integers is output and used for counting by a counter described later. The comparator is
A signal converted into a signal that gradually decreases / increases between two or more levels is input and compared with a predetermined reference value. Furthermore,
The edge output circuit detects an edge of the output signal of the comparator and outputs an edge signal. When this edge signal is received, the counter is set to a preset value given from the outside, and the above-mentioned clock signal is cyclically counted up or down from this preset value.

【0014】最小ビット幅の信号を受け取ったとき、プ
リセット値補正回路は、このビット幅の間に出力された
クロックの数と前記Nとの大小を判別し、この大小に応
じてプリセット値を、カウントを進める側または戻す側
に補正する。レジスタは、このカウンタが略・N(M+
1/2)個のクロック信号をカウントしたときのコンパ
レータの出力をデータとして記憶すると共に、このレジ
スタに所定個数のデータが蓄積されたとき、蓄積された
データを受信した情報として出力する。従って、この受
信装置は、コンパレータが比較する基準値が相対的に変
動すると、その変動の影響を、プリセット値補正回路が
補正し、情報を誤りなく受信する。
When the signal of the minimum bit width is received, the preset value correction circuit determines the number of clocks output during this bit width and the magnitude of N, and the preset value is determined according to this magnitude. Correct the count forward or backward. In the register, this counter is approximately ・ N (M +
The output of the comparator when counting 1/2 clock signals is stored as data, and when a predetermined number of data is stored in this register, the stored data is output as received information. Therefore, in this receiving device, when the reference value compared by the comparator changes relatively, the effect of the change is corrected by the preset value correction circuit, and the information is received without error.

【0015】かかる受信装置に使用するプリセット値補
正回路は、その回路への入力値が前記カウンタプリセッ
ト値の初期値±許容値の範囲に入っている場合には、該
初期値を、入力値が該初期値+許容値より大きい場合に
は、該初期値よりカウントダウン側の値を、入力値が該
初期値−許容値より小さい場合には、該初期値よりカウ
ントアップ側の値を各々出力する。
The preset value correction circuit used for such a receiving device, when the input value to the circuit is within the range of the initial value ± allowable value of the counter preset value, the input value is changed to the initial value. When it is larger than the initial value + allowable value, the value on the countdown side from the initial value is output, and when the input value is smaller than the initial value-allowable value, the value on the countup side from the initial value is output. .

【0016】請求項2に記載された通信装置の発明によ
れば、送信装置は、2個以上のレベルの組合わせにより
構成された情報を該レベル間を漸減・漸増する信号に変
換して出力し、請求項1もしくは2記載の受信装置によ
りこれを受信することで、情報の送受信を行なう。
According to the invention of the communication device described in claim 2, the transmitting device converts the information constituted by a combination of two or more levels into a signal which gradually decreases / increases between the levels and outputs the signal. Then, information is transmitted / received by receiving this by the receiving device according to claim 1 or 2.

【0017】[0017]

【実施例】以上説明した本発明の構成・作用を一層明ら
かにするために、以下本発明の好適な実施例について説
明する。図1は、実施例としての受信装置の概略構成を
示すブロック図、図2は、この受信装置が組み込まれた
各種電子制御装置がLANを構成している状態を示す説
明図である。
Preferred embodiments of the present invention will be described below in order to further clarify the structure and operation of the present invention described above. FIG. 1 is a block diagram showing a schematic configuration of a receiving device as an embodiment, and FIG. 2 is an explanatory diagram showing a state in which various electronic control devices incorporating this receiving device constitute a LAN.

【0018】まず、車両における各種電子制御装置がL
ANを構成している様子を説明する。図2に示すよう
に、この車両には、燃料噴射弁の開弁時間を制御して内
燃機関の運転状態に応じた適正な燃料噴射を行なう燃料
噴射制御電子制御装置(以下、EFIECUと呼ぶ)2
0、車載のトランスミッションのシフトアップ・ダウン
を制御するトランスミッション制御ECU30、車載の
サスペンションの減衰特性を制御するサスペンション制
御ECU40、ブレーキ油圧をコントロールして制動時
における車輪のスリップを防止するアンチスッキド制御
ECU50、内燃機関の吸入空気系に設けられメインス
ロットルバルブによる吸入空気量の制御特性を変更する
サブスロットル制御ECU60、電源投入時にこれらの
各ECUの動作が正常か否かを判断し異常発生時にその
状態を記憶するダイアグノーシスECU70が備えられ
ている。
First, various electronic control units in the vehicle are
How the AN is configured will be described. As shown in FIG. 2, in this vehicle, a fuel injection control electronic control unit (hereinafter referred to as EFIECU) that controls the valve opening time of the fuel injection valve to perform appropriate fuel injection according to the operating state of the internal combustion engine. Two
0, a transmission control ECU 30 that controls up-shifting / down-shifting of a vehicle-mounted transmission, a suspension control ECU 40 that controls damping characteristics of a vehicle-mounted suspension, an anti-skid control ECU 50 that controls brake hydraulic pressure to prevent wheel slip during braking, internal combustion The sub-throttle control ECU 60 provided in the intake air system of the engine for changing the control characteristic of the intake air amount by the main throttle valve, judges whether the operation of each of these ECUs is normal when the power is turned on, and stores the state when an abnormality occurs The diagnosis ECU 70 is provided.

【0019】各ECU20ないし70には、それらのE
CUの制御に必要な情報を検出するセンサ群22,3
2,42,52,62,72と、各ECUにより駆動さ
れるアクチュエータ群24,34,44,54,64,
74とが接続されている。各センサ群およびアクチュエ
ータ群は、それぞれのECUの公知の制御に用いられる
通常のものであり、その説明は省略する。上記各ECU
20ないし70は、通信回線TRにより、互いに通信可
能に接続されている。各ECU20ないし70には、こ
の通信回線TRを介してデータを送信する送信回路およ
びそのデータを受信する受信回路が設けられている。な
お、各ECUが通信回線TRを介してデータのやり取り
を行なう場合、送信する側のECUは、送信データの先
頭に受信するECUを特定する特定のコードを付与す
る。従って、常時通信回線TRを監視している各ECU
は、受け取ったデータが自分宛のものか否かを容易に認
識することができる。
Each of the ECUs 20 to 70 has its E
Sensor groups 22, 3 for detecting information necessary for controlling the CU
2, 42, 52, 62, 72, and actuator groups 24, 34, 44, 54, 64 driven by the respective ECUs.
74 are connected. Each sensor group and each actuator group are ordinary ones used for publicly known control of each ECU, and the description thereof will be omitted. Each ECU above
20 to 70 are communicably connected to each other through a communication line TR. Each of the ECUs 20 to 70 is provided with a transmission circuit for transmitting data and a reception circuit for receiving the data via the communication line TR. When each ECU exchanges data via communication line TR, the transmitting ECU gives a specific code for identifying the ECU to be received at the beginning of the transmission data. Therefore, each ECU that constantly monitors the communication line TR
Can easily recognize whether or not the received data is addressed to itself.

【0020】次に、EFIECU20を例に採って、通
信回線TRからデータを読み取る受信装置としての受信
回路の構成と働きについて説明する。図1に示すよう
に、EFIECU20には、センサ群22からの情報お
よび通信回線TRを介して受け取ったデータに基づいて
アクチュエータ群24を制御するMPU75と、通信回
線TRを介してデータを受け取る受信回路80と、通信
回線TRを介してデータを出力する送信回路90とが設
けられている。
Next, taking the EFIECU 20 as an example, the structure and function of a receiving circuit as a receiving device for reading data from the communication line TR will be described. As shown in FIG. 1, the EFIECU 20 includes an MPU 75 that controls the actuator group 24 based on the information received from the sensor group 22 and the data received via the communication line TR, and a receiving circuit that receives the data via the communication line TR. 80 and a transmission circuit 90 for outputting data via the communication line TR are provided.

【0021】受信回路80は、通信回線TRからの信号
を基準電圧E1と比較するコンパレータ81、コンパレ
ータ81の出力信号の立ち上がり,立ち下がりのエッジ
を検出するエッジディテクタ82、エッジディテクタ8
2の出力信号によりプリセットされるサイクリックカウ
ンタ83、このサイクリックカウンタ83がカウントす
るクロック信号CKを生成する発振器85、サイクリッ
クカウンタ83の出力値に応じてプリセット値を決定す
るプリセット補正回路86、サイクリックカウンタ83
の出力が予め設定した値(本実施例では値4)となった
ことを検出する比較回路87、比較回路87の一致検出
信号をシフト信号としコンパレータ81の出力をデータ
として取り込む受信用シフトレジスタ89、等から構成
されている。
The receiving circuit 80 includes a comparator 81 for comparing a signal from the communication line TR with a reference voltage E1, an edge detector 82 for detecting rising and falling edges of an output signal of the comparator 81, and an edge detector 8.
A cyclic counter 83 preset by an output signal of 2; an oscillator 85 that generates a clock signal CK counted by the cyclic counter 83; a preset correction circuit 86 that determines a preset value according to the output value of the cyclic counter 83; Cyclic counter 83
Of the comparator circuit 87 for detecting that the output of the comparator 8 has reached a preset value (value 4 in this embodiment), and the reception shift register 89 for fetching the output of the comparator 81 as data by using the coincidence detection signal of the comparator circuit 87 as the shift signal. ,, etc.

【0022】受信用シフトレジスタ89は、10ビット
のシフトレジスタであり、データ入力端子Dの信号レベ
ルを比較回路87が出力する一致検出信号に同期して取
り込み、スタートビット1,データビット8,ストップ
ビット1からなるデータをパラレルデータに変換する。
受信用シフトレジスタ89は、MPU75のアドレスバ
スABおよびデータバスDBと接続されており、10ビ
ット分のデータが揃うとMPU75に対して割込要求信
号IRQを出力する。割込要求信号IRQを受けたMP
U75は、受信用シフトレジスタ89が割り付けられた
アドレス信号をアドレスバスABに出力し、受信用シフ
トレジスタ89に蓄積された10ビットのデータのう
ち、スタートビットとストップビットを除く8ビット分
のデータを読み取る。MPU75からそのデータを読み
取られることにより、受信用シフトレジスタ89はリセ
ットされる。
The receiving shift register 89 is a 10-bit shift register, which fetches the signal level of the data input terminal D in synchronization with the coincidence detection signal output from the comparison circuit 87, and starts the start bit 1, the data bit 8, and the stop bit. Data consisting of bit 1 is converted into parallel data.
The reception shift register 89 is connected to the address bus AB and the data bus DB of the MPU 75 and outputs an interrupt request signal IRQ to the MPU 75 when 10-bit data is prepared. MP receiving interrupt request signal IRQ
U75 outputs the address signal to which the shift register for reception 89 is allocated to the address bus AB, and among the 10-bit data accumulated in the shift register for reception 89, 8-bit data excluding the start bit and the stop bit. To read. The reception shift register 89 is reset by reading the data from the MPU 75.

【0023】次に、プリセット補正回路86について説
明する。このプリセット補正回路86は、図3に示すよ
うに、3ビットの入力信号A0ないしA2に対して、3
ビットの出力信号Z0ないしZ2を出力する回路であ
る。図3は、プリセット補正回路86の入力信号と出力
信号との関係を真理値表の形で示す説明図である。図示
するように、プリセット補正回路86は、8進表示で、
入力信号A0ないしA2が「0」「3」「6」「7」の
場合に出力信号Z0ないしZ2が「0」となり、入力信
号A0ないしA2が「1」「2」の場合に出力信号Z0
ないしZ2が「1」となり、入力信号A0ないしA2が
「5」「6」の場合に出力信号Z0ないしZ2が「7」
となる。
Next, the preset correction circuit 86 will be described. As shown in FIG. 3, the preset correction circuit 86 outputs 3 bits to the 3-bit input signals A0 to A2.
It is a circuit that outputs bit output signals Z0 to Z2. FIG. 3 is an explanatory diagram showing the relationship between the input signal and the output signal of the preset correction circuit 86 in the form of a truth table. As shown in the figure, the preset correction circuit 86 is an octal display,
When the input signals A0 to A2 are "0", "3", "6" and "7", the output signals Z0 to Z2 are "0", and when the input signals A0 to A2 are "1" and "2", the output signal Z0 is
To Z2 become "1" and the input signals A0 to A2 are "5" and "6", the output signals Z0 to Z2 are "7".
Becomes

【0024】こうした入出力の関係は、真理値表に従っ
て、プログラマブルアレイロジック(PAL)により、
容易に製作することができる。PALの内部は、入力信
号からその反転信号を生成するインバータINV群、入
力信号およびその反転信号を入力とするアンドゲートA
ND群、このアンドゲートAND群の出力の論理和を取
るオアゲートOR群から構成されており、入力信号およ
びその反転信号とアンドゲートAND群との結線、アン
ドゲートAND群とオアゲートOR群との結線をプログ
ラムすることにより、真理値表に示された所望の入出力
関係を実現することができる。図4は、PALにより実
現されたプリセット補正回路86の内部構成を論理ゲー
トにより示す回路図である。
The relationship between these inputs and outputs is determined by the programmable array logic (PAL) according to the truth table.
It can be easily manufactured. Inside the PAL, an inverter INV group that generates an inverted signal of the input signal, an AND gate A that receives the input signal and its inverted signal as inputs.
It is composed of an ND group and an OR gate OR group that takes the logical sum of the outputs of the AND gate AND group, and a connection between the input signal and its inverted signal and the AND gate AND group, and a connection between the AND gate AND group and the OR gate OR group. By programming, the desired input / output relationship shown in the truth table can be realized. FIG. 4 is a circuit diagram showing the internal configuration of the preset correction circuit 86 realized by PAL using logic gates.

【0025】一方、送信回路90は、受信回路80と同
様、MPU75のアドレスバスABおよびデータバスD
Bが接続され、MPU75から書き込まれたスタートビ
ットおよびストップビットを含むデータを、順次シリア
ル信号に変換して出力する回路である。送信回路90
は、図1に示すように、データバスDBを介して書き込
まれたパラレルデータをシリアルデータに変換する送信
用シフトレジスタ92、送信用シフトレジスタ92のシ
リアル読み出し用のクロック信号CLKを出力する発振
器94、送信用シフトレジスタ92のシリアル出力信号
を積分する積分回路96を備える。
On the other hand, the transmission circuit 90, like the reception circuit 80, has an address bus AB and a data bus D of the MPU 75.
B is connected and is a circuit that sequentially converts data including start bits and stop bits written from the MPU 75 into serial signals and outputs the serial signals. Transmission circuit 90
As shown in FIG. 1, a transmission shift register 92 for converting parallel data written via the data bus DB into serial data, and an oscillator 94 for outputting a clock signal CLK for serial reading of the transmission shift register 92. An integrating circuit 96 for integrating the serial output signal of the transmission shift register 92 is provided.

【0026】送信回路90は、通信回線TRへの出力段
に積分回路96を備えるので、EFIECU20が通信
回線TRに出力する信号は、「0」「1」の信号レベル
間の切替が緩やかに行なわれる信号となる。同様の送信
回路90は、他のECU30ないし70にも装備されて
おり、通信回線TRによる通信は、総て緩やかに変化す
る信号により行なわる。従って、通信回線TRからのラ
ジオノイズの輻射は極めて小さく抑えられている。
Since the transmitting circuit 90 includes the integrating circuit 96 at the output stage to the communication line TR, the signal output from the EFIECU 20 to the communication line TR is gently switched between the signal levels "0" and "1". Signal. The same transmission circuit 90 is also installed in the other ECUs 30 to 70, and the communication through the communication line TR is performed by signals that change gradually. Therefore, the radiation of radio noise from the communication line TR is suppressed to an extremely small level.

【0027】次に、通信回線TRを介してデータを受信
する場合の受信回路80の動作について説明する。図5
は、受信回路80各部の信号およびデータの変化を示す
説明図である。図における左端の符号は図1における受
信回路80内の信号線に付与された符号に対応してい
る。
Next, the operation of the receiving circuit 80 when receiving data via the communication line TR will be described. Figure 5
FIG. 6 is an explanatory diagram showing changes in signals and data in each unit of the receiving circuit 80. The code at the left end in the figure corresponds to the code given to the signal line in the receiving circuit 80 in FIG.

【0028】送信データは、各ECU20ないし70に
備えられた送信回路90により「0」「1」のレベル間
を緩やかに変化する信号DXとして通信回線TRに出力
される。受信回路80は、この信号を入力し、これをコ
ンパレータ81により基準電圧E1と比較し、「0」
「1」の二値信号Bに変換する。この二値信号Bは、エ
ッジディテクタ82と受信用シフトレジスタ89とに出
力されているが、このうちエッジディテクタ82では、
二値信号Bの立ち上がりと立ち下がりとを検出し、エッ
ジ検出信号Cを出力する。
The transmission data is output to the communication line TR by the transmission circuit 90 provided in each of the ECUs 20 to 70 as a signal DX that gently changes between the "0" and "1" levels. The receiving circuit 80 inputs this signal, compares it with the reference voltage E1 by the comparator 81, and outputs "0".
The binary signal B of "1" is converted. The binary signal B is output to the edge detector 82 and the reception shift register 89. Of these, the edge detector 82 is
The rising and falling edges of the binary signal B are detected, and the edge detection signal C is output.

【0029】エッジ検出信号Cは、サイクリックカウン
タ83に入力されており、サイクリックカウンタ83を
プリセットする。即ち、サイクリックカウンタ83は、
エッジ検出信号Cが入力された時点でのプリセット補正
回路86の出力信号Z0ないしZ2の値にセットされる
のである。プリセット補正回路86の出力信号Z0ない
しZ2は、図3に示したように、値「0」「1」「7」
のいずれかの値を取るから、サイクリックカウンタ83
は、これらのいずれかの値にセットされることになる。
サイクリックカウンタ83は、このプリセット値から直
ちにカウントを開始し、発振器85からのクロック信号
CK毎に、その出力を値1ずつインクリメントしてゆ
く。
The edge detection signal C is input to the cyclic counter 83 and presets the cyclic counter 83. That is, the cyclic counter 83
The values of the output signals Z0 to Z2 of the preset correction circuit 86 at the time when the edge detection signal C is input are set. The output signals Z0 to Z2 of the preset correction circuit 86 have the values "0", "1", "7" as shown in FIG.
Of the cyclic counter 83
Will be set to one of these values.
The cyclic counter 83 immediately starts counting from this preset value and increments its output by one for each clock signal CK from the oscillator 85.

【0030】このサイクリックカウンタ83の出力信号
(プリセット補正回路86の入力信号)A0ないしA2
は、比較回路87にも入力されており、その値が4にな
ったとき、比較回路87は、一致検出信号Fを受信用シ
フトレジスタ89に出力する。従って、このタイミング
におけるコンパレータ81の出力レベルが、データとし
て受信用シフトレジスタ89に記憶されることになる。
スタートビット,ストップビットを含めて10ビットの
データが受信用シフトレジスタ89に蓄積されると、受
信用シフトレジスタ89はMPU75に対して割込要求
信号IRQを出力する。、これを受けてMPU75は、
受信用シフトレジスタ89のデータを読み取り、データ
の受信を完了するのである。
Output signals of the cyclic counter 83 (input signals of the preset correction circuit 86) A0 to A2
Is also input to the comparison circuit 87, and when the value becomes 4, the comparison circuit 87 outputs the coincidence detection signal F to the reception shift register 89. Therefore, the output level of the comparator 81 at this timing is stored as data in the reception shift register 89.
When 10-bit data including the start bit and the stop bit is accumulated in the reception shift register 89, the reception shift register 89 outputs the interrupt request signal IRQ to the MPU 75. In response to this, the MPU75
The data in the reception shift register 89 is read, and the data reception is completed.

【0031】コンパレータ81における基準電圧E1が
変動した場合の受信回路80の動作について説明する。
基準電圧E1が高くなると、コンパレータ81により、
通信回線TRを介して送信されたデータがハイレベル
(「1」)であると判断される期間は短くなる。従っ
て、図5に示すように、エッジディテクタ82が二値信
号Bの立ち上がりを検出してから立ち下がりを検出する
までの時間が短くなり、エッジディテクタ82が二値信
号Bの立ち上がりを検出した時点で値「0」にリセット
されたサイクリックカウンタ83は、値「7」までカウ
ントアップする以前に次のプリセット信号を受けること
になる。次のプリセット信号を受けた時点では、サイク
リックカウンタ83の出力信号A0ないしA2の状態に
より決定されるプリセット補正回路86の出力信号Z0
ないしZ2は、値「0」ではなく値「7」となってお
り、これがサイクリックカウンタ83にプリセットされ
る。
The operation of the receiving circuit 80 when the reference voltage E1 in the comparator 81 changes will be described.
When the reference voltage E1 becomes high, the comparator 81
The period in which it is determined that the data transmitted via the communication line TR is at the high level (“1”) becomes short. Therefore, as shown in FIG. 5, the time from the detection of the rising edge of the binary signal B to the detection of the falling edge of the binary signal B is shortened, and the time when the edge detector 82 detects the rising edge of the binary signal B. The cyclic counter 83, which has been reset to the value "0" in step 1, receives the next preset signal before it is counted up to the value "7". At the time of receiving the next preset signal, the output signal Z0 of the preset correction circuit 86 determined by the states of the output signals A0 to A2 of the cyclic counter 83.
Through Z2 are not "0" but "7" and are preset in the cyclic counter 83.

【0032】この結果、サイクリックカウンタ83は、
次のカウントアップの動作を値「7」から始めることに
なり、その出力が値「4」となるタイミング、即ち比較
回路87の一致検出信号Fがハイレベルとなるタイミン
グは、通常の場合よりクロック信号CK一つ分遅れるこ
とになる。基準電圧E1か高い側にずれている場合に
は、コンパレータ81が、通信回線TRから入力した信
号をロウレベル値0と判断する期間は長くなるから、次
にエッジ検出信号Cがアクティブとなるのは遅れ、サイ
クリックカウンタ83は値「7」までカウントアップ
し、次のクロック信号CKにより値「0」となり、場合
によっては値「1」までカウントアップすることにな
る。この場合、次のエッジ検出信号Cにより、プリセッ
ト補正回路86の出力信号に基づいてサイクリックカウ
ンタ83は値「0」もしくは値「1」にプリセットさ
れ、一致検出信号Fが出力されるまでの期間は短くな
る。
As a result, the cyclic counter 83
The next count-up operation is started from the value "7", and the timing when the output thereof becomes the value "4", that is, the timing when the coincidence detection signal F of the comparison circuit 87 becomes the high level is higher than the clock in the normal case. It will be delayed by one signal CK. When the reference voltage E1 is deviated to the high side, the period in which the comparator 81 determines that the signal input from the communication line TR is the low level value 0 becomes long, and therefore the edge detection signal C becomes active next time. After a delay, the cyclic counter 83 counts up to the value "7", becomes the value "0" by the next clock signal CK, and in some cases, counts up to the value "1". In this case, the next edge detection signal C causes the cyclic counter 83 to be preset to the value “0” or the value “1” based on the output signal of the preset correction circuit 86, and the period until the coincidence detection signal F is output. Becomes shorter.

【0033】即ち、本実施例では、基準電圧E1が高く
なって、二値信号Bがハイレベルと判断される期間が短
くなる場合、二値信号Bの立ち上がり時にサイクリック
カウンタ83にプリセットされる値は、デフォルト値
(実施例では0)もしくはこれより大きな値となって、
コンパレータ81の出力をデータとして取り込むタイミ
ングを早め、一方、二値信号Bの立ち下がり時にサイク
リックカウンタ83にプリセットされる値は、デフォル
ト値もしくはこれよりカウントアップに対して手前側の
値となって、コンパレータ81の出力をデータとして取
り込むタイミングを遅くしている。なお、同じレベルの
ビットが2以上連続する場合、エッジ検出信号Cは出力
されないから、2度目の一致検出信号Fが出力されるタ
イミングは最初の一致検出信号Fの出力から、正規の間
隔(サイクリックカウンタ83が8個のクロック信号C
Kをカウントする期間)の後となる。この結果、基準電
圧E1が変動して、正常値より高くなっても、サイクリ
ックカウンタ83のプリセット値がこれに併せて補償さ
れ、データを正しく読み取ることができる。
That is, in this embodiment, when the reference voltage E1 becomes high and the period during which the binary signal B is judged to be high level becomes short, the cyclic counter 83 is preset at the rising of the binary signal B. The value is a default value (0 in the embodiment) or a value larger than this,
The timing at which the output of the comparator 81 is taken in as data is advanced, while the value preset in the cyclic counter 83 at the fall of the binary signal B is the default value or a value on the near side with respect to counting up. , The timing of fetching the output of the comparator 81 as data is delayed. Note that when two or more bits of the same level continue, the edge detection signal C is not output. Therefore, the timing at which the second match detection signal F is output is the regular interval (cycle) from the output of the first match detection signal F. Click counter 83 has eight clock signals C
(A period for counting K). As a result, even if the reference voltage E1 fluctuates and becomes higher than the normal value, the preset value of the cyclic counter 83 is compensated accordingly, and the data can be read correctly.

【0034】基準電圧E1が低くなって、二値信号Bが
ハイレベルと判断される期間が長くなった場合は、上述
した動作とは逆に、二値信号Bの立ち上がり時にサイク
リックカウンタ83にプリセットされる値がデフォルト
値よりカウントアップに対して手前側の値となり、二値
信号の立ち下がり時にプリセットされる値がデフォルト
値により大きな値となる。この結果、基準電圧E1が高
くなった場合と同様、その影響を補償して、正しくデー
タの読み取りが行なわれる。
When the reference voltage E1 becomes low and the period during which the binary signal B is judged to be at the high level becomes long, the cyclic counter 83 is provided to the cyclic counter 83 when the binary signal B rises, contrary to the operation described above. The preset value is a value closer to the count-up than the default value, and the preset value when the binary signal falls is larger than the default value. As a result, similarly to the case where the reference voltage E1 becomes high, the influence is compensated and the data is read correctly.

【0035】以上、基準電圧E1の変動に対して、通信
回線TRを介して送られる信号から、受信回路80がデ
ータを正しく読み取る動作について説明したが、基準電
圧E1がどの程度の変動しても正常にデータを読み取れ
るかは、非同期通信の場合、送信側のクロックと受信側
のクロックとの許容差にも依存する。非同期通信の場
合、送信側と受信側のクロックを完全に一致させること
は通常できないから、システムの設計時には、その許容
誤差の範囲が問題となる。本発明は、基準電圧E1があ
る程度変動することを前提に設計されたシステムにおい
て、クロックの許容誤差の範囲を拡大しているとみなす
ことができる。この点を実施例の受信回路80に即して
計算により示す。
The operation in which the receiving circuit 80 correctly reads the data from the signal sent through the communication line TR with respect to the fluctuation of the reference voltage E1 has been described above. Whether data can be read normally also depends on the tolerance between the clock on the transmitting side and the clock on the receiving side in the case of asynchronous communication. In the case of asynchronous communication, it is usually impossible to completely match the clocks on the transmitting side and the receiving side. Therefore, the allowable error range becomes a problem when designing the system. The present invention can be regarded as expanding the range of the permissible error of the clock in the system designed on the assumption that the reference voltage E1 fluctuates to some extent. This point will be shown by calculation in accordance with the receiving circuit 80 of the embodiment.

【0036】送信回路のクロック信号の周波数が仕様値
の(1+δ)倍にずれている場合を想定する。送信回路
がこのクロックで、8ビットすべてが値1であるデータ
を送信した場合、このデータに対応して送信信号がハイ
レベルとなっている期間TLは、1ビットに用意された
時間をTとすると、 TL=8・T/(1+δ) である。これに対して受信回路80では、基準電圧E1
の変動によって、二値信号Bがハイレベルとなっている
期間が、正規の基準電圧の場合と較べて0.3Tだけ短
くなったとすると、受信側での期間Twは、 Tw=TL−0.3・T となる。
It is assumed that the frequency of the clock signal of the transmission circuit is deviated by (1 + δ) times the specification value. When the transmission circuit transmits data in which all 8 bits have a value of 1 with this clock, the period TL during which the transmission signal is at the high level corresponding to this data is the time prepared for 1 bit as T. Then, TL = 8 · T / (1 + δ). On the other hand, in the receiving circuit 80, the reference voltage E1
Assuming that the period during which the binary signal B is at the high level is shortened by 0.3T as compared with the case of the normal reference voltage due to the fluctuation of, the period Tw on the receiving side is Tw = TL-0. It becomes 3 · T.

【0037】クロック信号の周波数が仕様値の(1+
δ)倍の送信回路に対して最も読み誤りが生じ易いの
は、クロック信号CKの周波数が仕様値の(1−δ)で
ある受信回路80との組合わせとなった場合である。デ
ータの読み取りは、データの最初の立ち上がり時からT
/2後に最初のビットの読み取りが行なわれ、以後周期
T毎に読み取りが行なわれるから、最後のビット(8ビ
ット目)の読み取り時に誤りが生じるのは、この周期T
が、T/(1−δ)となることを考慮すれば、 Tw≦(8−1/2)・T/(1−δ) という条件となった場合である。換言すれば、 Tw>(8−1/2)・T/(1−δ) …(1) を満たすδの範囲では、読み取りの誤りは生じない。そ
こで、この式を解くと、 δ<0.013 を得る。これは従来の送受信回路でのクロック信号の許
容誤差である。
The frequency of the clock signal is (1+
The most erroneous reading error occurs in the δ) times transmission circuit when the frequency of the clock signal CK is combined with the reception circuit 80 having the specification value (1-δ). Data can be read from the beginning of the data at T
Since the first bit is read after / 2, and the reading is performed every cycle T thereafter, an error occurs when reading the last bit (8th bit).
Is T / (1−δ), the condition is Tw ≦ (8−1 / 2) · T / (1−δ). In other words, no reading error occurs in the range of δ that satisfies Tw> (8-1 / 2) · T / (1-δ) (1). Then, by solving this equation, δ <0.013 is obtained. This is the allowable error of the clock signal in the conventional transmitting / receiving circuit.

【0038】これに対して本実施例では、スタートビッ
トについてその期間を計測してサンプリングのタイミン
グを調整しているので、上記ケースでは、最初のサンプ
リングまでの期間が発振器85からのクロック信号CK
一つ分短くなるのである。クロック信号CKは、読み取
りの周期Tの1/8に当たるから、上記式(1)は、 Tw>(8−1/2−1/8)・T/(1−δ) となり、これを満たす許容誤差δの範囲は、 δ<0.022 となる。
On the other hand, in this embodiment, since the period of the start bit is measured and the sampling timing is adjusted, in the above case, the period until the first sampling is the clock signal CK from the oscillator 85.
It is shortened by one. Since the clock signal CK corresponds to ⅛ of the reading cycle T, the above equation (1) becomes Tw> (8−1 / 2−1 / 8) · T / (1−δ), which is acceptable. The range of the error δ is δ <0.022.

【0039】即ち、基準電圧E1の変動によりコンパレ
ータ81が出力する二値信号Bの長さが0.3・T変動
する場合、従来技術では1.3パーセントのクロック精
度が要求されたのに対して、本実施例によれば、2.2
パーセントまで許容されることになる。
That is, when the length of the binary signal B output from the comparator 81 varies by 0.3.T due to the variation of the reference voltage E1, 1.3% of the clock accuracy is required in the prior art. According to this embodiment, 2.2
Percentage will be acceptable.

【0040】以上本発明の実施例について説明したが、
本発明はこうした実施例に何等限定されるものではな
く、例えばサイクリックカウンタ83が8進カウンタで
はなく6進や16進等のカウンタである構成、プリセッ
ト補正回路86がMPU75により実現される構成、プ
リセット補正回路86がROMにより実現される構成、
プリセット補正回路86を書換可能なRAMにより実現
し読み取りの誤りの発生時にプリセット値を適正な値に
学習してゆく構成、あるいは車載のECU間の通信以外
の通信装置(例えば工場内のLAN等の送受信装置)に
適用した構成など、本発明の要旨を逸脱しない範囲内に
おいて、種々なる態様で実施し得ることは勿論である。
The embodiment of the present invention has been described above.
The present invention is not limited to such an embodiment. For example, the cyclic counter 83 is not an octal counter but a hexadecimal or hexadecimal counter, and the preset correction circuit 86 is realized by the MPU 75. A configuration in which the preset correction circuit 86 is realized by a ROM,
The preset correction circuit 86 is realized by a rewritable RAM so that the preset value is learned to an appropriate value when a reading error occurs, or a communication device other than communication between ECUs mounted on a vehicle (for example, a LAN in a factory or the like). Needless to say, the present invention can be implemented in various modes without departing from the scope of the present invention, such as a configuration applied to a transceiver.

【0041】[0041]

【発明の効果】以上実施例を挙げて詳細に説明したよう
に、本発明の第1の受信装置は、予めビット幅が定めら
れた信号を受信して計測したビット幅を基準ビット幅と
比較し、その差異に基づいて、その後に入力した信号の
ビット幅の計測を補正する。従って、漸減・漸増する信
号を入力しこれを2値以上のデータに変換するための基
準値が変動してビット幅が変動するような場合でも、誤
りなく情報を復元することができるという優れた効果を
奏する。
As described above in detail with reference to the embodiments, the first receiving device of the present invention compares the bit width measured by receiving a signal having a predetermined bit width with the reference bit width. Then, based on the difference, the measurement of the bit width of the subsequently input signal is corrected. Therefore, even if a reference value for converting a signal that gradually decreases / increases and converts it into binary data or more fluctuates and the bit width fluctuates, the information can be restored without error. Produce an effect.

【0042】また、本発明の第2の受信装置は、サイク
リックにクロック信号をカウントするカウンタを用い、
このカウンタが略N・(M+1/2)個のクロック信号
をカウントしたときのコンパレータの出力をデータとし
て読み取る構成を備え、スタートビットを受け取った時
にそのスタートビットの幅の間に出力されたクロック信
号の数とNとの大小関係に応じて、カウンタのプリセッ
ト値を、カウントを進める側または戻す側に補正してい
る。従って、漸減・漸増する信号を入力しこれを2値以
上のデータに変換するコンパレータの基準値が変動して
ビット幅が変動するような場合でも、誤りなく情報を復
元することができるという優れた効果を奏する。
The second receiver of the present invention uses a counter that cyclically counts clock signals,
The counter has a configuration for reading the output of the comparator as data when counting approximately N · (M + ½) clock signals, and the clock signal output within the width of the start bit when the start bit is received. The preset value of the counter is corrected to the side for advancing or returning the count according to the magnitude relation between the number of N and N. Therefore, even when the reference value of the comparator that inputs a signal that gradually decreases / increases and converts this into binary or more data fluctuates and the bit width fluctuates, it is possible to restore information without error. Produce an effect.

【0043】更に、上記受信装置に用いるプリセット値
補正回路は、この回路への入力値がカウンタのプリセッ
ト値の初期値に対して、許容範囲内か、許容範囲より大
きいか、小さいかにより、初期値そのもの、初期値より
カウントダウン側の値、あるいはカウントアップ側の値
を出力するので、カウンタのプリセット値を、データの
読み誤りを生じ難くする側に容易に設定することができ
る。
Further, the preset value correction circuit used in the above-mentioned receiving device is initialized depending on whether the input value to this circuit is within the allowable range, larger than the allowable range, or smaller than the initial value of the preset value of the counter. Since the value itself, the value on the countdown side or the value on the countup side from the initial value is output, it is possible to easily set the preset value of the counter to the side where data reading error is unlikely to occur.

【0044】更に、この受信装置と送信装置とを組み合
わせた通信装置は、2個以上のレベルの組合わせにより
構成された情報を、このレベル間を漸減・漸増する信号
に変換してやり取りするから、通信回線からのノイズの
輻射を低減することができ、しかもデータの読み誤りが
生じにくいという効果を奏する。
Further, the communication device which is a combination of the receiving device and the transmitting device exchanges information constituted by a combination of two or more levels by converting it into a signal which gradually decreases or increases between the levels. It is possible to reduce noise radiation from the communication line, and moreover, it is possible to prevent data reading errors.

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

【図1】実施例としての受信装置の概略構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a schematic configuration of a receiving apparatus as an embodiment.

【図2】この受信装置が組み込まれた各種電子制御装置
がLANを構成している状態を示す説明図である。
FIG. 2 is an explanatory diagram showing a state in which various electronic control devices incorporating the receiving device constitute a LAN.

【図3】プリセット補正回路86の入出力の関係を示す
説明図である。
FIG. 3 is an explanatory diagram showing an input / output relationship of a preset correction circuit 86.

【図4】プリセット補正回路86をPALにより実現し
た例を示す回路図である。
FIG. 4 is a circuit diagram showing an example in which a preset correction circuit 86 is realized by PAL.

【図5】受信回路80各部の信号およびデータの変化を
示す説明図である。
FIG. 5 is an explanatory diagram showing changes in signals and data in each unit of the receiving circuit 80.

【図6】従来の受信装置におけるデータの読み誤りのメ
カニズムを示す説明図である。
FIG. 6 is an explanatory diagram showing a mechanism of data read error in a conventional receiving device.

【符号の説明】[Explanation of symbols]

20…EFIECU 22,32,42,52,62,72…センサ群 24,34,44,54,64,74…アクチュエータ
群 30…トランスミッション制御ECU 40…サスペンション制御ECU 50…アンチスッキド制御ECU 60…サブスロットル制御ECU 70…ダイアグノーシスECU 75…MPU 80…受信回路 81…コンパレータ 82…エッジディテクタ 83…サイクリックカウンタ 85…発振器 86…プリセット補正回路 87…比較回路 89…受信用シフトレジスタ 90…送信回路 92…送信用シフトレジスタ 94…発振器 96…積分回路
20 ... EFIECU 22, 32, 42, 52, 62, 72 ... Sensor group 24, 34, 44, 54, 64, 74 ... Actuator group 30 ... Transmission control ECU 40 ... Suspension control ECU 50 ... Anti-skid control ECU 60 ... Sub throttle Control ECU 70 ... Diagnostic ECU 75 ... MPU 80 ... Reception circuit 81 ... Comparator 82 ... Edge detector 83 ... Cyclic counter 85 ... Oscillator 86 ... Preset correction circuit 87 ... Comparison circuit 89 ... Reception shift register 90 ... Transmission circuit 92 ... Transmission shift register 94 ... Oscillator 96 ... Integration circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 2個以上のレベルの組合わせにより構成
された情報を該レベル間を漸減・漸増する信号に変換し
た信号を受信し、該信号から前記情報を復元する受信装
置であって、 前記信号を入力して所定の基準値と比較し、少なくとも
2値以上のデータに変換する変換手段と、 該変換手段により変換されたデータのビット幅を計測す
るビット幅計測手段と、 予め定められたビット幅の信号を受け取ったとき、前記
ビット幅計測手段が計測したビット幅を基準ビット幅と
比較し、該ビット幅の差異に基づいて、その後に入力し
た信号のビット幅の前記計測を補正する計測補正手段と
を備えた受信装置。
1. A receiving device, which receives a signal obtained by converting information constituted by a combination of two or more levels into a signal that gradually decreases / increases between the levels, and restores the information from the signal, Conversion means for inputting the signal, comparing it with a predetermined reference value, and converting it into at least binary data, and bit width measuring means for measuring the bit width of the data converted by the conversion means, When a signal having a different bit width is received, the bit width measuring means compares the bit width measured with a reference bit width, and based on the difference in the bit width, corrects the measurement of the bit width of the signal inputted thereafter. And a receiving device that includes a measurement correction unit that
【請求項2】 2個以上のレベルの組合わせにより構成
された情報を該レベル間を漸減・漸増する信号に変換し
た信号を受信し、該信号から前記情報を復元する受信装
置であって、 前記情報を構成する最小ビットの幅をN(Nは2以上の
整数)個に分割可能なクロック信号を出力するクロック
回路と、 前記信号を入力して所定の基準値と比較するコンパレー
タと、 該コンパレータの出力信号のエッジを検出し、エッジ信
号を出力するエッジ出力回路と、 該エッジ信号を受け取ったとき、外部から与えられたプ
リセット値にセットされ、該プリセット値から前記クロ
ック信号をサイクリックにカウントアップもしくはカウ
ントダウンするカウンタと、 ビット幅が定まったスタートビットを受け取ったとき、
該ビット幅の間に出力されたクロックの数と前記Nとの
大小を判別し、該大小に応じて前記プリセット値を、カ
ウントを進める側または戻す側に補正するプリセット値
補正回路と、 該カウンタが略N・(M+1/2)個(Mは0以上の整
数)の前記クロック信号をカウントしたときの前記コン
パレータの出力を前記データとして記憶すると共に、該
レジスタに所定個数のデータが蓄積されたとき、該蓄積
されたデータを前記情報として出力するレジスタとを備
えた受信装置。
2. A receiving device, which receives a signal obtained by converting information constituted by a combination of two or more levels into a signal that gradually decreases / increases between the levels, and restores the information from the signal, A clock circuit that outputs a clock signal that can divide the width of the minimum bit that constitutes the information into N (N is an integer of 2 or more); a comparator that inputs the signal and compares it with a predetermined reference value; An edge output circuit that detects the edge of the output signal of the comparator and outputs the edge signal, and when the edge signal is received, it is set to a preset value given from the outside, and the clock signal is cyclically set from the preset value. When receiving a counter that counts up or down and a start bit with a fixed bit width,
A preset value correction circuit that determines the magnitude of the number of clocks output during the bit width and the N, and corrects the preset value to the side of advancing or returning the count according to the magnitude; Stores approximately N · (M + ½) (M is an integer of 0 or more) the clock signals, and stores the output of the comparator as the data, and a predetermined number of data is stored in the register. At this time, a receiving device comprising a register for outputting the accumulated data as the information.
【請求項3】 請求項2記載の受信装置に使用するプリ
セット値補正回路であって、 この回路への入力値が前記カウンタのプリセット値の初
期値±許容値の範囲に入っている場合には、該初期値
を、 該入力値が該初期値+許容値より大きい場合には、該初
期値よりカウントダウン側の値を、 該入力値が該初期値−許容値より小さい場合には、該初
期値よりカウントアップ側の値を各々出力する回路であ
るプリセット値補正回路。
3. A preset value correction circuit used in the receiving device according to claim 2, wherein the input value to the circuit is within a range of an initial value ± allowable value of a preset value of the counter. , The initial value, if the input value is larger than the initial value + allowable value, the value on the countdown side of the initial value, if the input value is smaller than the initial value-allowable value, the initial value A preset value correction circuit that is a circuit that outputs the value on the count-up side from the value.
【請求項4】 2個以上のレベルの組合わせにより構成
された情報を該レベル間を漸減・漸増する信号に変換し
て出力する送信装置と、 請求項1もしくは請求項2記載の受信装置とからなる通
信装置。
4. A transmitting device for converting information, which is composed of a combination of two or more levels, into a signal which gradually decreases / increases between the levels and outputs the signal, and the receiving device according to claim 1 or 2. Communication device.
JP5053012A 1993-02-17 1993-02-17 Receiver, preset correction circuit and communication device to be used for same Pending JPH06244828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5053012A JPH06244828A (en) 1993-02-17 1993-02-17 Receiver, preset correction circuit and communication device to be used for same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5053012A JPH06244828A (en) 1993-02-17 1993-02-17 Receiver, preset correction circuit and communication device to be used for same

Publications (1)

Publication Number Publication Date
JPH06244828A true JPH06244828A (en) 1994-09-02

Family

ID=12931000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5053012A Pending JPH06244828A (en) 1993-02-17 1993-02-17 Receiver, preset correction circuit and communication device to be used for same

Country Status (1)

Country Link
JP (1) JPH06244828A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018198699A1 (en) * 2017-04-27 2018-11-01 株式会社小糸製作所 Control device and light distribution control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018198699A1 (en) * 2017-04-27 2018-11-01 株式会社小糸製作所 Control device and light distribution control system
US11208031B2 (en) 2017-04-27 2021-12-28 Koito Manufacturing Co., Ltd. Control device for a vehicle lamp and light distribution control system

Similar Documents

Publication Publication Date Title
US5787132A (en) Data communication system having improved synchronization capability
US20120226965A1 (en) Reliable Data Transmission with Reduced Bit Error Rate
US4086471A (en) Pulse train converter
US9031736B2 (en) Channel diagnostic system for sent receiver
US7904796B2 (en) Serial data communication—CAN memory error detection methods
US7551702B2 (en) Method and circuit arrangement for synchronizing a function unit with a predetermined clock frequency
US9094279B2 (en) Communication apparatus for transmission of binary coded signal
JP2839054B2 (en) Communication device
CA2119073C (en) Data transmission system for automotive vehicles
JPH06244828A (en) Receiver, preset correction circuit and communication device to be used for same
JPH05276171A (en) Communication control equipment
US20060038626A1 (en) Electronic circuit with means of evaluating its temperature, method for evaluating the temperature, and application
US6711472B2 (en) Method and device for controlling operational sequences, particularly in a vehicle
EP0880248A1 (en) Circuit for detecting synchronizing signal in frame synchronization data transmission
US8131455B2 (en) Engine control apparatus including computing section and A/D converting section
JPH0553945A (en) In-vehicle serial data communication system
JP3428191B2 (en) Data communication method, transmitting device, and receiving device
US11005599B2 (en) Data transmission systems and data transmission methods of suppressing data error occurrences due to crosstalk
KR100314445B1 (en) vehicle speed measureing method and device by use of measuring method for variable reference clock
EP0740863B1 (en) Pulse density mapping method for delta sigma modulators
KR101172387B1 (en) Calculation Error Testing Device For Micro Control Unit Using Serial Peripheral Interface
US6700511B1 (en) Data conversion method, method for obtaining waveform information from square wave using the same, and method for generating square wave from waveform information using the same
KR0186166B1 (en) Error detecting device for a cd-rom driver
JP3942325B2 (en) Pattern detection circuit
JP4864844B2 (en) Rotation detection device signal processing circuit