JP2004199310A - Operation mode setting device and setting method for electronic apparatus - Google Patents

Operation mode setting device and setting method for electronic apparatus Download PDF

Info

Publication number
JP2004199310A
JP2004199310A JP2002366146A JP2002366146A JP2004199310A JP 2004199310 A JP2004199310 A JP 2004199310A JP 2002366146 A JP2002366146 A JP 2002366146A JP 2002366146 A JP2002366146 A JP 2002366146A JP 2004199310 A JP2004199310 A JP 2004199310A
Authority
JP
Japan
Prior art keywords
oscillator
sub
main
interrupt
setting
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
Application number
JP2002366146A
Other languages
Japanese (ja)
Other versions
JP3921168B2 (en
Inventor
Koichi Ozaki
耕一 尾崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Orion Electric Co Ltd
Original Assignee
Orion Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Orion Electric Co Ltd filed Critical Orion Electric Co Ltd
Priority to JP2002366146A priority Critical patent/JP3921168B2/en
Publication of JP2004199310A publication Critical patent/JP2004199310A/en
Application granted granted Critical
Publication of JP3921168B2 publication Critical patent/JP3921168B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To allow a microcomputer itself to set a low-power-consumption mode by software without using a resistor or an external memory. <P>SOLUTION: Upon starting after a power failure or reset, the microcomputer 3 executes a self-diagnostic function. At that point, it is detected whether an interrupt is generated in a characteristic time based on a frequency of a sub oscillator 5. When the interrupt is present, it is decided that the sub oscillator 5 is present, setting of the low-power-consumption mode is set to be present. When the interrupt is absent, the setting of the low-power-consumption mode is set to be absent. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、マイコンにより駆動制御される電子機器において、停電時などに最低限の動作を保障する低消費電力モードを実行するか否かを設定する動作モード設定装置に関するものである。
【0002】
【従来の技術】
従来、電子機器をコントロールするマイコンは、クロック信号を発生する発振子を備えている。マイコンは、クロック信号に基づいて内部クロックを作り出し、各種のタイミング制御を行う。通常、発振子には、高い周波数のクロック信号を発生するクリスタル発振子が用いられる。この発振子は、消費電力が大きい。そのため、停電などのように電源の供給が絶たれると、発振子が駆動せず、マイコンも動作しなくなる。そこで、停電などの非常時に、マイコンの最低限の動作を保障するために、バックアップ用のバックアップ電源を設け、この電源によって動作可能なサブ発振子を設ける。サブ発振子は、前記メイン発振子よりも低い周波数のクロック信号を発生し、低消費電力である。
【0003】
特許文献1には、メイン発振子およびサブ発振子を用いて、通常時はメイン発振子からのクロック信号を供給し、非常時はバックアップ電源によってサブ発振子を駆動して、低周波数のクロック信号をマイコンに供給することが開示されている(例えば、特許文献1参照)。
【0004】
非常時には、低周波数のクロック信号に基づいて動作するマイコンは、主に時計機能を稼動させたり、プログラムをマイコン内の揮発性メモリであるRAMに保持する。なお、データを保持するマイコンは、バックアップ電源から供給される電力によって駆動される。このように、非常時での電子機器における必要最低限の動作を実行するには、マイコンに動作モードの一つとして低消費電力モードが設定されている必要がある。
【0005】
また、停電後に復帰したとき、リセットされると各種の動作モードの設定が初期設定に戻ってしまう。そのため、リセット復帰後に低消費電力モードの設定を行う必要がある。この低消費電力モードの設定方法として、マイコンに設定端子を設ける方法と、メモリに初期設定データを設定する方法とがある。
【0006】
マイコンに設定端子を設ける方法では、マイコンの端子に低消費電力モード設定の有無の判別するための端子を割振る。その端子の論理値を読み込むことにより、低消費電力モードを有りまたは無しに設定する。具体的には、マイコンの端子を抵抗を介して電源(5V)に接続した場合はHとし、グラウンド(GND)に接続した場合はLとした論理値を設定する。リセット復帰時にマイコンが、この端子の論理値を読み込む。読み込んだ論理値がHの場合は、低消費電力モードの設定有りとし、論理値がLの場合は、低消費電力モードの設定無しとする。
【0007】
メモリに初期データを設定する方法では、E2PROMなどの外部メモリに初期設定データを割当てておく。リセット復帰時にマイコンが、メモリ内の初期設定値を読み込む。その初期設定値が有りの場合は、低消費電力モードの設定有りとし、初期設定値が無しの場合は低消費電力モードの設定無しとする。
【0008】
【特許文献1】特開平05−127772号公報(段落0012〜段落0013、図1)
【0009】
【発明が解決しようとする課題】
上記の抵抗や外部メモリのような動作モード設定用の部品を使用すると、設置スペースや基板の回路設計に負担がかかり、コストアップとなる。また、設定用にマイコンの端子を使用すると、電子機器の仕様設定が多いとき、端子が不足する。さらに、回路設計時に論理を間違えたり、抵抗の取付作業時のミスも起こしやすい。また、外部メモリにあらかじめ初期設定データを書き込まなければならず、設計中の仕様決定時や製造中のデータ書き込み時にミスが発生しやすい。従って、上記のようなミスがあると、正しく動作モードを設定することができない。
【0010】
そこで、本発明は、抵抗や外部メモリなどを使用せずに低消費電力モードの設定を正確に行える電子機器の動作モード設定装置および設定方法を提供することを目的としている。
【0011】
【課題を解決するための手段】
上記目的を達成するため、本発明においては、メイン発振子のクロック信号に基づいて動作する電子機器において、前記メイン発振子よりも低い周波数のクロック信号を発生するサブ発振子の有無を検出する検出手段と、前記サブ発振子があるときサブ発振子のクロック信号に基づいて動作する低消費電力モードを設定する設定手段とを備えたことを特徴とする。
【0012】
検出手段は、クロック端子にサブ発振子が接続されているか否かを検出する。この検出結果に基づいて、設定手段では、低消費電力モードの設定有りか設定無しかを決定する。すなわち、低消費電力モードは、停電などによって主電源が遮断されたとき、バックアップ電源により少ない電力で動作を行うものであるので、メイン発振子よりも消費電力の少ないサブ発振子を使用しなければならない。そのため、サブ発振子があるということは、低消費電力モードを実行することに他ならない。したがって、サブ発振子の有無を検出することによって、動作モードを簡単に且つ、間違いなく設定することができる。
【0013】
ここで、サブ発振子の有無の検出において、サブ発振子からのクロック信号の入力を待つといった受動的な手段を採ることができる。すなわち、メイン発振子の周波数に基づいて、カウンタを動作させて時間を計測しながら外部からの割込みがあるか否かを検出する。そして、メイン発振子の周波数から得られる所定時間に検出された割込みが、サブ発振子からの割込みであるか判別するために判別手段を設けておく。所定時間とは、サブ発振子の周波数に基づく固有時間に対応する時間である。割り込みのあった所定時間がサブ発振子の周波数に基づく固有時間に一致すれば、この割込みはサブ発振子によるものであると判断できる。このとき、検出手段は、主電源からの電力供給が復帰した後、あるいは、リセットされた後の起動時における最先の割込みを検出するものとする。これによって、素早く動作モードの設定を行うことができ、他の処理に負担をかけなくてすむ。
【0014】
また、検出手段として、能動的にサブ発振子の有無を検出する、例えば、サブ発振子用のクロック端子の使用の有無を検出してもよい。以上のように、サブ発振子の有無を受動的あるいは能動的に直接検出すれば、従来における抵抗やメモリを不要にできる。
【0015】
【発明の実施の形態】
以下、本発明の実施形態を図面に基づいて説明する。図1に本実施形態の電子機器の概略図を示す。電子機器は、例えば、ビデオ、DVD、テレビなどの映像機器とされ、音声ICやY/CICなどのIC群1、サブマイコン2、これらを駆動制御するマイコン3を備えている。
【0016】
マイコン3には、メイン発振子4、サブ発振子5およびメモリ6が接続されている。マイコン3は、メイン発振子4によって生成されるクロック信号に基づくタイミングに従がって各種のプログラムを実行し、メモリ6に対してデータの書き込み、読み出しを行う。なお、メモリ6は、E2PROMなどの不揮発性メモリであり、設定データや映像データを一時的に格納する。
【0017】
サブ発振子5は、メイン発振子4よりも低い周波数のクロック信号を発生する。メイン発振子4は12MHzクリスタル発振子とされ、サブ発振子5は32KHzクリスタル発振子とされ、サブ発振子5はメイン発振子4よりも低消費電力である。
【0018】
そして、電子機器には、主電源7として商用電源、あるいは発電装置からの電力が供給される。この電源によって、マイコン3、IC群1、メイン発振子4、サブ発振子5などが駆動され、メモリ6はデータを保持する。
【0019】
また、電子機器は、コンデンサ、電池などのバックアップ電源8を内蔵している。バックアップ電源8は、停電や主電源7に異常が発生した時のように、電源供給が途絶えたり、電力が低下したといった非常時に使用される。非常時になると、低消費電力モードが実行される。すなわち、主電源7からの電圧が低下し、これを検出すると、自動的にバックアップ電源8に切り換えられる。バックアップ電源8からの電力は、マイコン3に供給され動作が維持される。サブ発振子5が発生したクロック信号に基づいてマイコン3は、時計作動、プログラム保護などの必要最低限の動作をする。このように、低消費電力モードでは、非常時において、バックアップ電源8からの電源供給によってサブ発振子5のクロック信号に基づいて動作する。
【0020】
マイコン3では、動作モードの一つとして低消費電力モードを設定する。設定有りのときは、低消費電力モードが実行され、設定無しのときは、低消費電力モードは実行されない。この設定は、主電源が復旧し、リセットされた後、あるいはマイコンの暴走防止のために強制的にリセットされた後の起動時に自動的に行われる。すなわち、マイコン3は、動作モード設定装置としての機能を果たす。ここで、マイコン3は起動時に周辺機器のチェックをするなどの自己診断機能を有している。この自己診断機能を利用してマイコン3は、サブ発振子5の有無を検出して、その結果によって低消費電力モードの設定の有無を決定する。具体的には、マイコン3は、起動時における最先の割込み処理を検出する検出手段と、検出された割込み処理がサブ発振子5からの割込み処理か否かを判別する判別手段と、サブ発振子5からの割込みであるときは消費電力モードの設定有りとし、サブ発振子5からの割込みでないときは低消費電力モードの設定無しとする設定手段とを有する。
【0021】
次に、動作モードの設定方法を図2に基づいて説明する。停電の発生後、主電源7が復旧し、リセットから復帰したマイコン3が起動するときに、自己診断機能を実行して、動作チェックなどを行う。この自己診断機能で各種の動作モードの設定を行う場合、まず自己診断機能のタイマー割込み処理のクロックソースとして高速カウンタ(PWS)の初期設定値をサブ発振子5に対応した32KHzに設定する。あらかじめROMに、この初期設定値が使用するサブ発振子5に応じて書き込まれており、これを読み出して設定する。上記の設定値に基づき、タイマー割込み処理の読込みモードにおける一番早いタイムベースを0.03125secに設定する。この時間が、サブ発振子の固有時間に対応する所定時間である。これによって、サブ発振子5が有る場合には、一番初めの割込み処理がサブ発振子5によることになる。
【0022】
マイコン3は、メイン発振子4のクロック信号に基づいて動作し、この自己診断機能により各端子状態や割込み発生状況の確認を順番に行う。確認を開始する時、タイマーの検出時間を、例えば1secにセットする。確認開始後、0.03125secの間隔のタイミングでタイマー割込み処理があるか否かを検出する。この0.03125sec毎にマイコン3への割込み処理が有る場合、サブ発振子5と認識できる。そこでマイコン3は、低消費電力モードを設定有りとする。また、0.03125sec毎に割込み処理がなく、検出時間の1secを経過したとき、マイコン3は、サブ発振子5がないと認識して、低消費電力モードを設定無しとする。したがって、サブ発振子の有無を直接検出することによって、間違いなく低消費電力モード設定を行える。
【0023】
なお、本発明は、上記実施形態に限定されるものではなく、本発明の範囲内で修正変更を加えることができる。例えば、サブ発振子の有無を検出する手段として、マイコンの複数あるクロック端子の使用状況を検出するようにしてもよい。さらに、サブ発振子が複数あり、それぞれに割振られた動作モードを設定する場合でも同様に対応できる。低消費電力モード以外の動作モードとして、サスペンドモードやスリープモードなどの設定をサブ発振子の有無に基づいて行うこともできる。また、低消費電力モードが不要であれば、あらかじめサブ発振子やバックアップ電源を設けなければよい。このとき、マイコンは、起動時にサブ発振子が無いことを検出して低消費電力モードを実行しないように設定をする。
【0024】
【発明の効果】
以上、説明したように本発明によれば、サブ発振子の有無を判別することにより、低消費電力モードの有無を間違いなく設定できることができる。このとき、サブ発振子からの割込み動作を利用するので、ソフト的に対応することができる。そのため、外部メモリや抵抗などが不要となり、制御基板を省スペースで小型化できる。
【0025】
また、マイコンにおける設定用の端子がいらないので、端子数の少ない低コストのマイコンを使用できる。あるいは、一つ余った端子を他のシステムに使用することが可能となり、電子機器の仕様に幅をもたすことができる。
【図面の簡単な説明】
【図1】本発明の実施形態の電子機器の概略ブロック図
【図2】低消費電力モード設定のフローチャート
【符号の説明】
1 IC群
2 サブマイコン
3 マイコン
4 メイン発振子
5 サブ発振子
6 メモリ
7 主電源
8 バックアップ電源
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an operation mode setting device for setting whether or not to execute a low power consumption mode for guaranteeing a minimum operation in a power failure or the like in an electronic device driven and controlled by a microcomputer.
[0002]
[Prior art]
Conventionally, a microcomputer that controls an electronic device includes an oscillator that generates a clock signal. The microcomputer generates an internal clock based on the clock signal and performs various timing controls. Usually, a crystal oscillator that generates a high-frequency clock signal is used as the oscillator. This oscillator has high power consumption. Therefore, when the power supply is cut off due to a power failure or the like, the oscillator does not operate and the microcomputer does not operate. Therefore, in the event of an emergency such as a power failure, a backup power supply for backup is provided to ensure the minimum operation of the microcomputer, and a sub-oscillator operable with this power supply is provided. The sub-oscillator generates a clock signal with a lower frequency than the main oscillator and consumes less power.
[0003]
Patent Document 1 discloses that a main oscillator and a sub-oscillator are used to supply a clock signal from the main oscillator in a normal state, and to drive the sub-oscillator by a backup power supply in an emergency to generate a low-frequency clock signal. Is supplied to a microcomputer (for example, see Patent Document 1).
[0004]
In an emergency, a microcomputer that operates based on a low-frequency clock signal mainly operates a clock function, and stores a program in a RAM, which is a volatile memory in the microcomputer. The microcomputer that holds the data is driven by the power supplied from the backup power supply. As described above, in order to execute the minimum required operation of the electronic device in an emergency, the low power consumption mode needs to be set as one of the operation modes in the microcomputer.
[0005]
When the power is restored after a power failure, resetting resets various operation mode settings to the initial settings. Therefore, it is necessary to set the low power consumption mode after returning from the reset. As a setting method of the low power consumption mode, there are a method of providing a setting terminal in a microcomputer and a method of setting initial setting data in a memory.
[0006]
In the method of providing the microcomputer with the setting terminal, a terminal for determining whether the low power consumption mode is set is allocated to the terminal of the microcomputer. By reading the logical value of the terminal, the low power consumption mode is set to the presence or absence. Specifically, the logic value is set to H when the terminal of the microcomputer is connected to a power supply (5 V) via a resistor, and set to L when the terminal is connected to ground (GND). The microcomputer reads the logical value of this terminal when returning from reset. If the read logical value is H, it is determined that the low power consumption mode is set, and if the logical value is L, it is determined that the low power consumption mode is not set.
[0007]
In the method of setting the initial data in the memory, the initial setting data is allocated to an external memory such as an E2PROM. When returning from reset, the microcomputer reads the initial set values in the memory. If the initial setting value is present, it is determined that the low power consumption mode is set. If the initial setting value is not present, it is determined that the low power consumption mode is not set.
[0008]
[Patent Document 1] Japanese Patent Application Laid-Open No. 05-127772 (paragraphs 0012 to 0013, FIG. 1)
[0009]
[Problems to be solved by the invention]
Use of components for setting the operation mode, such as the above-described resistor and external memory, places a burden on the installation space and the circuit design of the board, resulting in an increase in cost. In addition, when the terminal of the microcomputer is used for the setting, the terminal is insufficient when the specification setting of the electronic device is large. In addition, the logic is easily mistaken at the time of circuit design, and mistakes are likely to occur at the time of mounting the resistor. In addition, initial setting data must be written in an external memory in advance, and mistakes are likely to occur at the time of specification determination during design or during data writing during manufacture. Therefore, if there is such a mistake, the operation mode cannot be set correctly.
[0010]
Therefore, an object of the present invention is to provide an operation mode setting device and a setting method of an electronic device that can accurately set a low power consumption mode without using a resistor, an external memory, and the like.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, according to the present invention, in an electronic device that operates based on a clock signal of a main oscillator, a detection for detecting the presence or absence of a sub oscillator that generates a clock signal of a lower frequency than the main oscillator is performed. Means, and setting means for setting a low power consumption mode that operates based on a clock signal of the sub-oscillator when the sub-oscillator is present.
[0012]
The detecting means detects whether or not the sub oscillator is connected to the clock terminal. Based on the detection result, the setting unit determines whether the low power consumption mode is set or not. In other words, in the low power consumption mode, when the main power supply is cut off due to a power failure or the like, the backup power supply operates with less power.Therefore, a sub resonator that consumes less power than the main resonator must be used. No. Therefore, the presence of the sub-oscillator is nothing but executing the low power consumption mode. Therefore, by detecting the presence or absence of the sub-oscillator, the operation mode can be easily and definitely set.
[0013]
Here, in detecting the presence or absence of the sub-oscillator, passive means such as waiting for input of a clock signal from the sub-oscillator can be employed. That is, based on the frequency of the main oscillator, a counter is operated to measure time and detect whether there is an external interrupt. A determination means is provided for determining whether an interrupt detected at a predetermined time obtained from the frequency of the main oscillator is an interrupt from the sub oscillator. The predetermined time is a time corresponding to a specific time based on the frequency of the sub oscillator. If the predetermined time at which the interrupt occurs coincides with the specific time based on the frequency of the sub-oscillator, it can be determined that the interrupt is caused by the sub-oscillator. At this time, it is assumed that the detecting means detects the earliest interrupt at the time of startup after the power supply from the main power supply is restored or after the power supply is reset. As a result, the operation mode can be set quickly, so that other processes are not burdened.
[0014]
Further, as the detection means, the presence / absence of a sub oscillator may be actively detected, for example, the presence / absence of use of a clock terminal for the sub oscillator may be detected. As described above, if the presence or absence of the sub-oscillator is directly detected passively or actively, the conventional resistor and memory can be eliminated.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic diagram of an electronic device according to the present embodiment. The electronic device is, for example, a video device such as a video, a DVD, or a television, and includes an IC group 1 such as an audio IC and a Y / CIC, a sub-microcomputer 2, and a microcomputer 3 for controlling the driving of these.
[0016]
The main oscillator 4, the sub oscillator 5, and the memory 6 are connected to the microcomputer 3. The microcomputer 3 executes various programs according to the timing based on the clock signal generated by the main oscillator 4, and writes and reads data to and from the memory 6. The memory 6 is a non-volatile memory such as an E2PROM, and temporarily stores setting data and video data.
[0017]
The sub oscillator 5 generates a clock signal having a lower frequency than the main oscillator 4. The main oscillator 4 is a 12 MHz crystal oscillator, the sub oscillator 5 is a 32 KHz crystal oscillator, and the sub oscillator 5 has lower power consumption than the main oscillator 4.
[0018]
The electronic device is supplied with electric power from a commercial power supply or a power generator as the main power supply 7. The power supply drives the microcomputer 3, the IC group 1, the main oscillator 4, the sub oscillator 5, and the like, and the memory 6 holds data.
[0019]
Further, the electronic device has a built-in backup power supply 8 such as a capacitor and a battery. The backup power supply 8 is used in an emergency such as a power outage or a drop in power, such as when a power failure or an abnormality occurs in the main power supply 7. In an emergency, the low power consumption mode is executed. That is, when the voltage from the main power supply 7 decreases and is detected, the power supply is automatically switched to the backup power supply 8. The power from the backup power supply 8 is supplied to the microcomputer 3 and the operation is maintained. Based on the clock signal generated by the sub-oscillator 5, the microcomputer 3 performs the minimum necessary operations such as clock operation and program protection. As described above, in the low power consumption mode, the operation is performed based on the clock signal of the sub oscillator 5 by the power supply from the backup power supply 8 in an emergency.
[0020]
The microcomputer 3 sets the low power consumption mode as one of the operation modes. When there is a setting, the low power consumption mode is executed, and when there is no setting, the low power consumption mode is not executed. This setting is automatically performed at the time of startup after the main power is restored and reset, or after the microcomputer is forcibly reset to prevent runaway of the microcomputer. That is, the microcomputer 3 functions as an operation mode setting device. Here, the microcomputer 3 has a self-diagnosis function such as checking peripheral devices at startup. Using this self-diagnosis function, the microcomputer 3 detects the presence or absence of the sub-oscillator 5, and determines whether or not to set the low power consumption mode based on the result. Specifically, the microcomputer 3 includes a detecting unit that detects the earliest interrupt processing at the time of startup, a determining unit that determines whether the detected interrupt processing is an interrupt processing from the sub-oscillator 5, and a sub-oscillator. Setting means for setting the power consumption mode when there is an interrupt from the sub oscillator 5 and not setting the low power consumption mode when it is not an interrupt from the sub-oscillator 5.
[0021]
Next, a method of setting the operation mode will be described with reference to FIG. After the occurrence of a power failure, when the main power supply 7 recovers and the microcomputer 3 that has recovered from the reset starts up, it performs a self-diagnosis function and performs an operation check and the like. When setting various operation modes by the self-diagnosis function, first, an initial setting value of a high-speed counter (PWS) is set to 32 KHz corresponding to the sub-oscillator 5 as a clock source for timer interrupt processing of the self-diagnosis function. The initial setting value is previously written in the ROM in accordance with the sub-oscillator 5 to be used, and is read and set. Based on the above set value, the earliest time base in the read mode of the timer interrupt processing is set to 0.03125 sec. This time is a predetermined time corresponding to the specific time of the sub-oscillator. As a result, if there is a sub-oscillator 5, the first interrupt processing is performed by the sub-oscillator 5.
[0022]
The microcomputer 3 operates based on the clock signal of the main oscillator 4 and sequentially checks the terminal states and the interrupt occurrence status by this self-diagnosis function. When starting the confirmation, the detection time of the timer is set to, for example, 1 sec. After the start of the confirmation, it is detected whether or not there is a timer interruption process at an interval of 0.03125 sec. If there is an interrupt process to the microcomputer 3 every 0.03125 seconds, it can be recognized as the sub-oscillator 5. Therefore, the microcomputer 3 determines that the low power consumption mode is set. When there is no interrupt processing every 0.03125 seconds and the detection time of 1 second has elapsed, the microcomputer 3 recognizes that there is no sub-oscillator 5 and does not set the low power consumption mode. Therefore, by directly detecting the presence or absence of the sub oscillator, the low power consumption mode can be definitely set.
[0023]
It should be noted that the present invention is not limited to the above embodiment, and modifications and changes can be made within the scope of the present invention. For example, as a means for detecting the presence or absence of a sub-oscillator, the use status of a plurality of clock terminals of a microcomputer may be detected. Furthermore, a plurality of sub-oscillators can be provided, and operation modes assigned to the respective sub-oscillators can be similarly set. As an operation mode other than the low power consumption mode, settings such as a suspend mode and a sleep mode can be performed based on the presence or absence of a sub-oscillator. If the low power consumption mode is not required, a sub-oscillator or a backup power supply need not be provided in advance. At this time, the microcomputer detects that there is no sub-oscillator at the time of startup and sets so as not to execute the low power consumption mode.
[0024]
【The invention's effect】
As described above, according to the present invention, by determining whether or not there is a sub-oscillator, the presence or absence of the low power consumption mode can be definitely set. At this time, since the interrupt operation from the sub-oscillator is used, it is possible to cope with software. Therefore, an external memory and a resistor are not required, and the control board can be reduced in space and size.
[0025]
Further, since no setting terminal is required in the microcomputer, a low-cost microcomputer with a small number of terminals can be used. Alternatively, one extra terminal can be used for another system, and the specification of the electronic device can be given a wide range.
[Brief description of the drawings]
FIG. 1 is a schematic block diagram of an electronic device according to an embodiment of the present invention. FIG. 2 is a flowchart of a low power consumption mode setting.
1 IC group 2 Sub microcomputer 3 Micro computer 4 Main oscillator 5 Sub oscillator 6 Memory 7 Main power supply 8 Backup power supply

Claims (5)

メイン発振子のクロック信号に基づいて動作する電子機器において、前記メイン発振子よりも低い周波数のクロック信号を発生するサブ発振子の有無を検出する検出手段と、前記サブ発振子があるときサブ発振子のクロック信号に基づいて動作する低消費電力モードを設定する設定手段とを備えたことを特徴とする電子機器の動作モード設定装置。In an electronic device that operates based on a clock signal of a main oscillator, a detection unit that detects the presence or absence of a sub oscillator that generates a clock signal having a frequency lower than that of the main oscillator; Setting means for setting a low-power-consumption mode that operates based on a slave clock signal. 検出手段は、サブ発振子からの割込みがあるか否かを検出することを特徴とする請求項1記載の電子機器の動作モード設定装置。2. The operation mode setting device for an electronic device according to claim 1, wherein the detection unit detects whether there is an interrupt from the sub oscillator. 主電源によりメイン発振子のクロック信号に基づいて動作し、前記主電源の供給が途絶えたとき、前記メイン発振子よりも低い周波数のクロック信号を発生するサブ発振子のクロック信号に基づいてバックアップ電源により低消費電力モードを実行する電子機器において、起動時における最先の割込みを検出する検出手段と、検出された割込みが前記サブ発振子からの割込みか否かを判別する判別手段と、前記サブ発振子からの割込みであるとき、低消費電力モードを実行するように設定する設定手段とを備えたことを特徴とする電子機器の動作モード設定装置。The backup power supply operates based on the clock signal of the main oscillator by the main power supply and generates a clock signal of a lower frequency than the main oscillator when the supply of the main power supply is interrupted. Detecting means for detecting the earliest interrupt at the time of startup; determining means for determining whether the detected interrupt is an interrupt from the sub-oscillator; Setting means for setting to execute a low power consumption mode when an interrupt is issued from an oscillator. 判別手段は、メイン発振子の周波数から得られる所定時間にサブ発振子の割込みがあるか否かによって判断することを特徴とする請求項3記載の電子機器の動作モード設定装置。4. The operation mode setting device for an electronic device according to claim 3, wherein the determination means determines whether or not there is an interruption of the sub-oscillator at a predetermined time obtained from the frequency of the main oscillator. 主電源によりメイン発振子のクロック信号に基づいて動作し、前記主電源の供給が途絶えたとき、前記メイン発振子よりも低い周波数のクロック信号を発生するサブ発振子によってバックアップ電源により低消費電力モードを実行する電子機器において、起動時に前記サブ発振子からの割込みがあるか否かを検出し、前記サブ発振子の周波数に基づく固有時間と一致する時間に割込みがあるとき、前記サブ発振子があると判断して、低消費電力モードを設定し、前記所定時間に割込みがないとき、前記サブ発振子がないと判断して、低消費電力モードを設定しないことを特徴とする電子機器の動作モード設定方法。The sub-oscillator which operates based on the clock signal of the main oscillator by the main power supply and generates a clock signal having a lower frequency than the main oscillator when the supply of the main power supply is interrupted, the low power consumption mode by the backup power supply. In the electronic device that executes, it is detected whether or not there is an interrupt from the sub-oscillator at the time of startup, and when there is an interrupt at a time that matches a specific time based on the frequency of the sub-oscillator, the sub-oscillator is The operation of the electronic device is characterized in that it is determined that there is a power consumption mode, and when there is no interruption during the predetermined time, it is determined that the sub-oscillator does not exist and the low power consumption mode is not set. Mode setting method.
JP2002366146A 2002-12-18 2002-12-18 Electronic device operation mode setting device and setting method Expired - Fee Related JP3921168B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002366146A JP3921168B2 (en) 2002-12-18 2002-12-18 Electronic device operation mode setting device and setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002366146A JP3921168B2 (en) 2002-12-18 2002-12-18 Electronic device operation mode setting device and setting method

Publications (2)

Publication Number Publication Date
JP2004199310A true JP2004199310A (en) 2004-07-15
JP3921168B2 JP3921168B2 (en) 2007-05-30

Family

ID=32763436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002366146A Expired - Fee Related JP3921168B2 (en) 2002-12-18 2002-12-18 Electronic device operation mode setting device and setting method

Country Status (1)

Country Link
JP (1) JP3921168B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010154594A (en) * 2008-12-24 2010-07-08 Nissan Motor Co Ltd Device for diagnosing failure in electronic control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010154594A (en) * 2008-12-24 2010-07-08 Nissan Motor Co Ltd Device for diagnosing failure in electronic control system

Also Published As

Publication number Publication date
JP3921168B2 (en) 2007-05-30

Similar Documents

Publication Publication Date Title
US9367446B2 (en) Computer system and data recovery method for a computer system having an embedded controller
JP4820271B2 (en) Image processing apparatus and image processing method
JP5166927B2 (en) Processing equipment
JP3056131B2 (en) System reset method
CN104735278B (en) The control method of information processing unit and information processing unit
JP4886558B2 (en) Information processing device
US20050086460A1 (en) Apparatus and method for wakeup on LAN
JP3921168B2 (en) Electronic device operation mode setting device and setting method
JP2004070767A (en) Controller
CN101630278A (en) Method for recording crash abnormal information of electronic device and electronic device
JP4812699B2 (en) Power control device
JP2007047909A (en) Usb device, and method for evading its standby status
WO2004003714A2 (en) Circuit for detection of internal microprocessor watchdog device execution and method for resetting microprocessor system
JP2003256240A (en) Information processor and its failure recovering method
JPH0870415A (en) Electronic equipment
JP3903716B2 (en) Microcomputer
US11181963B2 (en) Information processing device and control method for the same
CN214311848U (en) Electronic lock system
JP2001205897A (en) Printer
JPH06332577A (en) System for identifying reset factor of system
JPS6073753A (en) Runaway processing system of microprocessor
JPH09222938A (en) Power source controller
KR101548923B1 (en) Electronic control unit and voltage drop perception method for electronic control unit
JP2003216281A (en) Controller
CN117826685A (en) System start detection device and method of embedded equipment and embedded equipment

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040602

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060516

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060710

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: 20070206

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070216

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: 20110223

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees