JP2002063150A - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JP2002063150A JP2002063150A JP2000249769A JP2000249769A JP2002063150A JP 2002063150 A JP2002063150 A JP 2002063150A JP 2000249769 A JP2000249769 A JP 2000249769A JP 2000249769 A JP2000249769 A JP 2000249769A JP 2002063150 A JP2002063150 A JP 2002063150A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- command
- energization
- microcomputer
- pull
- 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.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Microcomputers (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、プルアップ抵抗を
接続した信号線が接続される入力端子を介して取り込ん
だ信号の状態に基づいて処理を実行するプロセッサを備
えたマイクロコンピュータに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer having a processor for executing a process based on a state of a signal received through an input terminal to which a signal line connected to a pull-up resistor is connected.
【0002】[0002]
【従来の技術】従来より、車両制御用の電子制御装置
(ECU)を構成するマイクロコンピュータ(以下「マ
イコン」という)には、車両の状態を表すセンサやスイ
ッチからの状態信号や他のECUからの制御要求等、様
々な信号を入力するための入力ポートが多数設けられて
おり、これら入力ポートを介して取り込んだ信号に基づ
いて各種処理を実行するようにされている。2. Description of the Related Art Conventionally, a microcomputer (hereinafter referred to as a "microcomputer") constituting an electronic control unit (ECU) for controlling a vehicle is provided with a state signal from a sensor or a switch indicating the state of the vehicle or a signal from another ECU. There are provided a number of input ports for inputting various signals, such as a control request, and various processes are executed based on signals taken in through these input ports.
【0003】このような処理のために監視対象となる入
力ポートは、車両制御の高機能化に従って増加する傾向
にあり、これに伴って各入力ポートへの信号線に接続さ
れるプルアップ抵抗がマイコンの消費電力を増大させる
原因の一つとなっている。これに対して、入力ポートか
ら信号を取り込む時にだけ、プルアップ抵抗への通電を
行うことにより、プルアップ抵抗による電力消費を削減
する方法が知られている。[0003] The input ports to be monitored for such processing tend to increase as the functions of the vehicle control become more sophisticated. As a result, the pull-up resistors connected to the signal lines to the respective input ports are reduced. This is one of the causes for increasing the power consumption of the microcomputer. On the other hand, there is known a method of reducing the power consumption due to the pull-up resistor by energizing the pull-up resistor only when taking in a signal from an input port.
【0004】但し、入力ポートに接続された信号線やこ
の信号線に信号を供給する機器の持つ容量分やインダク
タンス分の影響により、プルアップ抵抗への通電が開始
された直後の信号線の状態は電気的に不安定なものとな
る。このため、入力ポートから信号を取り込む前には、
信号線の状態が電気的に安定するまでに要する立上時間
以上の間、プルアップ抵抗への通電を連続して行う必要
がある。However, the state of the signal line immediately after the power supply to the pull-up resistor is started due to the influence of the capacitance and inductance of the signal line connected to the input port and the equipment supplying the signal to the signal line. Becomes electrically unstable. Therefore, before capturing a signal from the input port,
It is necessary to continuously supply current to the pull-up resistor during the time required for the signal line to stabilize electrically, for a time equal to or longer than the rise time.
【0005】そこで、具体的には、図4(a)に示すよ
うに、まず、プルアップ抵抗への通電を開始すると共
に、上記立上時間の経過後に割込を発生させるよう設定
されたタイマーを起動した後、タイムアウトして割込が
発生するまで待機し、タイマー割込が発生するとその割
込処理の中で、入力ポートから信号を取り込んだり、プ
ルアップ抵抗への通電を停止させたりしていた。Therefore, as shown in FIG. 4 (a), a timer is set to start energizing the pull-up resistor and generate an interrupt after the elapse of the rise time. After the timer has started, it will time out and wait for an interrupt to occur.If a timer interrupt occurs, during the interrupt processing, it will take a signal from the input port or stop energizing the pull-up resistor. I was
【0006】[0006]
【発明が解決しようとする課題】しかし、割込処理で
は、本来実行すべき処理(ここでは入力ポートからの信
号の取込)以外に、レジスタの退避,復帰や、割込マス
クの設定,解除等、割込処理に特有な処理を多数行わな
ければならず、ソフトウェアの負荷が大きくなってしま
うといという問題があった。However, in the interrupt processing, in addition to the processing to be originally executed (in this case, fetching of a signal from an input port), saving and restoring of a register, and setting and canceling of an interrupt mask are performed. For example, there is a problem that a large number of processes specific to the interrupt process must be performed, which increases the load on software.
【0007】ところで、近年では、車両のドアを無線に
より施錠,開錠するもの等があり、ECUは、エンジン
の停止時であっても、これらの制御要求や車両状態の変
化に対応しなければならない。このため、エンジンの停
止時には、図4(b)に示すように、ECUを構成する
マイコンを、機能停止しているが起動要請があれば直ち
に動作を再開可能なスリープ状態にして待機させてお
き、定期的にスリープ状態から処理が可能な起床状態に
して、プロセッサに入力ポートから信号を取り込んで制
御要求や車両状態の変化の有無を監視する監視処理を実
行させる、いわゆる待受制御を行わせている。そして、
監視処理の結果、制御要求や車両状態の変化が検出され
なければ、直ちにスリープ状態に戻り、制御要求や車両
状態の変化が検出された場合には、これに対応する処理
を実行させるのである。[0007] In recent years, there has been a method of locking and unlocking the door of a vehicle wirelessly, and the like. Even if the engine is stopped, the ECU must respond to these control requests and changes in the vehicle state. No. For this reason, when the engine is stopped, as shown in FIG. 4 (b), the microcomputer constituting the ECU is put into a sleep state in which the function is stopped but the operation can be resumed immediately upon a start request, and is put on standby. Wake-up state that can be processed periodically from the sleep state, and causes the processor to execute a monitoring process of receiving a signal from an input port and monitoring for a control request or a change in the vehicle state, that is, a so-called standby control. ing. And
As a result of the monitoring processing, if a control request or a change in the vehicle state is not detected, the sleep state is immediately returned. If a control request or a change in the vehicle state is detected, the corresponding processing is executed.
【0008】このような待受制御は、上述のようにエン
ジンの停止中に行われるため、バッテリの過度な消耗を
防ぐために可能な限り電力消費を抑える必要がある。こ
のため、特にスリープ状態の時には、スリープ状態から
起床状態に遷移させるタイミングを生成するためのタイ
マーや、前回の起床時に取り込んだ入力ポートの状態等
の履歴情報を記憶するためのメモリ等、最低限必要な周
辺機器のみに電源供給を行うと共に、高速なメインクロ
ック(例えば16MHz)の生成を停止させ、メインク
ロックより低速なサブクロック(例えば25〜30KH
z)を用いて、上述のタイマー等を駆動することによ
り、電力消費を抑えることが行われている。Since such standby control is performed while the engine is stopped as described above, it is necessary to reduce power consumption as much as possible to prevent excessive consumption of the battery. Therefore, particularly in the sleep state, at least a timer for generating a timing for transitioning from the sleep state to the wake-up state, a memory for storing history information such as the state of the input port taken in at the time of the previous wake-up, and the like. Power is supplied only to necessary peripheral devices, and the generation of a high-speed main clock (for example, 16 MHz) is stopped, and a sub-clock (for example, 25 to 30 KH) slower than the main clock is generated.
The power consumption is suppressed by driving the above-described timer and the like using z).
【0009】一方、スリープ状態から起床状態に起床し
た時には、高速なメインクロックがマイコンに供給され
ることにより、マイコンに大きな動作電流が流れ、暗電
流(エンジン停止中に流れる電流)を増大させてしまう
ため、マイコンが起床状態となる期間をできるだけ短く
する必要がある。On the other hand, when the computer wakes up from the sleep state to the wake-up state, a high-speed main clock is supplied to the microcomputer, so that a large operating current flows to the microcomputer and the dark current (current flowing when the engine is stopped) is increased. Therefore, it is necessary to shorten the period in which the microcomputer is in the wake-up state as short as possible.
【0010】しかし、この起床状態の時に実行される入
力ポートの監視処理では、上述したように、プルアップ
抵抗への通電を開始した後、タイマー割込が発生するま
での間、即ち信号線の状態が電気的に安定するまでに要
する立上時間が経過するまでの間は、何の処理も行われ
ない待ち時間となる。その結果、無駄に暗電流を増大さ
せてしまい、バッテリの消耗を十分に抑えることができ
ないという問題があった。However, in the input port monitoring process executed in the wake-up state, as described above, after the power supply to the pull-up resistor is started, a period from when the timer interrupt occurs, that is, when the signal line is disconnected. Until the start-up time required for the state to be electrically stable elapses, there is a waiting time during which no processing is performed. As a result, there is a problem that the dark current is unnecessarily increased and the consumption of the battery cannot be sufficiently suppressed.
【0011】本発明は、上記問題点を解決するために、
入力ポートから信号を取り込む際のソフトウェアの負荷
を軽減することを第1の目的とし、更に、スリープ状態
の時に間欠的に入力ポートを監視する待受制御に基づい
た電力消費を必要最小限に抑えることを第2の目的とす
る。The present invention has been made in order to solve the above problems.
A first object of the present invention is to reduce a load of software when a signal is taken in from an input port, and further, to minimize power consumption based on standby control for intermittently monitoring an input port in a sleep state. This is a second object.
【0012】[0012]
【課題を解決するための手段】上記目的を達成するため
の発明である請求項1記載のマイクロコンピュータで
は、通電指令生成手段が生成する通電指令を、入力端子
への信号線に接続されたプルアップ抵抗を予め設定され
た通電期間の間だけ通電するために、出力端子を介して
外部に供給すると共に、ラッチ手段にも供給する。According to a first aspect of the present invention, there is provided a microcomputer according to the invention, wherein an energization command generated by an energization command generation means is connected to a pull-up terminal connected to a signal line to an input terminal. In order to energize the up resistor only during a preset energizing period, the up resistor is supplied to the outside via an output terminal and also supplied to a latch means.
【0013】そして、ラッチ手段は、その通電指令の終
了タイミングで、入力端子からの入力信号をラッチして
入力ポートに供給し、プロセッサは、この入力ポートか
ら取り込んだ信号の状態に基づいて処理を実行する。な
お、通電指令生成手段は、通電指令を定期的に生成する
ため、ラッチ手段にてラッチされる信号、即ち、入力ポ
ートから取り込まれる信号は、定期的に更新されること
になる。The latch means latches the input signal from the input terminal at the end timing of the energization command and supplies the input signal to the input port, and the processor performs processing based on the state of the signal fetched from the input port. Execute. In addition, since the energization command generation unit generates the energization command periodically, the signal latched by the latch unit, that is, the signal taken in from the input port is updated periodically.
【0014】このように、本発明では、入力端子からの
入力信号をラッチすると同時に、プルアップ抵抗への通
電が終了するため、プルアップ抵抗での電力消費を必要
最小限に抑えることができる。しかも、本発明によれ
ば、通電指令により通電が開始されてから、ラッチ手段
にてラッチが行われるまでの通電期間が、プルアップ抵
抗への通電を開始してから信号線の状態が電気的に安定
するまでに要する立上時間以上の長さに設定されている
ため、常に、安定した状態で入力ポートへの入力信号を
ラッチすることができ、入力ポートから読み込まれる信
号の信頼性を向上させることができる。As described above, according to the present invention, since the power supply to the pull-up resistor is terminated at the same time as the input signal from the input terminal is latched, the power consumption of the pull-up resistor can be suppressed to the minimum necessary. Moreover, according to the present invention, the energization period from the start of energization in accordance with the energization command to the latching by the latch means is an electrical period between the start of energization to the pull-up resistor and the state of the signal line. The input signal to the input port can always be latched in a stable state because it is set to be longer than the rise time required for stable operation, improving the reliability of the signal read from the input port. Can be done.
【0015】また、本発明によれば、入力端子からの入
力信号を、プロセッサ以外の手段にてハードウェア的に
ラッチして入力ポートに供給しており、外部からの信号
が必要な時には、直ちに入力ポートから信号を取り込む
ことができるため、プロセッサに実行させるプログラム
の作成が容易なだけでなく、従来装置のように立上時間
を確保するために割込処理を用いる必要もないため、ソ
フトウェアの動作時の負荷も軽減できる。Further, according to the present invention, the input signal from the input terminal is latched by hardware other than the processor and supplied to the input port, and when an external signal is required, it is immediately sent to the input port. Since signals can be captured from the input port, not only is it easy to create a program to be executed by the processor, but also there is no need to use interrupt processing to secure the startup time as in the conventional device. The load during operation can also be reduced.
【0016】ところで、入力ポートへの入力信号は、信
号線が持つインダクタンス分や容量分とプルアップ抵抗
の抵抗分とに基づく時定数の影響により、通電指令が終
了しても直ちに電源供給が途絶えてしまうことがない。
このため、ラッチ手段は、通常であれば、この通電指令
の終了タイミングを用いて、入力端子からの入力信号を
安定した状態でラッチできる。しかし、回路構成によっ
て、ラッチ手段への通電指令の終了タイミングの伝達が
遅れるおそれがある場合には、請求項2記載のように、
出力端子に供給される通電指令を、ラッチ手段に供給さ
れるものより遅延させる遅延手段を設けることが望まし
い。By the way, the power supply to the input signal to the input port is interrupted immediately after the energization command is terminated due to the influence of the time constant based on the inductance and capacitance of the signal line and the resistance of the pull-up resistor. I won't.
For this reason, the latch means can normally latch the input signal from the input terminal in a stable state using the end timing of the energization command. However, if there is a possibility that transmission of the end timing of the energization command to the latch means may be delayed due to the circuit configuration,
It is desirable to provide a delay unit that delays the energization command supplied to the output terminal from that supplied to the latch unit.
【0017】また、入力端子からの入力信号を、リアル
タイムで検出する必要がある場合には、請求項3記載の
ように、ラッチ手段による信号のラッチを禁止するラッ
チ禁止手段を設け、入力ポートへの入力信号がラッチ手
段を素通りできるようにしておくことが望ましい。When the input signal from the input terminal needs to be detected in real time, a latch inhibiting means for inhibiting the signal from being latched by the latch means is provided. Is desirably allowed to pass through the latch means.
【0018】なお、通電指令生成手段として、具体的に
は、例えば、請求項4記載のように、プロセッサからの
指令により指定時間が設定されると、この指定時間の経
過後に予め設定された期間だけアクティブレベルとなる
タイムアウト信号を1回だけ出力するタイマーを用いる
ことができ、この場合、タイムアウト信号を通電指令の
終了として用いればよい。As the energization command generating means, specifically, for example, when a specified time is set by a command from the processor, a predetermined period is set after the specified time elapses. A timer that outputs a time-out signal that only becomes active level only once can be used. In this case, the time-out signal may be used as the end of the energization command.
【0019】また、請求項5記載のように、プロセッサ
からの指令により予め設定された条件に従ったPWM信
号を繰り返し生成するタイマーを用いてもよく、この場
合、PWM信号を通電指令として用いればよい。特に前
者(請求項4)の場合、プロセッサが実行する処理の中
に、一定周期毎に起動されるものがある場合に、その処
理の中でタイマーの指定時間の設定を行うようにすれ
ば、入力ポートから読み込まれる信号が定期的に更新さ
れることになる。また後者(請求項5)の場合には、初
期化処理等の中で、条件を1度設定しておけば、以後、
設定されたPWM信号の周期毎に、入力ポートから読み
込まれる信号が更新されることになる。Further, a timer for repeatedly generating a PWM signal in accordance with a preset condition according to a command from the processor may be used. In this case, if the PWM signal is used as an energization command, Good. In particular, in the former case (claim 4), if some of the processes executed by the processor are activated at regular intervals, the specified time of the timer is set in the process. The signal read from the input port will be updated periodically. In the latter case (claim 5), if the condition is set once in the initialization processing or the like,
The signal read from the input port is updated every period of the set PWM signal.
【0020】次に、請求項6記載のマイクロコンピュー
タでは、周期起動手段が、起動指令を定期的に生成する
ことにより、当該マイクロコンピュータを、プロセッサ
が機能停止しているスリープ状態から、プロセッサが処
理の実行を可能な起床状態に遷移させる。Next, in the microcomputer according to the sixth aspect, the periodic activation means periodically generates the activation command, so that the processor can process the microcomputer from the sleep state in which the function of the processor is stopped. Is made to transition to a possible wake-up state.
【0021】このようにマイクロコンピュータが起床状
態に遷移すると、プロセッサは、入力ポートから取り込
んだ信号の状態に基づいて処理を実行し、実行すべき処
理がなく機能停止する際には停止指令を出力する。そし
て、このプロセッサからの停止指令により、マイクロコ
ンピュータは、電力消費の少ないスリープ状態に遷移す
る。When the microcomputer transits to the wake-up state, the processor executes processing based on the state of the signal fetched from the input port, and outputs a stop command when there is no processing to be executed and the function stops. I do. Then, in response to a stop command from this processor, the microcomputer shifts to a sleep state in which power consumption is low.
【0022】また、周期起動手段にて起動指令に先だっ
て生成され、出力端子を介して外部に供給される通電指
令により、入力端子への信号線に接続されたプルアップ
抵抗は、起動指令が生成される前には、立上時間以上の
通電が行われ、入力端子への信号線の状態が電気的に安
定した状態となるようにされている。In addition, the pull-up resistor connected to the signal line to the input terminal generates the start command in response to an energization command generated prior to the start command by the periodic start means and supplied to the outside via the output terminal. Before the start, the power is supplied for a time equal to or longer than the start-up time so that the state of the signal line to the input terminal becomes electrically stable.
【0023】従って、本発明によれば、起動指令により
処理の実行が可能となったプロセッサは、割込処理等を
用いることなく、直ちに入力ポートから信号を読み取る
ことができ、プロセッサが起床状態となる期間を大幅に
短縮できる。その結果、例えば、本発明のマイクロコン
ピュータを、車両制御用の電子制御装置を構成するため
に用い、エンジンの停止時に入力ポートを間欠的に監視
する待受制御を行わせた場合には、マイクロコンピュー
タに流れる暗電流を必要最小限に抑えることができ、バ
ッテリが過度に消耗されてしまうことを防止できる。Therefore, according to the present invention, the processor capable of executing the process in response to the start command can immediately read the signal from the input port without using an interrupt process or the like, and the processor becomes in the wake-up state. Can be greatly reduced. As a result, for example, when the microcomputer of the present invention is used to configure an electronic control device for vehicle control and standby control for intermittently monitoring an input port when the engine is stopped is performed, The dark current flowing to the computer can be suppressed to a necessary minimum, and the battery can be prevented from being excessively consumed.
【0024】ところで、プルアップ抵抗への通電は、起
床したプロセッサが実行する処理の中で、入力ポートか
ら信号を読み込んだ後に停止させるようにしてもよい
が、例えば、請求項7記載のように、通電指令が終了す
るタイミングにて、入力端子からの入力信号をラッチし
て入力ポートに供給するラッチ手段を設け、通電指令
を、プルアップ抵抗への通電が立上時間以上行われ、且
つラッチ手段がラッチを行った直後にプロセッサによる
入力ポートからの信号の取り込みが実行されるような開
始タイミング及び終了タイミングを有するように設定し
てもよい。この場合、プルアップ抵抗での電力消費を必
要最小限に抑えることができる。By the way, the energization of the pull-up resistor may be stopped after reading the signal from the input port in the processing executed by the wake-up processor. A latch means for latching an input signal from an input terminal and supplying the input signal to an input port at a timing when the energization command is completed, so that the energization command is supplied to the pull-up resistor for more than a rising time; It may be set to have a start timing and an end timing such that the processor takes in the signal from the input port immediately after the means latches. In this case, power consumption by the pull-up resistor can be minimized.
【0025】なお、このようにラッチ手段を設けた場合
には、更に、先の請求項2に記載の遅延手段、及び請求
項3に記載のラッチ禁止手段を設けてもよく、その場合
には、請求項2及び請求項3に記載の発明と同様の効果
を得ることができる。ところで、マイクロコンピュータ
をスリープ状態にする場合、電力消費を抑えるために、
高速なメインクロックを停止させ、より低速なサブクロ
ックに切り替えて必要最小限の動作を行わせることが行
われている。このため、スリープ状態から起床状態に起
床させるときには、メインクロックの発振を開始させ、
その発振状態が安定してからプロセッサを動作させる必
要があり、プルアップ抵抗への通電を行う場合と同様
に、ここでも待ち時間が生じる。When the latch means is provided as described above, the delay means according to the second aspect and the latch inhibition means according to the third aspect may be further provided. The same effects as those of the inventions according to the second and third aspects can be obtained. By the way, when putting a microcomputer to sleep state, in order to suppress power consumption,
It has been practiced to stop the high-speed main clock and switch to a lower-speed sub-clock to perform the necessary minimum operation. Therefore, when waking up from the sleep state to the wake-up state, the main clock oscillation is started,
It is necessary to operate the processor after the oscillation state is stabilized, and a waiting time occurs here as in the case where the power is supplied to the pull-up resistor.
【0026】そこで、請求項8記載のように、メインク
ロックを生成するクロック生成手段と、プロセッサから
の停止指令に従ってメインクロックの生成を停止させた
り、周期起動手段が生成する通電指令に先立って、メイ
ンクロックの生成を開始させるクロック制御手段を備え
ている場合には、起動制御手段は、メインクロックの発
振が安定するまでの間に通電指令を終了させることが望
ましい。Therefore, as described in claim 8, the clock generation means for generating the main clock, the generation of the main clock is stopped in accordance with a stop instruction from the processor, or the power supply instruction generated by the periodic start means is provided prior to the energization instruction. In the case where a clock control unit for starting the generation of the main clock is provided, it is desirable that the activation control unit terminates the energization command until the oscillation of the main clock is stabilized.
【0027】即ち、プルアップ抵抗への通電は、メイン
クロックが不安定であっても問題なく行うことができる
ため、この間にプルアップ抵抗への通電を終了させてお
けば、メインクロックが安定すると、直ちにプロセッサ
が処理を実行させて入力ポートから信号を取り込むこと
ができ、その結果、待受制御におけるメインクロックの
生成期間が必要最小限に抑えられるため、暗電流を更に
減少させることができる。That is, the power supply to the pull-up resistor can be performed without any problem even if the main clock is unstable. If the power supply to the pull-up resistor is terminated during this time, the main clock becomes stable. Then, the processor can immediately execute the processing and take in the signal from the input port. As a result, the generation period of the main clock in the standby control can be minimized, so that the dark current can be further reduced.
【0028】次に、請求項9記載のマイクロコンピュー
タでは、通電指令生成手段が、入力ポートへの信号線に
接続されたプルアップ抵抗を、予め設定された通電期間
の間だけ通電するための通電指令を定期的に生成し、動
作切替手段が、通電指令生成手段及び周期起動手段のい
ずれかを有効とするようにされている。[0028] Next, in the microcomputer according to the ninth aspect, the energization command generating means is configured to energize the pull-up resistor connected to the signal line to the input port only for a predetermined energization period. An instruction is periodically generated, and the operation switching unit is configured to enable one of the energization instruction generation unit and the periodic activation unit.
【0029】従って、本発明によれば、スリープ状態の
時には周期起動手段、起床状態が継続する時には通電指
令生成手段を有効とすることにより、いずれの状態の時
にも、定期的に更新される信号を、常に安定した状態で
入力ポートから取り込むことができる。Therefore, according to the present invention, by enabling the cycle starting means in the sleep state and the energization command generating means in the wake-up state, the signal which is periodically updated in any state. Can be always taken in from the input port in a stable state.
【0030】なお、通電指令生成手段として、具体的に
は、上述の請求項4又は請求項5に記載のものを用いる
ことができる。It should be noted that the power supply command generating means may be, specifically, the one described in claim 4 or claim 5 described above.
【0031】[0031]
【発明の実施の形態】以下に本発明の実施形態を図面と
共に説明する。図1は、本発明が提供されたマイクロコ
ンピュータを組み込んで構成した車載用電子制御装置
(ECU)の概略構成図である。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram of an in-vehicle electronic control unit (ECU) configured by incorporating a microcomputer provided with the present invention.
【0032】図1に示すように、ECU2は、本実施形
態のマイクロコンピュータ(マイコン)4を中心に構成
されており、車両の状態を表す各種スイッチやセンサか
らの信号線が接続される複数(ここでは32個)の接続
端子T(T0〜T31)、各接続端子Tからの入力信号
をマイコン4に導く信号線L(L0〜L31)、各信号
線Lをバッテリ電圧Bにてプルアップするためのプルア
ップ抵抗Rp(Rp0〜Rp31)、マイコン4からの
通電指令に従って、プルアップ抵抗Rpへの通電を制御
する通電回路6を備えている。As shown in FIG. 1, the ECU 2 is mainly composed of a microcomputer (microcomputer) 4 of the present embodiment, and a plurality of signal lines from various switches and sensors indicating the state of the vehicle are connected. Here, 32 connection terminals T (T0 to T31), signal lines L (L0 to L31) for guiding an input signal from each connection terminal T to the microcomputer 4, and each signal line L are pulled up by the battery voltage B. Resistor Rp (Rp0 to Rp31) for controlling the power supply to the pull-up resistor Rp in accordance with a current supply command from the microcomputer 4.
【0033】このうち通電回路6は、マイコン4からの
通電指令がアクティブ(ハイ)レベルの時にオン状態と
なって、抵抗R1,R2からなる分圧回路への通電を行
うトランジスタTR1と、分圧回路によりバイアスされ
オン状態になるとプルアップ抵抗Rpへの通電を行うト
ランジスタTR2とからなる。The energizing circuit 6 is turned on when an energizing command from the microcomputer 4 is at an active (high) level, and a transistor TR1 for energizing a voltage dividing circuit composed of resistors R1 and R2; A transistor TR2 that conducts electricity to the pull-up resistor Rp when turned on by being biased by the circuit.
【0034】次に、マイコン4は、CPU10,ROM
11,RAM12からなる周知の構成に加えて、CPU
10からの指令に従って、CPU10が設定する条件に
従ったPWM信号を繰り返し出力するPWMモード、又
はCPU10が設定する設定時間が経過すると所定のパ
ルス幅を有する信号を出力するアウトプットコンペアモ
ードのいずれかにて動作するタイマー回路14と、後述
するサブクロックSCKに従って動作し、各種タイミン
グ信号PS,C1〜C3を生成するタイミング生成回路
15と、タイマー回路14からの出力PM、或いはタイ
ミング生成回路15からの出力PSのいずれかを選択し
てプルアップ抵抗通電信号P(本発明の通電指令に相
当)として出力する選択回路16と、選択回路16が出
力するプルアップ抵抗通電信号Pを遅延させる遅延回路
17と、選択回路16が出力するプルアップ抵抗通電信
号P、及びこれを遅延回路17にて遅延させたもののい
ずれかを選択し、出力端子TOを介して通電回路6に供
給する切替スイッチ18とを備えている。Next, the microcomputer 4 comprises a CPU 10, a ROM
11, a well-known configuration comprising a RAM 12 and a CPU
Either a PWM mode in which a PWM signal is repeatedly output in accordance with a condition set by the CPU 10 in accordance with a command from the CPU 10, or an output compare mode in which a signal having a predetermined pulse width is output when a set time set by the CPU 10 elapses. , A timing generation circuit 15 which operates in accordance with a sub-clock SCK to be described later and generates various timing signals PS, C1 to C3, an output PM from the timer circuit 14, or a signal from the timing generation circuit 15. A selection circuit 16 for selecting one of the outputs PS and outputting the selected signal as a pull-up resistance energizing signal P (corresponding to the energizing command of the present invention); and a delay circuit 17 for delaying the pull-up resistance energizing signal P output from the selecting circuit 16 And the pull-up resistor energizing signal P output from the selection circuit 16 and the Although delayed by circuit 17 selects either, and a changeover switch 18 supplies the energizing circuit 6 via the output terminal TO.
【0035】また、マイコン4は、各信号線Lが接続さ
れた入力端子TI(TI0〜TI31)からの入力信号
を、選択回路16が出力するプルアップ抵抗通電信号P
の終了タイミング(立下りエッジ)にてそれぞれラッチ
するラッチ回路LT(LT0〜LT31)と、各ラッチ
回路LTの出力を、CPU10に取り込むためのIOポ
ート13と、CPU10からの指令に従って、各ラッチ
回路LTの動作モード(ラッチ/スルー)や、選択回路
16や切替スイッチ18での動作を設定するための動作
設定レジスタ19とを備えている。The microcomputer 4 receives an input signal from an input terminal TI (TI0 to TI31) to which each signal line L is connected, and outputs a pull-up resistor energizing signal P
Latches LT (LT0 to LT31) that respectively latch at the end timing (falling edge) of the above, an IO port 13 for taking in the output of each latch circuit LT into the CPU 10, and each latch circuit in accordance with a command from the CPU 10. An operation setting register 19 for setting the operation mode (latch / through) of the LT and the operation of the selection circuit 16 and the changeover switch 18 is provided.
【0036】なお、通常、ラッチ回路LTは、信号をラ
ッチする動作モード、選択回路16は、タイミング生成
回路15からの出力PSを選択し、切替スイッチ18
は、選択回路16が出力するプルアップ抵抗通電信号P
Sを出力端子TOに供給する設定となっているものとす
る。Normally, the latch circuit LT operates in an operation mode for latching a signal, and the selection circuit 16 selects the output PS from the timing generation circuit 15 and the changeover switch 18
Is the pull-up resistor energizing signal P output from the selection circuit 16
It is assumed that S is set to be supplied to the output terminal TO.
【0037】また、タイミング生成回路15は、図2に
示すように、一定周期tcy(本実施形態では75ms)
毎に定期的にメインクロック稼動開始信号C1を出力
し、時間tw1(本実施形態では1ms)経過後に、周辺
リソース通電開始信号C2を出力し、更に時間tw2(本
実施形態では、0.3ms)経過後に、動作クロック切
替信号C3(本発明の起動信号に相当)を出力するよう
に構成されている。これと共に、周辺リソース通電開始
信号C2の開始タイミングと同時、又はこれより少し
(100μs程度)遅れてアクティブとなり、動作クロ
ック切替信号C3の開始タイミングで非アクティブとな
る通電信号PSを出力するように構成されている。As shown in FIG. 2, the timing generation circuit 15 has a constant period tcy (75 ms in this embodiment).
A main clock operation start signal C1 is periodically output every time, a peripheral resource energization start signal C2 is output after a time tw1 (1 ms in the present embodiment) has elapsed, and a time tw2 (0.3 ms in the present embodiment). After the elapse, the operation clock switching signal C3 (corresponding to the start signal of the present invention) is output. At the same time, a configuration is made to output an energization signal PS that becomes active at the same time as the start timing of the peripheral resource energization start signal C2 or slightly later (about 100 μs), and becomes inactive at the start timing of the operation clock switching signal C3. Have been.
【0038】但し、時間tw2は、プルアップ抵抗Rpへ
の通電を開始後、信号線Lの状態が電気的に安定するの
に必要な立上時間以上の長さに設定され、また、時間t
w1は、tw1+tw2が、メインクロックMCKの生成を開
始後、その発振状態が安定するのに必要な発振安定時間
以上となるような長さに設定されている。However, the time tw2 is set to be equal to or longer than the rise time necessary for the state of the signal line L to be electrically stabilized after the start of the current supply to the pull-up resistor Rp.
w1 is set to a length such that tw1 + tw2 is equal to or longer than the oscillation stabilization time necessary for stabilizing the oscillation state after the generation of the main clock MCK is started.
【0039】更に、マイコン4は、メインクロックMC
K(本実施形態では16MHz)及びサブクロックSC
K(本実施形態では30KHz)からなる2種類の動作
クロックを生成すると共に、CPU10からの停止指令
SLPに従って、当該マイコン4をスリープ状態に遷移
させ、タイミング生成回路15からの出力C1〜C3に
従って、当該マイコン4をスリープ状態から起床状態に
遷移させるスリープ制御回路20を備えている。Further, the microcomputer 4 has a main clock MC.
K (16 MHz in this embodiment) and the sub clock SC
K (in this embodiment, 30 KHz), two kinds of operation clocks are generated, and the microcomputer 4 is shifted to a sleep state in accordance with a stop command SLP from the CPU 10, and according to outputs C1 to C3 from the timing generation circuit 15, A sleep control circuit 20 that causes the microcomputer 4 to transition from the sleep state to the wake-up state is provided.
【0040】このスリープ制御回路20は、停止指令S
LPが入力されると、ROM11,IOポート13,タ
イマー回路14,及び図1中に図示されている以外の周
辺回路への電源供給を停止する。これと共に、メインク
ロックMCKの生成を停止して、当該マイコン4の動作
クロックとしてサブクロックSCKを供給することによ
り、マイコン4を、CPU10が機能停止したスリープ
状態に遷移させる。The sleep control circuit 20 has a stop command S
When the LP is input, power supply to the ROM 11, the IO port 13, the timer circuit 14, and peripheral circuits other than those shown in FIG. 1 is stopped. At the same time, the generation of the main clock MCK is stopped, and the sub-clock SCK is supplied as the operation clock of the microcomputer 4, thereby causing the microcomputer 4 to transition to a sleep state in which the function of the CPU 10 is stopped.
【0041】なお、停止指令SLPを出力する前にCP
U10は、全てのラッチ回路LTが、プルアップ抵抗通
電信号Pの終了タイミングで入力端子TIからの入力信
号をラッチする動作モードとなり、選択回路16にて、
タイミング生成回路15からの出力PSがプルアップ抵
抗通電信号Pとして選択されるように、動作設定レジス
タ19を設定する。Before outputting the stop command SLP, CP
U10 is set to an operation mode in which all the latch circuits LT latch the input signal from the input terminal TI at the end timing of the pull-up resistance energizing signal P.
The operation setting register 19 is set so that the output PS from the timing generation circuit 15 is selected as the pull-up resistance energizing signal P.
【0042】また、スリープ状態の時に、タイミング生
成回路15からメインクロック稼動開始信号C1が入力
されると、メインクロックMCKの生成を開始し、その
後、周辺リソース通電開始信号C2が入力されると、ス
リープ状態に遷移する際に、電源供給が停止された各部
への電源供給を開始し、更に、動作クロック切替信号C
3が入力されると、動作クロックをサブクロックSCK
からメインクロックMCKに切り替える。このように動
作クロックがメインクロックMCKに切り替わると、C
PU10は、ROM11に記憶されたプログラムに従っ
た処理の実行を開始する。In the sleep state, when the main clock operation start signal C1 is input from the timing generation circuit 15, the generation of the main clock MCK is started. After that, when the peripheral resource energization start signal C2 is input, When transitioning to the sleep state, power supply to each unit whose power supply has been stopped is started, and the operation clock switching signal C
3 is input, the operation clock is set to the subclock SCK.
To the main clock MCK. When the operation clock is switched to the main clock MCK in this manner, C
The PU 10 starts executing a process according to the program stored in the ROM 11.
【0043】但し、これらメインクロックMCKの生
成、周辺リソースへの通電、動作クロックの切替は、C
PU10からの停止指令SLPにより、すべて停止する
ようにされている。ここで、マイコン4が起床状態にあ
る時に、CPU10が実行する処理を、図3に示すフロ
ーチャートに沿って説明する。なお、本処理は、先に説
明したように、動作クロックとしてメインクロックMC
Kが供給されることにより起動される。However, generation of these main clocks MCK, energization of peripheral resources, and switching of operation clocks are performed by C
All are stopped by a stop command SLP from the PU 10. Here, the processing executed by the CPU 10 when the microcomputer 4 is in the wake-up state will be described with reference to the flowchart shown in FIG. Note that, as described above, this processing is performed using the main clock MC as the operation clock.
It is activated when K is supplied.
【0044】図3に示すように、本処理が起動すると、
まずS110では、プログラムカウンタ,スタックポイ
ンタ,割込ベクターの設定等、プログラムの実行に必要
な各種設定を行うための初期化処理を実行する。S12
0では、IOポート13から信号を取り込み、続くS1
30では、前回起動された時に取り込まれたデータと比
較し、変化があるか否かを判断する。As shown in FIG. 3, when this processing is started,
First, in S110, an initialization process for performing various settings required for execution of a program, such as setting of a program counter, a stack pointer, and an interrupt vector, is performed. S12
At 0, a signal is fetched from the IO port 13 and the subsequent S1
At 30, it is determined whether or not there is a change by comparing with the data taken in at the time of the previous activation.
【0045】そして、変化がなければ、制御要求や車両
状態の変化はないものとして、S140に移行する。一
方、先のS130にて、IOポート13からの取込値に
変化があると判定された場合には、制御要求や車両状態
の変化があったものとして、S150に移行し、その要
求や変化に対応する処理は、処理量が大であるか否かを
判断する。具体的には、当該マイコン4の起床周期tcy
以上続けて起床状態が継続するか否かを判断し、起床状
態の継続期間が起床周期tcyより短ければ、S160に
移行して、要求や変化に対応する処理を実行する。If there is no change, it is determined that there is no change in the control request or the vehicle state, and the flow shifts to S140. On the other hand, if it is determined in S130 that there is a change in the value taken in from the IO port 13, it is determined that a control request or a change in the vehicle state has occurred, and the process proceeds to S150. In the processing corresponding to, it is determined whether or not the processing amount is large. Specifically, the wake-up cycle tcy of the microcomputer 4
It is determined whether or not the wake-up state continues, and if the wake-up state has a duration shorter than the wake-up cycle tcy, the process shifts to S160 to execute a process corresponding to the request or change.
【0046】続くS165では、対応処理(S160)
の実行中に新たなIOポート13の変化が有ったか否か
をチェックし、変化がなければ、新たな処理要求は発生
していないものとして、S140に移行する。また先の
S150にて、起床状態の継続期間が起床周期tcy以上
となると判定されるか、或いは先のS165でのチェッ
クの結果、IOポート13に変化があり、新たな処理要
求が発生していると判定された場合には、S170に移
行する。At S165, the corresponding process (S160)
It is checked whether or not a new IO port 13 has been changed during the execution of the process. If there is no change, it is determined that a new processing request has not been issued, and the routine goes to S140. Further, in S150, it is determined that the wake-up state duration is equal to or longer than the wake-up cycle tcy, or as a result of the check in S165, the IO port 13 has changed, and a new processing request is generated. If it is determined that there is, the process proceeds to S170.
【0047】S170では、タイマー回路14の設定を
行うと共に、選択回路16を、タイマー回路14からの
出力PMをプルアップ抵抗通電信号Pとする設定に切り
替え、続くS180にて、先の要求や変化に対応する処
理を実行する。続くS190では、対応処理(S18
0)の実行中に新たなIOポート13の変化があったか
否かをチェックし、変化があれば、新たな処理要求が発
生しているものとして、S180に戻り、その処理要求
に対応する処理を実行する。一方、チェックの結果変化
がなければ、新たな処理要求は発生していないものとし
て、S200に移行し、選択回路16を、タイミング生
成回路15からの出力PSを通電指令とする設定に戻し
た後、S140に移行する。In S170, the setting of the timer circuit 14 is performed, and the selection circuit 16 is switched to the setting in which the output PM from the timer circuit 14 is used as the pull-up resistance energizing signal P. Is executed. In the following S190, the corresponding process (S18)
It is checked whether there is a change in the new IO port 13 during the execution of (0). If there is a change, it is determined that a new processing request has occurred, and the process returns to S180 to execute the processing corresponding to the processing request. Execute. On the other hand, if there is no change as a result of the check, it is determined that a new processing request has not been generated, and the process proceeds to S200, where the selection circuit 16 is returned to the setting in which the output PS from the timing generation circuit 15 is set to the energization command. , To S140.
【0048】S140では、当該マイコン4をスリープ
状態に遷移させるための停止指令SLPを出力して本処
理を終了する。つまり、エンジンの停止時等、継続的に
実行する処理がない場合には、通常はスリープ状態にあ
り、このスリープ状態から間欠的に起床してIOポート
13の監視を行う待受制御を行う。そして、制御要求や
車両状態の変化がなければ、直ちにスリープ状態に戻っ
て、待受制御が継続される。一方、エンジンの始動等に
より、継続的に処理が実行される場合には、タイミング
生成回路15の出力PSに代えてタイマー回路14から
の出力PMが、プルアップ抵抗通電信号Pとして用いら
れるように切り替えられ、その結果、IOポート13か
ら取り込まれるデータの更新が、タイマー回路14の設
定に従った周期で行われることになる。In step S140, a stop command SLP for causing the microcomputer 4 to transition to the sleep state is output, and the process ends. That is, when there is no process to be continuously executed, such as when the engine is stopped, the apparatus is normally in a sleep state, and performs standby control for intermittently waking up from this sleep state and monitoring the IO port 13. If there is no control request or change in the vehicle state, the system immediately returns to the sleep state and the standby control is continued. On the other hand, when the process is continuously performed due to the start of the engine or the like, the output PM from the timer circuit 14 is used as the pull-up resistance energizing signal P instead of the output PS of the timing generation circuit 15. As a result, the data taken in from the IO port 13 is updated at a cycle according to the setting of the timer circuit 14.
【0049】以上説明したように、本実施形態のマイコ
ン4においては、IOポート13の監視を行うソフトウ
ェアが稼動する前に、プルアップ抵抗Rpへの通電を、
信号線Lの状態が電気的に安定するために必要な立上時
間以上の間行っているので、ソフトウェアが稼動した時
には、直ちにIOポート13から信号を取り込むことが
できる。As described above, in the microcomputer 4 according to the present embodiment, before the software for monitoring the IO port 13 is operated, the energization of the pull-up resistor Rp is performed.
Since the state of the signal line L has been performed for a period of time equal to or longer than the rise time necessary for electrical stability, a signal can be immediately taken in from the IO port 13 when the software is operated.
【0050】従って、本実施形態によれば、従来装置の
ように、割込処理を行う必要がないため、CPU10が
実行するソフトウェアの構成を簡単にできると共に、ソ
フトウェアの動作時の負荷を大幅に軽減することができ
る。また、本実施形態では、割込処理を行わないため、
マイコン4が起床状態となる期間が短縮されるだけでな
く、ラッチ回路LTが入力端子TIからの入力信号をラ
ッチすると同時にプルアップ抵抗Rpへの通電を終了
し、しかも、このプルアップ抵抗Rpへの通電を、メイ
ンクロックMCKの発振状態が安定するまでの期間に行
っているため、プルアップ抵抗Rpへの通電期間、及び
待受制御中におけるメインクロックMCKの生成期間を
いずれも必要最小限に抑えることができる。Therefore, according to the present embodiment, it is not necessary to perform an interrupt process unlike the conventional device, so that the configuration of the software executed by the CPU 10 can be simplified and the load during the operation of the software is greatly reduced. Can be reduced. Further, in the present embodiment, since the interrupt processing is not performed,
Not only is the period during which the microcomputer 4 is in the wake-up state shortened, but also the latch circuit LT latches the input signal from the input terminal TI and at the same time terminates the energization of the pull-up resistor Rp. Is performed during the period until the oscillation state of the main clock MCK is stabilized, so that the period during which the pull-up resistor Rp is energized and the period during which the main clock MCK is generated during the standby control are both minimized. Can be suppressed.
【0051】その結果、本実施形態によれば、エンジン
停止時にマイコン4を流れる暗電流が大幅に低減される
ため、エンジン停止中にバッテリが過度に消耗されてし
まうことを防止できる。また、本実施形態では、動作設
定レジスタ19の設定により、ラッチ回路LTによるラ
ッチを禁止して、入力端子TIからの入力信号をそのま
まIOポート13に供給できるようにされているので、
入力端子TIからの入力信号をリアルタイムで検出する
必要がある場合に、これに対応することができる。As a result, according to the present embodiment, the dark current flowing through the microcomputer 4 when the engine is stopped is greatly reduced, so that it is possible to prevent the battery from being excessively consumed while the engine is stopped. Further, in the present embodiment, by setting the operation setting register 19, the latch by the latch circuit LT is prohibited, and the input signal from the input terminal TI can be supplied to the IO port 13 as it is.
This can cope with a case where an input signal from the input terminal TI needs to be detected in real time.
【0052】更に、本実施形態では、マイコン4の起床
状態が長期間継続する場合には、CPU10が任意に設
定を変更可能なタイマー回路14の出力PMを、プルア
ップ抵抗通電信号Pとして使用しているため、IOポー
ト13から取り込まれる信号の更新周期を任意に設定す
ることができ、様々な処理に対して柔軟に対応すること
ができる。Further, in this embodiment, when the wake-up state of the microcomputer 4 continues for a long time, the output PM of the timer circuit 14 whose setting can be arbitrarily changed by the CPU 10 is used as the pull-up resistance energizing signal P. Therefore, the update period of the signal taken in from the IO port 13 can be set arbitrarily, and it is possible to flexibly cope with various processes.
【0053】以上、本発明の一実施形態について説明し
たが、本発明は上記実施形態に限定されるものではな
く、様々な態様にて実施することが可能である。例え
ば、上記実施形態では、マイコン4をECU2に組み込
んだ場合について説明したが、ECU2に限らず、プル
アップ抵抗が接続された信号線にて伝送されてきた信号
をIOポート13を介して取り込み、この取り込んだ信
号に基づいて各種処理を実行する装置であれば、どのよ
うなものに適用してもよい。Although one embodiment of the present invention has been described above, the present invention is not limited to the above-described embodiment, and can be implemented in various modes. For example, in the above-described embodiment, the case where the microcomputer 4 is incorporated in the ECU 2 has been described. However, not limited to the ECU 2, a signal transmitted through a signal line to which a pull-up resistor is connected is captured via the IO port 13, The present invention may be applied to any device that performs various processes based on the captured signal.
【図1】 実施形態のマイクロコンピュータが組み込ま
れた車載用電子制御装置の概略構成図である。FIG. 1 is a schematic configuration diagram of a vehicle-mounted electronic control device in which a microcomputer of an embodiment is incorporated.
【図2】 マイクロコンピュータ各部の動作を表すタイ
ミング図である。FIG. 2 is a timing chart illustrating the operation of each unit of the microcomputer.
【図3】 マイクロコンピュータが起床状態にある時
に、CPU10が実行する処理の内容を表すフローチャ
ートである。FIG. 3 is a flowchart showing the contents of processing executed by a CPU 10 when the microcomputer is in a wake-up state.
【図4】 従来装置の問題点を表す説明図である。FIG. 4 is an explanatory diagram showing a problem of the conventional device.
2…車載用電子制御装置(ECU)、4…マイクロコン
ピュータ(マイコン)、6…通電回路、13…IOポー
ト、14…タイマー回路、15…タイミング生成回路、
16…選択回路、17…遅延回路、18…切替スイッ
チ、19…動作設定レジスタ、20…スリープ制御回
路、L(L0〜L31)…信号線、LT(LT0〜LT
31)…ラッチ回路、Rp(Rp0〜Rp31)…プル
アップ抵抗、R1〜R3…抵抗、T(T0〜T31)…
接続端子、TI(TI0〜TI31)…入力端子、TO
…出力端子、TR1,TR2…トランジスタ2 electronic control unit (ECU) for vehicle, 4 microcomputer (microcomputer), 6 energizing circuit, 13 IO port, 14 timer circuit, 15 timing generation circuit,
16 selection circuit, 17 delay circuit, 18 changeover switch, 19 operation setting register, 20 sleep control circuit, L (L0 to L31) signal line, LT (LT0 to LT)
31) Latch circuit, Rp (Rp0 to Rp31) pull-up resistor, R1 to R3 resistor, T (T0 to T31)
Connection terminal, TI (TI0 to TI31) ... input terminal, TO
... output terminals, TR1, TR2 ... transistors
Claims (9)
される入力端子と、 該入力端子を介して外部から供給される信号を取り込む
ための入力ポートと、 該入力ポートから取り込んだ信号の状態に基づいて処理
を実行するプロセッサと、 を備えたマイクロコンピュータにおいて、 前記プルアップ抵抗を、予め設定された通電期間の間だ
け通電するための通電指令を定期的に生成する通電指令
生成手段と、 該通電指令生成手段が生成する通電指令を外部に供給す
るための出力端子と、 前記通電指令生成手段が生成する通電指令の終了タイミ
ングで、前記入力端子からの入力信号をラッチして前記
入力ポートに供給するラッチ手段と、 を設け、前記通電期間は、前記プルアップ抵抗への通電
を開始してから前記信号線の状態が電気的に安定するま
でに要する立上時間以上の長さに設定されていることを
特徴とするマイクロコンピュータ。1. An input terminal to which a signal line to which a pull-up resistor is connected is connected, an input port for receiving a signal supplied from outside via the input terminal, and a state of a signal received from the input port. A processor that executes processing based on: a microcomputer that includes: a power-up command generation unit that periodically generates a power-up command for supplying power to the pull-up resistor during a preset power-on period; An output terminal for supplying an energization command generated by the energization command generation means to the outside; and an input port for latching an input signal from the input terminal at an end timing of the energization command generated by the energization command generation means. And a latch means for supplying to the signal line, and during the current supply period, the state of the signal line is electrically stabilized after the current supply to the pull-up resistor is started. Microcomputer, characterized in that it is set to rise hours or longer required for the.
前記ラッチ手段に供給されるものより遅延させる遅延手
段を設けたことを特徴とする請求項1記載のマイクロコ
ンピュータ。2. An energization command supplied to the output terminal,
2. The microcomputer according to claim 1, further comprising a delay unit for delaying a signal supplied to said latch unit.
止するラッチ禁止手段を設けたことを特徴とする請求項
1又は請求項2記載のマイクロコンピュータ。3. The microcomputer according to claim 1, further comprising a latch inhibiting means for inhibiting a signal from being latched by said latch means.
サからの指令により指定時間が設定されると、該指定時
間の経過後に予め設定された期間だけアクティブレベル
となるタイムアウト信号を1回だけ出力するタイマーか
らなり、該タイムアウト信号を前記通電指令の終了とし
て用いることを特徴とする請求項1ないし請求項3いず
れか記載のマイクロコンピュータ。4. When a designated time is set by a command from the processor, the energization command generating means outputs a timeout signal that becomes an active level only for a preset period after the designated time elapses, once. 4. The microcomputer according to claim 1, further comprising a timer, wherein the timeout signal is used as an end of the energization command.
サからの指令により予め設定された条件に従ったPWM
信号を繰り返し生成するタイマーからなり、該PWM信
号を前記通電指令として用いることを特徴とする請求項
1ないし請求項3いずれか記載のマイクロコンピュー
タ。5. The power supply command generating means according to claim 1, wherein said power supply command generation means generates a PWM according to a condition set in advance by a command from said processor.
4. The microcomputer according to claim 1, further comprising a timer for repeatedly generating a signal, wherein the PWM signal is used as the energization command.
される入力端子と、 該入力端子を介して外部から供給される信号を取り込む
ための入力ポートと、 該入力ポートから取り込んだ信号の状態に基づいて処理
を実行し、実行すべき処理がなく機能停止する際には停
止指令を出力するプロセッサと、 を備え、前記プロセッサから停止指令が出力された場
合、電力消費の少ないスリープ状態に遷移するマイクロ
コンピュータにおいて、 前記スリープ状態から、前記プロセッサが処理の実行を
可能な起床状態に遷移させるための起動指令を定期的に
生成すると共に、該起動指令に先だって、前記入力端子
への信号線に接続されたプルアップ抵抗を通電するため
の通電指令を生成する周期起動手段と、 該周期起動手段が生成する通電指令を外部に供給するた
めの出力端子と、 を設け、前記通電指令は前記起動指令より、前記プルア
ップ抵抗への通電を開始してから前記信号線の状態が電
気的に安定するまでに要する立上時間以上早いタイミン
グで開始されることを特徴とするマイクロコンピュー
タ。6. An input terminal to which a signal line to which a pull-up resistor is connected is connected, an input port for receiving a signal supplied from outside via the input terminal, and a state of a signal received from the input port. And a processor that outputs a stop command when the function is stopped due to no processing to be executed, and a sleep state that consumes less power when the stop command is output from the processor. In the microcomputer, from the sleep state, the processor periodically generates a start command for transitioning to a wake-up state in which the processor can execute processing, and prior to the start command, connects to a signal line to the input terminal. A cycle starting means for generating an energizing command for energizing the connected pull-up resistor; And an output terminal for supplying the power supply signal, wherein the energization command is based on the start command, and is equal to or longer than a rise time required from the start of energization to the pull-up resistor until the state of the signal line is electrically stabilized. A microcomputer which is started at an early timing.
終了タイミングで、前記入力端子からの入力信号をラッ
チして前記入力ポートに供給するラッチ手段を設け、 前記周期起動手段が生成する通電指令は、前記プルアッ
プ抵抗への通電が前記立上時間以上行われ、且つ前記ラ
ッチ手段がラッチを行った後に前記プロセッサが前記入
力ポートからの信号の取り込みを実行するように開始タ
イミング及び終了タイミングが設定されていることを特
徴とする請求項6記載のマイクロコンピュータ。7. An energizing command generated by the periodic activation means is provided, wherein latch means for latching an input signal from the input terminal and supplying the input signal to the input port at an end timing of the energization instruction generated by the periodic activation means. The start timing and the end timing are set so that the energization of the pull-up resistor is performed for the start-up time or longer, and that the processor executes the capture of the signal from the input port after the latch unit performs the latch. The microcomputer according to claim 6, wherein the microcomputer is set.
ンクロックを生成するクロック生成手段と、 前記停止指令に従って前記メインクロックの生成を停止
させると共に、前記通電指令に先立って、前記メインク
ロックの生成を開始させるクロック制御手段と、 を設け、前記周期起動手段は、前記メインクロックの発
振が安定するまでの間に、前記通電指令を終了させるこ
とを特徴とする請求項6又は請求項7記載のマイクロコ
ンピュータ。8. A clock generating means for generating a main clock for operating the processor, stopping the generation of the main clock according to the stop command, and starting the generation of the main clock prior to the energization command. 8. A microcomputer according to claim 6, further comprising: clock control means for causing the power supply command to be terminated until oscillation of the main clock is stabilized. .
子への信号線に接続されたプルアップ抵抗を、予め設定
された通電期間の間だけ通電するための通電指令を定期
的に生成する通電指令生成手段と、 該通電指令生成手段及び前記周期起動手段のいずれかを
有効とする動作切替手段と、 を設けたことを特徴とする請求項6ないし請求項8いず
れか記載のマイクロコンピュータ。9. A power supply command that operates during the wake-up state and periodically generates a power supply command for supplying a pull-up resistor connected to a signal line to the input terminal only for a predetermined power supply period. The microcomputer according to any one of claims 6 to 8, further comprising: an energization command generation unit; and an operation switching unit that validates one of the energization command generation unit and the periodic activation unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000249769A JP3711849B2 (en) | 2000-08-21 | 2000-08-21 | Microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000249769A JP3711849B2 (en) | 2000-08-21 | 2000-08-21 | Microcomputer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002063150A true JP2002063150A (en) | 2002-02-28 |
| JP3711849B2 JP3711849B2 (en) | 2005-11-02 |
Family
ID=18739457
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000249769A Expired - Lifetime JP3711849B2 (en) | 2000-08-21 | 2000-08-21 | Microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3711849B2 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008123538A (en) * | 2007-12-13 | 2008-05-29 | Denso Corp | Microcomputer |
| JP2011081449A (en) * | 2009-10-02 | 2011-04-21 | Autonetworks Technologies Ltd | Processing system and switching status determining device |
| JP2011207439A (en) * | 2010-03-30 | 2011-10-20 | Toyota Boshoku Corp | Software switch for interior light |
| US20120078384A1 (en) * | 2010-09-24 | 2012-03-29 | Denso Corporation | Switch supervision device, control system and control method |
| WO2017115610A1 (en) * | 2015-12-28 | 2017-07-06 | ローム株式会社 | Vehicle switch control device and switch state detection method |
-
2000
- 2000-08-21 JP JP2000249769A patent/JP3711849B2/en not_active Expired - Lifetime
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008123538A (en) * | 2007-12-13 | 2008-05-29 | Denso Corp | Microcomputer |
| JP2011081449A (en) * | 2009-10-02 | 2011-04-21 | Autonetworks Technologies Ltd | Processing system and switching status determining device |
| JP2011207439A (en) * | 2010-03-30 | 2011-10-20 | Toyota Boshoku Corp | Software switch for interior light |
| US20120078384A1 (en) * | 2010-09-24 | 2012-03-29 | Denso Corporation | Switch supervision device, control system and control method |
| US8987945B2 (en) * | 2010-09-24 | 2015-03-24 | Denso Corporation | Switch supervision device, control system and control method |
| WO2017115610A1 (en) * | 2015-12-28 | 2017-07-06 | ローム株式会社 | Vehicle switch control device and switch state detection method |
| US10894519B2 (en) | 2015-12-28 | 2021-01-19 | Rohm Co., Ltd. | Vehicle switch control device and switch state detection method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3711849B2 (en) | 2005-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20130067258A1 (en) | Data processor and electronic control unit | |
| JP2007200016A (en) | Reset signal-generating circuit | |
| JP2002312073A (en) | Power saving integrated circuit and control method of power saving integrated circuit | |
| US20020194512A1 (en) | Method of configuring a computer system capable of being woken up on LAN | |
| US8010818B2 (en) | Power efficient method for controlling an oscillator in a low power synchronous system with an asynchronous I2C bus | |
| US7085946B2 (en) | Backup memory control unit with reduced current consumption having normal self-refresh and unsettled modes of operation | |
| JP3711849B2 (en) | Microcomputer | |
| JPH11202968A (en) | Microcomputer | |
| JP5324340B2 (en) | Microcomputer | |
| CN116009678B (en) | A clock switching method and switching circuit | |
| JP2003032089A (en) | Microcomputer with built-in reset function | |
| JP4219601B2 (en) | Information processing device | |
| JP2004139008A (en) | Power saving sensor detector | |
| JP2000276267A (en) | Electronic control unit for vehicle | |
| JP4083598B2 (en) | Network system | |
| JP3758477B2 (en) | Microcomputer | |
| JP2011079176A (en) | Controller for image processor | |
| JP4076876B2 (en) | Network system | |
| JP2002202830A (en) | Microcomputer | |
| JP3903716B2 (en) | Microcomputer | |
| JP2003296292A (en) | Port sampling circuit device and microcomputer | |
| JP2008114571A (en) | Controller and data processor | |
| JP3925150B2 (en) | Microcomputer and electronic control device for vehicle | |
| JP2003223430A (en) | Microcomputer | |
| JP2005297669A (en) | Vehicle control device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040928 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041129 |
|
| 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: 20050726 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050808 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 3711849 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080826 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110826 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120826 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130826 Year of fee payment: 8 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| EXPY | Cancellation because of completion of term |