JPH04287747A - Signal processing system - Google Patents
Signal processing systemInfo
- Publication number
- JPH04287747A JPH04287747A JP7217891A JP7217891A JPH04287747A JP H04287747 A JPH04287747 A JP H04287747A JP 7217891 A JP7217891 A JP 7217891A JP 7217891 A JP7217891 A JP 7217891A JP H04287747 A JPH04287747 A JP H04287747A
- Authority
- JP
- Japan
- Prior art keywords
- conversion
- timer interrupt
- interrupt routine
- converter
- signal
- 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
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 61
- 238000000034 method Methods 0.000 claims description 11
- 230000001133 acceleration Effects 0.000 description 28
- 238000010586 diagram Methods 0.000 description 2
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Air Bags (AREA)
- Analogue/Digital Conversion (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、A/Dコンバータと、
A/Dコンバータからのデジタル変換データを処理する
マイクロコンピュータとを備えた信号処理システムに関
する。[Industrial Application Field] The present invention relates to an A/D converter,
The present invention relates to a signal processing system including a microcomputer that processes digitally converted data from an A/D converter.
【0002】0002
【従来の技術】実開平2ー5371号に開示されている
エアバック制御システム(信号処理システム)は、加速
度センサと、この加速度センサからの加速度を表すアナ
ログデータをデジタルデータに変換するA/Dコンバー
タと、このA/Dコンバータからのデジタル変換データ
を処理するマイクロコンピュータと、マイクロコンピュ
ータに制御されるエアバックの駆動回路とを備えている
。[Prior Art] An airbag control system (signal processing system) disclosed in Utility Model Application Publication No. 2-5371 includes an acceleration sensor and an A/D converter that converts analog data representing acceleration from the acceleration sensor into digital data. It includes a converter, a microcomputer that processes digital conversion data from the A/D converter, and an airbag drive circuit controlled by the microcomputer.
【0003】上記マイクロコンピュータでは、一定周期
毎にタイマー割込ルーチンを実行する。各タイマー割込
ルーチンでは、A/DコンバータにA/D変換開始指令
信号を出力して加速度センサからのアナログデータをデ
ジタルデータに変換させ、変換作業終了後にこのデジタ
ル変換データに基づく演算を行う。すなわち、変換デー
タで表された加速度を積分し、減速方向の加速度積分値
がスレッショルドレベルを超えた時に、車両衝突が生じ
たものと判断して駆動回路にトリガ信号を出力し、エア
バックを展開させる。The microcomputer described above executes a timer interrupt routine at regular intervals. In each timer interrupt routine, an A/D conversion start command signal is output to the A/D converter to convert analog data from the acceleration sensor into digital data, and after the conversion work is completed, calculations are performed based on this digital conversion data. In other words, the system integrates the acceleration represented by the converted data, and when the integrated value of acceleration in the deceleration direction exceeds a threshold level, it determines that a vehicle collision has occurred and outputs a trigger signal to the drive circuit to deploy the airbag. let
【0004】0004
【発明が解決しようとする課題】上記マイクロコンピュ
ータのプログラムでは、各タイマー割込ルーチンにおい
て、A/DコンバータへのA/D変換開始指令信号の出
力からデジタル変換データに基づく演算までを継続して
行うため、A/Dコンバータでの変換作業を待つ必要が
あり、この待ち時間の分だけタイマー割込ルーチンの実
行時間が長くなってしまい、他のプログラムの実行時間
が短くなる。また、A/Dコンバータでの変換作業が長
引いた場合には、タイマー割込ルーチンの実行途中で、
次のタイマー割込が生じ、マイクロコンピュータの暴走
を招く可能性も残されている。[Problem to be Solved by the Invention] In the above microcomputer program, in each timer interrupt routine, the process from outputting an A/D conversion start command signal to the A/D converter to calculation based on digital conversion data is continued. In order to do this, it is necessary to wait for the conversion work in the A/D converter, and the execution time of the timer interrupt routine becomes longer by this waiting time, which shortens the execution time of other programs. In addition, if the conversion work in the A/D converter takes a long time, during the execution of the timer interrupt routine,
There is still the possibility that the next timer interrupt will occur and cause the microcomputer to run out of control.
【0005】[0005]
【課題を解決するための手段】図1に示すように、本発
明に係わる信号処理システムは、アナログデータをデジ
タルデータに変換するA/Dコンバータ1と、このデジ
タル変換データを処理するマイクロコンピュータ2とを
備えている。このマイクロコンピュータ2は、第1割込
信号と第2割込信号とを交互に発生させるタイマー割込
信号発生手段3と、第1割込信号に応答してA/Dコン
バータにA/D変換開始指令信号を出力する第1タイマ
ー割込ルーチン実行手段4と、第2割込信号に応答して
デジタル変換データに基づく演算を行う第2タイマー割
込ルーチン実行手段5とを備えている。第1割込信号発
生時点から第2割込信号発生時点までの時間は、A/D
コンバータでのA/D変換作業に要する時間より長く設
定されている。Means for Solving the Problems As shown in FIG. 1, a signal processing system according to the present invention includes an A/D converter 1 that converts analog data into digital data, and a microcomputer 2 that processes this digitally converted data. It is equipped with The microcomputer 2 includes a timer interrupt signal generating means 3 that alternately generates a first interrupt signal and a second interrupt signal, and an A/D converter that performs A/D conversion in response to the first interrupt signal. It includes first timer interrupt routine execution means 4 that outputs a start command signal, and second timer interrupt routine execution means 5 that performs calculations based on digital conversion data in response to the second interrupt signal. The time from the first interrupt signal generation point to the second interrupt signal generation point is the A/D
The time is set longer than the time required for A/D conversion work in the converter.
【0006】[0006]
【作用】第1割込信号に応答して実行される第1タイマ
ー割込ルーチンでは、A/DコンバータにA/D変換開
始指令信号を出力するものの、変換作業を待つことなく
終了する。そして、第2割込信号に応答して実行される
第2のタイマー割込ルーチンでは、A/D変換作業の終
了後に実行され、デジタル変換データに基づく演算を行
う。したがって、第1のタイマー割込ルーチン終了後か
ら第2のタイマー割込ルーチンを開始するまでの時間は
、A/D変換作業を待つためには費やされず、他のプロ
グラム実行のために費やされるため、マイクロコンピュ
ータを効率良く作動させることができる。[Operation] The first timer interrupt routine executed in response to the first interrupt signal outputs an A/D conversion start command signal to the A/D converter, but ends without waiting for the conversion operation. A second timer interrupt routine executed in response to the second interrupt signal is executed after the A/D conversion operation is completed, and performs calculations based on the digital conversion data. Therefore, the time from the end of the first timer interrupt routine until the start of the second timer interrupt routine is not spent waiting for A/D conversion work, but is spent running other programs. , the microcomputer can be operated efficiently.
【0007】[0007]
【実施例】以下、本発明の一実施例を図2〜図4を参照
して説明する。図2はエアバック(車両安全装置)のス
キブSを制御する制御システムの概略を示している。制
御システムは、車両の加速方向,減速方向の加速度を表
すアナログデータを出力する加速度センサ10と、加速
度センサ10からのアナログデータをデジタルデータに
変換するA/Dコンバータ(アナログ・デジタルコンバ
ータ)20と、A/Dコンバータ20からのデジタル変
換データを処理するマイクロコンピュータ30と、マイ
クロコンピュータ30によって制御されるスキブSのた
めの駆動回路40を基本構成として備えている。Embodiment An embodiment of the present invention will be described below with reference to FIGS. 2 to 4. FIG. 2 schematically shows a control system that controls squib S of an airbag (vehicle safety device). The control system includes an acceleration sensor 10 that outputs analog data representing acceleration in the acceleration direction and deceleration direction of the vehicle, and an A/D converter (analog-to-digital converter) 20 that converts the analog data from the acceleration sensor 10 into digital data. , a microcomputer 30 that processes digital conversion data from the A/D converter 20, and a drive circuit 40 for the squib S controlled by the microcomputer 30.
【0008】上記駆動回路40は、エミッタ接地のトラ
ンジスタ41を備え、このトランジスタ41のコレクタ
とバッテリーVBとの間にスキブSが接続されている。
トランジスタ41は、そのベースがマイクロコンピュー
タ30からハイレベルのトリガ信号を受けた時にオンし
て、スキブSを点火させエアバックを展開させるもので
ある。The drive circuit 40 includes a transistor 41 whose emitter is grounded, and a squib S is connected between the collector of the transistor 41 and the battery VB. The transistor 41 turns on when its base receives a high-level trigger signal from the microcomputer 30, ignites the squib S and deploys the airbag.
【0009】マイクロコンピュータ30では図3に示す
ように、A/D変換開始指令信号をA/Dコンバータ2
0へ出力するための第1タイマー割込ルーチンIaと、
加速度評価プログラム実行のための第2タイマー割込ル
ーチンIbが、交互に間隔をおいて実行される。第1タ
イマー割込ルーチンIaはA/D変換作業を待たずに終
了するため非常に短く約5μs程度である。第2タイマ
ー割込ルーチンIbは、第1タイマー割込ルーチンIa
の開始時点から時間T1後、例えば100μs後に開始
される。この時間T1はA/D変換作業に要する時間の
最大値より長いため、第2タイマー割込ルーチンIb開
始時点では、すでにA/D変換作業は終了している。第
2タイマー割込ルーチンIbは、例えば250μs要す
るので、第2タイマー割込ルーチンIb開始時点から、
次の第1タイマー割込ルーチンIa開始までの時間T2
は例えば400μsに設定されている。その結果、加速
度信号のサンプリングはT=T1+T2=500μsの
周期で実行され、同様に評価プログラムも約500μs
の周期で実行される。As shown in FIG. 3, the microcomputer 30 sends an A/D conversion start command signal to the A/D converter 2.
a first timer interrupt routine Ia for outputting to 0;
The second timer interrupt routine Ib for executing the acceleration evaluation program is executed at alternate intervals. The first timer interrupt routine Ia is very short, approximately 5 μs, because it ends without waiting for A/D conversion work. The second timer interrupt routine Ib is the first timer interrupt routine Ia.
The process starts after a time T1, for example, 100 μs after the start time. Since this time T1 is longer than the maximum time required for the A/D conversion work, the A/D conversion work has already been completed when the second timer interrupt routine Ib is started. The second timer interrupt routine Ib requires, for example, 250 μs, so from the start of the second timer interrupt routine Ib,
Time T2 until the start of the next first timer interrupt routine Ia
is set to, for example, 400 μs. As a result, sampling of the acceleration signal is executed at a cycle of T = T1 + T2 = 500 μs, and the evaluation program is also approximately 500 μs.
It is executed at the cycle of
【0010】第1タイマー割込ルーチンIa終了から第
2タイマー割込ルーチンIb開始までの時間は、従来で
はタイマー割込ルーチンにおいてA/Dコンバータ20
の変換作業を待っている時間であったが、本発明ではメ
インルーチンで他のプログラムを実行できる。その結果
、マイクロコンピュータ30を効率良く作動させること
ができる。また、第1タイマー割込ルーチンIaはA/
D変換作業を待つ時間を含まず、ほぼ一定でしかも非常
に短い時間で終了するため、次の第2タイマー割込ルー
チンIbと重なることがない。そのため、マイクロコン
ピュータの暴走を防止することができる。Conventionally, the time from the end of the first timer interrupt routine Ia to the start of the second timer interrupt routine Ib is determined by the A/D converter 20 in the timer interrupt routine.
However, with the present invention, other programs can be executed in the main routine. As a result, the microcomputer 30 can be operated efficiently. Also, the first timer interrupt routine Ia is A/
Since it does not include the time for waiting for the D conversion work and is completed in a substantially constant and very short time, it does not overlap with the next second timer interrupt routine Ib. Therefore, it is possible to prevent the microcomputer from running out of control.
【0011】マイクロコンピュータ30は、上述した第
1タイマー割込ルーチンIaと第2タイマー割込ルーチ
ンIbとを、1つのアウトプットコンペアとA/D変換
要求フラグを用いることにより実行する。詳述すると、
アウトプットコンペアからの割込信号に応答して図4の
タイマー割込ルーチンを実行する。図示のタイマー割込
ルーチンは、上記第1タイマー割込ルーチンIaと第2
タイマー割込ルーチンIbを実質的に含んでいる。The microcomputer 30 executes the first timer interrupt routine Ia and the second timer interrupt routine Ib described above by using one output compare and an A/D conversion request flag. In detail,
The timer interrupt routine of FIG. 4 is executed in response to an interrupt signal from the output compare. The illustrated timer interrupt routine includes the first timer interrupt routine Ia and the second timer interrupt routine Ia.
It substantially includes a timer interrupt routine Ib.
【0012】まず、A/D変換要求フラグがセットされ
ているか否かを判断する(ステップ100)。肯定判断
の時には、A/D変換開始の指令信号をA/Dコンバー
タに送る(ステップ101)。次に、次回の割込をT1
後にセットし(ステップ102)、A/D変換要求フラ
グをクリアして(ステップ103)、メインルーチンに
戻る。これらステップ100〜103は上述した第1タ
イマー割込ルーチンIaを構成する。上記割込予定時間
T1のセットは、現時点のフリーランニングカウンタの
値にT1を加算した値を、アウトプットコンペアのレジ
スタにストアすることにより行われる。なお、上記割込
開始から実際に割込予定時間T1のセットが行われるま
でには2,3μs経過しているが、本明細書ではこの時
間を無視して説明する。First, it is determined whether the A/D conversion request flag is set (step 100). When the determination is affirmative, a command signal to start A/D conversion is sent to the A/D converter (step 101). Next, set the next interrupt to T1
The A/D conversion request flag is cleared (step 103), and the process returns to the main routine. These steps 100 to 103 constitute the first timer interrupt routine Ia described above. The scheduled interrupt time T1 is set by storing the value obtained by adding T1 to the current free running counter value in the output compare register. Although 2 to 3 μs elapse from the start of the interrupt to the time when the scheduled interrupt time T1 is actually set, this specification will ignore this time in the description.
【0013】A/Dコンバータ20は、ステップ101
で出力されたA/D変換開始指令信号に応答して、A/
D変換を開始する。A/Dコンバータ20での変換作業
が終了すると、デジタル変換データがマイクロコンピュ
ータ30の専用レジスタにストアされるとともに、A/
D変換終了フラグがセットされる。なお、このA/D変
換終了フラグは次のA/D変換開始時にクリアされる。[0013] The A/D converter 20 performs step 101.
In response to the A/D conversion start command signal output from
Start D conversion. When the conversion work in the A/D converter 20 is completed, the digital conversion data is stored in the dedicated register of the microcomputer 30, and the A/D converter 20
The D conversion end flag is set. Note that this A/D conversion end flag is cleared at the start of the next A/D conversion.
【0014】アウトプットコンペアでは、フリーランニ
ングカウンタの値がレジスタにストアされた設定値に達
した時、すなわち上記第1タイマー割込ルーチンIaか
らT1経過した時に、割込信号(第2割込信号)を出力
する。この割込信号に応答して、次のタイマー割込ルー
チンが実行される。このルーチンでは、ステップ100
で否定判断される。なぜなら、前回のタイマー割込ルー
チンのステップ103でA/D変換要求フラグがクリア
されているからである。したがって、ステップ104に
進み、次回の割込をT2後にセットする(ステップ10
4)。割込予定時間T2のセットの仕方は上記割込予定
時間T1の場合と同じである。In the output comparison, when the value of the free running counter reaches the set value stored in the register, that is, when T1 has elapsed from the first timer interrupt routine Ia, an interrupt signal (second interrupt signal ) is output. In response to this interrupt signal, the next timer interrupt routine is executed. In this routine, step 100
will be judged negative. This is because the A/D conversion request flag was cleared in step 103 of the previous timer interrupt routine. Therefore, the process proceeds to step 104, and the next interrupt is set after T2 (step 10
4). The method of setting the scheduled interruption time T2 is the same as that for the scheduled interruption time T1.
【0015】次に、A/D変換終了フラグがセットされ
ているか否かを判断する(ステップ105)。肯定判断
の場合、すなわちA/Dコンバータ20が正常であると
判断した場合には、加速度評価ブログラムを実行する(
ステップ106)。詳述すると、上記専用レジスタにス
トアされている加速度を前回に求めた加速度積分値に加
算することにより、加速度積分値を更新する。そして、
この更新された加速度積分値をスレッショルドレベルと
比較する。加速度積分値が減速方向に増大してスレッシ
ョルドレベルを超えた時には、車両衝突が生じたものと
判断してトランジスタ41にトリガ信号を出力し、エア
バックを展開させる。Next, it is determined whether the A/D conversion end flag is set (step 105). If the judgment is affirmative, that is, if it is judged that the A/D converter 20 is normal, the acceleration evaluation program is executed (
Step 106). Specifically, the acceleration integral value is updated by adding the acceleration stored in the dedicated register to the previously determined acceleration integral value. and,
This updated acceleration integral value is compared with a threshold level. When the acceleration integral increases in the deceleration direction and exceeds the threshold level, it is determined that a vehicle collision has occurred and a trigger signal is output to the transistor 41 to deploy the airbag.
【0016】上記ステップ105で否定判断した場合、
すなわちA/D変換が終了していないと判断した場合に
は、A/Dコンバータ20の故障を表すNGフラグをセ
ットする(ステップ107)。上記ステップ106また
はステップ107を実行した後、A/D変換要求フラグ
をセットし(ステップ108)、メインルーチンに戻る
。上記説明から明らかなように、ステップ100,10
4〜108は、第2タイマー割込ルーチンIbを実行す
る。なお、上記NGフラグがセットされた時には、メイ
ンルーチンにおいて警報ランプ(図示しない)を点灯さ
せる。[0016] If a negative determination is made in step 105 above,
That is, if it is determined that the A/D conversion has not been completed, an NG flag indicating a failure of the A/D converter 20 is set (step 107). After executing step 106 or step 107, the A/D conversion request flag is set (step 108), and the process returns to the main routine. As is clear from the above description, steps 100, 10
4 to 108 execute the second timer interrupt routine Ib. Note that when the NG flag is set, a warning lamp (not shown) is turned on in the main routine.
【0017】上記第2タイマー割込開始時点からT2経
過後に、アウトプットコンペアから割込信号(第1の割
込信号)が出力されると、再び図4のタイマー割込ルー
チンが実行される。この場合、前回の第2タイマー割込
ルーチンのステップ108でA/D変換要求フラグがセ
ットされているので、再びステップ101〜103、す
なわち第1タイマー割込ルーチンIaが実行される。When an interrupt signal (first interrupt signal) is output from the output compare after T2 has elapsed from the start of the second timer interrupt, the timer interrupt routine of FIG. 4 is executed again. In this case, since the A/D conversion request flag was set in step 108 of the previous second timer interrupt routine, steps 101 to 103, that is, the first timer interrupt routine Ia, are executed again.
【0018】図5〜図7は本発明の他の実施例を示す。
この実施例では、A/Dコンバータ20(図2参照)に
は、加速度センサ10からのアナログデータと、他のア
ナログデータ、例えばスキブSの一方の端子の電圧も入
力される。スキブSに微弱電流が流されており、スキブ
Sが正常か断線しているかによりその端子電圧が異なる
。図5に示すように、この実施例では、加速度データの
A/D変換作業終了時点で、スキブ端子電圧データのA
/D変換を開始するためのA/D割込ルーチンIxが実
行される。すなわち、加速度データのA/D変換開始指
令信号を出力するための第1タイマー割込ルーチンIa
′と加速度評価プログラムのための第2タイマー割込ル
ーチンIb′との間で、A/D割込ルーチンIxが実行
されるのである。第1タイマー割込ルーチンIa′でセ
ットされる割込予定時間T1′は、加速度信号のA/D
変換とスキブ端子電圧のA/D変換のために必要とされ
る時間の合計値より長い。また、第2タイマー割込ルー
チンIb′でセットされる割込予定時間T2′は、図3
,図4の実施例の割込予定時間T2より短い。加速度の
サンプリングサイクルT′は、図3,図4の実施例のサ
イクルTと等しい。A/D割込ルーチンIxは第1タイ
マー割込ルーチンIa′と同様に非常に短い時間で終了
する。FIGS. 5-7 show other embodiments of the invention. In this embodiment, analog data from the acceleration sensor 10 and other analog data, such as the voltage at one terminal of the squib S, are also input to the A/D converter 20 (see FIG. 2). A weak current is flowing through the squib S, and the terminal voltage varies depending on whether the squib S is normal or disconnected. As shown in FIG. 5, in this embodiment, when the A/D conversion work of acceleration data is completed, the A/D conversion of squib terminal voltage data is
A/D interrupt routine Ix is executed to initiate the /D conversion. That is, the first timer interrupt routine Ia for outputting the A/D conversion start command signal of acceleration data.
' and the second timer interrupt routine Ib' for the acceleration evaluation program, the A/D interrupt routine Ix is executed. The scheduled interrupt time T1' set in the first timer interrupt routine Ia' is the A/D of the acceleration signal.
This is longer than the total time required for conversion and A/D conversion of the squib terminal voltage. Furthermore, the scheduled interrupt time T2' set in the second timer interrupt routine Ib' is shown in FIG.
, shorter than the scheduled interrupt time T2 of the embodiment of FIG. The acceleration sampling cycle T' is equal to the cycle T of the embodiments of FIGS. 3 and 4. The A/D interrupt routine Ix ends in a very short time like the first timer interrupt routine Ia'.
【0019】この実施例では、図7のタイマー割込ルー
チンにおいて、ステップ100,101,102′,1
03,200が、第1タイマー割込ルーチンIa′を構
成する。また、ステップ100,104′,105,2
01,106,107,108が、第2タイマー割込ル
ーチンIb′を構成する。ステップ103の後のステッ
プ200では、A/D割込要求フラグがセットされる。
これにより、加速度データのA/D変換作業が終了して
A/D変換終了フラグがセットされた時に、即座にA/
D割込ルーチンIxが実行されるのである。また、ステ
ップ105の後のステップ201では、この第2タイマ
ー割込ルーチンIb′の前のA/D割込ルーチンIxで
変換が開始されたスキブ端子電圧データが、上記専用レ
ジスタから専用RAMに移されてセーブされる。これに
より、この第2タイマー割込ルーチンIb′の後の第1
タイマー割込ルーチンIa′で変換が開始される加速度
データが専用レジスタに入った時に、スキブ端子電圧デ
ータが消滅することはない。In this embodiment, steps 100, 101, 102', 1 in the timer interrupt routine of FIG.
03,200 constitutes the first timer interrupt routine Ia'. Also, steps 100, 104', 105, 2
01, 106, 107, and 108 constitute the second timer interrupt routine Ib'. In step 200 after step 103, an A/D interrupt request flag is set. As a result, when the A/D conversion work of acceleration data is completed and the A/D conversion completion flag is set, the A/D conversion work is immediately performed.
The D interrupt routine Ix is executed. Further, in step 201 after step 105, the squib terminal voltage data whose conversion was started in the A/D interrupt routine Ix before the second timer interrupt routine Ib' is transferred from the dedicated register to the dedicated RAM. and saved. As a result, the first timer interrupt routine after this second timer interrupt routine Ib'
When the acceleration data whose conversion is started in the timer interrupt routine Ia' enters the dedicated register, the squib terminal voltage data does not disappear.
【0020】A/D割込ルーチンIxでは図6に示され
ているように、このA/D割込ルーチンIxの前に変換
された加速度データを上記専用レジスタから専用RAM
に移してセーブする(ステップ300)。これにより、
このA/D割込ルーチンIxで変換が開始されるスキブ
端子電圧データが専用レジスタに入った時に、加速度デ
ータが消滅することはない。次に、スキブ端子電圧のA
/D変換開始指令信号を出力し(ステップ301)、A
/D割込要求フラグをクリアする(ステップ302)。In the A/D interrupt routine Ix, as shown in FIG. 6, the acceleration data converted before the A/D interrupt routine Ix is transferred from the dedicated register to the dedicated RAM.
and save it (step 300). This results in
When the squib terminal voltage data whose conversion is started by this A/D interrupt routine Ix enters the dedicated register, the acceleration data will not disappear. Next, the squib terminal voltage A
/D conversion start command signal is output (step 301),
Clear the /D interrupt request flag (step 302).
【0021】[0021]
【発明の効果】以上説明したように、本発明では、A/
D変換開始指令のための第1のタイマー割込ルーチン終
了後からデータ変換データに基づく演算のための第2の
タイマー割込ルーチンを開始するまでの時間は、A/D
変換作業を待つためには費やされず、他のプログラム実
行のために費やされるため、マイクロコンピュータを効
率良く作動させることができる。また、タイマー割込ル
ーチン同士の干渉がなくなるのでマイクロコンピュータ
の暴走を確実に防止できる。[Effects of the Invention] As explained above, in the present invention, A/
A/D
The time is not spent waiting for conversion work, but is used for executing other programs, allowing the microcomputer to operate more efficiently. Furthermore, since there is no interference between timer interrupt routines, it is possible to reliably prevent the microcomputer from running out of control.
【図1】本発明の制御システムの基本構成を示すブロッ
ク図である。FIG. 1 is a block diagram showing the basic configuration of a control system of the present invention.
【図2】本発明に係わる制御システムの一実施例を概略
的に示す回路図である。FIG. 2 is a circuit diagram schematically showing an embodiment of a control system according to the present invention.
【図3】図2のマイクロコンピュータで実行されるタイ
マー割込ルーチンのタイムチャートである。FIG. 3 is a time chart of a timer interrupt routine executed by the microcomputer in FIG. 2;
【図4】図3のタイマー割込ルーチンを示すフローチャ
ートである。FIG. 4 is a flowchart showing the timer interrupt routine of FIG. 3;
【図5】マイクロコンピュータでタイマー割込ルーチン
とA/D割込ルーチンを実行する場合のタイムチャート
である。FIG. 5 is a time chart when the microcomputer executes a timer interrupt routine and an A/D interrupt routine.
【図6】図5のタイムチャートにおけるタイマー割込ル
ーチンを示すフローチャートである。FIG. 6 is a flowchart showing a timer interrupt routine in the time chart of FIG. 5;
【図7】図5のタイムチャートにおけるA/D割込ルー
チンを示すフローチャートである。FIG. 7 is a flowchart showing an A/D interrupt routine in the time chart of FIG. 5;
1,20 A/Dコンバータ 1,20 A/D converter
Claims (1)
るA/Dコンバータと、このA/Dコンバータからのデ
ジタル変換データを処理するマイクロコンピュータとを
備えた信号処理システムにおいて、このマイクロコンピ
ュータが、第1割込信号と第2割込信号とを交互に発生
させるタイマー割込信号発生手段と、第1割込信号に応
答してA/DコンバータにA/D変換開始指令信号を出
力する第1タイマー割込ルーチン実行手段と、第2割込
信号に応答してデジタル変換データに基づく演算を行う
第2タイマー割込ルーチン実行手段とを備え、第1割込
信号発生時点から第2割込信号発生時点までの時間は、
A/DコンバータでのA/D変換作業に要する時間より
長く設定されていることを特徴とする信号処理システム
。1. A signal processing system comprising: an A/D converter that converts analog data into digital data; and a microcomputer that processes digitally converted data from the A/D converter; a timer interrupt signal generating means that alternately generates an interrupt signal and a second interrupt signal; and a first timer that outputs an A/D conversion start command signal to the A/D converter in response to the first interrupt signal. The second timer interrupt routine execution means includes an interrupt routine execution means and a second timer interrupt routine execution means for performing an operation based on digital conversion data in response to the second interrupt signal, and generates the second interrupt signal from the time when the first interrupt signal is generated. The time up to the point is
A signal processing system characterized in that the time is set longer than the time required for A/D conversion work in an A/D converter.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7217891A JPH04287747A (en) | 1991-03-13 | 1991-03-13 | Signal processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7217891A JPH04287747A (en) | 1991-03-13 | 1991-03-13 | Signal processing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04287747A true JPH04287747A (en) | 1992-10-13 |
Family
ID=13481716
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7217891A Pending JPH04287747A (en) | 1991-03-13 | 1991-03-13 | Signal processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04287747A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003017319A (en) * | 2001-06-29 | 2003-01-17 | Denso Corp | Current control device for inductive load |
| JP2011061512A (en) * | 2009-09-10 | 2011-03-24 | Denso Corp | A/d conversion processing apparatus |
| US8046087B2 (en) | 2003-11-04 | 2011-10-25 | Hitachi, Ltd. | Electronic controller for power converter and motor drive circuit |
-
1991
- 1991-03-13 JP JP7217891A patent/JPH04287747A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003017319A (en) * | 2001-06-29 | 2003-01-17 | Denso Corp | Current control device for inductive load |
| US8046087B2 (en) | 2003-11-04 | 2011-10-25 | Hitachi, Ltd. | Electronic controller for power converter and motor drive circuit |
| US8131388B2 (en) | 2003-11-04 | 2012-03-06 | Hitachi, Ltd. | Electronic controller for power converter and motor drive circuit |
| JP2011061512A (en) * | 2009-09-10 | 2011-03-24 | Denso Corp | A/d conversion processing apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1810887A2 (en) | Vehicle control unit and vehicle control method | |
| JPS5949350A (en) | Contents protection method for backup memory of car controlling computer | |
| JPS59196465A (en) | Detection of wheel speed and/or wheel acceleration/deceleration | |
| JP2875040B2 (en) | Vehicle safety device control system | |
| JPH04287747A (en) | Signal processing system | |
| JP2643362B2 (en) | Charge control circuit | |
| JP2002227662A (en) | Electronic control unit | |
| JPH0934518A (en) | Control processor | |
| JP2001063326A (en) | Tire pressure warning device | |
| JP3332651B2 (en) | Pump control method for negative pressure brake | |
| CN112983610B (en) | Catalyst detection method and hybrid vehicle | |
| JPH11287140A (en) | Engine fail-safe control unit | |
| JP3901230B2 (en) | Pachinko game machine | |
| CN112113777B (en) | Slope signal disabling method, slope signal disabling device and vehicle | |
| JPH0746768A (en) | In-vehicle charger display | |
| JP3538358B2 (en) | Programmable controller | |
| JP2659625B2 (en) | Starting device for vehicle occupant protection device | |
| JP3441092B2 (en) | Startup control method for brushless motor | |
| JP2741461B2 (en) | Ignition control device for vehicle safety device | |
| JPH07196003A (en) | Control system for vehicle safety device | |
| JP2925452B2 (en) | Airbag control device | |
| JPH08197484A (en) | Robot system | |
| KR100471199B1 (en) | Ignition timing compensation device according to brake signal and method | |
| JPH0683652A (en) | Micro computer system | |
| JP3037384B2 (en) | Operation control method of vehicle safety device |