JP3063376B2 - PWM signal communication device - Google Patents
PWM signal communication deviceInfo
- Publication number
- JP3063376B2 JP3063376B2 JP4096735A JP9673592A JP3063376B2 JP 3063376 B2 JP3063376 B2 JP 3063376B2 JP 4096735 A JP4096735 A JP 4096735A JP 9673592 A JP9673592 A JP 9673592A JP 3063376 B2 JP3063376 B2 JP 3063376B2
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- transmission
- data
- pulse width
- reception
- 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
Links
Landscapes
- Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
- Dc Digital Transmission (AREA)
- Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、送信データをPWM変
調して通信を行うPWM信号通信装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a PWM signal communication apparatus for performing communication by performing PWM modulation on transmission data.
【0002】[0002]
【従来の技術】従来より、この種のPWM信号通信装置
においては、例えば特開平3−151735号公報に開
示されている如く、まず、送信装置が、予め設定された
パルス幅を持つ基準パルスを最初に送信し、その後、任
意のデータをそのデータ値に応じてPWM変調したデー
タパルスを送信する。そして、受信装置が、まず先頭の
基準パルスを受信し、そのパルス幅を計測することで、
その後送られて来る任意データの種類を認識し、その上
で、以後のデータパルスを受信し、内部に取り込む。2. Description of the Related Art Conventionally, in a PWM signal communication apparatus of this type, as disclosed in, for example, Japanese Patent Application Laid-Open No. 3-151735, a transmitting apparatus first transmits a reference pulse having a preset pulse width. The data pulse is transmitted first, and thereafter, a data pulse in which arbitrary data is PWM-modulated according to the data value is transmitted. Then, the receiving device first receives the first reference pulse and measures the pulse width,
After recognizing the type of the arbitrary data transmitted thereafter, the subsequent data pulse is received and taken in.
【0003】[0003]
【発明が解決しようとする課題】しかしこうした従来の
PWM信号通信装置は、送信装置から送信するデータ量
が少なく、その伝送速度が低い場合には比較的問題はな
いが、送信するデータ量が多く、その伝送速度が高い場
合には、受信装置で受信データを正常に処理できなくな
ることがあった。However, in such a conventional PWM signal communication device, the amount of data transmitted from the transmission device is small and there is relatively no problem when the transmission speed is low, but the amount of data transmitted is large. If the transmission speed is high, the receiving device may not be able to process received data normally.
【0004】これは、通常、送信装置の信号出力回路及
び受信装置の信号入力回路は、トランジスタ,抵抗器,
コンパレータ等の電子部品によって構成されるが、これ
らの部品が持つ各固有特性には、元来、較差があり、し
かもその特性は温度環境や使用する電源電圧及び電流に
よっても変化してしまうからである。例えば、図4に示
す如く、送信装置内の送信制御部で形成した送信パルス
列Poutがそのまま受信装置内の受信制御部へ取り込
まれることはなく、実際に取り込まれる受信パルス列P
inとしては、パルスの立ち上がり遅れa及びパルスの
立ち下がり遅れbを含んでしまうからである。[0004] Generally, a signal output circuit of a transmitting device and a signal input circuit of a receiving device include a transistor, a resistor,
Although it is composed of electronic components such as comparators, each of the inherent characteristics of these components originally has a difference, and the characteristics change depending on the temperature environment and the power supply voltage and current used. is there. For example, as shown in FIG. 4, the transmission pulse train Pout formed by the transmission control unit in the transmission device is not directly taken into the reception control unit in the reception device, but the reception pulse train P that is actually taken in.
This is because “in” includes a pulse rising delay “a” and a pulse falling delay “b”.
【0005】特に、複数のCPUを使ってエンジン等を
制御する車両用電子制御装置等においては、制御精度を
向上させるためには多くのデータを高速で処理する必要
があり、このために、CPU間でのデータ伝送速度を上
げることが要求されているが、上記の如く従来のPWM
信号通信装置では、データ伝送速度が上がるほど送信側
CPUの送信パルス列と受信側CPUの受信パルス列と
の差が無視できなくなる。更に、車両用電子制御装置で
は、送信装置と受信装置の使用温度環境が、例えば車室
内とエンジンルーム内のように、その搭載位置によって
全く違う場合があり、しかもこれらは使用中にも変化す
る。よって、予めこれらの条件を考慮して車両用電子制
御装置の設計を行うことは非常に困難であった。In particular, in a vehicle electronic control device or the like that controls an engine or the like using a plurality of CPUs, it is necessary to process a large amount of data at high speed in order to improve control accuracy. Although it is required to increase the data transmission speed between the conventional PWMs as described above,
In the signal communication device, as the data transmission speed increases, the difference between the transmission pulse train of the transmission CPU and the reception pulse train of the reception CPU cannot be ignored. Further, in the electronic control unit for a vehicle, the operating temperature environment of the transmitting device and the receiving device may be completely different depending on the mounting position, for example, in a vehicle compartment and an engine room, and they also change during use. . Therefore, it has been very difficult to design a vehicle electronic control device in consideration of these conditions in advance.
【0006】本発明は、こうした問題に鑑みなされたも
ので、各通信装置の使用温度環境や使用される電子部品
の特性等に左右されず、PWM信号通信を高速で、しか
も正確に実行できるPWM信号通信装置を提供すること
を目的としている。SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and is not subject to the use temperature environment of each communication device and the characteristics of electronic components to be used. It is intended to provide a signal communication device.
【0007】[0007]
【課題を解決するための手段】即ち、上記目的を達成す
るためになされた本発明は、図1に例示する如く、送信
データをそのデータ値に応じてPWM変調したデータパ
ルスと予め設定されたパルス幅を持つ基準パルスとから
送信パルス列を形成する送信制御手段と、上記送信パル
ス列を伝送路へ送出する信号出力手段と、を備えた送信
装置と、上記伝送路から上記送信パルス列を受信する信
号入力手段と、この受信したパルス列を受信データとし
て処理する受信制御手段と、を備えた受信装置と、を備
えたPWM信号通信装置において、受信装置に、上記基
準パルスのパルス幅を検出するパルス幅検出手段と、該
パルス幅検出手段で検出した基準パルスのパルス幅と予
め設定された基準パルスのパルス幅から、送受信過程で
生じるパルス幅の偏差を検出する偏差検出手段と、上記
偏差により、受信したPWM変調データパルスのパルス
幅を補正し、該補正後のデータパルスを受信データとし
て上記受信制御手段に入力する補正手段と、を設けたこ
とを特徴とするPWM信号通信装置を要旨としている。That is, according to the present invention, which has been made to achieve the above object, as shown in FIG. 1, a data pulse obtained by PWM-modulating transmission data in accordance with a data value thereof is set in advance. A transmission device including transmission control means for forming a transmission pulse train from a reference pulse having a pulse width, and signal output means for transmitting the transmission pulse train to a transmission line; and a signal for receiving the transmission pulse train from the transmission line. In a PWM signal communication device including an input unit and a reception control unit configured to process the received pulse train as reception data, a pulse width for detecting a pulse width of the reference pulse is provided to the reception unit. Detecting means for detecting a pulse width generated in a transmission / reception process from a pulse width of the reference pulse detected by the pulse width detecting means and a predetermined pulse width of the reference pulse; Deviation detecting means for detecting the difference, and correcting means for correcting the pulse width of the received PWM modulated data pulse based on the deviation and inputting the corrected data pulse as received data to the reception control means. The gist is a PWM signal communication device characterized by the above.
【0008】[0008]
【作用】以上のように構成された本発明のPWM信号通
信装置においては、まず送信装置内で、送信制御手段
が、送信データをそのデータ値に応じてPWM変調した
データパルスと予め設定されたパルス幅を持つ基準パル
スとから送信パルス列を形成する。そして、この送信パ
ルス列を、信号出力手段が伝送路へ送出する。In the PWM signal communication apparatus of the present invention configured as described above, first, in the transmission apparatus, the transmission control means sets in advance the data pulse obtained by PWM-modulating the transmission data in accordance with the data value. A transmission pulse train is formed from a reference pulse having a pulse width. Then, the signal output means sends out the transmission pulse train to the transmission path.
【0009】受信装置内では、信号入力手段が上記送信
パルス列を受信パルス列として取り込む。そして、まず
パルス幅検出手段が上記受信パルス列の中から基準パル
スのパルス幅を検出する。次に、偏差検出手段が、この
検出した基準パルスのパルス幅と、予め送信装置との間
で設定された基準パルスのパルス幅から、送受信過程で
生じたパルス幅の偏差を求める。そして、補正手段が、
上記の手順で求めた偏差によって、その後受信するデー
タパルスの各パルス幅を逐次補正し、この補正後のデー
タパルスを受信データとして受信制御手段に入力する。In the receiving apparatus, the signal input means takes in the transmission pulse train as a reception pulse train. Then, first, the pulse width detecting means detects the pulse width of the reference pulse from the received pulse train. Next, the deviation detecting means obtains a deviation of the pulse width generated in the transmission / reception process from the detected pulse width of the reference pulse and the pulse width of the reference pulse set in advance with the transmitting device. And the correction means,
Each pulse width of the subsequently received data pulse is sequentially corrected based on the deviation obtained in the above procedure, and the corrected data pulse is input to the reception control means as reception data.
【0010】[0010]
【実施例】以下に本発明の実施例を図面と共に説明す
る。まず、図2は本発明が適用された実施例の車両用エ
ンジン燃料噴射制御システムの構成を表すブロック図で
ある。Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing the configuration of a vehicle engine fuel injection control system according to an embodiment to which the present invention is applied.
【0011】図2に示す如く、本実施例の車両用エンジ
ン燃料噴射制御システムは、スロットル,エンジン回転
数等の運転パラメータから目標燃料噴射量,噴射圧力等
の制御データを算出し、この制御データを送信データと
して送信する送信側電子制御装置(以下単にECUとい
う)1と、上記の送信された制御データを受信し、これ
を基に、燃料噴射量,噴射圧力等を制御するアクチュエ
ータを駆動する受信側ECU2と、上記送信側ECU1
と受信側ECU2とを接続する通信線3により構成され
ている。As shown in FIG. 2, the vehicle engine fuel injection control system of this embodiment calculates control data such as a target fuel injection amount and injection pressure from operating parameters such as a throttle and an engine speed. A transmission-side electronic control unit (hereinafter simply referred to as an ECU) 1 that transmits the control data as transmission data, and receives the transmitted control data and drives an actuator that controls a fuel injection amount, an injection pressure, and the like based on the received control data. The receiving ECU 2 and the transmitting ECU 1
And a communication line 3 that connects the reception side ECU 2.
【0012】送信側ECU1は、上記制御データを算出
すると共にその制御データをPWM変調し、そのPWM
変調したデータパルスと予め設定されたパルス幅を持つ
基準パルスとから送信パルス列を形成する送信側マイク
ロコンピュータ(以下単にCPUという)4、トランジ
スタ,抵抗器等で構成され、送信側CPU4で形成した
上記送信パルス列を通信線3へ送出する出力回路5、及
び各種センサーからの信号を入力する図示しない入力回
路等から構成されている。The transmitting ECU 1 calculates the control data, modulates the control data by PWM, and sets the PWM
The transmission-side microcomputer (hereinafter simply referred to as CPU) 4 for forming a transmission pulse train from the modulated data pulse and a reference pulse having a preset pulse width, a transistor, a resistor, and the like. It comprises an output circuit 5 for transmitting a transmission pulse train to the communication line 3 and an input circuit (not shown) for inputting signals from various sensors.
【0013】また、受信側ECU2は、コンパレータ,
抵抗器等で構成され、通信線3から上記送信パルス列を
受信する入力回路6、入力回路6で受信したデータパル
スのパルス幅を補正し、この補正後のデータパルスを受
信データとして処理する受信側CPU7、及び各種アク
チュエータを駆動する図示しない負荷駆動回路等から構
成されている。The receiving ECU 2 includes a comparator,
An input circuit 6 configured by a resistor or the like, for receiving the transmission pulse train from the communication line 3, correcting a pulse width of a data pulse received by the input circuit 6, and processing the corrected data pulse as received data. It comprises a CPU 7 and a load drive circuit (not shown) for driving various actuators.
【0014】即ち、本実施例の車両用エンジン燃料噴射
制御システムにおいては、通信線3が伝送路となり、送
信側ECU1が送信装置、受信側ECU2が受信装置と
して働く。その中で送信側CPU4が送信制御手段とし
て、出力回路5が信号出力手段としてそれぞれ機能し、
また、入力回路6が信号入力手段として、受信側CPU
7が受信データパルスのパルス幅補正機能を有する受信
制御手段として、それぞれ機能する。That is, in the vehicle engine fuel injection control system of the present embodiment, the communication line 3 serves as a transmission path, and the transmitting ECU 1 functions as a transmitting device and the receiving ECU 2 functions as a receiving device. Among them, the transmission-side CPU 4 functions as transmission control means, and the output circuit 5 functions as signal output means.
Further, the input circuit 6 serves as a signal input means,
Reference numeral 7 functions as reception control means having a pulse width correction function of the reception data pulse.
【0015】次に、各ECU1,2間でのデータ通信に
使用される通信信号について図4を用いて説明する。図
4において、Poutは、送信側CPU4で形成される
送信パルス列を表し、Pinは、受信側CPU7へ取り
込まれる受信パルス列を表す。Next, communication signals used for data communication between the ECUs 1 and 2 will be described with reference to FIG. In FIG. 4, Pout represents a transmission pulse train formed by the transmission-side CPU 4, and Pin represents a reception pulse train taken into the reception-side CPU 7.
【0016】図4に示す如く、送信パルス列Pout
は、予め一定に設定されたパルス幅T1(本実施例では
500μsと設定した)の送信基準パルスP1を先頭と
し、その後に送信側CPU4で算出した制御データをP
WM変調した3種の送信データパルスPQ1,PP1,
PT1が続く構成であり、送信側CPU4にて所定周期
T(本実施例では10msと設定した)毎に形成され
る。また上記3種の送信データパルスは、送信データパ
ルスPQ1のパルス幅TQ1が燃料噴射量を、送信デー
タパルスPP1のパルス幅TP1が燃料噴射圧力を、送
信データパルスPT1のパルス幅TT1が燃料噴射時期
をそれぞれ示している。As shown in FIG. 4, the transmission pulse train Pout
Starts with a transmission reference pulse P1 having a predetermined pulse width T1 (500 μs in this embodiment), and thereafter sets control data calculated by the transmission-side CPU 4 to P
Three types of WM-modulated transmission data pulses PQ1, PP1,
PT1 is a continuous configuration, and is formed at a predetermined cycle T (set to 10 ms in the present embodiment) by the transmitting CPU 4. In the three types of transmission data pulses, the pulse width TQ1 of the transmission data pulse PQ1 indicates the fuel injection amount, the pulse width TP1 of the transmission data pulse PP1 indicates the fuel injection pressure, and the pulse width TT1 of the transmission data pulse PT1 indicates the fuel injection timing. Are respectively shown.
【0017】次に、送信パルス列Poutは、出力回路
5、通信線3、及び入力回路6を経て、受信パルス列P
inとして受信側CPU7に取り込まれる。しかし、こ
の送受信過程によって、受信パルス列Pinは、図4に
示す如く、送信パルス列Poutに対し一律にパルスの
立ち上がり遅れa、及びパルスの立ち下がり遅れbを含
むものとなる。Next, the transmission pulse train Pout passes through the output circuit 5, the communication line 3, and the input circuit 6, and is transmitted to the reception pulse train Pout.
It is taken into the receiving side CPU 7 as in. However, due to this transmission / reception process, the received pulse train Pin includes a pulse rising delay a and a pulse falling delay b uniformly with respect to the transmission pulse train Pout, as shown in FIG.
【0018】よって、受信基準パルスP2、及び受信デ
ータパルスPQ2,PP2,PT2のそれぞれのパルス
幅T2,TQ2,TP2,TT2は、各送信パルスのパ
ルス幅に対し(b−a)の差(本実施例では最大変化で
も(b−a)=±100μs以内と設定した)を持つこ
とになり、例えば、受信基準パルスP2のパルス幅T2
は400μsから600μsの値となる。Therefore, the respective pulse widths T2, TQ2, TP2, TT2 of the reception reference pulse P2 and the reception data pulses PQ2, PP2, PT2 are different from the pulse width of each transmission pulse by (ba). In the embodiment, the maximum change is set to (b−a) = ± 100 μs). For example, the pulse width T2 of the reception reference pulse P2 is set.
Takes a value from 400 μs to 600 μs.
【0019】尚、送信データパルスPQ1,PP1,P
T1の各パルス幅TQ1,TP1,TT1は、受信側C
PU7にて行われる受信基準パルスP2と受信データパ
ルスPQ2,PP2,PT2との識別を正確にできるよ
うに、最小でも750μs以上の値に設定されている。
つまり、上記受信データパルスのパルス幅の最小値が受
信基準パルスP2のパルス幅T2の最大値(600μ
s)よりも、十分に大きくなるため上記識別が正確にで
きるようになる。The transmission data pulses PQ1, PP1, P
Each pulse width TQ1, TP1, and TT1 of T1 is
The value is set to at least 750 μs or more so that the PU 7 can accurately distinguish between the reception reference pulse P2 and the reception data pulses PQ2, PP2, and PT2.
That is, the minimum value of the pulse width of the reception data pulse is equal to the maximum value (600 μm) of the pulse width T2 of the reception reference pulse P2.
Since this is sufficiently larger than s), the identification can be performed accurately.
【0020】次に、受信側CPU7による制御下で実行
される、上記受信データパルスのパルス幅補正処理につ
いて、図3に示すフローチャートに沿って説明する。本
実施例の車両用エンジン燃料噴射制御システムでは、入
力回路6で受信した受信パルス列Pinが受信側CPU
7の両エッジ割り込み入力端子に入力されるように構成
されており、図3に示す補正処理は、受信パルスの立ち
上がり及び立ち下がり毎に起動される。Next, the pulse width correction processing of the received data pulse, which is executed under the control of the receiving CPU 7, will be described with reference to the flowchart shown in FIG. In the vehicle engine fuel injection control system of the present embodiment, the reception pulse train Pin received by the input circuit 6 is transmitted to the reception side CPU.
The correction processing shown in FIG. 3 is started each time the reception pulse rises and falls.
【0021】まず、受信パルスが受信側CPU7に入力
されると、S110にて、上記受信パルスのエッジを判
断する。そして、上記エッジが立ち上がりであると判断
したときはS120へ移行し、S120にて、上記受信
パルスのパルス幅を計測するためにCPU7の内部タイ
マをスタートさせる。そして、一巡の処理を終了する。First, when a reception pulse is input to the reception-side CPU 7, the edge of the reception pulse is determined in S110. When it is determined that the edge is a rising edge, the process proceeds to S120, and in S120, an internal timer of the CPU 7 is started to measure the pulse width of the reception pulse. Then, one round of processing is completed.
【0022】次に、S110で受信パルスのエッジが立
ち下がりであると判断したときは、S130へ移行す
る。S130では、そのときのCPU7の内部タイマの
タイマ値から受信パルスの立ち上がりから立ち下がりま
での時間、つまり1パルスのパルス幅を計測する。そし
て、S140にて、受信したパルスのパルス幅が600
μs以下であれば受信したパルスが受信基準パルスP2
であると判断し、S150に移行する。Next, when it is determined in S110 that the edge of the received pulse is falling, the flow shifts to S130. In S130, the time from the rise to the fall of the received pulse, that is, the pulse width of one pulse is measured from the timer value of the internal timer of the CPU 7 at that time. Then, in S140, the pulse width of the received pulse is 600
If it is less than μs, the received pulse is the reception reference pulse P2
And the process moves to S150.
【0023】ここで、このS110からS140までの
処理が基準パルスのパルス幅検出手段として機能してい
る。偏差検出手段としての処理を実行するS150で
は、S130で計測した受信基準パルスP2のパルス幅
T2から送信側CPU4との間で予め設定されている送
信基準パルスP1のパルス幅T1を減算して偏差Hを算
出する。そして、S160にて、次の受信データを判断
するためのカウンタCをクリアし一巡の処理を終了す
る。Here, the processes from S110 to S140 function as pulse width detecting means of the reference pulse. In step S150 which executes the process as the deviation detecting means, the pulse width T1 of the transmission reference pulse P1 set in advance between the transmission side CPU 4 and the pulse width T2 of the reception reference pulse P2 measured in S130 is subtracted. Calculate H. Then, in S160, the counter C for judging the next received data is cleared, and one round of processing is completed.
【0024】一方、S140にて、受信したパルスが受
信基準パルスP2でないと判断したときは、S170に
移行する。S170では、S160でクリアしたカウン
タCの値が0であるか否かを判断し、C=0であれば、
今回受信したパルスが受信基準パルスP2の次に来るべ
き受信データパルスPQ2であると認識し、S180へ
移行する。S180では、S130で計測した受信デー
タパルスPQ2のパルス幅TQ2からS150で算出し
た偏差Hを減算して補正後の燃料噴射量データTQを得
る。そして、S190にて、次の受信データを判断する
ためのカウンタCをインクリメントし、一巡の処理を終
了する。On the other hand, if it is determined in S140 that the received pulse is not the reception reference pulse P2, the flow shifts to S170. In S170, it is determined whether the value of the counter C cleared in S160 is 0, and if C = 0,
It recognizes that the pulse received this time is the next received data pulse PQ2 after the reception reference pulse P2, and shifts to S180. In S180, the corrected fuel injection amount data TQ is obtained by subtracting the deviation H calculated in S150 from the pulse width TQ2 of the reception data pulse PQ2 measured in S130. Then, in S190, the counter C for judging the next received data is incremented, and the cycle of processing is completed.
【0025】次に、S170にて、カウンタCの値が0
でないと判断したときはS200へ移行する。S200
では、カウンタCの値が1であるか否かを判断し、C=
1であれば、今回受信したパルスが受信データパルスP
Q2の次に来るべき受信データパルスPP2であると認
識し、S210へ移行する。S210では、S130で
計測した受信データパルスPP2のパルス幅TP2から
S150で算出した偏差Hを減算して補正後の燃料噴射
圧力データTPを得る。そして、S190にて、次の受
信データを判断するためのカウンタCをインクリメント
し、一巡の処理を終了する。Next, at step S170, the value of the counter C becomes 0.
When it is determined that it is not, the process proceeds to S200. S200
Then, it is determined whether or not the value of the counter C is 1, and C =
If 1, the received pulse is the received data pulse P
It recognizes that it is the next received data pulse PP2 after Q2, and shifts to S210. In S210, the corrected fuel injection pressure data TP is obtained by subtracting the deviation H calculated in S150 from the pulse width TP2 of the received data pulse PP2 measured in S130. Then, in S190, the counter C for judging the next received data is incremented, and the cycle of processing is completed.
【0026】また、S200にて、カウンタCの値が1
でないと判断したときはS220へ移行する。S220
では、カウンタCの値が2であるか否かを判断し、C=
2であれば、今回受信したパルスが受信データパルスP
P2の次に来るべき受信データパルスPT2であると認
識し、S230へ移行する。S230では、S130で
計測した受信データパルスPT2のパルス幅TT2から
S150で算出した偏差Hを減算して補正後の燃料噴射
時期データTTを得る。そして、S190にて、次の受
信データを判断するためのカウンタCをインクリメント
し、一巡の処理を終了する。上記のように、S180、
S210、及びS230が補正手段として機能してい
る。At S200, the value of the counter C becomes 1
If it is determined that it is not, the process proceeds to S220. S220
Then, it is determined whether or not the value of the counter C is 2, and C =
If 2, the received pulse is the received data pulse P
It recognizes that it is the reception data pulse PT2 to come after P2, and shifts to S230. In S230, the fuel injection timing data TT after correction is obtained by subtracting the deviation H calculated in S150 from the pulse width TT2 of the reception data pulse PT2 measured in S130. Then, in S190, the counter C for judging the next received data is incremented, and the cycle of processing is completed. As described above, S180,
S210 and S230 function as correction means.
【0027】ここで、S220にて、カウンタCの値が
2でないことを判断したときはS240へ移行し通信エ
ラーの発生を検出する。上述のように、受信基準パルス
P2を受信した時のみS160にてカウンタCはクリア
されるため、次に受信基準パルスP2を受信するまでは
C=0にならない。つまり、所定周期Tの間に余分なパ
ルスを受信したときには、S190によってカウンタC
の値が3以上になるため、S240によって、通信エラ
ーが検出され、この際は再度S110のパルス幅計測の
処理からやり直すようにしている。つまり、S220及
びS240は、ノイズ等のデータパルス以外のパルスを
誤受信したときに、通信エラーを検出するための処理で
ある。Here, when it is determined in S220 that the value of the counter C is not 2, the flow shifts to S240, and the occurrence of a communication error is detected. As described above, since the counter C is cleared in S160 only when the reception reference pulse P2 is received, C = 0 is not set until the next reception reference pulse P2 is received. That is, when an extra pulse is received during the predetermined period T, the counter C is set in S190.
Is 3 or more, a communication error is detected in S240, and in this case, the process is repeated from the pulse width measurement process in S110. In other words, S220 and S240 are processes for detecting a communication error when a pulse other than a data pulse such as noise is erroneously received.
【0028】上述の処理の後、受信側CPU7は、補正
後の上記受信データTQ,TP,TTを基に、アクチュ
エータを駆動するための処理を行う。以上のように、本
実施例の車両用エンジン燃料噴射制御システムでは、受
信側CPU7が、受信した受信基準パルスP2のパルス
幅T2と、予め送信側CPU4との間で設定された送信
基準パルスP1のパルス幅T1との差を求め、この差を
送受信過程で生じたパルス幅の偏差Hとして、その後受
信するデータパルスのパルス幅を逐次補正するので、送
信側CPU4で形成した送信データパルスのパルス幅と
受信側CPU7で処理するデータとしての受信データパ
ルスのパルス幅が全く同じになる。また、受信基準パル
スP2から次の受信基準パルスP2までの間のデータパ
ルス数をカウントすることによって、ノイズ等の混入も
検出できる。よって、送信側ECU1及び受信側ECU
2の使用温度環境や電圧変化、また使用される電子部品
の特性等に左右されず、送信側ECU1で算出した制御
データに忠実に、受信側ECU2がアクチュエータを駆
動することができ、更にノイズ等に対する耐性も向上さ
せることができる。After the above-described processing, the receiving CPU 7 performs processing for driving the actuator based on the corrected received data TQ, TP, TT. As described above, in the vehicular engine fuel injection control system according to the present embodiment, the reception-side CPU 7 determines the pulse width T2 of the received reception reference pulse P2 and the transmission reference pulse P1 set in advance with the transmission-side CPU 4. The pulse width of the transmission data pulse formed by the transmission-side CPU 4 is corrected by sequentially calculating the difference between the pulse width T1 and the pulse width T1. The width and the pulse width of the reception data pulse as data processed by the reception side CPU 7 are exactly the same. In addition, by counting the number of data pulses between the reception reference pulse P2 and the next reception reference pulse P2, it is possible to detect the entry of noise or the like. Therefore, the transmitting ECU 1 and the receiving ECU
2, the receiving ECU 2 can drive the actuator faithfully based on the control data calculated by the transmitting ECU 1 without being influenced by the use temperature environment and voltage change, the characteristics of the electronic components used, and the like. Resistance can also be improved.
【0029】尚、本実施例の車両用エンジン燃料噴射制
御システムでは、一連のデータパルス列の間に配置した
一定の基準パルスのパルス幅によって受信データパルス
のパルス幅を補正したが、データパルス相互の間隔を一
定にし、これを上記基準パルスのパルス幅として代用す
ることで、受信データパルスのパルス幅を補正すること
も可能である。また、本実施例は3個の制御データを2
個のCPU間で通信した場合についてのものであるが、
本発明は、当然、通信データ及びCPUの数に関係なく
適用できる。In the vehicle fuel injection control system of this embodiment, the pulse width of the received data pulse is corrected by the pulse width of a fixed reference pulse arranged between a series of data pulse trains. It is also possible to correct the pulse width of the received data pulse by keeping the interval constant and using this as the pulse width of the reference pulse. In the present embodiment, three control data
It is about the case of communication between CPUs,
The present invention is naturally applicable regardless of the number of communication data and CPUs.
【0030】[0030]
【発明の効果】以上説明したように本発明のPWM信号
通信装置においては、受信装置が、予め送信装置との間
で設定された基準パルスのパルス幅を基に、受信したデ
ータパルスのパルス幅を補正するようになっているの
で、各通信装置の使用温度環境や使用される電子部品の
特性等に左右されず、送信装置内の送信制御手段で形成
した送信データパルスのパルス幅と受信装置内の受信制
御手段で処理するデータとしての受信データパルスのパ
ルス幅が全く同じになる。As described above, in the PWM signal communication apparatus according to the present invention, the receiving apparatus uses the pulse width of the received data pulse based on the pulse width of the reference pulse set in advance with the transmitting apparatus. , So that the pulse width of the transmission data pulse formed by the transmission control means in the transmitting device and the receiving device are independent of the operating temperature environment of each communication device, the characteristics of the electronic components used, and the like. The pulse width of the received data pulse as the data to be processed by the reception control means is exactly the same.
【0031】よって、各通信装置の設計に当り、使用す
る電子部品の諸特性や温度環境等に別段の注意をせずと
も、PWM信号通信を高速で、しかも正確に実行でき
る。Therefore, when designing each communication device, PWM signal communication can be executed at high speed and accurately without paying special attention to various characteristics of electronic components to be used, temperature environment, and the like.
【図1】 本発明の構成を例示するブロック図である。FIG. 1 is a block diagram illustrating the configuration of the present invention.
【図2】 実施例の車両用エンジン燃料噴射制御システ
ムの構成を表すブロック図である。FIG. 2 is a block diagram illustrating a configuration of a vehicle engine fuel injection control system according to the embodiment.
【図3】 実施例の受信装置における受信データパルス
のパルス幅補正処理を表すフローチャートである。FIG. 3 is a flowchart illustrating a pulse width correction process of a received data pulse in the receiving apparatus according to the embodiment.
【図4】 送信パルス列に対して生じる受信パルス列の
パルス遅れを説明するタイムチャートである。FIG. 4 is a time chart for explaining a pulse delay of a reception pulse train generated with respect to a transmission pulse train.
1、2…電子制御装置(ECU) 3…通信線 4、7…マイクロコンピュータ(CPU) 5…出力回路 6…入力回路 1, 2 ... electronic control unit (ECU) 3 ... communication line 4, 7 ... microcomputer (CPU) 5 ... output circuit 6 ... input circuit
Claims (1)
M変調したデータパルスと予め設定されたパルス幅を持
つ基準パルスとから送信パルス列を形成する送信制御手
段と、上記送信パルス列を伝送路へ送出する信号出力手
段と、を備えた送信装置と、 上記伝送路から上記送信パルス列を受信する信号入力手
段と、この受信したパルス列を受信データとして処理す
る受信制御手段と、を備えた受信装置と、 を備えたPWM信号通信装置において、 受信装置に、 上記基準パルスのパルス幅を検出するパルス幅検出手段
と、 該パルス幅検出手段で検出した基準パルスのパルス幅と
予め設定された基準パルスのパルス幅から、送受信過程
で生じるパルス幅の偏差を検出する偏差検出手段と、 上記偏差により、受信したPWM変調データパルスのパ
ルス幅を補正し、該補正後のデータパルスを受信データ
として上記受信制御手段に入力する補正手段と、 を設けたことを特徴とするPWM信号通信装置。1. A method for transmitting transmission data according to a data value
A transmission device comprising: transmission control means for forming a transmission pulse train from an M-modulated data pulse and a reference pulse having a preset pulse width; and signal output means for transmitting the transmission pulse train to a transmission path. A receiving device comprising: signal input means for receiving the transmission pulse train from the transmission path; and reception control means for processing the received pulse train as reception data. A PWM signal communication device comprising: Pulse width detection means for detecting the pulse width of the reference pulse; and detecting a deviation of the pulse width generated in the transmission / reception process from the pulse width of the reference pulse detected by the pulse width detection means and a predetermined pulse width of the reference pulse. Deviation detecting means for correcting the pulse width of the received PWM-modulated data pulse based on the deviation, and transmitting the corrected data pulse to the received data pulse; PWM signal communication apparatus characterized in that a, a correction means for inputting to said reception control means as.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4096735A JP3063376B2 (en) | 1992-04-16 | 1992-04-16 | PWM signal communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4096735A JP3063376B2 (en) | 1992-04-16 | 1992-04-16 | PWM signal communication device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05292042A JPH05292042A (en) | 1993-11-05 |
| JP3063376B2 true JP3063376B2 (en) | 2000-07-12 |
Family
ID=14172973
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4096735A Expired - Fee Related JP3063376B2 (en) | 1992-04-16 | 1992-04-16 | PWM signal communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3063376B2 (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0951358A (en) * | 1995-08-09 | 1997-02-18 | Mitsubishi Electric Corp | PWM communication system |
| US7768224B2 (en) | 2007-03-13 | 2010-08-03 | Hitachi, Ltd. | Control apparatus for and control method of controlling motor for vehicle |
| JP2010245869A (en) * | 2009-04-07 | 2010-10-28 | Thine Electronics Inc | Receiver |
| JP5338751B2 (en) * | 2010-06-16 | 2013-11-13 | 株式会社デンソー | PWM communication system |
| JP5218535B2 (en) * | 2010-12-09 | 2013-06-26 | 横河電機株式会社 | Pulse signal receiving apparatus and transmission system |
| JP5278475B2 (en) | 2011-03-28 | 2013-09-04 | 株式会社デンソー | Information transmission device |
| JP6188528B2 (en) * | 2013-10-11 | 2017-08-30 | アルパイン株式会社 | Backlight abnormality detection device and abnormality detection system |
| JP7139697B2 (en) * | 2018-06-05 | 2022-09-21 | 富士電機株式会社 | Sending Device, Sending Program, Receiving Device, and Receiving Program |
| JP7180554B2 (en) * | 2019-06-25 | 2022-11-30 | 株式会社デンソー | Electric cam phase control device and engine control device |
-
1992
- 1992-04-16 JP JP4096735A patent/JP3063376B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05292042A (en) | 1993-11-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10371805B2 (en) | Ultrasonic object detection apparatus | |
| JP3063376B2 (en) | PWM signal communication device | |
| US8386155B2 (en) | Fault analysis method for a lambda probe | |
| US5823164A (en) | Throttle control device | |
| KR930006411B1 (en) | Ignition timing control device for internal combustion engine with multiple cylinders | |
| US7162358B2 (en) | Fault detection system and method for detecting a faulty temperature sensor in motor vehicles | |
| US20110040457A1 (en) | Method and device for learning the neutral position of the accelerator pedal of a motor vehicle | |
| JP4169800B2 (en) | Monitoring and error detection methods | |
| JP2008256703A (en) | Method and apparatus for measuring variable variables in automobiles | |
| US20010015197A1 (en) | Method for monitoring the operation of sensors in an internal combustion engine, and electronic controller operating in accordance with the method | |
| KR20020005583A (en) | Method for identifying a faulty sensor | |
| JPH08284733A (en) | Internal combustion engine controller | |
| KR0169869B1 (en) | Method for detecting abnormalities in a crank angle sensor and apparatus for detecting abnormalities in a crank angle sensor | |
| KR100615841B1 (en) | Ignition Control Device and Method | |
| JPH02165070A (en) | Abnormality detector for electric circuit | |
| KR101164757B1 (en) | Capacitor error determination system of electronic control unit and method of using the same | |
| US10006395B2 (en) | Apparatus and method for controlling internal combustion engine | |
| JP7634321B2 (en) | OBJECT DETECTION SYSTEM AND OBJECT DETECTION METHOD | |
| KR100245739B1 (en) | Control method of each species sensor difficulty | |
| US11953895B2 (en) | Fraudulent diagnostic machine detection apparatus | |
| JP6396777B2 (en) | Electronic control unit for automobile | |
| US5727855A (en) | Anti-locking control system | |
| US5188079A (en) | Electronic control device for an internal combustion engine | |
| JP2002202002A (en) | Automotive control device | |
| KR100273553B1 (en) | How to detect engine speed sensor failure in car |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |