JP3727763B2 - Power window control device - Google Patents
Power window control device Download PDFInfo
- Publication number
- JP3727763B2 JP3727763B2 JP27481397A JP27481397A JP3727763B2 JP 3727763 B2 JP3727763 B2 JP 3727763B2 JP 27481397 A JP27481397 A JP 27481397A JP 27481397 A JP27481397 A JP 27481397A JP 3727763 B2 JP3727763 B2 JP 3727763B2
- Authority
- JP
- Japan
- Prior art keywords
- pulse signal
- timer
- rotation
- determination
- process proceeds
- 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
- 238000000034 method Methods 0.000 claims description 350
- 238000001514 detection method Methods 0.000 claims description 142
- 230000000630 rising effect Effects 0.000 claims description 121
- 239000005357 flat glass Substances 0.000 claims description 71
- 230000004907 flux Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 description 7
- 102100030751 Eomesodermin homolog Human genes 0.000 description 5
- 101001064167 Homo sapiens Eomesodermin homolog Proteins 0.000 description 5
- 101000595526 Homo sapiens T-box brain protein 1 Proteins 0.000 description 4
- 102100036083 T-box brain protein 1 Human genes 0.000 description 4
- 230000001174 ascending effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 239000011521 glass Substances 0.000 description 4
- 101000890887 Homo sapiens Trace amine-associated receptor 1 Proteins 0.000 description 3
- 101100424383 Rattus norvegicus Taar4 gene Proteins 0.000 description 3
- 101150084220 TAR2 gene Proteins 0.000 description 3
- 102100040114 Trace amine-associated receptor 1 Human genes 0.000 description 3
- 230000005415 magnetization Effects 0.000 description 3
- 101000596093 Homo sapiens Transcription initiation factor TFIID subunit 1 Proteins 0.000 description 2
- 101000625358 Homo sapiens Transcription initiation factor TFIID subunit 2 Proteins 0.000 description 2
- 101150005271 TBF-1 gene Proteins 0.000 description 2
- 102100035222 Transcription initiation factor TFIID subunit 1 Human genes 0.000 description 2
- 102100025041 Transcription initiation factor TFIID subunit 2 Human genes 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Power-Operated Mechanisms For Wings (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、ウインドガラスを自動的に駆動させるパワーウインド制御装置に関する。
【0002】
【従来の技術】
ウインドガラスを自動的に駆動させるパワーウインド制御装置としては、モータに備えたアーマチュアシャフトがガラス昇降器を介してウインドガラスに結合されているものが知られている。そして、モータのアーマチュアシャフトに回転検出センサが結合されている。回転検出センサは、アーマチュアシャフト上に取付けられたマグネットと、このマグネットのまわりに配置されたホール素子とからなる。アーマチュアシャフトが回転するとマグネットが回転し、マグネットが回転することにより、ホール素子よりパルス状の検出信号(ホール電圧)が発生するため、コントローラにより検出信号のパルス幅を検出することによってアーマチュアシャフトの回転数が算出される。
【0003】
【発明が解決しようとする課題】
ところが、上記のパワーウインド制御装置において、回転検出センサのマグネットのN極およびS極の着磁にばらつきがあると、マグネットが回転する際に、ホール素子によって検出されるパルス状の検出信号のパルス幅に狂いが生ずるため、結果的に、コントローラによって算出した回転数データに誤差が発生して正確な回転数が得られ難いという問題点があった。
【0004】
また、回転検出センサのマグネットが外径の小さいものであると、着磁される磁極が単一のN極および単一のS極の2個が限度になるため、多数の極が着磁されたマグネットを用いる場合と比べて、細かい回転数データを得難いという問題点があった。
【0005】
【発明の目的】
この発明に係わるパワーウインド制御装置は、モータの正確な回転数を得ることによってウインドガラスの正確な位置データを得ることができるとともに、極数が少ない回転検出センサを用いても細かな回転数データを得ることができるパワーウインド制御装置を提供することを目的としている。
【0006】
【発明の構成】
【0007】
【課題を解決するための手段】
この発明の請求項1に係わるパワーウインド制御装置では、N極およびS極が対向配置されたマグネットをもち、モータのアーマチュアシャフトに結合されて該アーマチュアシャフトとともに回転する回転体と、回転体のまわりに回転体に非接触で配置されていてマグネットのN極およびS極の境界線から予め定められた角度まで回転体が回転した位置での磁束密度に対するしきい値をもち、しきい値によりパルス信号を発生する信号発生器を備えた回転検出センサと、オン切換えされることにより下降指令信号を発生する開スイッチと、オン切換えされることにより上昇指令信号を発生する閉スイッチと、オン切換えされることにより連続指令信号を発生する自動スイッチと、ウインドガラスに結合され、通電により該ウインドガラスを開側に駆動する一方、通電によりウインドガラスを閉側に駆動するアーマチュアシャフトをもつモータと、モータに電気的に接続された駆動回路と、電源に接続されているとともに駆動回路に電気的に接続され、開スイッチの下降指令信号、閉スイッチの上昇指令信号、自動スイッチの連続指令信号により電源の電流を駆動回路に与えるとともに、回転体が回転したときに回転検出センサが発生したパルス信号のエッジから、回転体が一回転したときに回転検出センサが発生したパルス信号のエッジまでの時間に基づきアーマチュアシャフトの回転速度を検出してウインドガラスの動作制御を行うマイクロコンピュータをもつ制御ユニットを備えている構成としたことを特徴としている。
【0008】
この発明の請求項2に係わるパワーウインド制御装置では、マグネットには、単一のN極および単一のS極の2極が対向配置され、回転検出センサには、第1のパルス信号を発生する第1の信号発生器と、この第1の信号発生器に対し予め定められた角度を介して配置されて第2のパルス信号を発生する第2の信号発生器とが備えられており、制御ユニットのマイクロコンピュータには、時間の経過によりカウントアップするフリーランニングカウンタと、回転検出センサの第1の信号発生器が発生した第1のパルス信号の立上りエッジから、その後に回転体が一回転したときに第1の信号発生器が発生した第1のパルス信号の立上りエッジまでの時間を回転体の回転毎に計測する第1のタイマと、回転検出センサの第2の信号発生器が発生した第2のパルス信号の立上りエッジから、その後に回転体が一回転したときに第2の信号発生器が発生した第2のパルス信号の立上りエッジまでの時間を回転体の回転毎に計測する第2のタイマと、回転検出センサの第1の信号発生器が発生した第1のパルス信号の立下りエッジから、その後に回転体が一回転したときに第1の信号発生器が発生した第1のパルス信号の立下りエッジまでの時間を回転体の回転毎に計測する第3のタイマと、回転検出センサの第2の信号発生器が発生した第2のパルス信号の立下りエッジから、その後に回転体が一回転したときに第2の信号発生器が発生した第2のパルス信号の立下りエッジまでの時間を回転体の回転毎に計測する第4のタイマを備え、制御ユニットのマイクロコンピュータは、フリーランニングカウンタの値と、第1、第2、第3、第4のタイマの値とによりパルス周期の算出処理を行う構成としたことを特徴としている。
【0009】
この発明の請求項3に係わるパワーウインド制御装置では、マグネットには、一対のN極および一対のS極の4極が対向配置され、回転検出センサには、第1のパルス信号を発生する第1の信号発生器と、この第1の信号発生器に対し予め定められた角度を介して配置されて第2のパルス信号を発生する第2の信号発生器とが備えられており、制御ユニットのマイクロコンピュータには、時間の経過によりカウントアップするフリーランニングカウンタと、回転検出センサの第1の信号発生器が発生した第1のパルス信号の立上りエッジから、その後に回転体が一回転したときに第1の信号発生器が発生した第1のパルス信号の立上りエッジまでの時間を回転体の回転毎に計測する第1のタイマと、回転検出センサの第2の信号発生器が発生した第2のパルス信号の立上りエッジから、その後に回転体が一回転したときに第2の信号発生器が発生した第2のパルス信号の立上りエッジまでの時間を回転体の回転毎に計測する第2のタイマと、上記第1のタイマに1/4周期隔て、回転検出センサの第1の信号発生器が発生した第1のパルス信号の立下りエッジから、その後に回転体が一回転したときに第1の信号発生器が発生した第1のパルス信号の立下りエッジまでの時間を回転体の回転毎に計測する第3のタイマと、上記第2のタイマに1/4周期隔て、回転検出センサの第2の信号発生器が発生した第2のパルス信号の立下りエッジから、その後に回転体が一回転したときに第2の信号発生器が発生した第2のパルス信号の立下りエッジまでの時間を回転体の回転毎に計測する第4のタイマと、上記第3のタイマに1/4周期隔て、回転検出センサの第1の信号発生器が発生した第1のパルス信号の立上りエッジから、その後に回転体が一回転したときに第1の信号発生器が発生した第1のパルス信号の立上りエッジまでの時間を回転体の回転毎に計測する第5のタイマと、上記第4のタイマに1/4周期隔て、回転検出センサの第2の信号発生器が発生した第2のパルス信号の立上りエッジから、その後に回転体が一回転したときに第2の信号発生器が発生した第2のパルス信号の立上りエッジまでの時間を回転体の回転毎に計測する第6のタイマと、上記第5のタイマに1/4周期隔て、回転検出センサの第1の信号発生器が発生した第1のパルス信号の立下りエッジから、その後に回転体が一回転したときに第1の信号発生器が発生した第1のパルス信号の立下りエッジまでの時間を回転体の回転毎に計測する第7のタイマと、上記第6のタイマに1/4周期隔て、回転検出センサの第2の信号発生器が発生した第2のパルス信号の立下りエッジから、その後に回転体が一回転したときに第2の信号発生器が発生した第2のパルス信号の立下りエッジまでの時間を回転体の回転毎に計測する第8のタイマとを備え、制御ユニットのマイクロコンピュータは、フリーランニングカウンタの値と、第1、第2、第3、第4、第5、第6、第7、第8のタイマの値とによりパルス周期の算出処理を行う構成としたことを特徴としている。
【0010】
【発明の作用】
この発明の請求項1に係わるパワーウインド制御装置において、回転検出センサは、回転体が回転し、信号発生器に対してマグネットのN極およびS極の境界線から予め定められた位置まで来ると、その位置でのマグネットの磁束密度に対してのしきい値によって信号発生器がパルス信号を発生する。それ故、回転体の円周上の同一点での計測が行われるから、回転体のマグネットに着磁のばらつきがあったとしても、パルス信号の周期に狂いが生ずることがなくなり、また、回転検出センサのマグネットが外径の小さいものであっても、細かい回転数データが得られる。
【0011】
この発明の請求項2に係わるパワーウインド制御装置において、制御ユニットのマイクロコンピュータは、それぞれが1/4周期つづ位相差をもっていて回転体の一回転毎にパルス信号を発生する第1、第2、第3、第4のタイマの値と、フリーランニングカウンタの値とによりパルス周期の算出処理を行うことによって、アーマチュアシャフトの回転速度が検出される。それ故、請求項1の作用に加え、マイクロコンピュータに内蔵するタイマが4個で済む。
【0012】
この発明の請求項3に係わるパワーウインド制御装置において、制御ユニットのマイクロコンピュータは、それぞれが1/8周期つづ位相差をもっていて回転体の一回転毎にパルス信号を発生する第1、第2、第3、第4、第5、第6、第7、第8のタイマの値と、フリーランニングカウンタの値とによりパルス周期の算出処理を行うことによって、アーマチュアシャフトの回転速度が検出される。それ故、請求項1の作用に加え、マイクロコンピュータに内蔵するタイマが8個で済む。
【0013】
【実施例】
図1ないし図14にはこの発明に係わるパワーウインド制御装置の第1実施例が示されている。
【0014】
図示されるパワーウインド制御装置1は、主として、開スイッチ2、閉スイッチ3、自動スイッチ4、イグニションスイッチ5、電源50、モータ6、回転検出センサ(センサ)7、ウインドガラス60、制御ユニット20から構成されており、制御ユニット20に、定電圧回路21、リセット回路22、電源電圧検出回路23、マイクロコンピュータCPU、駆動回路24が備えられている。
【0015】
開スイッチ2は、オン切換えされることによって下降指令信号を発生する。開スイッチ2が発生した下降指令信号は、図示しない電圧クランプ回路を通じて制御ユニット20に備えたマイクロコンピュータCPUの第1のスイッチ入力ポートP1に与えられる。
【0016】
閉スイッチ3は、オン切換えされることによって上昇指令信号を発生する。閉スイッチ3が発生した上昇指令信号は、図示しない電圧クランプ回路を通じて制御ユニット20に備えたマイクロコンピュータCPUの第2のスイッチ入力ポートP2に与えられる。
【0017】
自動スイッチ4は、オン切換えされることによって自動指令信号を発生する。自動スイッチ4が発生した自動指令信号は、図示しない電圧クランプ回路を通じて制御ユニット20に備えたマイクロコンピュータCPUの第3のスイッチ入力ポートP3に与えられる。
【0018】
イグニションスイッチ5は、一方が電源50に接続され、他方が制御ユニット20に備えた電源電圧検出回路23に接続されている。イグニションスイッチ5はオン切換えされることによって電源電圧検出回路23に電源50の電位を与える。
【0019】
電源電圧検出回路23は、他方がマイクロコンピュータCPUの電圧検出ポートP4に接続されている。電源電圧検出回路23は、マイクロコンピュータCPUに与えられる電源電圧のレベルを検出する。
【0020】
定電圧回路21は、一方がイグニションスイッチ5に接続され、他方がマイクロコンピュータCPUのレギュレータポートP5に接続されている。定電圧回路21は、イグニションスイッチ5がオン切換えされることによって、マイクロコンピュータCPUのレギュレータポートP5に所定のマイコンドライブ電圧を与える。
【0021】
リセット回路22は、一方がイグニションスイッチ5に接続され、他方がマイクロコンピュータCPUのリセットポートP6に接続されている。リセット回路22は、電源50が制御ユニット20に接続されることによって、マイクロコンピュータCPUのリセットポートP6を所定時間ローレベルとすることによってマイクロコンピュータCPUを初期状態にリセットする。
【0022】
駆動回路24は、リレーやスイッチングトランジスタなどによって構成されており、一方がマイクロコンピュータCPUの第1の出力ポートP7、第2の出力ポートP8にそれぞれ接続され、他方がモータ6に備えた第1のブラシ端子6a、第2のブラシ端子6bにそれぞれ接続されている。
【0023】
駆動回路24は、マイクロコンピュータCPUの第1の出力ポートP7がハイレベルになるとともに、マイクロコンピュータCPUの第2の出力ポートP8がローレベルになることによって正回転側がオンし、モータ6の第2のブラシ端子6bにローレベルを与えるとともに、モータ6の第1のブラシ端子6aに電源50の電位(ハイレベル)を与える。これに反して、駆動回路24は、マイクロコンピュータCPUの第1の出力ポートP7がローレベルになるとともに、マイクロコンピュータCPUの第2の出力ポートP8がハイレベルになることによって逆回転側がオンし、モータ6の第1のブラシ端子6aにローレベルを与えるとともに、モータ6の第2のブラシ端子6bに電源50の電位(ハイレベル)を与える。
【0024】
モータ6には、図示しないアーマチュアに備えたアーマチュアシャフト6cが図示しないガラス昇降器を介してウインドガラス60に結合されている。モータ6は、第1のブラシ端子6aにハイレベルが与えられ、第2のブラシ端子6bにローレベルが与えられることによってアーマチュアシャフト6cが正回転し、アーマチュアシャフト6cの正回転によってウインドガラス60を開ける。これに反して、モータ6は、第2のブラシ端子6bにハイレベルが与えられ、第2のブラシ端子6aにローレベルが与えられることによってアーマチュアシャフト6cが逆回転し、アーマチュアシャフト6cの逆回転によってウインドガラス60を閉める。モータ6のアーマチュアシャフト6cには回転検出センサ7が結合されている。
【0025】
回転検出センサ7には、図2に示されるように、回転体7a、第1の信号発生器7b、第2の信号発生器7cが備えられている。
【0026】
回転体7aには、単一のN極および単一のS極が対向配置されたマグネット7dが備えられている。回転体7aは、中心がモータ6のアーマチュアシャフト6cに同心に結合されているため、アーマチュアシャフト6cとともに回転する。
【0027】
第1、第2の信号発生器7b、7cは、回転体7aのまわりに配置されている。第1、第2の信号発生器7b、7cはそれぞれホール素子であり、回転体7aに非接触で配置されている。第1の信号発生器7bと第2の信号発生器7cとは回転体7aの円周上に90度の範囲を置いて配置されている。
【0028】
第1の信号発生器7bは、電源端子が定電圧回路21に接続されているとともに、接地端子が接地され、ホール電圧出力端子がマイクロコンピュータCPUの第1の回転検出ポートP9に接続されている。第1の信号発生器7bは、図2に示されるように、マグネット7dのS極に対してのしきい値THSと、マグネット7dのN極に対してのしきい値THNをもっているため、マグネット7dのS極とN極との境界線からS極側に予め定められた角度の位置まで回転体7aが回転した際に、しきい値THSによりホール電圧が発生し、マグネット7dのS極とN極との境界線からN極側に予め定められた角度の位置まで回転体7aが回転した際に、しきい値THNによりホール電圧が消滅する。
【0029】
第2の信号発生器7cは、電源端子が定電圧回路21に接続されているとともに、接地端子が接地され、ホール電圧出力端子がマイクロコンピュータCPUの第2の回転検出ポートP10に接続されている。第2の信号発生器7cは、第1の信号発生器7bと同様にして図2に示されるように、マグネット7dのS極に対してのしきい値THSと、マグネット7dのN極に対してのしきい値THNをもっているため、マグネット7dのS極とN極との境界線からS極側に予め定められた角度の位置まで回転体7aが回転した際に、しきい値THSによりホール電圧が発生し、マグネット7dのS極とN極との境界線からN極側に予め定められた角度の位置まで回転体7aが回転した際に、しきい値THNによりホール電圧が消滅する。
【0030】
回転検出センサ7は、アーマチュアシャフト6cが正回転することによって回転体7aがアーマチュアシャフト6cとともに正回転するため、図2に示されるように、第1の信号発生器7bから第1のパルス信号Aが発生し、マイクロコンピュータCPUの第1の回転検出ポートP9に第1のパルス信号Aが取り込まれる。そして、アーマチュアシャフト6cの回転によって、第1のパルス信号Aに1/4周期ずれて第2の信号発生器7cから第2のパルス信号Bが発生し、マイクロコンピュータCPUの第2の回転検出ポートP10に第2のパルス信号Bが取り込まれる。
【0031】
マイクロコンピュータCPUには、計時用のクロック、図4に示されるフリーランニングカウンタFRC(8ビット)、図2に示される第1、第2、第3、第4のタイマTAR、TBR、TAF、TBFがそれぞれ内蔵されている。
【0032】
マイクロコンピュータCPUでは、第1のスイッチ入力ポートP1に下降指令信号が与えられると、駆動回路24の正回転側がオンし、モータ6の第2のブラシ端子6bにローレベルを与えるとともに、モータ6の第1のブラシ端子6aに電源50の電位(ハイレベル)を与えてマニュアル開状態となる。
【0033】
また、マイクロコンピュータCPUでは、第2のスイッチ入力ポートP2に上昇指令信号が与えられると、駆動回路24の逆回転側がオンし、モータ6の第1のブラシ端子6aにローレベルを与えるとともに、モータ6の第2のブラシ端子6bに電源50の電位(ハイレベル)を与えてマニュアル閉状態となる。
【0034】
そして、マイクロコンピュータCPUでは、第1のスイッチ入力ポートP1に下降指令信号が与えられ、且つ、第3のスイッチ入力ポートP3に自動指令信号が与えられると、駆動回路24の正回転側がオンし、モータ6の第2のブラシ端子6bにローレベルを与えるとともに、モータ6の第1のブラシ端子6aに電源50の電位(ハイレベル)を与え、開スイッチ2がオフ切換えされてからも、駆動回路24の正回転側をオンし続け、モータ6の第2のブラシ端子6bにローレベルを与えるとともに、モータ6の第1のブラシ端子6aに電源50の電位(ハイレベル)を与え続けて自動開状態となる。
【0035】
そしてまた、マイクロコンピュータCPUでは、第2のスイッチ入力ポートP2に上昇指令信号が与えられ、且つ、第3のスイッチ入力ポートP3に自動指令信号が与えられると、駆動回路24の逆回転側がオンし、モータ6の第1のブラシ端子6aにローレベルを与えるとともに、モータ6の第2のブラシ端子6bに電源50の電位(ハイレベル)を与え、閉スイッチ3がオフ切換えされてからも、駆動回路24の逆回転側をオンし続け、モータ6の第1のブラシ端子6aにローレベルを与えるとともに、モータ6の第2のブラシ端子6bに電源50の電位(ハイレベル)を与え続けて自動閉状態となる。
【0036】
マイクロコンピュータCPUのフリーランニングカウンタFRCは、クロックに同期してカウントアップされ、図4に示されるように、カウント値がFF(16)になることによってオーバフローし、次のカウントでは“0”カウントにリセットされる。フリーランニングカウンタFRCがリセットされることによってマイクコンピュータCPUでは、図5に示されるタイマ割り込みが実行される。タイマ割込みでは、ステップ400において第1のタイマTARがインクリメントされてステップ401に移行し、ステップ401において第2のタイマTBRがインクリメントされてステップ402に移行し、ステップ402において第3のタイマTAFがインクリメントされてステップ403に移行し、ステップ403において第4のタイマTBFがインクリメントされるルーチンが実行される。
【0037】
第1のタイマTARは、図2に示されるように、時間T2 において回転検出センサ7の第1の信号発生器7bが発生した第1のパルス信号Aの立上りエッジから、その後に回転体7aが一回転した時間T10において第1の信号発生器7bが発生した第1のパルス信号Aの立上りエッジまでの時間を回転体7aの回転毎に計測する16ビットのメモリである。第1のタイマTARは、立上りT0への読み出しが実行されると“0”カウントにリセットされる。また、第1のタイマTARは、タイマ割り込みのルーチンで上位バイト(H)の値がインクリメント(+1)される。
【0038】
第2のタイマTBRは、図2に示されるように、時間T4 において回転検出センサ7の第2の信号発生器7cが発生した第2のパルス信号Bの立上りエッジから、その後に回転体7aが一回転した時間T12において第2の信号発生器7cが発生した第2のパルス信号Bの立上りエッジまでの時間を回転体7aの回転毎に計測する16ビットのメモリである。第2のタイマTBRは、立上りT0への読み出しが実行されると“0”カウントにリセットされる。また、第2のタイマTBRは、タイマ割り込みのルーチンで上位バイト(H)の値がインクリメント(+1)される。
【0039】
第3のタイマTAFは、図2に示されるように、時間T6 において回転検出センサ7の第1の信号発生器7bが発生した第1のパルス信号Aの立下りエッジから、その後に回転体7aが一回転した時間T14において第1の信号発生器7bが発生した第1のパルス信号Aの立下りエッジまでの時間を回転体7aの回転毎に計測する16ビットのメモリである。第3のタイマTAFは、立上りT0への読み出しが実行されると“0”カウントにリセットされる。また、第3のタイマTAFは、タイマ割り込みのルーチンで上位バイト(H)の値がインクリメント(+1)される。
【0040】
第4のタイマTBFは、図2に示されるように、時間T8 において回転検出センサ7の第2の信号発生器7cが発生した第2のパルス信号Bの立下りエッジから、その後に回転体7aが一回転した時間T16において第2の信号発生器7cが発生した第2のパルス信号Bの立下りエッジまでの時間を回転体7aの回転毎に計測する16ビットのメモリである。第4のタイマTBFは、立下がりT0への読み出しが実行されると“0”カウントにリセットされる。また、第4のタイマTBFは、タイマ割り込みのルーチンで上位バイト(H)の値がインクリメント(+1)される。
【0041】
マイクロコンピュータCPUでは、図4に示される時間Kにおいて、パルスエッジが検出されると、パルスエッジ割込みルーチンが実行される。そして、タイマ割込みで処理された第1、第2、第3、第4のタイマTAR、TBR、TAF、TBFの上位バイト(H)の値と、フリーランニングカウンタFRCの下位バイト(L)の値が求められる。
【0042】
このとき、t1≧t0であると、TAR(L)=t1−t0となる。これに反して、t1<t0であると、TAR(H)=TAR(H)−1、TAR(L)=t1+(FF−t0)となる。t0は前回パルスエッジが検出されたときのフリーランニングカウンタFRCのカウンタ値であり、t1は今回パルスエッジが検出されたときのフリーランニングカウンタFRCのカウンタ値である。マイクロのタイマTAR、TBR、TAF、TBFに入る値を算出処理する。
【0043】
そして、マイクロコンピュータCPUでは、図6に示されるように、第1のパルス信号Aの立上りエッジが検出された際に第2のパルス信号Bがローレベルにあって、その後に第2のパルス信号Bの立上りが検出された場合をモータ6のアーマチュアシャフト6cが正回転してウインドガラス60が開く側に移動していると認識し、これに対して、第1のパルス信号Aの立上りエッジが検出された際に、第2のパルス信号Bがハイレベルにあって、その後に第2のパルス信号Bの立下りが検出された場合をモータ6のアーマチュアシャフト6cが逆回転してウインドガラス60が閉る側に移動していると認識することによって、作動方向を検出する。
【0044】
また、マイクロコンピュータCPUでは、ウインドガラス60が全閉位置にある際のカウンタ値PCを“0”とし、カウンタ値PCが“0”から、ウインドガラス60が全閉位置からわずかに開く側に移動したときのカウンタ値PCXまでを非反転領域として反転動作を行わない範囲とし、カウンタ値PCXからウインドガラス60が全開位置のカウンタ値までを反転領域として反転動作を行う範囲としている。カウンタ値は、ウインドガラス60が開く側に移動する際にプラスカウントされ、これに反して、ウインドガラス60が閉る側に移動する際にプラスカウントされる。
【0045】
上記のパワーウインド制御装置1は、図7ないし図9に示されるメインルーチン、図10に示される出力ルーチン、図11および図12に示されるパルスエッジ割り込みルーチン、図13に示される負荷検出ルーチンを実行することによってウインドガラス60の動きを制御する。
【0046】
イグニションスイッチ5がオン切換えされ、開スイッチ2、閉スイッチ3、自動スイッチ4がいずれもオン切換えされていないと、メインルーチンのステップ100においての判別で“停止状態がセットされているので”ステップ101に移行し、ステップ101においての判別で“反転要求はセットされていないので”ステップ102に移行し、ステップ102においての判別で“閉スイッチ3はオン切換えされておらず、上昇指令信号が与えられていないので”ステップ103に移行し、ステップ103においての判別で“開スイッチ2はオン切換えされておらず、下降指令信号が与えられていないので”ステップ100に復帰するルーチンが実行され、出力ルーチンに移行する。
【0047】
出力ルーチンのステップ300においての判別で“停止状態がセットされているので”ステップ306に移行し、ステップ306において“停止出力”が実行される。
【0048】
開スイッチ2、閉スイッチ3、自動スイッチ5がいずれもオン切換えされていないと、マイクロコンピュータCPUの第1、第2の出力ポートP7、P8はいずれもローレベルになり、駆動回路24は作動せずに、モータ5に電流が供給されないから、ウインドガラス60は全閉位置に停止している。
【0049】
ウインドガラス60が全閉位置にある状態で、イグニションスイッチ5がオン切換えされ、図2に示される時間T1 において開スイッチ2がオン切換えされると、開スイッチ2が発生した下降指令信号がマイクロコンピュータCPUに取込まれる。すると、メインルーチンのステップ100においての判別で“停止状態がセットされているので”ステップ101に移行し、ステップ101においての判別で“反転要求はセットされていないので”ステップ102に移行し、ステップ102においての判別で“閉スイッチ3はオン切換えされていないので”ステップ103に移行し、ステップ103においての判別で“開スイッチ2がオン切換えされていて下降指令信号が取込まれているので”ステップ107に移行して“開状態(マニュアル開状態)”をセットして出力ルーチンに移行する。
【0050】
出力ルーチンのステップ300においての判別で“停止状態がセットされていないので”ステップ301に移行し、ステップ301においての判別で“マニュアル閉状態がセットされていないので”ステップ302に移行し、ステップ302においての判別で“マニュアル開状態がセットされているので”ステップ308に移行して“開駆動出力”が実行される。“開駆動出力”が実行されることによって、マイクロコンピュータCPUの第1の出力ポートP7がハイレベルになるとともにマイクロコンピュータCPUの第2の出力ポートP8がローレベルになり、モータ6の第2のブラシ端子6bが接地されている状態でモータ6の第1のブラシ端子6aに電源の電位が与えられるため、アーマチュアシャフト6cが正回転することによってウインドガラス60が開く。
【0051】
図2に示される時間T1 においてアーマチュアシャフト6cが正回転を開始してウインドガラス60が開く側に移動を開始すると、時間T2 において回転検出センサ7は、第1の信号発生器7bが第1のパルス信号Aを発生し、第1のパルス信号Aに1/4周期の位相差をもって第2の信号発生器7cが第2のパルス信号Bを発生する。
【0052】
時間T2 において第1のパルス信号Aが発生し、第1のパルス信号Aの立上りエッジが検出されると、パルスエッジ割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0053】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルなので”ステップ212に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0054】
時間T2 の以後、回転検出センサ7の回転体7aが1/4回転した図2に示される時間T4 において第2のパルス信号Bが立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジであるので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第2のタイマTBRのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0055】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルではないので”ステップ220に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0056】
時間T4 の以後、回転検出センサ7の回転体7aが1/2回転した図2に示される時間T6 において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0057】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルではないので”ステップ215に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0058】
時間T6 の以後、回転検出センサ7の回転体7aが3/4回転した図2に示される時間T8 において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0059】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルなので”ステップ221に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0060】
時間T8 の以後、回転検出センサ7の回転体7aは図2に示される時間T10において1回転を終了し、2回転目に入るため、第1のパルス信号Aが再び立上る。第1のパルス信号Aが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0061】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルなので”ステップ212に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0062】
時間T10の以後、回転検出センサ7の回転体7aが5/4回転した図2に示される時間T12において第2のパルス信号Bが再び立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジであるので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第2のタイマTBRのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0063】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルではないので”ステップ220に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0064】
時間T12の以後、回転検出センサ7の回転体7aが3/2回転した図2に示される時間T14において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0065】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルではないので”ステップ215に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0066】
時間T14の以後、回転検出センサ7の回転体7aが7/4回転した図2に示される時間T16において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0067】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルなので”ステップ221に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0068】
上述したように、アーマチュアシャフト6cが正回転を開始してウインドガラス60が開く側に移動を開始することによって、回転検出センサ7が第1のパルス信号A、第2のパルス信号Bを発生すると、第1のタイマTARが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTARに1/4周期ずれて、第2のタイマTBRが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTBRに1/4周期ずれて、第3のタイマTAFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第3のタイマTBRに1/4周期ずれて、第4のタイマTBFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行うことによって、マイクロコンピュータCPUがウインドガラス60の現在位置を間接的に検出する。
【0069】
このとき、アーマチュアシャフト6cが正回転を開始してウインドガラス60が開く側に移動を開始した際に、負荷検出ルーチンが同時に実行されている。負荷検出ルーチンのステップ500においての判別で“閉動作がセットされていないので”ステップ508に移行し、ステップ508においての判別でウインドガラス60が開く側に移動していることによって“パルスエッジ割り込みルーチンで算出された速度ω0が予め定められた最小値ωminより小さくなっていないので”最初のステップ500に戻るルーチンが繰り返し実行される。
【0070】
ウインドガラス60が開く側に移動している途中で、開スイッチ2がオフ切換えされると、開スイッチ2が発生していた下降指令信号がマイクロコンピュータCPUに取込まれなくなる。すると、メインルーチンのステップ100においての判別で“停止状態がセットされていないので”ステップ108に移行し、ステップ108においての判別で“マニュアル閉状態がセットされていないので”ステップ117に移行し、ステップ117においての判別で“マニュアル開状態がセットされているので”ステップ118に移行し、ステップ118においての判別で“モータロックの検出はされていないので”ステップ119に移行し、ステップ119においての判別で“開スイッチ2がオフ切換えされているので”ステップ122に移行して“停止状態”をセットして出力ルーチンに移行する。
【0071】
出力ルーチンのステップ300においての判別で“停止状態がセットされているので”ステップ306に移行して“停止出力”が実行される。“停止出力”が実行されることによって、マイクロコンピュータCPUの第1の出力ポートP7がローレベルになるとともにマイクロコンピュータCPUの第2の出力ポートP8がローレベルになるため、モータ6の第1、第2のブラシ端子6a、6bに電流が供給されなくなり、アーマチュアシャフト6cが正回転を停止することによってウインドガラス60が止まる。
【0072】
ウインドガラス60が停止している際に、開スイッチ2がオン切換えされるとともに自動スイッチ4がオン切換えされると、開スイッチ2よりの下降指令信号、自動スイッチ4よりの自動指令信号がマイクロコンピュータCPUに取り込まれる。すると、メインルーチンのステップ100においての判別で“停止状態がセットされているので”ステップ101に移行し、ステップ101においての判別で“反転要求はセットされていないので”ステップ102に移行し、ステップ102においての判別で“閉スイッチ3はオン切換えされていないので”ステップ103に移行し、ステップ103においての判別で“開スイッチ2はオン切換えされているので”ステップ107に移行して“開状態”をセットしてステップ100に戻り、次の回のメインルーチンのステップ100においての判別で“停止状態はセットされていないので”ステップ108に移行し、ステップ108においての判別で“マニュアル閉状態がセットされていないので”ステップ117に移行し、ステップ117においての判別で“マニュアル開状態がセットされているので”ステップ118に移行し、ステップ118においての判別で“モータロックの検出はされていないので”ステップ119に移行し、ステップ119においての判別で開スイッチ2はオフ切換えされていないので”ステップ120に移行し、ステップ120においての判別で“自動スイッチ4はオン切換えされているので”ステップ123に移行して“自動開状態”をセットして出力ルーチンに移行する。
【0073】
出力ルーチンのステップ300においての判別で“停止状態はセットされていないので”ステップ301に移行し、ステップ301においての判別で“マニュアル閉状態がセットされていないので”ステップ302に移行し、ステップ302においての判別で“マニュアル開状態がセットされていないので”ステップ303に移行し、ステップ303においての判別で“自動閉状態がセットされていないので”ステップ304に移行し、ステップ304においての判別で“自動開状態がセットされているので”ステップ310に移行して開駆動出力が連続的に実行される。
【0074】
連続的な開駆動出力によって、モータ6の第1のブラシ端子6aに電源が接続されるとともに、モータ6の第2のブラシ端子6bが接地され、開駆動出力は、その後に開スイッチ2がオフ切換えされてからも続けられるため、アーマチュアシャフト6cが正回転して、ウインドガラス60が開く側に連続的に移動する。
【0075】
そして、図2に示されるように、時間T1 においてモータ6のアーマチュアシャフト6cが正回転を開始することによって、時間T2 において回転検出センサ7は、第1の信号発生器7bが第1のパルス信号Aを発生し、第1のパルス信号Aに1/4周期の位相差をもって第2の信号発生器7cが第2のパルス信号Bを発生する。
【0076】
時間T2 において第1のパルス信号Aが発生し、第1のパルス信号Aの立上りエッジが検出されると、パルスエッジ割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0077】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルなので”ステップ212に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0078】
時間T2 の以後、回転検出センサ7の回転体7aが1/4回転した図2に示される時間T4 において第2のパルス信号Bが立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジであるので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第2のタイマTBRのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0079】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルではないので”ステップ220に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0080】
時間T4 の以後、回転検出センサ7の回転体7aが1/2回転した図2に示される時間T6 において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0081】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルではないので”ステップ215に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0082】
時間T6 の以後、回転検出センサ7の回転体7aが3/4回転した図2に示される時間T8 において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0083】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルなので”ステップ221に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0084】
時間T8 の以後、回転検出センサ7の回転体7aは図2に示される時間T10において1回転を終了し、2回転目に入るため、第1のパルス信号Aが再び立上る。第1のパルス信号Aが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0085】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルなので”ステップ212に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0086】
時間T10の以後、回転検出センサ7の回転体7aが5/4回転した図2に示される時間T12において第2のパルス信号Bが再び立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジであるので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第2のタイマTBRのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0087】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルではないので”ステップ220に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0088】
時間T12の以後、回転検出センサ7の回転体7aが3/2回転した図2に示される時間T14において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0089】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルではないので”ステップ215に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0090】
時間T14の以後、回転検出センサ7の回転体7aが7/4回転した図2に示される時間T16において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0091】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルではないので”ステップ221に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0092】
上述したように、アーマチュアシャフト6cが正回転を開始してウインドガラス60が開く側に移動を開始することによって、回転検出センサ7が第1のパルス信号A、第2のパルス信号Bを発生すると、第1のタイマTARが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTARに1/4周期ずれて、第2のタイマTBRが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTBRに1/4周期ずれて、第3のタイマTAFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第3のタイマTBRに1/4周期ずれて、第4のタイマTBFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行うことによって、マイクロコンピュータCPUがウインドガラス60の現在位置を間接的に検出する。
【0093】
このとき、アーマチュアシャフト6cが正回転を開始してウインドガラス60が開く側に移動を開始した際に、負荷検出ルーチンが同時に実行されている。負荷検出ルーチンのステップ500においての判別で“閉動作がセットされていないので”ステップ508に移行し、ステップ508においての判別でウインドガラス60が開く側に移動していることによって“パルスエッジ割り込みルーチンで算出された速度ω0が予め定められた最小値ωminより小さくなっていないので”最初のステップ500に戻るルーチンが繰り返し実行される。
【0094】
ウインドガラス60は、開く側に移動を続けると、全開位置で車体側に衝突することによって移動を阻止される。すると、負荷検出ルーチンのステップ500においての判別で“閉動作がセットされていないので”ステップ508に移行し、ステップ508においての判別でウインドガラス60が開く側に移動していることによって“パルスエッジ割り込みルーチンで算出された速度ω0が予め定められた最小値ωminより小さくなるので”ステップ509に移行して“モータロック検知”をセットしてメインルーチンに移行する。
【0095】
メインルーチンのステップ100においての判別で“停止状態がセットされていないので”ステップ108に移行し、ステップ108においての判別で“マニュアル閉状態がセットされていないので”ステップ117に移行し、ステップ117においての判別で“マニュアル開状態がセットされていないので”ステップ124に移行し、ステップ124においての判別で“自動閉状態がセットされていないので”ステップ131に移行し、ステップ131においての判別で“自動開状態がセットされているので”ステップ132に移行し、ステップ132においての判別で“モータロック検知”がセットされているので”ステップ134に移行して“停止状態”がセットされて出力ルーチンに移行する。
【0096】
出力ルーチンのステップ300においての判別で“停止状態がセットされているので”ステップ306に移行して“停止出力”が実行される。停止出力によって、モータ6の第1、第2のブラシ端子6a、6bがローレベルになるため、モータ6はアーマチュアシャフト6cが回転を停止して、ウインドガラス60が全開位置で停止する。
【0097】
ウインドガラス60が全開位置に停止している際に、閉スイッチ3がオン切換えされると、閉スイッチ3よりの上昇指令信号がマイクロコンピュータCPUに取り込まれる。すると、メインルーチンのステップ100においての判別で“停止状態がセットされているので”ステップ101に移行し、ステップ101においての判別で“反転要求がセットされていないので”ステップ102に移行し、ステップ102においての判別で“閉スイッチ3はオン切換えされているので”ステップ104に移行し、ステップ104においての判別で“開スイッチ2はオフ切換えされているので”ステップ106に移行して“閉状態(マニュアル閉状態)”をセットして出力ルーチンに移行する。
【0098】
そして、出力ルーチンのステップ300においての判別で“閉状態がセットされているので”ステップ301に移行し、ステップ301においての判別で“マニュアル閉状態がセットされているので”ステップ307に移行して閉駆動出力が実行される。
【0099】
閉駆動出力によって、モータ6の第1のブラシ端子6aが接地されるとともに、モータ6の第2のブラシ端子6bに電源が接続されるため、アーマチュアシャフト6cが逆回転して、ウインドガラス60が閉る側に移動を開始する。
【0100】
そして、図3に示されるように、モータ6のアーマチュアシャフト6cが時間T18において逆回転を開始することによって、時間T19において回転検出センサ7は、第1の信号発生器7bが第1のパルス信号Aを発生し、第1のパルス信号Aに1/4周期の位相差をもって第2の信号発生器7cが第2のパルス信号Bを発生する。
【0101】
時間T19において第1のパルス信号Aが発生し、第1のパルス信号Aの立上りエッジが検出されると、パルスエッジ割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0102】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルではないので”ステップ213に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0103】
時間T19の以後、回転検出センサ7の回転体7aが1/4回転した図3に示される時間T21において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0104】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルではないので”ステップ222に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0105】
時間T21の以後、回転検出センサ7の回転体7aが1/2回転した図3に示される時間T23において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0106】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルなので”ステップ214に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0107】
時間T23の以後、回転検出センサ7の回転体7aが3/4回転した図3に示される時間T25において第2のパルス信号Bが立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0108】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルなので”ステップ219に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0109】
時間T25の以後、回転検出センサ7の回転体7aが1回転した図3に示される時間T27において第1のパルス信号Aが再び立上る。第1のパルス信号Aが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0110】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルではないので”ステップ213に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0111】
時間T27の以後、回転検出センサ7の回転体7aが5/4回転した図3に示される時間T29において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0112】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルではないので”ステップ222に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0113】
時間T29の以後、回転検出センサ7の回転体7aが3/2回転した図3に示される時間T31において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0114】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルなので”ステップ214に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0115】
時間T31の以後、回転検出センサ7の回転体7aが7/4回転した図3に示される時間T33において第2のパルス信号Bが立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジなので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第2のタイマTBRのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0116】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルなので”ステップ219に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0117】
上述したように、アーマチュアシャフト6cが逆回転を開始してウインドガラス60が閉る側に移動を開始することによって、回転検出センサ7が第1のパルス信号A、第2のパルス信号Bを発生すると、第1のタイマTARが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスカウントを行い、この第1のタイマTARに1/4周期ずれて、第4のタイマTBFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスカウントを行い、この第4のタイマTBFに1/4周期ずれて、第3のタイマTAFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスカウントを行い、この第3のタイマTAFに1/4周期ずれて、第2のタイマTBRが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスカウントを行うことによって、マイクロコンピュータCPUがウインドガラス60の現在位置を間接的に検出する。
【0118】
このとき、アーマチュアシャフト6cが逆回転を開始してウインドガラス60が閉る側に移動を開始した際に、負荷検出ルーチンが同時に実行されている。負荷検出ルーチンのステップ500においての判別で“閉動作がセットされているので”ステップ501に移行し、ステップ501においての判別で“パルスエッジ割り込みルーチンで速度データω0が更新されているので”ステップ502に移行して“電源電圧レベルV0を検出”してステップ503に移行し、ステップ503において速度データω0、電源電圧レベルV0により負荷トルクTL0を算出”してステップ504に移行し、ステップ504においての判別で“パルスカウントPCが反転領域の限界値(絶対値)PCXよりも大きいので”ステップ506に移行する。
【0119】
ステップ504から移行したステップ506においては負荷データの更新が行われる。負荷データの更新は、以前のルーチンで蓄積されているTLnからTL1までの負荷データをシフトすることによって行われる。そして、ステップ506からステップ507に移行し、ステップ507において挟み込み判定値TLref を算出する。挟み込み判定値TLref の算出は、図14に示されるように、以前のルーチンで蓄積されているTLnからTL1までの負荷データのなかでの最小値TLmin に、挟み込みによる負荷増加限界値として予め定められた値TLADD (定数)を加算することによって得られる。挟み込み判定値TLref はステップ503において得られた負荷トルクTL0との比較に用いられる。マイクロコンピュータCPUは、負荷トルクTL0が挟み込み判定値TLref よりも大きくなったときを反転動作を行うタイミングとしている。そして、ステップ507から最初のステップ500に復帰する。
【0120】
ウインドガラス60が閉る側に移動している途中で、閉スイッチ3がオフ切換えされると、閉スイッチ3が発生していた上昇指令信号がマイクロコンピュータCPUに取込まれなくなる。すると、メインルーチンのステップ100においての判別で“停止状態がセットされていないので”ステップ108に移行し、ステップ108においての判別で“マニュアル閉状態がセットされているので”ステップ109に移行し、ステップ109においての判別で“反転要求はセットされていないので”ステップ110に移行し、ステップ110においての判別で“モータロックはセットされていないので”ステップ111に移行し、ステップ111においての判別で“閉スイッチ3はオフ切換えされているので”ステップ115に移行して“停止状態”をセットして出力ルーチンに移行する。
【0121】
出力ルーチンのステップ300においての判別で“停止状態がセットされている”ステップ306に移行して“停止出力”が実行される。“停止出力”が実行されることによって、マイクロコンピュータCPUの第1の出力ポートP7がローレベルになるとともにマイクロコンピュータCPUの第2の出力ポートP8がローレベルになるため、モータ6の第1、第2のブラシ端子6a、6bが電流が供給されなくなって、アーマチュアシャフト6cが正回転を停止することによってウインドガラス60が止まる。
【0122】
そして、ウインドガラス60が停止している際に、閉スイッチ3がオン切換えされるとともに自動スイッチ4がオン切換えされると、閉スイッチ3よりの上昇指令信号、自動スイッチ4よりの自動指令信号がマイクロコンピュータCPUに取り込まれる。すると、メインルーチンのステップ100においての判別で“停止状態がセットされているので”ステップ101に移行し、ステップ101においての判別で“反転要求はセットされていないので”ステップ102に移行し、ステップ102においての判別で“閉スイッチ3はオン切換えされているので”ステップ104に移行し、ステップ104においての判別で“開スイッチ2はオン切換えされていないので”ステップ106に移行して“閉状態”をセットしてステップ100に戻り、次の回のメインルーチンのステップ100においての判別で“閉状態がセットされているので”ステップ108に移行し、ステップ108においての判別で“マニュアル閉状態がセットされているので”ステップ109に移行し、ステップ109においての判別で“反転要求がセットされていないので”ステップ110に移行し、ステップ110においての判別で“モータロックがセットされていないので”ステップ111に移行し、ステップ111においての判別で“閉スイッチ3はオフ切換えされてないので”ステップ112に移行し、ステップ112においての判別で“自動スイッチ4はオン切換えされているので”ステップ116に移行して“自動閉状態”がセットされて出力ルーチンに移行する。
【0123】
そして、出力ルーチンのステップ300においての判別で“停止状態はセットされていないので”ステップ301に移行し、ステップ301においての判別で“マニュアル閉状態はセットされていないので”ステップ302に移行し、ステップ302においての判別で“マニュアル開状態はセットされていないので”ステップ303に移行し、ステップ303においての判別で“自動閉状態がセットされているので”ステップ309に移行して連続的な閉駆動出力が実行される。
【0124】
連続的な閉駆動出力によって、モータ6の第2のブラシ端子6bに電源が接続されるとともに、モータ6の第1のブラシ端子6aが接地され、閉駆動出力は、その後に閉スイッチ3がオフ切換えされてからも続けられるため、アーマチュアシャフト6cが逆回転して、ウインドガラス60が連続的に閉る側に移動する。
【0125】
そして、図3に示されるように、モータ6のアーマチュアシャフト6cが時間T18において逆回転を開始することによって、時間T19において回転検出センサ7は、第1の信号発生器7bが第1のパルス信号Aを発生し、第1のパルス信号Aに1/4周期の位相差をもって第2の信号発生器7cが第2のパルス信号Bを発生する。
【0126】
時間T19において第1のパルス信号Aが発生し、第1のパルス信号Aの立上りエッジが検出されると、パルスエッジ割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0127】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルではないので”ステップ213に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0128】
時間T19の以後、回転検出センサ7の回転体7aが1/4回転した図3に示される時間T21において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0129】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルではないので”ステップ222に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0130】
時間T21の以後、回転検出センサ7の回転体7aが1/2回転した図3に示される時間T23において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジなので”ステップ206に移行して“第3のタイマTAFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0131】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルなので”ステップ214に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0132】
時間T23の以後、回転検出センサ7の回転体7aが3/4回転した図3に示される時間T25において第2のパルス信号Bが立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジなので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0133】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルなので”ステップ219に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0134】
時間T25の以後、回転検出センサ7の回転体7aが1回転した図3に示される時間T27において第1のパルス信号Aが再び立上る。第1のパルス信号Aが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0135】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルではないので”ステップ213に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0136】
時間T27の以後、回転検出センサ7の回転体7aが5/4回転した図3に示される時間T29において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0137】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルではないので”ステップ222に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0138】
時間T29の以後、回転検出センサ7の回転体7aが3/2回転した図3に示される時間T31において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0139】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルなので”ステップ214に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0140】
時間T31の以後、回転検出センサ7の回転体7aが7/4回転した図3に示される時間T33において第2のパルス信号Bが立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第2のタイマTBRのカウント値の0クリア”が実行されてステップ203に移行し、ステする”が実行されてステップ208に移行する。
【0141】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルなので”ステップ219に移行してパルスカウントPCがマイナス1カウント(−1)されて割り込み処理を終了する。
【0142】
上述したように、アーマチュアシャフト6cが逆回転を開始してウインドガラス60が閉る側に移動を開始することによって、回転検出センサ7が第1のパルス信号A、第2のパルス信号Bを発生すると、第1のタイマTARが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスのカウントを行い、この第1のタイマTARに1/4周期ずれて、第4のタイマTBFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスカウントを行い、この第4のタイマTBFに1/4周期ずれて、第3のタイマTAFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスカウントを行い、この第3のタイマTBRに1/4周期ずれて、第2のタイマTBFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらマイナスカウントを行うことによって、マイクロコンピュータCPUがウインドガラス60の現在位置を間接的に検出する。
【0143】
このとき、アーマチュアシャフト6cが逆回転を開始してウインドガラス60が閉る側に移動を開始した際に、負荷検出ルーチンが同時に実行されている。負荷検出ルーチンのステップ500においての判別で“閉動作がセットされているので”ステップ501に移行し、ステップ501においての判別で“パルスエッジ割り込みルーチンで速度データω0が更新されているので”ステップ502に移行して“電源電圧レベルV0を検出”してステップ503に移行し、ステップ503において速度データω0、電源電圧レベルV0により負荷トルクTL0を算出”してステップ504に移行し、ステップ504においての判別で“パルスカウントPCが反転領域の限界値(絶対値)PCXよりも大きいので”ステップ505に移行し、ステップ505においての判別で“負荷トルクTL0が挟み込
み判定値TLref よりも大きくなっていないので”ステップ506に移行する。
【0144】
ステップ505から移行したステップ506においては負荷データの更新が行われる。負荷データの更新は、以前のルーチンで蓄積されているTLnからTL1までの負荷データをシフトすることによって行われる。そして、ステップ506からステップ507に移行し、ステップ507において挟み込み判定値TLref を算出する。挟み込み判定値TLref の算出は、図14に示されるように、以前のルーチンで蓄積されているTLnからTL1までの負荷データのなかでの最小値TLmin に、挟み込みによる負荷増加限界値として予め定められた値TLADD (定数)を加算することによって得られる。挟み込み判定値TLref はステップ503において得られた負荷トルクTL0との比較に用いられる。マイクロコンピュータCPUは、負荷トルクTL0が挟み込み判定値TLref よりも大きくなったときを反転動作を行うタイミングとしている。そして、ステップ507から最初のステップ500に復帰する。
【0145】
そして、ウインドガラス60が閉る側に移動している途中、反転領域内で挟み込みが発生すると、負荷検出ルーチンのステップ500においての判別で“閉動作がセットされているので”ステップ501に移行し、ステップ501においての判別で“パルスエッジ割り込みルーチンで速度データω0が更新されているので”ステップ502に移行して“電源電圧レベルV0を検出”してステップ503に移行し、ステップ503において速度データω0、電源電圧レベルV0により負荷トルクTL0を算出”してステップ504に移行し、ステップ504においての判別で“パルスカウントPCが反転領域の限界値(絶対値)PCXよりも大きいので”ステップ505に移行する。
【0146】
ステップ504から移行したステップ505においての判別で“挟み込みによって負荷トルクTL0が挟み込み判定値TLref よりも大きくなっているので”ステップ510に移行して“反転要求のセット”を実行してメインルーチンに移行する。
【0147】
メインルーチンのステップ100においての判別で“停止状態がセットされていないので”ステップ108に移行し、ステップ108においての判別で“マニュアル閉状態がセットされていないので”ステップ117に移行し、ステップ117においての判別で“マニュアル開状態はセットされていないので”ステップ124に移行し、ステップ124においての判別で“自動閉状態はセットされているので”ステップ125に移行し、ステップ125においての判別で“反転要求がセットされているので”ステップ128に移行して“停止状態”をセットして出力ルーチンに移行する。
【0148】
出力ルーチンのステップ300においての判別で“停止状態がセットされているので”ステップ306に移行して“停止出力”が実行され、メインルーチンに移行する。“停止出力”が実行されることによって、マイクロコンピュータCPUの第1の出力ポートP7がローレベルになるとともにマイクロコンピュータCPUの第2の出力ポートP8がローレベルになるため、モータ6の第1、第2のブラシ端子6a、6bに電流が供給されなくなって、アーマチュアシャフト6cが正回転を そして、メインルーチンのステップ100においての判別で“停止状態がセットされているので”ステップ101に移行し、ステップ101においての判別で“反転要求がセットされているので”ステップ105に移行して“反転状態をセット”して出力ルーチンに移行する。
【0149】
出力ルーチンのステップ300においての判別で“停止状態はセットされていないので”ステップ301に移行し、ステップ301においての判別で“マニュアル閉状態はセットされていないので”ステップ302に移行し、ステップ302においての判別で“マニュアル開状態はセットされていないので”ステップ303に移行し、ステップ303においての判別で“自動閉状態はセットされていないので”ステップ304に移行し、ステップ304においての判別で“自動開状態はセットされていないので”ステップ305に移行し、ステップ305においての判別で“反転状態がセットされているので”ステップ311に移行して“開駆動出力”が実行される。
【0150】
“開駆動出力”が実行されることによって、マイクロコンピュータCPUの第1の出力ポートP7がハイレベルになるとともにマイクロコンピュータCPUの第2の出力ポートP8がローレベルになり、モータ6の第2のブラシ端子6bが接地されている状態でモータ6の第1のブラシ端子6aに電源の電位が与えられるため、モータ6のアーマチュアシャフト6cが正回転することによってウインドガラス60が開く側に反転移動される。
【0151】
アーマチュアシャフト6cが正回転を開始することによってウインドガラス60が開く側に反転移動すると、図2に示されるように、モータ6のアーマチュアシャフト6cが時間T1 から正回転を開始し、時間T2 において第1の信号発生器7bより第1のパルス信号Aが発生し、この第1のパルス信号Aに1/4周期ずれて第2の信号発生器7cより第2のパルス信号Bが発生する。
【0152】
時間T2 において第1のパルス信号Aが発生し、第1のパルス信号Aの立上りエッジが検出されると、パルスエッジ割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0153】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルなので”ステップ212に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0154】
時間T2 の以後、回転検出センサ7の回転体7aが1/4回転した図2に示される時間T4 において第2のパルス信号Aが立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジであるので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第2のタイマTBRのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0155】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルではないので”ステップ220に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0156】
時間T4 の以後、回転検出センサ7の回転体7aが1/2回転した図2に示される時間T6 において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0157】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルではないので”ステップ215に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0158】
時間T6 の以後、回転検出センサ7の回転体7aが3/4回転した図2に示される時間T8 において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア“が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0159】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別PCがプラス1カウント(+1)されて割り込み処理を終了する。
【0160】
時間T8 の以後、回転検出センサ7の回転体7aは図2に示される時間T10において1回転を終了し、2回転目に入るため、第1のパルス信号Aが再び立上る。第1のパルス信号Aが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジであるので”ステップ202に移行して“第1のタイマTARのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第1のタイマTARのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0161】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジであるので”ステップ210に移行し、ステップ210においての判別で“第2のパルス信号Bはローレベルなので”ステップ212に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0162】
時間T10の以後、回転検出センサ7の回転体7aが5/4回転した図2に示される時間T12において第2のパルス信号Bが再び立上る。第2のパルス信号Bが立上ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジであるので”ステップ206に移行して“第2のタイマTBRのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第2のタイマTBRのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0163】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジであるので”ステップ217に移行し、ステップ217においての判別で“第1のパルス信号Aはローレベルではないので”ステップ220に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0164】
時間T12の以後、回転検出センサ7の回転体7aが3/2回転した図2に示される時間T14において第1のパルス信号Aが立下る。第1のパルス信号Aが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aであるので”ステップ201に移行し、ステップ201においての判別で“立上りエッジではないので”ステップ205に移行して“第3のタイマTAFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第3のタイマTAFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0165】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aであるので”ステップ209に移行し、ステップ209においての判別で“立上りエッジではないので”ステップ211に移行し、ステップ211においての判別で“第2のパルス信号Bはローレベルではないので”ステップ215に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0166】
時間T14の以後、回転検出センサ7の回転体7aが7/4回転した図2に示される時間T16において第2のパルス信号Bが立下る。第2のパルス信号Bが立下ると、割り込みルーチンのステップ200においての判別で“エッジは第1のパルス信号Aではないので”ステップ204に移行し、ステップ204においての判別で“立上りエッジではないので”ステップ207に移行して“第4のタイマTBFのカウント値の0クリア”が実行されてステップ203に移行し、ステップ203において“第4のタイマTBFのカウント値より速度ω0を算出処理する”が実行されてステップ208に移行する。
【0167】
そして、ステップ208においての判別で“エッジは第1のパルス信号Aではないので”ステップ216に移行し、ステップ216においての判別で“立上りエッジではないので”ステップ218に移行し、ステップ218においての判別で“第1のパルス信号Aはローレベルなので”ステップ221に移行してパルスカウントPCがプラス1カウント(+1)されて割り込み処理を終了する。
【0168】
上述したように、アーマチュアシャフト6cが正回転を開始してウインドガラス60が開く側に移動を開始することによって、回転検出センサ7が第1のパルス信号A、第2のパルス信号Bを発生すると、第1のタイマTARが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTARに1/4周期ずれて、第2のタイマTBRが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTBRに1/4周期ずれて、第3のタイマTAFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第3のタイマTBRに1/4周期ずれて、第4のタイマTBFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行うことによって、マイクロコンピュータCPUがウインドガラス60の現在位置を間接的に検出する。
【0169】
アーマチュアシャフト6cが正回転を開始すると、メインルーチンのステップ100においての判別で“停止状態がセットされていないので”ステップ108に移行し、ステップ108においての判別で“マニュアル閉状態はセットされていないので”ステップ117に移行し、ステップ117においての判別で“マニュアル開状態はセットされていないので”ステップ124に移行し、ステップ124においての判別で“自動閉状態はセットされていないので”ステップ131に移行し、ステップ131においての判別で“自動開状態はセットされていないので”ステップ136に移行し、ステップ136においての判別で“反転状態がセットされているので”ステップ137に移行し、ステップ137においての判別で“モータロックはセットされていないので”ステップ138に移行し、ステップ138においての判別が行われる。ステップ138においての判別は、ウインドガラス60が予め定められた位置まで下降したところでウインドガラス60を停止させるようにする判別ステップである。反転を開始した当初は、ステップ138においての判別で“パルスカウントPCが予め定められた反転停止カウントPCreを越えないので”ステップ100に復帰してメインルーチンを繰り返し、ウインドガラス60が予め定められた位置まで下降したことによって“パルスカウントPCが予め定められた反転停止カウントPCreを越えると”ステップ138からステップ140に移行して“停止状態”をセットして出力ルーチンに移行する。
【0170】
出力ルーチンのステップ300においての判別で“停止状態がセットされているので”ステップ306に移行して“停止出力”が実行される。“停止出力”が実行されることによって、マイクロコンピュータCPUの第1の出力ポートP7がローレベルになるとともにマイクロコンピュータCPUの第2の出力ポートP8がローレベルになるため、モータ6の第1、第2のブラシ端子6a、6bが電流が供給されなくなって、モータ6のアーマチュアシャフト6cが正回転を停止することによってウインドガラス60が止まる。
【0171】
また、ウインドガラス60が全開位置に近いところで挟み込みが発生したことによって、アーマチュアシャフト6cが正回転に反転を開始した場合、パルスカウントPCが予め定められた反転停止カウントPCreを越える以前にウインドガラス60が全開位置に到達して移動を阻止されるため、負荷検出ルーチンのステップ500においての判別で“閉動作はセットされていないので”ステップ508に移行し、ステップ508においての判別で“パルスエッジ割り込みルーチンで算出された速度ω0が予め定められた最小値ωminより小さくなっているので”ステップ509に移行して“モータロック検知”がセットされてメインルーチンが実行される。
【0172】
そして、メインルーチンのステップ136においての判別で“反転状態がセットされているので”ステップ137に移行し、ステップ137においての判別で“モータロック検知がセットされているので”ステップ139に移行して“停止状態”をセットして出力ルーチンが実行される。
【0173】
出力ルーチンのステップ300においての判別で“停止状態がセットされているので”ステップ306に移行して“停止出力”が実行され、メインルーチンに移行する。“停止出力”が実行されることによって、マイクロコンピュータCPUの第1の出力ポートP7がローレベルになるとともにマイクロコンピュータCPUの第2の出力ポートP8がローレベルになるため、モータ6の第1、第2のブラシ端子6a、6bが電流が供給されなくなって、アーマチュアシャフト6cが正回転を停止することによってウインドガラス60が全開位置で停止する。
【0174】
上述したように、アーマチュアシャフト6cが反転の正回転を開始してウインドガラス60が開く側に移動を開始することによって、回転検出センサ7が第1のパルス信号A、第2のパルス信号Bを発生すると、第1のタイマTARが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTARに1/4周期ずれて、第2のタイマTBRが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTBRに1/4周期ずれて、第3のタイマTAFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第3のタイマTBRに1/4周期ずれて、第4のタイマTBFが回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行うことによって、マイクロコンピュータCPUがウインドガラス60の現在位置を間接的に検出する。
【0175】
図15ないし図17には、この発明に係わるパワーウインド制御装置の第2実施例が示されている。
【0176】
この場合、回転検出センサ7の回転体7aには、一対のN極および一対のS極が対向配置されている。そのため、回転検出センサ7は、回転体7aが回転することによって、第1の信号発生器7bが発生する第1のパルス信号Aに対して、1/8周期ずれて第2の信号発生器7cから第2のパルス信号Bが発生する。
【0177】
そして、マイクロコンピュータCPUには、図17に示されるように、第1のタイマTAR1、第2のタイマTBR1、第3のタイマTAF1、第4のタイマTBF1、第5のタイマTAR2、第6のタイマTBR2、第7のタイマTAF2、第8のタイマTBF2がそれぞれ内蔵されており、他の部位は第1実施例と同様になっている。
【0178】
そして、この場合も、アーマチュアシャフト6cが正回転を開始してウインドガラス60が開く側に移動を開始することによって、回転検出センサ7が第1のパルス信号A、第2のパルス信号Bを発生すると、第1のタイマTAR1が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTAR1に1/8周期ずれて、第2のタイマTBR1が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第1のタイマTBR1に1/8周期ずれて、第3のタイマTAF1が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第3のタイマTBR1に1/8周期ずれて、第4のタイマTBF1が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第4のタイマTBF1に1/8周期ずれて、第5のタイマTAR2が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第5のタイマTAR2に1/8周期ずれて、第6のタイマTBR2が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第6のタイマTBR2に1/8周期ずれて、第7のタイマTAF2が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行い、この第7のタイマTBR2に1/8周期ずれて、第8のタイマTBF2が回転検出センサ7の回転体7aの一回転毎にカウントを0クリアしながらプラスカウントを行うことによって、マイクロコンピュータCPUがウインドガラス60の現在位置を間接的に検出する。
【0179】
【発明の効果】
以上説明してきたように、この発明の請求項1に係わるパワーウインド制御装置によれば、回転検出センサは、回転体が回転し、信号発生器に対してマグネットのN極およびS極の境界線から予め定められた位置まで来ると、その位置でのマグネットの磁束密度に対してのしきい値によって信号発生器がパルス信号を発生する。それ故、回転体の円周上の同一点での計測が行われるから、回転体のマグネットに着磁のばらつきがあったとしても、パルス信号の周期に狂いが生ずることがなくなり、また、回転検出センサのマグネットが外径の小さいものであっても、細かい回転数データが得られるという優れた効果を奏する。
【0180】
この発明の請求項2に係わるパワーウインド制御装置によれば、制御ユニットのマイクロコンピュータは、それぞれが1/4周期つづ位相差をもっていて回転体の一回転毎にパルス信号を発生する第1、第2、第3、第4のタイマの値と、フリーランニングカウンタの値とによりパルス周期の算出処理を行うことによって、アーマチュアシャフトの回転速度が検出される。それ故、請求項1の効果に加え、マイクロコンピュータに内蔵するタイマが4個で済むという優れた効果を奏する。
【0181】
この発明の請求項3に係わるパワーウインド制御装置によれば、制御ユニットのマイクロコンピュータは、それぞれが1/8周期つづ位相差をもっていて回転体の一回転毎にパルス信号を発生する第1、第2、第3、第4、第5、第6、第7、第8のタイマの値と、フリーランニングカウンタの値とによりパルス周期の算出処理を行うことによって、アーマチュアシャフトの回転速度が検出される。それ故、請求項1の効果に加え、マイクロコンピュータに内蔵するタイマが8個で済むという優れた効果を奏する。
【図面の簡単な説明】
【図1】この発明に係わるパワーウインド制御装置の第1実施例のブロック構成図である。
【図2】図1に示したパワーウインド制御装置の動作を説明するタイミングチャートである。
【図3】図1に示したパワーウインド制御装置の動作を説明するタイミングチャートである。
【図4】図1に示したパワーウインド制御装置においてのパルスカウント算出処理の説明図である。
【図5】図1に示したパワーウインド制御装置においてのタイマ割り込みのフローチャートである
【図6】図1に示したパワーウインド制御装置においてのパルスによる作動方向の検出処理の説明図である。
【図7】図1に示したパワーウインド制御装置の制御動作に用いるメインルーチンのフローチャートである。
【図8】図1に示したパワーウインド制御装置の制御動作に用いるメインルーチンのフローチャートである。
【図9】図1に示したパワーウインド制御装置の制御動作に用いるメインルーチンのフローチャートである。
【図10】図1に示したパワーウインド制御装置の制御動作に用いる出力ルーチンのフローチャートである。
【図11】図1に示したパワーウインド制御装置の制御動作に用いるパルスエッジ割り込みルーチンのフローチャートである。
【図12】図1に示したパワーウインド制御装置の制御動作に用いるパルスエッジ割り込みルーチンのフローチャートである。
【図13】図1に示したパワーウインド制御装置の制御動作に用いる負荷検出ルーチンのフローチャートである。
【図14】図1に示したパワーウインド制御装置の負荷検出処理の説明図である。
【図15】この発明に係わるパワーウインド制御装置の第2実施例の動作を説明するタイミングチャートである。
【図16】図15に示したパワーウインド制御装置の動作を説明するタイミングチャートである。
【図17】図15に示したパワーウインド制御装置のタイマの制御動作を説明するタイミングチャートである。
【符号の説明】
1 パワーウインド制御装置
2 開スイッチ
3 閉スイッチ
4 自動スイッチ
6 モータ
6c アーマチュアシャフト
7 回転検出センサ
7a 回転体
7b (信号発生器)第1の信号発生器
7c (信号発生器)第2の信号発生器
20 制御ユニット
24 駆動回路
50 電源
60 ウインドガラス
CPU マイクロコンピュータ
FRC フリーランニングカウンタ
TAR 第1のタイマ
TBR 第2のタイマ
TAF 第3のタイマ
TBF 第4のタイマ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a power window control device that automatically drives a window glass.
[0002]
[Prior art]
As a power window control device for automatically driving a window glass, an apparatus in which an armature shaft provided in a motor is coupled to a window glass via a glass elevator is known. A rotation detection sensor is coupled to the armature shaft of the motor. The rotation detection sensor includes a magnet mounted on an armature shaft and a hall element disposed around the magnet. When the armature shaft rotates, the magnet rotates. When the magnet rotates, a pulsed detection signal (Hall voltage) is generated from the Hall element. Therefore, the rotation of the armature shaft is detected by detecting the pulse width of the detection signal by the controller. A number is calculated.
[0003]
[Problems to be solved by the invention]
However, in the above power window control device, if the magnetization of the N pole and S pole of the magnet of the rotation detection sensor varies, the pulse of the pulse-shaped detection signal detected by the Hall element when the magnet rotates. Since the width is deviated, as a result, there is a problem that an error occurs in the rotational speed data calculated by the controller and it is difficult to obtain an accurate rotational speed.
[0004]
In addition, if the rotation detection sensor has a small outer diameter, the number of magnetic poles to be magnetized is limited to a single N pole and a single S pole. As compared with the case where a magnet is used, there is a problem that it is difficult to obtain detailed rotation speed data.
[0005]
OBJECT OF THE INVENTION
The power window control device according to the present invention can obtain accurate position data of the window glass by obtaining an accurate rotational speed of the motor, and can also obtain detailed rotational speed data even if a rotational detection sensor with a small number of poles is used. An object of the present invention is to provide a power window control device capable of obtaining the above.
[0006]
[Structure of the invention]
[0007]
[Means for Solving the Problems]
In the power window control device according to the first aspect of the present invention, there is provided a rotating body having a magnet in which the N pole and the S pole are opposed to each other, coupled to the armature shaft of the motor and rotating together with the armature shaft, Is placed in contact with the rotating bodyMagnetic flux density at the position where the rotating body has rotated from the boundary between the north and south poles of the magnet to a predetermined angleA rotation detection sensor having a signal generator for generating a pulse signal according to the threshold, an open switch for generating a lowering command signal when switched on, and an increase when switched on A closed switch that generates a command signal, an automatic switch that generates a continuous command signal when switched on, and a window glass that is coupled to the window glass to drive the window glass to the open side when energized, while the window glass is closed by energization. Motor with armature shaft driven to the side, drive circuit electrically connected to the motor, and connected to the power source and electrically connected to the drive circuit, open switch lowering command signal, closing switch rising The power supply current is given to the drive circuit by the command signal and the continuous command signal of the automatic switch. Motion control of the window glass by detecting the rotation speed of the armature shaft based on the time from the edge of the pulse signal generated by the rotation detection sensor to the edge of the pulse signal generated by the rotation detection sensor when the rotating body makes one rotation It is characterized by having a control unit having a microcomputer for performing the above.
[0008]
Claims of the invention2In the power window control apparatus according to the first embodiment, the magnet has two poles, a single N pole and a single S pole, facing each other, and the rotation detection sensor generates a first signal for generating a first pulse signal. And a second signal generator arranged at a predetermined angle with respect to the first signal generator to generate a second pulse signal. The first time when the rotating body makes one rotation from the rising edge of the first pulse signal generated by the first signal generator of the rotation detecting sensor and the first signal generator of the rotation detection sensor. A first timer that measures the time until the rising edge of the first pulse signal generated by the signal generator for each rotation of the rotating body, and a second pulse signal generated by the second signal generator of the rotation detection sensor. A second timer that measures the time from the rising edge of the second rotation signal to the rising edge of the second pulse signal generated by the second signal generator when the rotating body makes one rotation thereafter; From the falling edge of the first pulse signal generated by the first signal generator of the rotation detection sensor, the rising edge of the first pulse signal generated by the first signal generator when the rotating body subsequently makes one revolution. From the falling edge of the second pulse signal generated by the third timer that measures the time until the falling edge for each rotation of the rotating body and the second signal generator of the rotation detecting sensor, The microcomputer of the control unit is provided with a fourth timer that measures the time until the falling edge of the second pulse signal generated by the second signal generator when rotating, for each rotation of the rotating body. Counter When the first, second, third, and characterized in that a configuration for performing a process for calculating a pulse period by a value of the fourth timer.
[0009]
Claims of the invention3In the power window control device according to the present invention, the magnet is provided with a pair of N poles and a pair of S poles facing each other, and the rotation detection sensor includes a first signal generator for generating a first pulse signal; And a second signal generator for generating a second pulse signal disposed at a predetermined angle with respect to the first signal generator, and the microcomputer of the control unit includes: A free running counter that counts up over time and a first signal generated when the rotating body makes one revolution after the rising edge of the first pulse signal generated by the first signal generator of the rotation detection sensor A first timer that measures the time until the rising edge of the first pulse signal generated by the detector for each rotation of the rotating body, and a second pulse signal generated by the second signal generator of the rotation detection sensor. A second timer that measures the time from the rising edge of the second rotation signal to the rising edge of the second pulse signal generated by the second signal generator when the rotating body makes one rotation thereafter; The first signal when the rotating body makes one revolution after the falling edge of the first pulse signal generated by the first signal generator of the rotation detection sensor at a quarter period apart from the first timer. A third timer that measures the time until the falling edge of the first pulse signal generated by the generator for each rotation of the rotating body, and a second period of the rotation detection sensor that is separated from the second timer by a quarter cycle. The time from the falling edge of the second pulse signal generated by the second signal generator to the falling edge of the second pulse signal generated by the second signal generator when the rotating body makes one revolution thereafter A fourth timer for measuring each rotation of the rotating body; The first signal is generated when the rotating body makes one rotation after the rising edge of the first pulse signal generated by the first signal generator of the rotation detection sensor, with a quarter period separated from the third timer. A fifth timer for measuring the time until the rising edge of the first pulse signal generated by the detector for each rotation of the rotating body, and the second signal of the rotation detection sensor separated by a quarter period from the fourth timer. The time from the rising edge of the second pulse signal generated by the generator to the rising edge of the second pulse signal generated by the second signal generator when the rotating body makes one rotation thereafter is the rotation of the rotating body. From the falling edge of the first pulse signal generated by the first signal generator of the rotation detection sensor at intervals of ¼ period from the sixth timer measured every time and the fifth timer The first signal generator is activated when the A seventh timer for measuring the time until the falling edge of the generated first pulse signal for each rotation of the rotating body, and a second signal generation of the rotation detection sensor at intervals of ¼ period from the sixth timer. The time from the falling edge of the second pulse signal generated by the generator to the falling edge of the second pulse signal generated by the second signal generator when the rotating body makes one revolution thereafter is And an eighth timer for measuring each rotation, and the microcomputer of the control unit, the value of the free running counter, the first, second, third, fourth, fifth, sixth, seventh, eighth It is characterized in that the calculation process of the pulse period is performed according to the timer value.
[0010]
[Effects of the Invention]
In the power window control device according to
[0011]
Claims of the invention2In the power window control apparatus according to the first, second, third, and fourth microcomputers of the control unit, each having a phase difference of ¼ period and generating a pulse signal for each rotation of the rotating body. The rotation speed of the armature shaft is detected by performing a pulse period calculation process based on the timer value and the free running counter value. Therefore,Action of Claim 1In addition, four timers are built in the microcomputer.
[0012]
Claims of the invention3In the power window control apparatus according to the first, second, third, fourth, and the like, the microcomputer of the control unit generates a pulse signal for each rotation of the rotating body, each having a phase difference of 1/8 period. The rotation speed of the armature shaft is detected by performing a pulse cycle calculation process based on the values of the fifth, sixth, seventh, and eighth timers and the value of the free running counter. Therefore,Action of Claim 1In addition, only eight timers are built in the microcomputer.
[0013]
【Example】
1 to 14 show a first embodiment of a power window control device according to the present invention.
[0014]
The illustrated power
[0015]
The
[0016]
The
[0017]
The automatic switch 4 generates an automatic command signal when switched on. The automatic command signal generated by the automatic switch 4 is given to the third switch input port P3 of the microcomputer CPU provided in the control unit 20 through a voltage clamp circuit (not shown).
[0018]
One of the ignition switches 5 is connected to the power supply 50, and the other is connected to the power supply
[0019]
The other of the power supply
[0020]
One of the
[0021]
One of the
[0022]
The
[0023]
When the first output port P7 of the microcomputer CPU becomes high level and the second output port P8 of the microcomputer CPU becomes low level, the
[0024]
An
[0025]
As shown in FIG. 2, the rotation detection sensor 7 includes a
[0026]
The
[0027]
The first and second signal generators 7b and 7c are arranged around the
[0028]
The first signal generator 7b has a power supply terminal connected to the
[0029]
The second signal generator 7c has a power supply terminal connected to the
[0030]
As shown in FIG. 2, the rotation detection sensor 7 has a first pulse signal A from the first signal generator 7b because the
[0031]
The microcomputer CPU includes a clock for clocking, a free running counter FRC (8 bits) shown in FIG. 4, and first, second, third, and fourth timers TAR, TBR, TAF, and TBF shown in FIG. Are built in.
[0032]
In the microcomputer CPU, when the lowering command signal is given to the first switch input port P1, the forward rotation side of the
[0033]
Further, in the microcomputer CPU, when the ascending command signal is given to the second switch input port P2, the reverse rotation side of the
[0034]
In the microcomputer CPU, when the lowering command signal is given to the first switch input port P1 and the automatic command signal is given to the third switch input port P3, the positive rotation side of the
[0035]
Further, in the microcomputer CPU, when the up command signal is given to the second switch input port P2 and the automatic command signal is given to the third switch input port P3, the reverse rotation side of the
[0036]
The free running counter FRC of the microcomputer CPU is counted up in synchronization with the clock, and overflows when the count value becomes FF (16), as shown in FIG. Reset. When the free running counter FRC is reset, the microphone computer CPU executes the timer interrupt shown in FIG. In the timer interruption, the first timer TAR is incremented in
[0037]
As shown in FIG. 2, the first timer TAR starts from the rising edge of the first pulse signal A generated by the first signal generator 7b of the rotation detection sensor 7 at time T2, and then the
[0038]
As shown in FIG. 2, the second timer TBR starts from the rising edge of the second pulse signal B generated by the second signal generator 7 c of the rotation detection sensor 7 at time T 4, and thereafter the
[0039]
As shown in FIG. 2, the third timer TAF starts from the falling edge of the first pulse signal A generated by the first signal generator 7b of the rotation detection sensor 7 at time T6, and then rotates the
[0040]
As shown in FIG. 2, the fourth timer TBF starts from the falling edge of the second pulse signal B generated by the second signal generator 7c of the rotation detection sensor 7 at time T8, and thereafter the
[0041]
In the microcomputer CPU, when a pulse edge is detected at time K shown in FIG. 4, a pulse edge interruption routine is executed. The value of the upper byte (H) of the first, second, third, and fourth timers TAR, TBR, TAF, and TBF processed by the timer interrupt and the value of the lower byte (L) of the free running counter FRC Is required.
[0042]
At this time, if t1 ≧ t0, TAR (L) = t1−t0. On the other hand, if t1 <t0, TAR (H) = TAR (H) −1 and TAR (L) = t1 + (FF−t0). t0 is the counter value of the free running counter FRC when the previous pulse edge is detected, and t1 is the counter value of the free running counter FRC when the current pulse edge is detected. The values that enter the micro timers TAR, TBR, TAF, and TBF are calculated.
[0043]
In the microcomputer CPU, as shown in FIG. 6, when the rising edge of the first pulse signal A is detected, the second pulse signal B is at the low level, and then the second pulse signal When the rising edge of B is detected, it is recognized that the
[0044]
In the microcomputer CPU, the counter value PC when the window glass 60 is in the fully closed position is set to “0”, and the counter value PC is moved from “0” to the side where the window glass 60 is slightly opened from the fully closed position. The counter value PCX up to the counter value PCX at this time is set as a non-inverted area and the inversion operation is not performed, and the counter value PCX to the counter value at the fully open position is set as the inversion area. The counter value is incremented when the window glass 60 moves to the opening side, and on the contrary, it is incremented when the window glass 60 moves to the closing side.
[0045]
The power
[0046]
If the
[0047]
In the determination in
[0048]
If none of the
[0049]
When the window glass 60 is in the fully closed position, the
[0050]
In the determination in
[0051]
When the
[0052]
When the first pulse signal A is generated at time T2 and the rising edge of the first pulse signal A is detected, it is determined in
[0053]
Then, in the determination in
[0054]
After the time T2, the second pulse signal B rises at a time T4 shown in FIG. 2 in which the
[0055]
Then, in the determination in
[0056]
After time T4, the first pulse signal A falls at time T6 shown in FIG. When the first pulse signal A falls, the determination in
[0057]
Then, in the determination in
[0058]
After time T6, the second pulse signal B falls at time T8 shown in FIG. 2 in which the
[0059]
Then, in the determination in
[0060]
After time T8, the
[0061]
Then, in the determination in
[0062]
After time T10, the second pulse signal B rises again at time T12 shown in FIG. 2 in which the
[0063]
Then, in the determination in
[0064]
After time T12, the first pulse signal A falls at time T14 shown in FIG. 2 in which the
[0065]
Then, in the determination in
[0066]
After the time T14, the second pulse signal B falls at a time T16 shown in FIG. 2 in which the
[0067]
Then, in the determination in
[0068]
As described above, when the rotation detection sensor 7 generates the first pulse signal A and the second pulse signal B by starting the forward rotation of the
[0069]
At this time, when the
[0070]
If the
[0071]
As a result of determination in
[0072]
If the
[0073]
In the determination in
[0074]
With continuous open drive output, the power is connected to the first brush terminal 6a of the motor 6, and the second brush terminal 6b of the motor 6 is grounded, and the open drive output is then turned off by the
[0075]
Then, as shown in FIG. 2, the
[0076]
When the first pulse signal A is generated at time T2 and the rising edge of the first pulse signal A is detected, it is determined in
[0077]
Then, in the determination in
[0078]
After the time T2, the second pulse signal B rises at a time T4 shown in FIG. 2 in which the
[0079]
Then, in the determination in
[0080]
After time T4, the first pulse signal A falls at time T6 shown in FIG. When the first pulse signal A falls, the determination in
[0081]
Then, in the determination in
[0082]
After time T6, the second pulse signal B falls at time T8 shown in FIG. 2 in which the
[0083]
Then, in the determination in
[0084]
After time T8, the
[0085]
Then, in the determination in
[0086]
After time T10, the second pulse signal B rises again at time T12 shown in FIG. 2 in which the
[0087]
Then, in the determination in
[0088]
After time T12, the first pulse signal A falls at time T14 shown in FIG. 2 in which the
[0089]
Then, in the determination in
[0090]
After the time T14, the second pulse signal B falls at a time T16 shown in FIG. 2 in which the
[0091]
Then, in the determination in
[0092]
As described above, when the rotation detection sensor 7 generates the first pulse signal A and the second pulse signal B by starting the forward rotation of the
[0093]
At this time, when the
[0094]
When the window glass 60 continues to move to the opening side, the window glass 60 is prevented from moving by colliding with the vehicle body at the fully opened position. Then, in the determination in
[0095]
In the determination in step 100 of the main routine, the process proceeds to “step 108 because the stop state is not set”, and in the determination in
[0096]
As a result of determination in
[0097]
When the
[0098]
Then, the determination in
[0099]
Due to the closed drive output, the first brush terminal 6a of the motor 6 is grounded and the power source is connected to the second brush terminal 6b of the motor 6, so that the
[0100]
Then, as shown in FIG. 3, the
[0101]
When the first pulse signal A is generated at time T19 and the rising edge of the first pulse signal A is detected, it is determined in
[0102]
Then, in the determination in
[0103]
After the time T19, the second pulse signal B falls at a time T21 shown in FIG. 3 in which the
[0104]
Then, in the determination in
[0105]
After time T21, the first pulse signal A falls at time T23 shown in FIG. When the first pulse signal A falls, the determination in
[0106]
Then, in the determination in
[0107]
After the time T23, the second pulse signal B rises at a time T25 shown in FIG. 3 in which the
[0108]
Then, in the determination in
[0109]
After time T25, the first pulse signal A rises again at time T27 shown in FIG. 3 in which the
[0110]
Then, in the determination in
[0111]
After time T27, the second pulse signal B falls at time T29 shown in FIG. 3 in which the
[0112]
Then, in the determination in
[0113]
After the time T29, the first pulse signal A falls at a time T31 shown in FIG. 3 in which the
[0114]
Then, in the determination in
[0115]
After the time T31, the second pulse signal B rises at a time T33 shown in FIG. 3 in which the
[0116]
Then, in the determination in
[0117]
As described above, the rotation detection sensor 7 generates the first pulse signal A and the second pulse signal B by starting the reverse rotation of the
[0118]
At this time, when the
[0119]
In
[0120]
If the
[0121]
As a result of the determination in
[0122]
When the window glass 60 is stopped, when the
[0123]
Then, in the determination in
[0124]
With the continuous closed drive output, the power supply is connected to the second brush terminal 6b of the motor 6, the first brush terminal 6a of the motor 6 is grounded, and the
[0125]
Then, as shown in FIG. 3, the
[0126]
When the first pulse signal A is generated at time T19 and the rising edge of the first pulse signal A is detected, it is determined in
[0127]
Then, in the determination in
[0128]
After the time T19, the second pulse signal B falls at a time T21 shown in FIG. 3 in which the
[0129]
Then, in the determination in
[0130]
After time T21, the first pulse signal A falls at time T23 shown in FIG. When the first pulse signal A falls, the determination in
[0131]
Then, in the determination in
[0132]
After the time T23, the second pulse signal B rises at a time T25 shown in FIG. 3 in which the
[0133]
Then, in the determination in
[0134]
After time T25, the first pulse signal A rises again at time T27 shown in FIG. 3 in which the
[0135]
Then, in the determination in
[0136]
After time T27, the second pulse signal B falls at time T29 shown in FIG. 3 in which the
[0137]
Then, in the determination in
[0138]
After the time T29, the first pulse signal A falls at a time T31 shown in FIG. 3 in which the
[0139]
Then, in the determination in
[0140]
After the time T31, the second pulse signal B rises at a time T33 shown in FIG. 3 in which the
[0141]
Then, in the determination in
[0142]
As described above, the rotation detection sensor 7 generates the first pulse signal A and the second pulse signal B by starting the reverse rotation of the
[0143]
At this time, when the
Since it is not larger than the determination value TLref, the process proceeds to “Step 506”.
[0144]
In
[0145]
Then, when the window glass 60 is moving toward the closing side, if pinching occurs in the reversal area, it is determined in
[0146]
In the determination in step 505 transferred from
[0147]
In the determination in step 100 of the main routine, the process proceeds to “step 108 because the stop state is not set”, and in the determination in
[0148]
In the determination in
[0149]
The determination in
[0150]
When the “open drive output” is executed, the first output port P7 of the microcomputer CPU becomes high level, the second output port P8 of the microcomputer CPU becomes low level, and the second output port of the motor 6 becomes low. Since the potential of the power supply is applied to the first brush terminal 6a of the motor 6 while the brush terminal 6b is grounded, the window glass 60 is reversely moved to the opening side when the
[0151]
When the
[0152]
When the first pulse signal A is generated at time T2 and the rising edge of the first pulse signal A is detected, it is determined in
[0153]
Then, in the determination in
[0154]
After the time T2, the second pulse signal A rises at a time T4 shown in FIG. 2 in which the
[0155]
Then, in the determination in
[0156]
After time T4, the first pulse signal A falls at time T6 shown in FIG. When the first pulse signal A falls, the determination in
[0157]
Then, in the determination in
[0158]
After time T6, the second pulse signal B falls at time T8 shown in FIG. 2 in which the
[0159]
Then, in the determination in
[0160]
After time T8, the
[0161]
Then, in the determination in
[0162]
After time T10, the second pulse signal B rises again at time T12 shown in FIG. 2 in which the
[0163]
Then, in the determination in
[0164]
After time T12, the first pulse signal A falls at time T14 shown in FIG. 2 in which the
[0165]
Then, in the determination in
[0166]
After the time T14, the second pulse signal B falls at a time T16 shown in FIG. 2 in which the
[0167]
Then, in the determination in
[0168]
As described above, when the rotation detection sensor 7 generates the first pulse signal A and the second pulse signal B by starting the forward rotation of the
[0169]
When the
[0170]
As a result of determination in
[0171]
Further, when the
[0172]
Then, in the determination in
[0173]
In the determination in
[0174]
As described above, when the
[0175]
15 to 17 show a second embodiment of the power window control device according to the present invention.
[0176]
In this case, a pair of N poles and a pair of S poles are opposed to the
[0177]
As shown in FIG. 17, the microcomputer CPU includes a first timer TAR1, a second timer TBR1, a third timer TAF1, a fourth timer TBF1, a fifth timer TAR2, and a sixth timer. A TBR2, a seventh timer TAF2, and an eighth timer TBF2 are incorporated therein, and the other parts are the same as those in the first embodiment.
[0178]
Also in this case, the rotation detection sensor 7 generates the first pulse signal A and the second pulse signal B by starting the forward rotation of the
[0179]
【The invention's effect】
As described above, according to the power window control device according to
[0180]
Claims of the invention2In the power window control apparatus according to the first, second, third, and second microcomputers, each of which has a phase difference of ¼ period and generates a pulse signal for each rotation of the rotating body. The rotation speed of the armature shaft is detected by performing a pulse period calculation process using the timer value 4 and the free running counter value. Therefore,Effect of claim 1In addition, the microcomputer has an excellent effect that only four timers are required.
[0181]
Claims of the invention3In the power window control apparatus according to the first, second, third, and second microcomputers, each of which has a phase difference of 1/8 period and generates a pulse signal for each rotation of the rotating body. 4, 5th, 6th, 7th, 8th timer value and free running counter valueBy performing the calculation process, the rotation speed of the armature shaft is detected.Therefore,Effect of claim 1In addition, the microcomputer has an excellent effect that only eight timers are required.
[Brief description of the drawings]
FIG. 1 is a block diagram of a first embodiment of a power window control device according to the present invention.
FIG. 2 is a timing chart for explaining the operation of the power window control device shown in FIG. 1;
FIG. 3 is a timing chart for explaining the operation of the power window control device shown in FIG. 1;
4 is an explanatory diagram of a pulse count calculation process in the power window control device shown in FIG. 1. FIG.
FIG. 5 is a flowchart of timer interruption in the power window control device shown in FIG. 1;
6 is an explanatory diagram of an operation direction detection process using pulses in the power window control device shown in FIG. 1; FIG.
FIG. 7 is a flowchart of a main routine used for control operation of the power window control device shown in FIG. 1;
FIG. 8 is a flowchart of a main routine used for a control operation of the power window control device shown in FIG.
9 is a flowchart of a main routine used for a control operation of the power window control device shown in FIG.
FIG. 10 is a flowchart of an output routine used for control operation of the power window control device shown in FIG. 1;
FIG. 11 is a flowchart of a pulse edge interrupt routine used for the control operation of the power window control device shown in FIG. 1;
12 is a flowchart of a pulse edge interrupt routine used for the control operation of the power window control device shown in FIG.
FIG. 13 is a flowchart of a load detection routine used for control operation of the power window control device shown in FIG. 1;
14 is an explanatory diagram of a load detection process of the power window control device shown in FIG. 1. FIG.
FIG. 15 is a timing chart for explaining the operation of the second embodiment of the power window control apparatus according to the present invention;
16 is a timing chart for explaining the operation of the power window control device shown in FIG. 15;
17 is a timing chart for explaining a control operation of a timer of the power window control device shown in FIG.
[Explanation of symbols]
1 Power window control device
2 Open switch
3 Close switch
4 Automatic switch
6 Motor
6c Armature shaft
7 Rotation detection sensor
7a Rotating body
7b (Signal generator) First signal generator
7c (Signal generator) Second signal generator
20 Control unit
24 Drive circuit
50 power supply
60 wind glass
CPU microcomputer
FRC free running counter
TAR first timer
TBR second timer
TAF third timer
TBF 4th timer
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27481397A JP3727763B2 (en) | 1997-10-07 | 1997-10-07 | Power window control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27481397A JP3727763B2 (en) | 1997-10-07 | 1997-10-07 | Power window control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH11107624A JPH11107624A (en) | 1999-04-20 |
JP3727763B2 true JP3727763B2 (en) | 2005-12-14 |
Family
ID=17546930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP27481397A Expired - Fee Related JP3727763B2 (en) | 1997-10-07 | 1997-10-07 | Power window control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3727763B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009147778A (en) | 2007-12-17 | 2009-07-02 | Mabuchi Motor Co Ltd | Pulse signal generating apparatus, rotating machine, controller, and power window controller |
JP4964112B2 (en) | 2007-12-19 | 2012-06-27 | マブチモーター株式会社 | Motor characteristic acquisition device |
-
1997
- 1997-10-07 JP JP27481397A patent/JP3727763B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH11107624A (en) | 1999-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6426604B1 (en) | Power window controlling device | |
JP3730795B2 (en) | Power window device pinching detection method | |
JP4595155B2 (en) | Opening / closing control device for opening covering material | |
US20040070356A1 (en) | Digital adaptive sensorless commutational drive controller for a brushless DC motor | |
JP3727763B2 (en) | Power window control device | |
JP2002544498A (en) | Method and apparatus for incrementally detecting a rotational reversal of a rotary drive that starts after a preceding rotational direction switch | |
JP4596079B2 (en) | Opening / closing control device for opening covering material | |
JP2010188997A (en) | Opening/closing control device for opening covering material | |
JPS63165682A (en) | Switchgear for window glass | |
KR100291269B1 (en) | Apparatus and method for determining the commutation time of a sensorless BID motor | |
JP2942127B2 (en) | Power window drive control device | |
CN111827167B (en) | Pedestrian passageway gate wing structure self-oscillation judging method and pedestrian passageway gate machine | |
JP2001349136A (en) | Power window apparatus | |
JP4652610B2 (en) | Step motor rotation control device | |
JPH07158338A (en) | Opening and closing control method for opening and closing body | |
JP3828715B2 (en) | Power window control device | |
JP3787186B2 (en) | Method for detecting pinching of opening / closing mechanism for vehicle window | |
JP3841586B2 (en) | Power window control device | |
JP2000320246A (en) | Power window controller | |
CN217812856U (en) | Stroke control device based on infrared geminate transistors | |
CN115037197B (en) | Hall-free starting method of single-phase brushless motor | |
JPH01122388A (en) | Sensorless brushless motor | |
JP2954469B2 (en) | Opening / closing body opening / closing control method | |
JPH10109534A (en) | Catch detector by dc motor | |
JP3826512B2 (en) | Motor driver and motor device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040811 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040907 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041027 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050906 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050929 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081007 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081007 Year of fee payment: 3 |
|
R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081007 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081007 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081007 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091007 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |