JPH04248797A - Data communication method - Google Patents

Data communication method

Info

Publication number
JPH04248797A
JPH04248797A JP1361191A JP1361191A JPH04248797A JP H04248797 A JPH04248797 A JP H04248797A JP 1361191 A JP1361191 A JP 1361191A JP 1361191 A JP1361191 A JP 1361191A JP H04248797 A JPH04248797 A JP H04248797A
Authority
JP
Japan
Prior art keywords
value
cpu
data
analog information
range
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
JP1361191A
Other languages
Japanese (ja)
Inventor
Shigeru Sasaki
茂 佐々木
Yasuo Imai
康夫 今井
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 JP1361191A priority Critical patent/JPH04248797A/en
Publication of JPH04248797A publication Critical patent/JPH04248797A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Control Of Transmission Device (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PURPOSE:To improve the communication speed, to reflect the method onto the control at a transient state and to ensure data accuracy by implementing data communication resulting from applying pulse modulation to a CPU value. CONSTITUTION:A dynamic range of analog information is divided into plural ranges for each required accuracy and a minimum unit to one CPU value is differentiated to each of the ranges and data communication in which the CPU value is subjected to pulse modulation is implemented. For example, a dynamic range from a lower limit to an upper limit of analog information, for example, is divided into a range for each required accuracy and the minimum unit to one CPU value is made smaller as the required accuracy is higher, a 1st CPU value from the smaller analog information is uses as (analog information value/ minimum unit) and the other ranks result from the sum of respective CPU values in the range. The data resulting from pulse-modulating the CPU value is generated to implement data communication.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はデータ通信方法に係り、
特に複数の中央処理装置(CPU)間でデータ通信を行
なう方法に関する。
[Industrial Application Field] The present invention relates to a data communication method,
In particular, the present invention relates to a method of communicating data between multiple central processing units (CPUs).

【0002】0002

【従来の技術】複数のCPU間におけるデータ通信は従
来より頻繁に種々の分野において行なわれているが、車
両の電子制御の分野では例えば燃料噴射制御用の第1の
CPUと電子制御式オートマチックトランスミッション
(ECT)用の第2のCPUとの間でデータ通信が行な
われる。
2. Description of the Related Art Data communication between multiple CPUs has been carried out more frequently in various fields than ever before, and in the field of electronic control of vehicles, for example, a first CPU for fuel injection control and an electronically controlled automatic transmission are used. Data communication is performed with the second CPU for (ECT).

【0003】すなわち、上記の第1のCPUでは機関回
転数と吸入空気量(又は吸気管圧力)とから基本噴射時
間を演算し、これに各センサからの信号による補正を加
えて各種運転条件に応じた最適な燃料噴射時間を算出し
て燃料噴射弁を制御する。また、上記の第2のCPUで
は運転状態を示す検出信号が入力され、それを演算して
その演算結果をソレノイドバルブに出力してクラッチ,
ブレーキへの油圧の切換え制御を行なう。
That is, the first CPU calculates the basic injection time from the engine speed and intake air amount (or intake pipe pressure), and corrects it based on the signals from each sensor to adjust it to various operating conditions. The optimum fuel injection time is calculated and the fuel injection valve is controlled. In addition, the second CPU receives a detection signal indicating the operating state, calculates it, outputs the calculation result to the solenoid valve, and outputs the result to the clutch.
Controls the switching of hydraulic pressure to the brakes.

【0004】これら第1のCPUと第2のCPUはいず
れもスロットルバルブの開度を示す検出信号が入力され
る点で共通するから、スロットルポジションセンサを共
通化し、またノイズ対策上1本の信号ラインでデータ通
信を行なえるようにするために、従来より図6に示す如
くパルス幅変調(PWM)された、スロットル開度デー
タを上記の第1のCPU1から第2のCPU2へ伝送す
る方法が知られている(特開昭64−32593号公報
)。
[0004] Since both the first CPU and the second CPU are inputted with a detection signal indicating the opening of the throttle valve, a common throttle position sensor is used, and one signal is used to prevent noise. In order to enable data communication over the line, there has conventionally been a method of transmitting pulse width modulated (PWM) throttle opening data from the first CPU 1 to the second CPU 2 as shown in FIG. It is known (Japanese Unexamined Patent Publication No. 64-32593).

【0005】[0005]

【発明が解決しようとする課題】しかるに、上記の従来
方法では小開度のときに必要な精度0.2°を1CPU
値(CPUにより送受信されるデータの最小値で、8ビ
ットCPUの場合は1/28 )に割当て、これをスロ
ットル開度の最大値100°まで均等の分割能で割当て
たスロットル開度データを送信するようにしているため
、最大500CPU値が必要となる。従って、1CPU
値を8μsecのパルス幅で送信するものとすると、最
大4msec(=8μsec×500)のパルス幅と1
msec程度の休止期間とが必要となる(すなわち、P
WM信号の一周期は5msec程度は必要となる)。
[Problems to be Solved by the Invention] However, in the above conventional method, the accuracy required for small openings is achieved by 1 CPU.
(minimum value of data sent and received by the CPU, 1/28 for an 8-bit CPU) and transmits throttle opening data that is equally divided up to the maximum throttle opening value of 100°. Therefore, a maximum of 500 CPU values are required. Therefore, 1 CPU
If the value is to be transmitted with a pulse width of 8 μsec, the maximum pulse width is 4 msec (=8 μsec x 500) and 1
A pause period of about msec is required (i.e., P
One cycle of the WM signal requires approximately 5 msec).

【0006】このため、スロットル開度データの伝送に
時間がかかり、スロットル開度が急変する過渡時の制御
に反映されない場合がある。
[0006] For this reason, it takes time to transmit the throttle opening data, and the data may not be reflected in control during a transient situation where the throttle opening changes suddenly.

【0007】本発明は上記の点に鑑みなされたもので、
アナログ情報のダイナミックレンジを必要精度毎に複数
のレンジに分割し、その複数のレンジ夫々について1C
PU値に対する最小単位を異ならせてCPU値をパルス
変調したデータの通信を行なうことにより、上記の課題
を解決したデータ通信方法を提供することを目的とする
[0007] The present invention has been made in view of the above points.
Divide the dynamic range of analog information into multiple ranges for each required accuracy, and calculate 1C for each of the multiple ranges.
It is an object of the present invention to provide a data communication method that solves the above problems by communicating data obtained by pulse-modulating a CPU value using different minimum units for the PU value.

【0008】[0008]

【課題を解決するための手段】本発明は上記目的を達成
するため、複数の中央処理装置間でアナログ情報をパル
ス変調して得た被変調データのデータ通信を行なう方法
において、前記アナログ情報の下限値から上限値までの
ダイナミックレンジを、必要精度毎にn個(ただし、n
は2以上の整数)のレンジに分割し、そのn個のレンジ
の夫々について、前記必要精度が高いほど1CPU値に
対する最小単位を小とし、n個のレンジのうち前記アナ
ログ情報の値が小さい方から1番目のレンジのCPU値
を(アナログ情報の値)/(最小単位)とし、かつ、i
番目(但し、i=2,…,n)のレンジのCPU値は(
アナログ情報の値)/(最小単位)にi−1番目のレン
ジの内の所定CPU値を加算した値とし、そのCPU値
をパルス変調したデータを生成してデータ通信を行なう
ようにしたものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides a method for data communication of modulated data obtained by pulse modulating analog information between a plurality of central processing units. The dynamic range from the lower limit value to the upper limit value is determined by n pieces for each required accuracy (however, n
is an integer of 2 or more), and for each of the n ranges, the higher the required precision, the smaller the minimum unit for one CPU value, and the smaller the value of the analog information among the n ranges. Let the CPU value of the first range be (analog information value)/(minimum unit), and i
The CPU value of the range (i=2,...,n) is (
A value obtained by adding a predetermined CPU value in the i-1th range to the analog information value)/(minimum unit), and pulse-modulated the CPU value to generate data for data communication. be.

【0009】[0009]

【作用】本発明では、アナログ情報の下限値から上限値
までのダイナミックレンジ全体に亘って必要な精度は同
一ではなく、異なる点に着目し、必要な精度毎にダイナ
ミックレンジを複数のレンジに分割し、その分割レンジ
毎に1CPU値に対する最小単位を必要な精度が高いほ
ど小に設定している。このため、アナログ情報の上限値
に対応する最大CPU値が従来に比べて大幅に小となり
、よってパルス変調されたデータの周期を従来に比べて
大幅に小とすることができる。
[Operation] The present invention focuses on the fact that the required accuracy is not the same over the entire dynamic range from the lower limit value to the upper limit value of analog information, but is different, and divides the dynamic range into multiple ranges for each required accuracy. However, for each divided range, the minimum unit for one CPU value is set to be smaller as the required accuracy is higher. Therefore, the maximum CPU value corresponding to the upper limit value of the analog information becomes much smaller than in the past, and therefore the cycle of pulse-modulated data can be made much smaller than in the past.

【0010】0010

【実施例】図1は本発明方法が適用されるデータ通信シ
ステムの一例の構成図を示す。このデータ通信システム
は車両内のデータ通信システムであって、10はエンジ
ン用電子制御装置(以下、エンジンECUという)、2
0は電子制御式オートマチックトランスミッション用電
子制御装置(以下、ECT・ECUという)で、エンジ
ンECU10内のCPU11からECT・ECU20内
のCPU21へデータ通信が行なわれる。エンジンEC
U10は本発明方法における送信側の一実施例で、前記
した燃料噴射弁の制御などを行なうために、スロットル
バルブの開度(スロットル開度)をスロットルポジショ
ンセンサで検出して得た信号や他のセンサからのその他
の信号をA/D変換器(ADC)12にてディジタルデ
ータに変換し、それをCPU11で演算処理し、その演
算結果をランダム・アクセス・メモリ(RAM)13に
格納する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a block diagram of an example of a data communication system to which the method of the present invention is applied. This data communication system is an in-vehicle data communication system, and 10 is an engine electronic control unit (hereinafter referred to as engine ECU);
0 is an electronic control unit for an electronically controlled automatic transmission (hereinafter referred to as ECT/ECU), and data communication is performed from a CPU 11 in the engine ECU 10 to a CPU 21 in the ECT/ECU 20. engine EC
U10 is an embodiment of the transmitting side in the method of the present invention, in which a signal obtained by detecting the opening degree of the throttle valve (throttle opening degree) with a throttle position sensor and other signals are used to control the fuel injection valve described above. Other signals from the sensors are converted into digital data by an A/D converter (ADC) 12, which is subjected to arithmetic processing by a CPU 11, and the result of the arithmetic operation is stored in a random access memory (RAM) 13.

【0011】リード・オンリ・メモリ(ROM)14に
はCPU11の動作用プログラムやCPU11の演算に
必要なマップデータなどが格納されている。エンジンE
CU10はCPU11で演算した結果又はRAM13か
ら読み出したデータをポート15を介して制御出力とし
て燃料噴射弁等へ出力して制御する一方、スイッチ入力
他がポート15を介してCPU11に入力される。また
、エンジンECU10は例えば4気筒のエンジンを搭載
したECT車両では発振器16の出力クロックにより、
タイマ17が4μsecに1回カウントアップされるよ
うに構成されており、またタイマ17、アウトプットコ
ンペア18及び比較回路19を用いて、スロットル開度
に関連したCPU値をパルス幅変調(PWM)したデー
タを後述する如く生成し、そのデータを1本のデータ線
30へ送出する。
A read-only memory (ROM) 14 stores programs for operating the CPU 11, map data necessary for calculations by the CPU 11, and the like. Engine E
The CU 10 outputs the results of calculations by the CPU 11 or data read from the RAM 13 as control outputs to fuel injection valves and the like through a port 15 to control them, while switch inputs and other inputs are input to the CPU 11 through the port 15 . In addition, for example, in an ECT vehicle equipped with a four-cylinder engine, the engine ECU 10 uses the output clock of the oscillator 16 to
The timer 17 is configured to count up once every 4 μsec, and the CPU value related to the throttle opening is pulse width modulated (PWM) using the timer 17, output compare 18, and comparison circuit 19. Data is generated as described below and sent to one data line 30.

【0012】一方、ECT・ECU20は本発明方法に
おける受信側の一実施例で、CPU21、CPU制御プ
ログラムやマップなどが格納されたROM22、CPU
演算結果などが書き込み又は読み出されるRAM23、
インプットキャプチャ24、発振器25、例えば4μs
ecに1回カウントアップされるタイマ26、ポート2
7などから構成されている。ECT・ECU20はデー
タ線30を介して入力されるデータをインプットキャプ
チャ24及びタイマ26を用いて取り込み、後述する如
くスロットル開度に戻す。
On the other hand, the ECT/ECU 20 is an embodiment of the receiving side in the method of the present invention, and includes a CPU 21, a ROM 22 storing CPU control programs, maps, etc.
RAM 23 to which calculation results and the like are written or read;
Input capture 24, oscillator 25, e.g. 4 μs
Timer 26, port 2 counts up once in ec
It is composed of 7 etc. The ECT/ECU 20 captures data input via the data line 30 using an input capture 24 and a timer 26, and returns the data to the throttle opening as described later.

【0013】なお、エンジンECU10に取り込まれる
アナログ情報の一つであるスロットル開度は下限値0°
から上限値100°までのダイナミックレンジを有し、
それが0〜2.4Vの電圧の形でADC12に入力され
る。ADC12はこの入力電圧を0〜5Vを10ビット
の精度で変換し、RAM13にその変換データを格納さ
せる。
[0013]The throttle opening, which is one of the analog information taken into the engine ECU 10, has a lower limit of 0°.
It has a dynamic range from up to an upper limit of 100°,
It is input to the ADC 12 in the form of a voltage of 0 to 2.4V. The ADC 12 converts this input voltage from 0 to 5 V with 10-bit accuracy, and stores the converted data in the RAM 13.

【0014】ところで、アナログ情報であるスロットル
開度をPWM信号としてデータ転送する場合、ダイナミ
ックレンジ100°のスロットル開度のうち0.2°の
高精度が必要なのは0°〜30°ぐらいまでであり、3
0°より大なるスロットル開度では3°程度の精度でも
充分実用的なデータ転送ができることが実験的に確かめ
られている。
[0014] By the way, when transmitting data of the throttle opening, which is analog information, as a PWM signal, a high accuracy of 0.2° is required for the throttle opening, which has a dynamic range of 100°, from about 0° to 30°. ,3
It has been experimentally confirmed that sufficient practical data transfer is possible with an accuracy of about 3 degrees at throttle openings greater than 0 degrees.

【0015】そこで、本実施例では上記の点に着目し、
スロットル開度のダイナミックレンジ100°を、0.
2°の精度が必要な30°以下の第1のレンジと、3°
の精度でよい30°より大で100°以下の第2のレン
ジとに分割し、第1のレンジでは1CPU値に対する最
小単位を“0.2”とし、第2のレンジでは1CPU値
に対する最小単位を“3”とし、得られたCPU値に応
じてパルス幅変調したデータを生成して転送するもので
ある。
Therefore, in this embodiment, we focused on the above points,
The dynamic range of throttle opening is 100°.
a first range of 30° or less that requires an accuracy of 2°;
The second range is greater than 30 degrees and less than 100 degrees, with an accuracy of 100 degrees.In the first range, the minimum unit for 1 CPU value is "0.2", and in the second range, the minimum unit for 1 CPU value is "0.2". is set to "3", and pulse width modulated data is generated and transferred according to the obtained CPU value.

【0016】従って、第1のレンジにおけるCPU値は
(スロットル開度)/0.2で表わされるから“0”〜
“150”となる。また、第2のレンジにおけるCPU
値は(スロットル開度)/3で表わされる値に、第1の
レンジ内の所定CPU値(ここでは最大値“150”)
を加算した値であり、よって“161”〜“183”と
なる。
[0016] Therefore, the CPU value in the first range is expressed as (throttle opening)/0.2, so it ranges from "0" to
It becomes "150". Also, the CPU in the second range
The value is expressed as (throttle opening degree)/3, plus a predetermined CPU value within the first range (maximum value "150" here).
It is the value obtained by adding up the values, and therefore becomes "161" to "183".

【0017】またレンジの切換点ではCPU値に不感帯
(ここでは151〜160)が設けられる。これは、読
み取り誤差によりデータが大きく変わることを防止する
ためである。この不感帯は最低CPU値で“2”必要で
、これ以上あれば転送時間が許す限りどこまで大きくと
っても問題はない。
Further, at the range switching point, a dead zone (151 to 160 in this case) is provided in the CPU value. This is to prevent data from changing significantly due to reading errors. This dead zone requires a minimum CPU value of "2", and as long as it is greater than this, there is no problem in making it as large as the transfer time allows.

【0018】本実施例では1CPU値を8μsecのパ
ルス幅のPWM信号で伝送するものとすると、スロット
ル開度の上限値100°のときのCPU値が“183”
であるから最大1464μsecのパルス幅でデータ転
送が可能であり、休止期間を含めても周期2.0mse
cのPWM信号によりデータ転送できることになる。従
って、本実施例によれば、スロットル開度とCPU値及
び転送時間(PWM信号のパルス幅)との関係は図2に
実線Iで示す如くになり、同図に破線IIで示す従来方
法の関係に比べ、スロットル開度0°〜100°までの
情報を極めて短時間で転送できる。
In this embodiment, if one CPU value is transmitted as a PWM signal with a pulse width of 8 μsec, the CPU value when the throttle opening is at the upper limit of 100° is “183”.
Therefore, data transfer is possible with a maximum pulse width of 1464 μsec, and the cycle is 2.0 msec even including the pause period.
Data can be transferred using the PWM signal of c. Therefore, according to this embodiment, the relationship between the throttle opening degree, CPU value, and transfer time (pulse width of the PWM signal) is as shown by the solid line I in FIG. Compared to conventional methods, information on throttle opening degrees from 0° to 100° can be transferred in an extremely short time.

【0019】次に上記のデータ転送を実現するための、
エンジンECU10による通信データ生成処理動作につ
いて図3に示すフローチャートと共に説明する。図3に
おいて、まず前記したタイマ17の時間TIMERとア
ウトプットコンペア18へのセット時間TOCRとが比
較回路19で等しいか否か判定される(ステップ101
)。TIMER=TOCRのときは比較回路19からデ
ータ線30へ出力されるアウトプットコンペア出力レベ
ルOCRが“0”とされて(ステップ102)、このル
ーチンを終了する。
Next, in order to realize the above data transfer,
The communication data generation processing operation by the engine ECU 10 will be explained with reference to the flowchart shown in FIG. In FIG. 3, first, the comparison circuit 19 determines whether or not the time TIMER of the timer 17 and the set time TOCR to the output compare 18 are equal (step 101).
). When TIMER=TOCR, the output compare output level OCR output from the comparator circuit 19 to the data line 30 is set to "0" (step 102), and this routine ends.

【0020】一方、TIMER≠TOCRのときは前回
アウトプットコンペアレベルOCRが“1”に制御され
てから2msec以上経過しているかどうかを判定し(
ステップ103)、2msec以上経過していないとき
は何もせずにこのルーチンを終了し、2msec以上経
過した時点で次のステップ104へ進んでスロットル開
度を示すCPU値TAが“150”より大か否かCPU
11が判定する。このTAの値“150”は前記したよ
うに、必要精度0.2°のとき(分解能LSBが0.2
°のとき)、スロットル開度30°に相当する。
On the other hand, when TIMER≠TOCR, it is determined whether 2 msec or more has passed since the output compare level OCR was last controlled to "1" (
Step 103), if 2 msec or more has not elapsed, this routine is ended without doing anything, and when 2 msec or more has elapsed, proceed to the next step 104 and check if the CPU value TA indicating the throttle opening is greater than "150". No CPU
11 makes the decision. As mentioned above, the value of this TA is "150" when the required accuracy is 0.2° (resolution LSB is 0.2°).
), this corresponds to a throttle opening of 30°.

【0021】TA≦150のときはスロットル開度が3
0°以下の前記第1のレンジの値であり、ステップ10
5へ進んでTAの値を2倍した値をパルス幅カウンタT
TAにセットする。これはCPU値であるTAの値が“
1”のときは8μsecのパルス幅でデータ転送するの
に対し、CPU11のクロックは4μsecであるから
、パルス幅カウンタTTAの値はTA×8μsec/4
μsecとなるからである。
[0021] When TA≦150, the throttle opening is 3
is the value of the first range below 0°, and step 10
Proceed to step 5 and double the value of TA to the pulse width counter T.
Set to TA. This means that the value of TA, which is the CPU value, is “
1", data is transferred with a pulse width of 8 μsec, whereas the clock of the CPU 11 is 4 μsec, so the value of the pulse width counter TTA is TA x 8 μsec/4.
This is because it is μsec.

【0022】一方、ステップ104でTA>150と判
定されたときは、スロットル開度が30°より大なる前
記第2のレンジの値のときであり、ステップ106へ進
んで{(TA−150)×2/15}+304なる式で
算出された値をパルス幅カウンタTTAにセットする。 すなわち、この場合の分解能LSBは3°になるので、
(TA−150)を3°/0.2°で除算し、またパル
ス幅換算の“2”を乗算し、更にスロットル開度30°
相当分のパルス幅カウンタ値“300”と不感帯相当量
として所定値(前記説明では“10”であるが、便宜上
、ここでは“2”とする。ただし、この不感帯の値はパ
ルス幅換算の“2”を乗算するから“4”となる。)と
を加算する。
On the other hand, when it is determined in step 104 that TA>150, this means that the throttle opening is in the second range greater than 30°, and the process proceeds to step 106 where {(TA-150) x2/15}+304 is set in the pulse width counter TTA. In other words, the resolution LSB in this case is 3 degrees, so
(TA-150) divided by 3°/0.2°, multiplied by “2” of pulse width conversion, and then throttle opening 30°
The corresponding pulse width counter value "300" and a predetermined value as the dead zone equivalent amount ("10" in the above explanation, but for convenience, it is set as "2" here. However, the value of this dead zone is "300" in pulse width conversion) Since it is multiplied by "2", it becomes "4").

【0023】ステップ105又は106の計算が終了す
ると、データ線30へ出力されるアウトプットコンペア
出力レベルOCRを“1”とし(ステップ107)、そ
の後タイマ時刻TIMERに上記パルス幅カウンタ値T
TAを加算した値をアウトプットコンペア18へのセッ
ト時間TOCRにセットして(ステップ108)、この
ルーチンを終了する。そして、再びこのルーチンが起動
されてステップ101でタイマ時刻TIMERがセット
時間TOCRと等しくなったと判断されると上記出力レ
ベルOCRが再び“0”とされる(ステップ102)。
When the calculation in step 105 or 106 is completed, the output compare output level OCR output to the data line 30 is set to "1" (step 107), and then the pulse width counter value T is set at the timer time TIMER.
The value obtained by adding TA is set to the set time TOCR for the output compare 18 (step 108), and this routine is ended. When this routine is started again and it is determined in step 101 that the timer time TIMER has become equal to the set time TOCR, the output level OCR is set to "0" again (step 102).

【0024】このようにして、アウトプットコンペア出
力レベルOCRは2msec毎に“1”となり、かつ、
“1”となった時点からパルス幅カウンタ値TTAに相
当する時間後に“0”となる。すなわち、データ線30
には図4に示すように、周期が2msecで、そのパル
ス幅がTTA×4μsecである、スロットル開度をパ
ルス幅変調(PWM)したデータが送出される。
In this way, the output compare output level OCR becomes "1" every 2 msec, and
It becomes "0" after a time corresponding to the pulse width counter value TTA from the time when it becomes "1". That is, the data line 30
As shown in FIG. 4, data obtained by pulse width modulation (PWM) of the throttle opening is transmitted with a period of 2 msec and a pulse width of TTA×4 μsec.

【0025】次に上記PWMデータを受信復調するEC
T・ECU20の処理動作について図5のフローチャー
トと共に説明する。ECT・ECU20はデータ線30
に接続されている入力ポートのレベルICRが“0”か
ら“1”へ立上がったか否か判定し(ステップ201)
、立上り入力時と判定したときはその時のタイマ26の
時刻TIMERをパルス幅計測の開始時刻として図1の
RAM23内に予め用意してタイマ値の退避エリアTI
Nにセットし(ステップ202)、処理を終了する。
Next, the EC receives and demodulates the PWM data.
The processing operation of the T-ECU 20 will be explained with reference to the flowchart of FIG. ECT/ECU20 is data line 30
It is determined whether the level ICR of the input port connected to the input port has risen from "0" to "1" (step 201).
, when it is determined that it is a rising input, the time TIMER of the timer 26 at that time is prepared in advance in the RAM 23 of FIG. 1 as the start time of pulse width measurement, and a timer value save area TI is
It is set to N (step 202) and the process ends.

【0026】他方、ステップ201で入力レベルICR
の立上りでないと判定した時は入力レベルが立下ったか
どうか判定し(ステップ203)、立下りでもないとき
はこの処理ルーチンを終了する。一方、ステップ203
で立下りを検出した時は、この時のタイマ26の時刻T
IMERから前記退避エリアにセットされていた立上り
検出時刻TINとを減算してパルス幅カウンタ値TTA
を算出する(ステップ204)。
On the other hand, in step 201, the input level ICR
When it is determined that the input level is not rising, it is determined whether the input level has fallen (step 203), and when it is not falling, this processing routine is ended. On the other hand, step 203
When a falling edge is detected, the time T of timer 26 at this time is
The pulse width counter value TTA is obtained by subtracting the rise detection time TIN set in the evacuation area from IMER.
is calculated (step 204).

【0027】続いて、このパルス幅カウンタ値TTAが
“300”より大か否か判定し(ステップ205)、T
TA≦300のときは前記第1のレンジ内の値であるか
らTTA/2の演算によりスロットル開度を示すCPU
値TAを算出する(ステップ206)。
Next, it is determined whether this pulse width counter value TTA is greater than "300" (step 205), and T
When TA≦300, the value is within the first range, so the CPU calculates the throttle opening by calculating TTA/2.
A value TA is calculated (step 206).

【0028】TTA>300のときは、TTAが“30
4”より大か否か判定し(ステップ207)、TTA>
304のときは{(TTA−304)×15/2}+1
50なる式を満足する演算を行なって前記第2のレンジ
のスロットル開度を示すCPU値TAを算出し(ステッ
プ208)、他方TTA≦304のとき(すなわちTT
Aが301〜304のいずれかのとき)は前記不感帯内
の値であるから、スロットル開度を示すCPU値TAは
“150”とされる(ステップ209)。
[0028] When TTA>300, TTA is “30
4” (step 207), and determine whether TTA>
For 304, {(TTA-304)×15/2}+1
50 to calculate the CPU value TA indicating the throttle opening of the second range (step 208), and when TTA≦304 (that is, TT
Since A is any one of 301 to 304) is a value within the dead zone, the CPU value TA indicating the throttle opening is set to "150" (step 209).

【0029】このようにして算出されたCPU値TAは
スロットル開度を示す情報としてCPU21で演算処理
され、ポート27を介してECT制御に用いられる。
The CPU value TA thus calculated is processed by the CPU 21 as information indicating the throttle opening degree, and is used for ECT control via the port 27.

【0030】このように、本実施例によれば、2つのC
PU11,21間を転送されるPWM信号の周期を従来
の5msecから2msecと大幅に短縮できるため、
必要な精度を充分確保しつつ、大なるダイナミックレン
ジのスロットル開度情報を短時間で転送でき、よってス
ロットル開度が急変する過渡時も正確に追従制御できる
As described above, according to this embodiment, two C
Since the period of the PWM signal transferred between PU11 and PU21 can be significantly shortened from the conventional 5msec to 2msec,
Throttle opening information over a wide dynamic range can be transferred in a short time while ensuring the necessary accuracy, allowing accurate follow-up control even when the throttle opening changes suddenly.

【0031】なお、本発明は上記実施例に限定されるも
のではなく、例えば必要な精度の種類を3以上としてダ
イナミックレンジを3以上に細分割してもよい。また、
データの変調形式はPWMに限らず、要は1本のデータ
線30で情報を周期一定のパルス波形(被変調波信号)
として伝送できればよいから、パルス振幅変調(PAM
)、パルス位相変調(PPM)更にはパルス数変調(P
NM)その他のパルス変調も適用できるものである。
It should be noted that the present invention is not limited to the above-mentioned embodiment, and the dynamic range may be subdivided into three or more parts, for example, with three or more required types of accuracy. Also,
The data modulation format is not limited to PWM, but the point is that information is transmitted in a pulse waveform with a constant period (modulated wave signal) using one data line 30.
Pulse amplitude modulation (PAM)
), pulse phase modulation (PPM) and even pulse number modulation (P
NM) Other pulse modulations are also applicable.

【0032】[0032]

【発明の効果】上述の如く、本発明によれば、従来に比
べてパルス変調されたデータの周期を大幅に小とするこ
とができるため、通信速度を向上でき、よって過渡時の
制御にも反映することができ、また必要な精度に応じて
CPU値に対する最小単位を可変としているため、実用
上充分なデータ精度を確保することができる等の特長を
有するものである。
As described above, according to the present invention, the period of pulse-modulated data can be significantly reduced compared to the conventional method, so the communication speed can be improved, and therefore the control during transient times can be improved. In addition, since the minimum unit for the CPU value is variable according to the required accuracy, it has the advantage of ensuring sufficient data accuracy for practical use.

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

【図1】本発明方法が適用されるデータ通信システムの
一例の構成図である。
FIG. 1 is a configuration diagram of an example of a data communication system to which the method of the present invention is applied.

【図2】スロットル開度とCPU値及び転送速度との関
係を本発明の実施例と従来例の夫々について対比して示
す図である。
FIG. 2 is a diagram illustrating the relationship between throttle opening, CPU value, and transfer speed in comparison between an embodiment of the present invention and a conventional example.

【図3】本発明方法の送信側の一実施例の動作説明用フ
ローチャートである。
FIG. 3 is a flowchart for explaining the operation of an embodiment of the transmitting side of the method of the present invention.

【図4】図3のフローチャートにより生成される転送デ
ータ波形の説明図である。
FIG. 4 is an explanatory diagram of a transfer data waveform generated by the flowchart of FIG. 3;

【図5】本発明方法の受信側の一実施例の動作説明用フ
ローチャートである。
FIG. 5 is a flowchart for explaining the operation of an embodiment of the receiving side of the method of the present invention.

【図6】2つのCPU間のデータ通信システムの一例を
示す図である。
FIG. 6 is a diagram showing an example of a data communication system between two CPUs.

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

10  エンジン用電子制御装置(エンジンECU)1
1,21  中央処理装置(CPU)17,26  タ
イマ 18  アウトプットコンペア 19  比較回路 20  電子制御式オートマチックトランスミッション
用電子制御装置(ECT・ECU) 24  インプットキャプチャ
10 Engine electronic control unit (engine ECU) 1
1, 21 Central processing unit (CPU) 17, 26 Timer 18 Output compare 19 Comparison circuit 20 Electronic control unit for electronically controlled automatic transmission (ECT/ECU) 24 Input capture

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  複数の中央処理装置間でアナログ情報
をパルス変調して得た被変調データのデータ通信を行な
う方法において、前記アナログ情報の下限値から上限値
までのダイナミックレンジを、必要精度毎にn個(ただ
し、nは2以上の整数)のレンジに分割し、該分割した
n個のレンジの夫々について、前記必要精度が高いほど
1CPU値に対する最小単位を小とし、該n個のレンジ
のうち前記アナログ情報の値が小さい方から1番目のレ
ンジのCPU値を(アナログ情報の値)/(最小単位)
とし、かつ、i番目(但し、i=2,…,n)のレンジ
のCPU値は(アナログ情報の値)/(最小単位)にi
−1番目のレンジの内の所定CPU値を加算した値とし
、該CPU値をパルス変調したデータを生成してデータ
通信を行なうことを特徴とするデータ通信方法。
1. A method for data communication of modulated data obtained by pulse modulating analog information between a plurality of central processing units, in which the dynamic range from the lower limit value to the upper limit value of the analog information is determined for each required accuracy. is divided into n ranges (where n is an integer of 2 or more), and for each of the n ranges, the higher the required precision, the smaller the minimum unit for 1 CPU value, and the n ranges are divided into n ranges. The CPU value of the first range from the one with the smallest analog information value is (analog information value) / (minimum unit)
And the CPU value of the i-th range (where i=2,...,n) is (analog information value)/(minimum unit) i
- A data communication method characterized by performing data communication by generating data by pulse-modulating the CPU value by adding a predetermined CPU value in a first range.
JP1361191A 1991-02-04 1991-02-04 Data communication method Pending JPH04248797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1361191A JPH04248797A (en) 1991-02-04 1991-02-04 Data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1361191A JPH04248797A (en) 1991-02-04 1991-02-04 Data communication method

Publications (1)

Publication Number Publication Date
JPH04248797A true JPH04248797A (en) 1992-09-04

Family

ID=11838024

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1361191A Pending JPH04248797A (en) 1991-02-04 1991-02-04 Data communication method

Country Status (1)

Country Link
JP (1) JPH04248797A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001248721A (en) * 1999-12-30 2001-09-14 Robert Bosch Gmbh Control for vehicle having transmission control part
JP2006285977A (en) * 2005-03-09 2006-10-19 Denso Corp Information processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001248721A (en) * 1999-12-30 2001-09-14 Robert Bosch Gmbh Control for vehicle having transmission control part
JP2006285977A (en) * 2005-03-09 2006-10-19 Denso Corp Information processing system

Similar Documents

Publication Publication Date Title
US7239956B2 (en) Apparatus for processing signals from sensors incorporated in in-vehicle power train and system using the apparatus
US7642875B2 (en) Temperature correcting apparatus and voltage-controlled oscillation apparatus
KR970016905A (en) Pointing device and method
US4829490A (en) Electrical signal discrimination
JPH04248797A (en) Data communication method
US5436580A (en) Method and circuitry for determining the beginning of echo pulses
US7460979B2 (en) Method and system for enhanced resolution, automatically-calibrated position sensor
US5138873A (en) Throttle valve opening degree processing system
EP1054238A3 (en) Method and apparatus for detecting position using phase-shifted signals
JP2959310B2 (en) Nutrunner control device
JPH03294630A (en) Control device for throttle valve
JP2539749B2 (en) Distance correction method for radar range finder
GB2251094A (en) Control system for a fuel-injected, compression ignition internal combustion engine
JPS6255580A (en) Reception level variation compensating step track tracking system
JPS608702A (en) Signal processor for accelerator pedal sensor
KR100313019B1 (en) Apparatus and method for detecting forward / reverse travel direction of automatic transmission
KR0164315B1 (en) Transmitting receiving frequency difference detection method
JPH0677213B2 (en) Signal waveform pattern recognition method
SU1182562A1 (en) Method and apparatus for reception of information
SU1124328A1 (en) Device for determining amplitude of narrow-band random signal
RU1774287C (en) Amplitude modulation percentage meter
SU993213A1 (en) Device for checking control system dynamic characteristics
KR970021693A (en) Method and apparatus for detecting measured value in electronic output control of vehicle
JP2516092Y2 (en) Photoelectric switch
JPH0439409Y2 (en)