JP2947667B2 - Pulse signal output control device - Google Patents

Pulse signal output control device

Info

Publication number
JP2947667B2
JP2947667B2 JP4084026A JP8402692A JP2947667B2 JP 2947667 B2 JP2947667 B2 JP 2947667B2 JP 4084026 A JP4084026 A JP 4084026A JP 8402692 A JP8402692 A JP 8402692A JP 2947667 B2 JP2947667 B2 JP 2947667B2
Authority
JP
Japan
Prior art keywords
time
pulse signal
value
output
duty value
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 - Lifetime
Application number
JP4084026A
Other languages
Japanese (ja)
Other versions
JPH05288262A (en
Inventor
博文 東田
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.)
Denso Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP4084026A priority Critical patent/JP2947667B2/en
Publication of JPH05288262A publication Critical patent/JPH05288262A/en
Application granted granted Critical
Publication of JP2947667B2 publication Critical patent/JP2947667B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はパルス信号出力制御装置
に関し、特に一定周期でかつ可変のデューティ値のパル
ス信号を出力して、例えばエンジンのアイドル回転数制
御弁の開度や無段変速装置のギヤ比などを連続的に制御
するためのパルス信号出力制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pulse signal output control device, and more particularly to a pulse signal output device which outputs a pulse signal having a constant cycle and a variable duty value, for example, an opening of an engine idle speed control valve or a continuously variable transmission. The present invention relates to a pulse signal output control device for continuously controlling a gear ratio and the like.

【0002】[0002]

【従来の技術】従来、この種の一定周期のパルス信号を
出力させるにあたっては、例えば図5のタイミング図に
示されるように、該パルス信号の出力周期毎にCPU内
部のタイマで発生される時間割込信号の割込時刻におい
て該パルス信号が立ち上げられ(該CPUからオン信号
が出力され)、このようにして立ち上げられたパルス信
号の次の立ち下げは、上記立ち上がり時に該CPU内の
コンペアタイマ(コンペアレジスタ)に、そのときの要
求出力値(すなわち要求されるデューティ値)に応じ
て、その立ち下がり時刻(該CPUの出力信号オフ時
刻)をセットする(例えば要求出力値が20%の場合で
あれば、上記立ち上がり時刻から該周期の20%に相当
する時間だけ遅れた時刻をセットする)ことによってな
されていた。そして仮に上記時間割込信号の割込み時に
上記要求出力値が0%となっている場合でも、該割込み
時毎に(したがって上記一定周期毎に)0%か否かを判
断し、もし0%の場合には、上記オン出力をせず(すな
わちパルス信号の立ち上げをせず)、そのまま出力信号
オフ状態を継続させていた。
2. Description of the Related Art Conventionally, in order to output a pulse signal of a constant cycle of this kind, for example, as shown in a timing chart of FIG. The pulse signal rises at the interruption time of the interrupt signal (the ON signal is output from the CPU), and the next fall of the pulse signal thus risen occurs at the time of the above-mentioned rise. The fall time (the output signal off time of the CPU) is set in the timer (compare register) according to the required output value (ie, the required duty value) at that time (for example, when the required output value is 20%). In this case, a time delayed from the rising time by a time corresponding to 20% of the cycle is set). Even if the required output value is 0% at the time of the interruption of the time interrupt signal, it is determined whether or not it is 0% at each interruption (therefore, at the constant period). In this case, the output signal is not output (that is, the pulse signal does not rise) and the output signal is kept off.

【0003】したがって、例えば上記図5のに示され
るように、上記割込み時刻が過ぎた直後に、該要求出力
値が0%から0%以外の値(図示の場合は20%)に変
化した場合にも、実際にオン出力が開始される(すなわ
ちパルス信号が立ち上げられる)のは、次の周期(すな
わち次の時間割込み時)まで待たねばならず、それだけ
応答遅れが生ずるという問題点があった。
Therefore, for example, as shown in FIG. 5, immediately after the interruption time, the requested output value changes from 0% to a value other than 0% (20% in the case shown). However, there is a problem that the ON output is actually started (that is, the pulse signal rises) until the next cycle (that is, the next time interrupt), and a response delay occurs. Was.

【0004】また上記した従来技術によると、図6に示
されるように、該要求出力値が0%以外の値(図示の場
合は50%)となっている間において(すなわち0%以
外のデューティ値での制御がなされている期間中に)、
該図6のに示されるように、あるパルス立ち上がりの
タイミングで(すなわち時間割込があった時点で)、自
分よりもレベルの高い割込処理を実行中の場合、実際に
該パルスの立ち上がり(すなわち該CPUからのオン信
号の出力)が可能なのは、その割込処理が終了した後で
あり、それだけ該オン信号の出力の開始時期が遅れるこ
とになる。
According to the above-mentioned prior art, as shown in FIG. 6, while the required output value is a value other than 0% (50% in the illustrated case) (ie, a duty other than 0%). Value control),
As shown in FIG. 6, at the timing of a certain pulse rising (that is, at the time when a time interrupt occurs), when an interrupt process having a higher level than that of itself is being executed, the rising of the pulse (that is, The output of the ON signal from the CPU is possible after the interrupt processing is completed, and the start time of the output of the ON signal is delayed accordingly.

【0005】しかるにこのようにして該オン信号の出力
の開始時期が遅れると、該オン信号出力の終了時期(次
のパルスの立ち下がり時刻)は、該遅れたパルスの立ち
上がり時に上述したように該CPU内のコンペアタイマ
にセットされる時刻(すなわち該遅れたパルス立ち上が
り時刻から該周期と該要求出力値(例えば50%)との
積に相当する時間Aだけ遅れた時刻)となり、したがっ
て該オン時間Aはそのときの要求出力値に対応する長さ
となるが、その次の立ち上がりが正規の時間通りに実行
されると(すなわち上述したような割込処理による遅れ
を生ずることなく、次の時間割込があった時点で立ち上
がると)、そのときのオフ時間(B−A)が短くなり
(すなわち上記周期から上記時間Aを引いた値より短か
くなり)、したがってそのデューティ値A/Bと、その
とき要求されているデューティ値との間に誤差を生ずる
という問題点もあった。
However, if the start time of the output of the ON signal is delayed in this manner, the end time of the output of the ON signal (falling time of the next pulse) is set at the rising time of the delayed pulse as described above. The time set in the compare timer in the CPU (that is, the time delayed from the delayed pulse rising time by the time A corresponding to the product of the cycle and the required output value (for example, 50%)), and therefore, the ON time A has a length corresponding to the requested output value at that time, but if the next rise is executed at a regular time (that is, the next time interrupt is generated without delay due to the above-described interrupt processing). And the off-time (BA) at that time is shortened (that is, shorter than the value obtained by subtracting the time A from the above-mentioned period). Its duty value A / B, there is a problem that occurs an error between a duty value which is required at that time.

【0006】このように上記従来技術においては、上記
したような一定周期でかつ可変のデューティ値のパルス
信号を出力するにあたり、該パルス信号の立ち上げは、
該CPU内のタイマで所定周期毎に発生される時間割込
信号の割込時刻でなされ、一方該パルス信号の次の立ち
下げは、該立ち上がり時に該CPU内のコンペアタイマ
(コンペアレジスタ)に上述したようにしてセットされ
る立ち下がり時刻でなされるようにされているため、上
記図5に示されるように上記要求デューティ値が0%か
らそれ以外の値に変化した場合における応答遅れや、上
記図6に示されるように該要求デューティ値が0%以外
の値となっている期間中での割込処理の遅れにもとづく
出力デューティ値のずれなどを生ずるという問題点があ
る。
As described above, in the prior art, when outputting a pulse signal having a constant cycle and a variable duty value as described above, the rise of the pulse signal
The next fall of the pulse signal is made at the time of the interruption of the time interruption signal generated at predetermined intervals by the timer in the CPU, while the compare timer (compare register) in the CPU described above at the time of the rise. In this case, the response delay is set when the required duty value changes from 0% to any other value as shown in FIG. As shown in FIG. 6, there is a problem that the output duty value shifts due to the delay of the interrupt processing during the period in which the required duty value is a value other than 0%.

【0007】[0007]

【発明が解決しようとする課題】本発明はかかる課題を
解決するためになされたもので、一定周期でそのデュー
ティ値が可変とされるパルス信号を出力するにあたり、
該要求デューティ値が0%からそれ以外の値に変化した
場合における応答性を向上させ、更にまた該要求デュー
ティ値が0%以外の値となっている期間中での該パルス
信号の出力デューティ値を、他から割込処理などの有無
にかかわらず、ほぼ要求値通りとなしうるようにしたも
のである。
SUMMARY OF THE INVENTION The present invention has been made in order to solve the above-mentioned problem. In outputting a pulse signal whose duty value is variable at a constant period,
Responsiveness when the required duty value changes from 0% to any other value is improved, and further, the output duty value of the pulse signal during a period when the required duty value is a value other than 0% Irrespective of the presence / absence of interrupt processing or the like from other sources, it is possible to almost fulfill the required value.

【0008】[0008]

【課題を解決するための手段】かかる課題を解決するた
めに本発明の一形態によれば、コンペアレジスタにセッ
トされた時刻に基づき、そのデューティ値が可変とされ
るパルス信号を出力するパルス信号出力制御装置であっ
て、要求されるデューティ値が0%以外の値となってい
る間は、該パルス信号の前回の立ち上がり及び立ち下が
りが検出された時刻から、それぞれ該デューティ値に応
じた該パルス信号のオン時間及びオフ時間だけ遅れた時
刻を該コンペアレジスタにセットし、該セットされた時
刻において該パルス信号の次の立ち下げ及び立ち上げが
なされる手段をそなえることを特徴とする、パルス信号
出力制御装置が提供される。
According to an embodiment of the present invention, there is provided a pulse signal for outputting a pulse signal having a variable duty value based on a time set in a compare register. In the output control device, while the required duty value is a value other than 0%, the pulse signal corresponding to the duty value is determined from the time when the previous rising and falling edges of the pulse signal were detected. A pulse which is characterized by setting a time delayed by an on-time and an off-time of a pulse signal in the compare register, and means for performing the next falling and rising of the pulse signal at the set time. A signal output control device is provided.

【0009】また本発明の他の形態によれば、コンペア
レジスタにセットされた時刻に基づき、そのデューティ
値が可変とされるパルス信号を出力するパルス信号出力
制御装置であって、要求されるデューティ値が0%から
それ以外の値に変化したとき、該コンペアレジスタにオ
ン時刻をセットし、該セットされたオン時刻において該
パルス信号を立ち上げる手段、及び要求されるデューテ
ィ値が0%以外の値となっている間は、該パルス信号の
前回の立ち上がり及び立ち下がりが検出された時刻か
ら、それぞれ該デューティ値に応じた該パルス信号のオ
ン時間及びオフ時間だけ遅れた時刻を該コンペアレジス
タにセットし、該セットされた時刻において該パルス信
号の次の立ち下げ及び立ち上げがなされる手段をそなえ
ることを特徴とする、パルス信号出力制御装置が提供さ
れる。
According to another aspect of the present invention, there is provided a pulse signal output control device for outputting a pulse signal having a variable duty value based on a time set in a compare register. When the value changes from 0% to another value, an on-time is set in the compare register, means for starting the pulse signal at the set on-time, and a required duty value other than 0% While the value is a value, a time delayed by the ON time and the OFF time of the pulse signal corresponding to the duty value from the time when the previous rising and falling of the pulse signal was detected is stored in the compare register. Setting means for setting the pulse signal to fall and rise at the set time. Pulse signal output control device is provided.

【0010】すなわち本発明は、上記パルス信号の立ち
上げおよび立ち下げが、ともに該CPU内のコンペアタ
イマ(コンペアレジスタ)にセットされる時刻において
なされるようにした点に特徴を有するもので、先ず上記
要求されるデューティ値が0%からそれ以外の値に変化
したときには、該変化が検出された時点直後の時刻(該
変化が検出されてから実際に該コンペアレジスタにオン
時刻をセットするに必要な時間を見込んだ時刻、例えば
該変化が検出された時点から数マイクロ秒後の時刻)が
該コンペアレジスタにセットされ、該セットされた時刻
において(該CPU内のタイマの経過時間が該コンペア
レジスタにセットされた時刻と一致した時点で)、該パ
ルス信号がオンとされる(すなわち該パルス信号が立ち
上げられる)。
That is, the present invention is characterized in that the rise and fall of the pulse signal are both performed at the time set in a compare timer (compare register) in the CPU. When the required duty value changes from 0% to any other value, the time immediately after the change is detected (necessary to set the ON time in the compare register after the change is detected) (For example, a time several microseconds after the change is detected) is set in the compare register, and at the set time (the elapsed time of the timer in the CPU is compared to the compare register). At the time when the pulse signal coincides with the set time), the pulse signal is turned on (that is, the pulse signal rises).

【0011】また該要求されるデューティ値が0%以外
の値となっている間は、該パルス信号の立ち上がりが検
出された時点で次の立ち下がり時刻(該立ち下がり時刻
は、該コンペアレジスタに記憶されている上記立ち上が
り時刻から該パルス信号の周期とそのとき要求されてい
るデューティ値との積に相当する所謂オン時間だけ遅れ
た時刻とされる)が該コンペアレジスタにセットされ、
該セットされた時刻において該パルス信号がオフとされ
る(すなわち次の立下げがなされる)。そして該パルス
信号の立ち下がりが検出された時点で次の立ち上がり時
刻(該立ち上がり時刻は、該コンペアレジスタに記憶さ
れている上記立ち下がり時刻から該周期と上記オン時間
(すなわち該周期と該デューティ値との積に相当する)
との差に相当する所謂オフ時間だけ遅れた時刻とされ
る)が該コンペアレジスタにセットされ、該セットされ
た時刻において該パルス信号がオンとされる(すなわち
次の立ち上げがなされる)。
While the required duty value is a value other than 0%, the next falling time (the falling time is stored in the compare register) when the rising of the pulse signal is detected. A time delayed from the stored rising time by a so-called on-time corresponding to the product of the cycle of the pulse signal and the duty value required at that time) is set in the compare register,
At the set time, the pulse signal is turned off (that is, the next falling is performed). When the falling of the pulse signal is detected, the next rising time (the rising time is calculated from the falling time stored in the compare register and the cycle and the on-time (that is, the cycle and the duty value). Is equivalent to the product of
Is set to the compare register, and the pulse signal is turned on at the set time (that is, the next start-up is performed).

【0012】[0012]

【作用】上記構成によれば、該要求されるデューティ値
が0%からそれ以外の値に変化したときには、該要求さ
れるデューティ値が変化した時刻を基準にして該パルス
信号のオン出力が開始されるので、該出力開始時(又は
再開時)の応答性を向上させることができる。更に該要
求されるデューティ値が0%以外の値となっている間
は、該パルス信号の前回の立上り又は立下り時刻(上述
したようにCPU内のコンペアレジスタに記憶されてい
る)を基準にして、該パルス信号の次の立下り又は立上
り時刻が設定され、該設定された時刻において該立下げ
又は立上げがなされる(すなわち該パルス信号の前回の
エッジを基準にして次回の立下げ又は立上げが実行され
る)ので、上述したような他からの割込処理による処理
の遅れを生ずることなく、正確なデューティ値のパルス
信号を出力することができる。
According to the above arrangement, when the required duty value changes from 0% to any other value, the on-output of the pulse signal starts based on the time at which the required duty value changes. Therefore, the response at the time of starting (or at the time of restarting) the output can be improved. Further, while the required duty value is a value other than 0%, the pulse signal is referenced with respect to the previous rising or falling time (stored in the compare register in the CPU as described above). Then, the next falling or rising time of the pulse signal is set, and the falling or rising is performed at the set time (that is, the next falling or rising with reference to the previous edge of the pulse signal). Since the start-up is executed), it is possible to output a pulse signal having an accurate duty value without causing a delay in processing due to another interrupt processing as described above.

【0013】[0013]

【実施例】図1および図2は、本発明のパルス信号出力
制御装置におけるCPU(マイクロコンピュータ)内で
の制御手順の1実施例をフローチャートで示すもので、
図1はメインの制御手順を示しており、また図2はコン
ペア割込(タイマの経過時間がコンペアレジスタにセッ
トされている時刻と一致したときに生ずる割込み)がな
されたときの制御手順を示している。
1 and 2 are flowcharts showing one embodiment of a control procedure in a CPU (microcomputer) in a pulse signal output control device according to the present invention.
FIG. 1 shows the main control procedure, and FIG. 2 shows the control procedure when a compare interrupt (interruption that occurs when the elapsed time of the timer coincides with the time set in the compare register) is performed. ing.

【0014】先ず図1において、ステップ1で出力要求
値が計算される(例えば該パルス信号によってエンジン
のアイドル回転数制御弁の開度を制御する場合であれ
ば、エンジン回転数、エアコン信号、ニュートラルスイ
ッチからの信号、およびエンジン水温などによって、該
出力要求値すなわち該要求されるデューティ値が決定さ
れる)。次いでステップ2で該計算された出力要求値が
0%か否かが判別される。そしてイエスの場合(0%の
場合)にはステップ7に進んで該CPU内の出力ポート
レジスタにオフが設定されるとともにステップ8で該C
PU内部に即時モード(コンペアレジスタには関係な
く、該出力ポートレジスタの内容が、その設定と同時に
そのまま出力ポートに出力されるモード)が設定され、
これにより直ちにその出力がオフとされる(パルスが立
ち下げられる)。
First, in FIG. 1, an output demand value is calculated in step 1 (for example, in the case where the opening of an engine idle speed control valve is controlled by the pulse signal, the engine speed, air conditioner signal, neutral The output request value, that is, the required duty value is determined by a signal from the switch, the engine water temperature, and the like. Next, at step 2, it is determined whether the calculated output request value is 0%. If the answer is yes (in the case of 0%), the process proceeds to step 7 where the output port register in the CPU is set to off and at step 8
Immediate mode (mode in which the contents of the output port register are output to the output port simultaneously with the setting, regardless of the compare register) is set inside the PU,
As a result, the output is immediately turned off (the pulse falls).

【0015】一方、該ステップ2の判定がノウの場合
(上記出力要求値が0%以外の場合)には、ステップ3
に進み、現在タイマモード(すなわち上記コンペアレジ
スタにセットされた時刻においてそのオン又はオフ(パ
ルスの立上げ又は立下げ)がなされるモード)となって
いるか否かが判別され、イエスの場合(すなわち既にタ
イマモードとなっている場合)にはそのままリターンす
る。一方、ノウの場合にはステップ4に進んで、CPU
内部に上記タイマモードが設定される。次いでステップ
5で、そのときの時刻から数マイクロ秒あとの時刻をオ
ン時刻としてコンペアレジスタにセットする(すなわち
現在の時刻をCPU内のタイマで読みとってから、該コ
ンペアレジスタに該オン時刻をセットするに必要な時間
として上記数マイクロ秒を見込んだ時刻を該コンペアレ
ジスタにセットする)。またステップ6で、上記出力ポ
ートレジスタに出力オンが設定される。これにより、該
タイマの経過時間が該コンペアレジスタにセットされて
いるオン時刻と一致したときに、該CPUからオン信号
が出力される(パルスが立ち上げられる)。このように
して該出力要求値の0%からの変化が検出される時刻を
基準として、該基準時刻とほぼ同時に(実際には上述し
たように該セットに必要な時間として数マイクロ秒が見
込まれる)、該パルス信号が立ち上げられる。
On the other hand, if the determination in step 2 is no (if the output request value is other than 0%), step 3
It is determined whether the current mode is the timer mode (that is, the mode in which the ON / OFF (pulse rise or fall) is performed at the time set in the compare register). If it is already in the timer mode), the process returns. On the other hand, in the case of know, the process proceeds to step 4 where the CPU
The timer mode is set internally. Next, at step 5, a time several microseconds after the time at that time is set as an on-time in the compare register (that is, the current time is read by a timer in the CPU, and then the on-time is set in the compare register). Is set in the compare register, taking into account the above-mentioned several microseconds as the time required for the operation. In step 6, output on is set in the output port register. Thus, when the elapsed time of the timer matches the ON time set in the compare register, an ON signal is output from the CPU (pulse rises). In this way, with reference to the time at which the change in the output request value from 0% is detected, almost simultaneously with the reference time (actually, several microseconds are expected as the time required for the set as described above). ), The pulse signal rises.

【0016】次に図2に示されるコンペア割込は、上述
したように、タイマの経過時間がコンペアレジスタにセ
ットされている時刻と一致したときに、その割込みがな
され、先ずステップ11で現在、上記タイマモードとな
っているか否かがCPU内で判別され、イエスであれは
ステップ12に進んで今回、パルス信号が立ち上げられ
たか、あるいは立ち下げられたかが、上記出力ポートレ
ジスタにオン・オフの何れが設定されているかによって
判別される。
Next, the compare interrupt shown in FIG. 2 is interrupted when the elapsed time of the timer coincides with the time set in the compare register, as described above. It is determined in the CPU whether or not the timer mode is set. If the answer is yes, the process proceeds to step 12 to determine whether the pulse signal has risen or fall this time by turning on / off the output port register. It is determined depending on which is set.

【0017】そしてイエスの場合(今回、パルス信号の
立ち上げがなされた場合)には、ステップ13に進んで
再度、タイマモードの設定が確認的になされ、次いでス
テップ14でコンペアレジスタに次のオフ時刻(立ち下
がり時刻)が設定される。ここで該オフ時刻は、該コン
ペアレジスタに記憶されている今回のオン時刻を基準と
して、該基準時刻から該パルスの周期とそのとき要求さ
れているデューティ値との積に相当する時間だけあとの
時刻とされる。またステップ15で上記出力ポートレジ
スタに出力オフが設定される。これにより、該タイマの
経過時間が該コンペアレジスタにセットされているオフ
時刻と一致したときに、該CPUからの出力信号がオフ
とされる(パルスが立ち下げられる)。
If the answer is yes (if the pulse signal has risen this time), the process proceeds to step 13 where the timer mode setting is confirmed again. The time (falling time) is set. Here, the off-time is based on the current on-time stored in the compare register as a reference, and a time corresponding to the product of the pulse cycle and the duty value requested at that time after the reference time. It is time. In step 15, the output is set to OFF in the output port register. Thus, when the elapsed time of the timer matches the off time set in the compare register, the output signal from the CPU is turned off (pulse falls).

【0018】一方、上記ステップ12の判定がノウの場
合(今回、パルス信号の立ち下げがなされた場合)に
は、ステップ16に進んで再度、タイマモードの設定が
確認的になされ、次いでステップ17でコンペアレジス
タに次のオン時刻(立ち上がり時刻)が設定される。こ
こで該オン時刻は、該コンペアレジスタに記憶されてい
る今回のオフ時刻を基準として、該基準時刻から、該パ
ルスの周期から該パルスの周期とそのとき要求されてい
るデューティ値との積に相当する値を差し引いた値に相
当する時間だけあとの時刻とされる。またステップ18
で上記出力ポートレジスタに出力オンが設定される。こ
れにより、該タイマの経過時間が該コンペアレジスタに
セットされているオン時刻と一致したときに、該CPU
からオン信号が出力される(パルスが立ち上げられ
る)。
On the other hand, if the determination in step 12 is NO (if the pulse signal has fallen this time), the process proceeds to step 16 and the timer mode is set again again. Sets the next ON time (rise time) in the compare register. Here, the on-time is based on the current off-time stored in the compare register as a reference, and from the reference time, the product of the pulse period and the duty value required at that time from the pulse period. A time corresponding to a value obtained by subtracting the corresponding value is set as a later time. Step 18
Sets the output ON in the output port register. Thus, when the elapsed time of the timer matches the on-time set in the compare register, the CPU
Outputs an ON signal (pulse rises).

【0019】図3は本発明のパルス信号出力制御装置の
システム構成の1例を示すもので、上記パルス信号のデ
ューティ値に応じて、エンジンのアイドル回転数制御弁
の開度を制御する場合が示されている。すなわち該CP
U(マイクロコンピュータ)内部の入出力(I/O)装
置1の入力ポート側には、エンジン回転数、エアコン信
号、ニュートラルスイッチからの信号、およびエンジン
水温などがとり込まれ、これらのエンジン状態をもとに
して、そのときの要求開度に応じた要求出力値(デュー
ティ値)が、演算部(MPU)2において演算されると
ともに、該演算された要求出力値をもとにして出力パル
ス信号の次のオン又はオフ(立ち上がり又は立ち下が
り)時刻も演算され、該演算された次回のオン又はオフ
時刻TMがコンペアレジスタ4にセットされる。そして
タイマ3の経過時間が該コンペアレジスタ4にセットさ
れている時刻と一致した時刻になると、そのとき一致信
号CDが出力ポートレジスタ5に入力され、そのとき該
出力ポートレジスタにオン又はオフの何れが設定されて
いるかに応じて、該出力ポートレジスタ5の出力側から
該I/O装置1の出力ポート側にオン又はオフ指令が入
力され、これにより所定のデューティ値のパルス信号
が、該アイドル回転数制御弁(ISC弁)の開度信号と
して出力される。
FIG. 3 shows an example of the system configuration of the pulse signal output control device according to the present invention. In this case, the opening of the idle speed control valve of the engine is controlled in accordance with the duty value of the pulse signal. It is shown. That is, the CP
The input port side of the input / output (I / O) device 1 inside the U (microcomputer) receives an engine speed, an air conditioner signal, a signal from a neutral switch, an engine water temperature, etc. A required output value (duty value) corresponding to the required opening degree at that time is calculated in the calculating unit (MPU) 2 and an output pulse signal is calculated based on the calculated required output value. The next on or off (rising or falling) time is also calculated, and the calculated next on or off time TM is set in the compare register 4. When the elapsed time of the timer 3 coincides with the time set in the compare register 4, a coincidence signal CD is input to the output port register 5 at which time the output port register is turned on or off. Is set to ON or OFF from the output side of the output port register 5 to the output port side of the I / O device 1, whereby the pulse signal of a predetermined duty value is It is output as an opening signal of a rotation speed control valve (ISC valve).

【0020】図4は本発明のパルス信号出力制御装置で
の制御状況を示すタイミング図で、該図中に示される時
間割込は参考のために示したもので、本発明による制御
には関係がない。そして該図中、に示されるように要
求出力値が0%から0%以外の値(例えば20%)に変
化した場合には、上記図1のステップ5で設定される時
刻に相当するタイミング(したがって上記とほぼ同
時刻)に出力パルスが立ち上げられる。このようにして
出力パルスの立ち上げが上記時間割込とは関係なく、上
記要求出力値の0%からの変化が検出されたときになさ
れることは上述したとおりである。
FIG. 4 is a timing chart showing a control situation in the pulse signal output control device according to the present invention. The time interrupt shown in the figure is for reference, and the relationship with the control according to the present invention is not shown. Absent. When the required output value changes from 0% to a value other than 0% (for example, 20%) as shown in FIG. 1, the timing corresponding to the time set in step 5 in FIG. Therefore, at approximately the same time as described above, the output pulse rises. As described above, the rise of the output pulse is performed when a change in the required output value from 0% is detected, regardless of the time interruption.

【0021】更に該要求出力値が0%以外の値(例えば
20%)になっている間は、前回の立ち上がり時刻(例
えば)を基準にして次回の立ち下がり時刻が決定さ
れ、該時刻で出力パルスが立ち下げられると、該立ち
下がり時刻を基準にして次回の立ち上がり時刻が決
定され、該時刻で出力パルスが立ち上げられ、以下同
様の制御が繰返される。
Further, while the required output value is a value other than 0% (for example, 20%), the next fall time is determined based on the previous rise time (for example), and the output is made at that time. When the pulse falls, the next rise time is determined based on the fall time, the output pulse rises at that time, and the same control is repeated thereafter.

【0022】[0022]

【発明の効果】本発明によれば、要求されるデューティ
値が0%からそれ以外の値に変化した場合、該変化時点
から実際のパルス出力までの時間をきわめて短かくする
ことができ、応答性を向上させることができる。更に該
要求されるデューティ値が0%以外の値となっている間
での該パルス信号の出力デューティ値を、他からの割込
処理などによる影響をうけることなく、ほぼ要求値通り
に正確な値とすることができ、制御性の向上をもはかる
ことができる。
According to the present invention, when the required duty value changes from 0% to any other value, the time from the change point to the actual pulse output can be made very short, and the response time can be reduced. Performance can be improved. Further, the output duty value of the pulse signal while the required duty value is a value other than 0% can be accurately adjusted to almost the required value without being affected by interrupt processing from other sources. Value, and controllability can be improved.

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

【図1】本発明のパルス信号出力制御装置での制御手順
の1実施例をフローチャートで示す図である。
FIG. 1 is a flowchart showing one embodiment of a control procedure in a pulse signal output control device of the present invention.

【図2】本発明のパルス信号出力制御装置での制御手順
の1実施例をフローチャートで示す図である。
FIG. 2 is a flowchart showing one embodiment of a control procedure in the pulse signal output control device of the present invention.

【図3】本発明のパルス信号出力制御装置のシステム構
成の1例を示す図である。
FIG. 3 is a diagram illustrating an example of a system configuration of a pulse signal output control device according to the present invention.

【図4】本発明のパルス信号出力制御装置での制御状況
を説明するためのタイミング図である。
FIG. 4 is a timing chart for explaining a control situation in the pulse signal output control device of the present invention.

【図5】従来のパルス信号出力制御装置での制御状況を
説明するためのタイミング図である。
FIG. 5 is a timing chart for explaining a control situation in a conventional pulse signal output control device.

【図6】従来のパルス信号出力制御装置での制御状況を
説明するためのタイミング図である。
FIG. 6 is a timing chart for explaining a control situation in a conventional pulse signal output control device.

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

1…入出力(I/O)装置 2…演算部(MPU) 3…タイマ 4…コンペアタイマ(コンペアレジスタ) 5…出力ポートレジスタ DESCRIPTION OF SYMBOLS 1 ... Input / output (I / O) device 2 ... Operation part (MPU) 3 ... Timer 4 ... Compare timer (compare register) 5 ... Output port register

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 コンペアレジスタにセットされた時刻に
基づき、そのデューティ値が可変とされるパルス信号を
出力するパルス信号出力制御装置であって、要求される
デューティ値が0%以外の値となっている間は、該パル
ス信号の前回の立ち上がり及び立ち下がりが検出された
時刻から、それぞれ該デューティ値に応じた該パルス信
号のオン時間及びオフ時間だけ遅れた時刻を該コンペア
レジスタにセットし、該セットされた時刻において該パ
ルス信号の次の立ち下げ及び立ち上げがなされる手段を
そなえることを特徴とする、パルス信号出力制御装置。
1. A pulse signal output control device for outputting a pulse signal having a variable duty value based on a time set in a compare register, wherein a required duty value is a value other than 0%. While the pulse signal is set in the compare register at a time delayed from the time at which the previous rise and fall of the pulse signal were detected by the on time and the off time of the pulse signal corresponding to the duty value, respectively. A pulse signal output control device comprising means for causing the pulse signal to fall and rise next at the set time.
【請求項2】 コンペアレジスタにセットされた時刻に
基づき、そのデューティ値が可変とされるパルス信号を
出力するパルス信号出力制御装置であって、要求される
デューティ値が0%からそれ以外の値に変化したとき、
該コンペアレジスタにオン時刻をセットし、該セットさ
れたオン時刻において該パルス信号を立ち上げる手段、
及び要求されるデューティ値が0%以外の値となってい
る間は、該パルス信号の前回の立ち上がり及び立ち下が
りが検出された時刻から、それぞれ該デューティ値に応
じた該パルス信号のオン時間及びオフ時間だけ遅れた時
刻を該コンペアレジスタにセットし、該セットされた時
刻において該パルス信号の次の立ち下げ及び立ち上げが
なされる手段をそなえることを特徴とする、パルス信号
出力制御装置。
2. A pulse signal output control device for outputting a pulse signal whose duty value is variable based on a time set in a compare register, wherein a required duty value is from 0% to any other value. When changed to
Means for setting an on-time in the compare register, and raising the pulse signal at the set on-time;
While the required duty value is a value other than 0%, the on-time of the pulse signal corresponding to the duty value and the on-time of the pulse signal according to the duty value are respectively determined from the time when the previous rise and fall of the pulse signal were detected. A pulse signal output control device, characterized in that the pulse signal output control device is provided with means for setting a time delayed by an off-time in the compare register, and performing the next fall and rise of the pulse signal at the set time.
JP4084026A 1992-04-06 1992-04-06 Pulse signal output control device Expired - Lifetime JP2947667B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4084026A JP2947667B2 (en) 1992-04-06 1992-04-06 Pulse signal output control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4084026A JP2947667B2 (en) 1992-04-06 1992-04-06 Pulse signal output control device

Publications (2)

Publication Number Publication Date
JPH05288262A JPH05288262A (en) 1993-11-02
JP2947667B2 true JP2947667B2 (en) 1999-09-13

Family

ID=13819049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4084026A Expired - Lifetime JP2947667B2 (en) 1992-04-06 1992-04-06 Pulse signal output control device

Country Status (1)

Country Link
JP (1) JP2947667B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09229012A (en) * 1996-02-22 1997-09-02 Honda Motor Co Ltd Pulse signal output control device

Also Published As

Publication number Publication date
JPH05288262A (en) 1993-11-02

Similar Documents

Publication Publication Date Title
EP0088496B1 (en) Feedback automatic control apparatus
JP2947667B2 (en) Pulse signal output control device
JPH0639929B2 (en) Fuel correction device at start
JP3571425B2 (en) Ventilation fan control device
KR19990050653A (en) Children's idle speed control device and method
JP2003239835A (en) Method and system for controlling engine ignition timing for reducing exhaust gas
JPH0459461B2 (en)
US5389866A (en) Controller for a step motor
KR19980026998A (en) Idle control device by load compensation and its method
JPH0356417B2 (en)
JP2001200749A (en) Method and device for vehicle controlling drive unit
CN110011575B (en) Motor starting control method and device and air conditioner
US4620517A (en) Engine speed control apparatus
JP2588383B2 (en) Shading motor speed control device
JP2666603B2 (en) Heater control device
JPH06100410B2 (en) Operation control device for refrigerator
KR100249900B1 (en) Idle speed feedback control system and its method using engine revolution number
JPS60173331A (en) Control device for idle engine speed
JP2949943B2 (en) Electronic temperature controller
KR100290339B1 (en) Method for controlling idle speed according to throttle opening sensor
JP2502294B2 (en) Engine throttle valve control device
JPH05233532A (en) Time interruption processor for microcomputer
JPH0135171B2 (en)
JPH0299769A (en) Engine ignitor
JPS6128732A (en) Method of controlling number of idle revolutions of engine

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19981208

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990525

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090702

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090702

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100702

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100702

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110702

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110702

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120702

Year of fee payment: 13

EXPY Cancellation because of completion of term