JP2009037456A - Micro-controller and its control method - Google Patents
Micro-controller and its control method Download PDFInfo
- Publication number
- JP2009037456A JP2009037456A JP2007201809A JP2007201809A JP2009037456A JP 2009037456 A JP2009037456 A JP 2009037456A JP 2007201809 A JP2007201809 A JP 2007201809A JP 2007201809 A JP2007201809 A JP 2007201809A JP 2009037456 A JP2009037456 A JP 2009037456A
- Authority
- JP
- Japan
- Prior art keywords
- voltage
- cpu
- real
- time clock
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 12
- 238000001514 detection method Methods 0.000 claims abstract description 74
- 230000006870 function Effects 0.000 description 58
- 230000002093 peripheral effect Effects 0.000 description 33
- 230000007423 decrease Effects 0.000 description 10
- 239000013078 crystal Substances 0.000 description 6
- 230000010355 oscillation Effects 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 4
- CDFKCKUONRRKJD-UHFFFAOYSA-N 1-(3-chlorophenoxy)-3-[2-[[3-(3-chlorophenoxy)-2-hydroxypropyl]amino]ethylamino]propan-2-ol;methanesulfonic acid Chemical compound CS(O)(=O)=O.CS(O)(=O)=O.C=1C=CC(Cl)=CC=1OCC(O)CNCCNCC(O)COC1=CC=CC(Cl)=C1 CDFKCKUONRRKJD-UHFFFAOYSA-N 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/30—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Microcomputers (AREA)
- Power Sources (AREA)
- Electronic Switches (AREA)
Abstract
Description
本発明は、マイクロコントローラに関するものである。特にCPUとリアルタイムクロック等の機能を同一チップ上に有するマイクロコントローラに関する。 The present invention relates to a microcontroller. In particular, the present invention relates to a microcontroller having functions such as a CPU and a real-time clock on the same chip.
近年、様々な家電等の電子機器が、日付や時刻表示等の時計機能を搭載している。このような時計機能は、通常、機器を制御するマイクロコントローラ内のリアルタイムクロック(RTC)のカウンタの値を、同じくマイクロコントローラ内のCPUが読み出し実現している。 In recent years, various electronic devices such as home appliances have clock functions such as date and time display. Such a clock function is usually realized by reading the counter value of a real-time clock (RTC) in the microcontroller that controls the device by the CPU in the microcontroller.
しかし、機器に電力を供給するメインの電池やAC電源が抜かれた場合や、バッテリが供給する電圧が落ちた場合等に、時計機能にリセットがかかり停止を余儀なくされる。よって、再びユーザや機器のシステムが時計機能を利用する場合、前述したようなリセットがかかる度にユーザが時刻情報を再設定する必要がある。 However, when the main battery for supplying power to the device or the AC power supply is removed or when the voltage supplied by the battery drops, the clock function is reset and forced to stop. Therefore, when the user or device system uses the clock function again, it is necessary for the user to reset the time information every time the above-described reset is performed.
このような問題が生じる理由として、従来、機器制御を行うマイクロコントローラは内部のCPU(Central Processing Unit)を中心に考えられており、電源電圧の低下によるマイクロコントローラの暴走を防ぐためCPUの動作保障最低電圧付近で、マイクロコントローラ全体にリセットをかけ、動作を停止するよう設計されていることが上げられる。また、マイクロコントローラは内部のCPUが中心に考えられている理由としては、マイクロコントローラ内部の周辺機能は、CPUからの信号により動作を制御され周辺機能で得た値をCPUで処理するため、CPUがリセットされているときは周辺機能の動作制御や周辺機能から得た値の利用ができないことが上げられる。 The reason why such a problem occurs is that microcontrollers that control devices have been considered mainly in the internal CPU (Central Processing Unit), and CPU operation is guaranteed to prevent the microcontroller from running away due to a drop in power supply voltage. It can be said that it is designed to reset the entire microcontroller and stop operation near the lowest voltage. In addition, the reason why the microcontroller is considered to be centered on the internal CPU is that the peripheral function in the microcontroller is controlled by the signal from the CPU and the value obtained by the peripheral function is processed by the CPU. When is reset, the operation control of the peripheral function and the value obtained from the peripheral function cannot be used.
ここで従来技術の一例として、図6に特許文献1のマイクロコンピュータ等のハードウエアブロック構成を示す(以下、従来技術とする)。この従来技術では、リセット端子から入力を受けたリセット回路540からのリセット信号がバスを介し、RTC560、CPU510、その他の周辺機能に接続されている。通常、マイクロコントローラでは、前述したように電源電圧が下がると、CPUの動作保障最低電圧近くでCPUの暴走を防ぐためリセットする必要があり、この従来技術のリセット回路540からのリセット信号もマイクロコントローラ全体にかかる。
Here, as an example of the prior art, FIG. 6 shows a hardware block configuration of a microcomputer or the like disclosed in Patent Document 1 (hereinafter referred to as the prior art). In this prior art, a reset signal from a
ここで、一般的に上述したようなリセットがかからなければCPUよりリアルタイムクロックの方がより低電圧で動作が可能である。なぜならば、CPU動作にはフラッシュROM(Read Only Memory)やRAM(Random Access Memory)等のメモリからのデータの読み出し、または書き込み時にチャージポンプやセンスアンプを動作させる必要があり、CPUが有するロジックのみが利用する電圧よりも大きな電圧が必要となるからである。一方、ロジックのみで構成されるリアルタイムクロックはより低い電圧で動作可能である。 Here, in general, if the reset as described above is not applied, the real-time clock can operate at a lower voltage than the CPU. This is because it is necessary to operate a charge pump or sense amplifier when reading or writing data from a memory such as a flash ROM (Read Only Memory) or RAM (Random Access Memory) for the CPU operation. This is because a voltage larger than the voltage used by is required. On the other hand, a real-time clock composed only of logic can operate at a lower voltage.
しかし、前述したリセットは、マイクロコントローラ全体にかかるため、本来ならさらに低電圧でも動作可能なリアルタイムクロックまでリセットがかかってしまう。これは、上述したように、従来のマイクロコントローラが、CPUを中心に考えて設計されていることに起因する。よって、メインの電池やAC電源が抜かれた場合や、バッテリからの電圧供給能力が落ちた場合等に、リアルタイムクロックの関わる時計機能にもリセットがかかることになり、ユーザや機器のシステムが再び時計機能を利用する場合、前記リセットがかかる度にユーザの手により再設定することを余儀なくされる。これは、このようなマイクロコントローラを有する機器を使用するユーザの利便性を損なう結果となる。 However, since the above-described reset is applied to the entire microcontroller, a real-time clock that can be operated even at a lower voltage is reset. As described above, this is because the conventional microcontroller is designed with the CPU as the center. Therefore, when the main battery or AC power supply is removed, or when the voltage supply capability from the battery is reduced, the clock function related to the real-time clock is also reset, and the system of the user or device is reset again. When using the function, it is forced to reset by the user every time the reset is performed. This results in a loss of convenience for a user who uses a device having such a microcontroller.
また、メインの電源が抜かれた場合やバッテリからの電力供給能力が落ちた場合等に備えて、充電されたキャパシタンスをバックアップ用の予備用電源とし、マイクロコントローラを駆動する機器が存在する。しかし、キャパシタンスの放電の過程で出力電圧が低下する。よって、キャパシタンスからの出力電圧が、マイクロコントローラ内のCPUの動作保障最低電圧付近になると、キャパシタンス内に電荷が残っていたとしても、やはりマイクロコントローラ全体がリセットされてしまう。 In addition, there is a device that drives a microcontroller using a charged capacitance as a backup backup power source in case the main power supply is disconnected or the power supply capacity from the battery is reduced. However, the output voltage decreases in the process of discharging the capacitance. Therefore, when the output voltage from the capacitance is close to the minimum operation guaranteed voltage of the CPU in the microcontroller, the entire microcontroller is reset even if charge remains in the capacitance.
ここで、より低電圧でRTCを動作させるためには、マイクロコントローラとは別に外付けでRTCを用意する必要があるが、別のチップを用意しなければならず基板面積の増加、製造工程の増加等、製造コスト増加の要因となる。 Here, in order to operate the RTC at a lower voltage, it is necessary to prepare the RTC as an external device separately from the microcontroller. However, another chip must be prepared, which increases the substrate area and the manufacturing process. Increases manufacturing costs and other factors.
以上のことから、製造コスト等の増加やユーザの利便性を損なわないためにも、1チップのマイクロコントローラにおいて、低電圧下でより長時間リアルタイムクロックを動作させたいという要求が存在する。
従来技術では、マイクロコントローラ内のリアルタイムクロックの時計機能動作を低電圧で継続できず、同一チップのCPU動作がリセットされる度に、時計機能の再設定を行っていた。 In the prior art, the clock function operation of the real-time clock in the microcontroller cannot be continued at a low voltage, and the clock function is reset every time the CPU operation of the same chip is reset.
本発明は、同一チップ上にCPUとリアルタイムクロックを有するマイクロコントローラであって、電源電圧が第1の電圧値以下になったとき前記CPUを停止させる信号を出力する第1の低電圧検出回路と、電源電圧が前記第1の電圧値より低い第2の電圧値になったときに前記リアルタイムクロックを停止させるリセット信号を出力する第2の低電圧検出回路を有するものである。 The present invention is a microcontroller having a CPU and a real-time clock on the same chip, and a first low-voltage detection circuit that outputs a signal for stopping the CPU when a power supply voltage becomes equal to or lower than a first voltage value; And a second low voltage detection circuit that outputs a reset signal for stopping the real-time clock when the power supply voltage becomes a second voltage value lower than the first voltage value.
本発明にかかるマイクロコントローラにより、電源電圧が所定の第1の電圧値以下になりマイクロコントローラ内のCPUがリセットされ動作が停止しても、更に低電圧の第2の電圧値以下にならない限り、リアルタイムクロックは停止することがない。 Even if the microcontroller according to the present invention causes the power supply voltage to become lower than the predetermined first voltage value and the CPU in the microcontroller is reset to stop the operation, as long as it does not become lower than the second voltage value of the lower voltage, The real-time clock never stops.
本発明によれば、電源電圧が低下し、CPUがリセットされてもリアルタイムクロックはリセットされず、時計機能の再設定を行う必要がない。 According to the present invention, even if the power supply voltage is lowered and the CPU is reset, the real-time clock is not reset, and there is no need to reset the clock function.
<発明の実施の形態1>
以下、本発明を適用した具体的な実施の形態について、図面を参照しながら詳細に説明する。図1に本実施の形態にかかるマイクロコントローラ100の構成の一例を示す。
<Embodiment 1 of the Invention>
Hereinafter, specific embodiments to which the present invention is applied will be described in detail with reference to the drawings. FIG. 1 shows an example of the configuration of a
マイクロコントローラ100は、同一チップ上に、低電圧検出回路110と、低電圧検出回路120と、CPU130と、フラッシュROM131と、RAM132と、リアルタイムクロック140と、その他の周辺機能150と、内部バス160を有する。また、マイクロコントローラ100は、電源電圧VDDが入力される高電位側電源電圧端子181と、GNDレベルの電圧VSSが入力される低電位側電源電圧端子182と、水晶振動子170が接続される外部端子171、172と、ユーザからの設定データを入力したり、CPU130からの外部ディスプレイ表示データを出力するデータ入出力端子151を有する。
The
低電圧検出回路110(広義の意味での第1の低電圧検出回路)は、高電位側電源電圧端子181と低電位側電源電圧端子182間に直列に接続された抵抗素子R111とR112と、その抵抗素子R111とR112と並列に接続された基準電圧源111と、抵抗素子R111とR112間のノードAの電圧を非反転端子に入力し、基準電圧源111の出力電圧を反転端子に入力するコンパレータ112と、コンパレータ112の出力を反転増幅するインバータ113を有する。
The low voltage detection circuit 110 (first low voltage detection circuit in a broad sense) includes resistance elements R111 and R112 connected in series between the high potential side power
ここで、抵抗素子R111とR112間のノードAの電圧は、回路構成からもわかるように高電位側電源電圧端子181の電圧(以下VDDとする)と低電位側電源電圧端子182の電圧(以下VSSとする)の差分を分圧した電圧である。例えば、抵抗素子R111とR112が同じ抵抗値であるとすると、VDDが2.0Vの時、ノードAには、1.0Vの電圧が現れることになる。なお、抵抗素子R111とR112の抵抗値は、回路構成に合わせて変えてもよい。 Here, the voltage of the node A between the resistance elements R111 and R112 is the voltage of the high potential side power supply voltage terminal 181 (hereinafter referred to as VDD) and the voltage of the low potential side power supply voltage terminal 182 (hereinafter referred to as the circuit configuration). This is a voltage obtained by dividing the difference of VSS. For example, assuming that the resistance elements R111 and R112 have the same resistance value, a voltage of 1.0V appears at the node A when VDD is 2.0V. The resistance values of the resistance elements R111 and R112 may be changed according to the circuit configuration.
また、基準電圧源111は、レギュレータ等で構成されており、所定の電圧を出力する。ここで基準電圧源111が出力する所定の電圧は、VDDがCPU130やその他の周辺機能150を含めた動作保証最低電圧のときノードAに現れる電圧と同じ電圧とする。また、このCPU130やその他の周辺機能150を含めた動作保証最低電圧を検出電圧1(広義の意味での第1の電圧値)とする。よって、ノードAの電圧が基準電圧源111の出力電圧より高い時は、コンパレータ112は、「H」レベルの信号を出力し、ノードAの電圧が基準電圧源111の出力電圧より低い時は、コンパレータ112は、「L」レベルの信号を出力する。
The
またここで、インバータ113が出力する論理信号は、リセット信号1として内部バス160を経て、CPU130とその他の周辺機能150に入力される。このリセット信号1は「L」レベルの時、有効となりCPU等のマイクロコントローラ内の機能をリセットし、動作を停止させる。
Here, the logic signal output from the
低電圧検出回路120(広義の意味での第2の低電圧検出回路)は、高電位側電源電圧端子181と低電位側電源電圧端子182間に直列に接続された抵抗素子R121とR122と、その抵抗素子R121とR122と並列に接続された基準電圧源121と、抵抗素子R121とR122間のノードBの電圧を非反転端子に入力し、基準電圧源121の出力電圧を反転端子に入力するコンパレータ122と、コンパレータ122の出力を反転増幅するインバータ123を有する。
The low voltage detection circuit 120 (second low voltage detection circuit in a broad sense) includes resistance elements R121 and R122 connected in series between the high potential side power
ここで、抵抗素子R121とR122間のノードBの電圧は、基準電圧源111と同様、VDDとVSSの差分を分圧した電圧である。また、抵抗素子R121とR122の抵抗値は、回路構成に合わせて変えてもよい。
Here, the voltage of the node B between the resistance elements R121 and R122 is a voltage obtained by dividing the difference between VDD and VSS, like the
基準電圧源121は、レギュレータ等で構成されており、基準電圧源111より低い所定の電圧を出力する。ここで基準電圧源121が出力する所定の電圧は、VDDがリアルタイムクロック140の動作保証最低電圧のときノードBに現れる電圧と同じ電圧とする。また、このリアルタイムクロック140の動作保証最低電圧を検出電圧2(広義の意味での第2の電圧値)とする。よって、ノードBの電圧が基準電圧源121の出力電圧より高い時は、コンパレータ122は、「H」レベルの信号を出力し、ノードBの電圧が基準電圧源121の出力電圧より低い時は、コンパレータ122は、「L」レベルの信号を出力する。
The
またここで、インバータ123が出力する論理信号は、リセット信号2として内部バス160を経て、リアルタイムクロック140に入力される。このリセット信号2は「L」レベルの時、有効となりリアルタイムクロック140をリセットし、動作を停止させる。
Here, the logic signal output from the
ここで、低電圧検出回路110、120は、基本的な性能に影響を与えない範囲内において異なる構成で実現してもよい。例えば、CPU130等は、リセット信号1、2が「L」レベルの時にリセットするよう構成されているが、「H」レベルでリセットするよう構成してもよい。その場合では信号のアンプ機能等はなくなるが、上記インバータ113や123を省略可能となる。また、基準電圧源110、120を構成するレギュレータやコンパレータ112、122の電源を図示している電源電圧VDDとは別の電源電圧から利用する等が考えられる。この場合は、コンパレータ112、122の反転入力端子に直接電源電圧VDDを入力し、非反転入力端子には、CPU130やリアルタイムクロック140の動作保証最低電圧と同電圧を出力する基準電圧源110、120を用いることができる。
Here, the low
リアルタイムクロック140は、時計機能、カレンダー機能を実現するため、年月日時分秒などのカウンタを持ち、水晶振動子170など(精度が求められない場合セラミック振動子等でもよい)の発振をカウントし、日付、時刻を自動更新するものである。上記リセット信号2が「L」レベルで入力された時、リセットされ動作を停止する。
The real-
図2にリアルタイムクロック140のブロック構成の一例を示す。図に示すように、リアルタイムクロック140は、サブカウンタ2011を内部に有する発振回路201、秒カウンタ202、分カウンタ203、時カウンタ204、日カウンタ205、月カウンタ206、年カウンタ207、動作/停止レジスタ208を有する。発振回路201は、外部端子171、172に水晶振動子107を接続する。発振回路201内のサブカンウタ2011は、外部接続されている水晶振動子の振動周波数(例えば約32kHz)をカウントし、1秒をカウントする。1秒をカウントしたら秒カウンタ202へ秒カウント信号を出力する。
FIG. 2 shows an example of a block configuration of the
秒カウンタ202は、サブカウンタ2011からの秒カウント信号を受け取り、1分をカウントする。1分をカウントしたら分カウンタ203へ分カウント信号を出力する。以下、分カウンタ203、時カウンタ204、日カウンタ205、月カウンタ206、年カウンタ207も同様の動作を行い、上記各カウンタの値をCPU信号としてCPUが読み出し、外部ディスプレイに出力する等の処理を行う。ここで、前記「L」レベルのリセット信号2が入力されると、リアルタイムクロック140の各カウンタの値および動作/停止レジスタ208の値をリセットする。
The
また、動作/停止レジスタ208は、リアルタイムクロック140が動作している場合は「1」の値を保持し、停止している場合は「0」の値を保持する。また、リアルタイムクロック140は、ユーザ等からの時刻設定により各カウンタに時刻情報を設定しないと動作せず、動作/停止レジスタ208は「0」を保持し、時刻設定後、動作/停止レジスタ208は「1」になりサブカウンタ2011(それに伴い各カウンタ)が動作する。この時刻設定データの各カウンタへの設定、および、動作/停止レジスタ208の「0」から「1」への書き換えはCPU130からのCPU信号により行われる。
The operation /
CPU130は、制御プログラムや入力データに基づいて、機器内の各種処理を行う中央制御装置である。また、前記リセット信号1が「L」レベルで入力された時、リセットされ動作を停止する。
The
ここで、CPU130は、リアルタイムクロック140内の動作/停止レジスタ208の値をCPU信号として読み出す。読み出した動作/停止レジスタ208の値が「1」の場合、リアルタイムクロック140が動作していると判断し、各カウンタの値を読み出し、外部ディスプレイへ表示したり、機器システム内部の時間管理に用いたりする。また、前記動作/停止レジスタ208の値が「0」の場合、リアルタイムクロック140が停止していると判断し、例えば、時刻情報の再設定をユーザに求めるメッセージデータをデータ入出力端子151を経由して外部ディスプレイに送信し、メッセージ内容を表示させる等の処理を行う。さらに、ユーザが時刻の設定を行った場合、その時刻設定データをデータ入出力端子151を経由して受け取る。さらに、受け取ったデータをCPU信号としてリアルタイムクロック140に送り、各カウンタの値を時刻設定データに合わせセットする。また、時刻設定後、動作/停止レジスタ208の値を「0」から「1」へ書き換える。
Here, the
また、CPU130は、フラッシュROMやRAMとの間でデータの読み出し、書き込みを行う。ここで、CPU130は、データの読み出し、書き込み時にCPU内のチャージポンプやセンスアンプを動作させる必要があり(特にフラッシュROMからデータの読み出す場合、高電圧動作が必要)、リアルタイムクロック140に比べると高い電圧が必要となり、動作保障最低電圧が高くなる。
The
フラッシュROM131は、CPU130が処理を行うための制御プログラムやデータ等が格納されている。RAM132は、CPU130等により使用される記憶装置であり、フラッシュROM131等から読み出された制御プログラムやデータ等が展開される。
The
その他の周辺機能150は、バスコントローラ、通信制御回路、ディスプレイドライバ、A/D変換器、クロック発生器、入出力ドライバ等がある。また、このうち入出力ドライバは、データ入出力端子151と内部バス160に接続している。さらに、データ入出力端子151は、例えば、外部ディスプレイやキーボード等の入力装置と接続される。このデータ入出力端子151からは、外部ディスプレイに表示される時刻再設定要求メッセージデータやキーボードで入力されたユーザからの時刻設定データ等の入出力データが入出力される。
Other
これらのその他の周辺機能150は、前記リセット信号1が「L」レベルで入力された時、リセットされ動作を停止する。これらその他の周辺機能150は主にCPU130と制御信号やデータの送受信を行っており、リセット信号1によりCPU130がリセットされ停止すると、CPU130と制御信号等の送受信が行えなくなる。このため、その他の周辺機能150もCPU130と同時にリセットし、動作停止状態にすることが妥当であると考えられる。また、その他の周辺機能150自体の電源電圧VDDの低下による暴走を防ぐためにも、リセット信号1によりリセットされることが妥当であると考えられる。また、反対にCPU130と制御信号等の送受信等を必ずしも行わない機能であって、かつCPU130より低い電圧で動作できるならば、リセット信号2によりリセットされ動作を停止してもよい。
These other
内部バス160は、マイクロコントローラ100を構成する要素(CPUやリアルタイムクロック等)間の信号を伝送するバスである。内部バス160では、リセット信号1、リセット信号2、CPU信号(例えば、CPU130からリアルタイムクロック140への時刻設定データやリアルタイムクロック140からCPU130への時刻情報、動作/停止レジスタ208のレジスタ値情報や読み出し、書き込み制御信号等)、入出力データ(外部ディスプレイの表示メッセージデータ、ユーザが入力した時刻設定データ等)等が伝送される。
The
次に、図3と図4のタイムチャートを用いて、本実施の形態のマイクロコントローラ100の動作を説明する。図3は、電源電圧VDDが検出電圧1(例えば2.0V)以下になるが検出電圧2(例えば1.0V)にはならない場合を示す。図4は、電源電圧VDDが検出電圧2(例えば1.0V)以下になってしまった場合を示す。なお図3と図4にはリアルタイムクロック140の秒カウンタの値を示す。本来は、前述したように分カウンタ、時カウンタ等もあるが図を簡素化するために、秒カウンタのみを示す。このカウンタの値をCPU130が時刻情報として利用するものとする。
Next, the operation of the
図3のタイムチャートにおける本実施の形態のマイクロコントローラの動作説明を行う。まず、時刻t1までの期間では、バッテリやキャパシタ等の出力電圧VDDが、ある時期に徐々に低下するが検出電圧1以上である場合を想定している。ここで検出電圧1は、前述したがCPU130およびその他の周辺機能150を動作させることが可能な電圧である。この場合、低電圧検出回路110における抵抗素子R111とR112間のノードAの電位は、基準電圧源111の出力電位より高いため、コンパレータ112の出力は「L」レベルとなる。よって、リセット信号1であるインバータ113の出力は「H」レベルとなり、CPU130やその他の周辺機能150は通常動作を行う。
The operation of the microcontroller of this embodiment in the time chart of FIG. 3 will be described. First, in the period up to time t1, it is assumed that the output voltage VDD of the battery, the capacitor, or the like gradually decreases at a certain time but is equal to or higher than the detection voltage 1. Here, the detection voltage 1 is a voltage capable of operating the
また同様に低電圧検出回路120における抵抗素子R121とR122間のノードBの電位は、基準電圧源121の出力電位より高いため、コンパレータ122の出力も、やはり「L」レベルとなる。よって、リセット信号2であるインバータ123の出力も「H」レベルとなり、リアルタイムクロック140は通常動作を行う。よって、リアルタイムクロック140は停止していないため、動作/停止レジスタ208が保持する値は「1」のままであり、秒カウンタも停止しないためカウント値は通常通り増加する。よって、CPU140は、リアルタイムクロック140の秒カウンタから時刻情報を取得する。
Similarly, since the potential of the node B between the resistance elements R121 and R122 in the low
次に、時刻t1からt2の期間では、更に電源電圧VDDが下がり検出電圧1を下回った場合、および、バッテリの充電や電池の交換等により電源電圧VDDが上昇するが検出電圧1以下である場合を想定している。よって、この期間では電源電圧VDDは検出電圧1以下となるが検出電圧2以上である。この場合、低電圧検出回路110におけるノードAの電位は、基準電圧源111の出力電位より低くなり、コンパレータ112の出力は「H」レベルとなる。よって、リセット信号1であるインバータ113の出力は「L」レベルとなり、CPU130やその他の周辺機能150はリセットされ、動作を停止する。
Next, in the period from the time t1 to the time t2, when the power supply voltage VDD further decreases and falls below the detection voltage 1, or when the power supply voltage VDD rises due to battery charging or battery replacement, but is below the detection voltage 1 Is assumed. Therefore, in this period, the power supply voltage VDD is equal to or lower than the detection voltage 1, but is equal to or higher than the detection voltage 2. In this case, the potential of the node A in the low
ここで低電圧検出回路120におけるノードBの電位は、時刻t1以前と同様、基準電圧源121の出力電位より高いため、コンパレータ122の出力は「L」レベルである。よって、リセット信号2であるインバータ123の出力も「H」レベルであり、リアルタイムクロック140は通常動作を行い続ける。よって、リアルタイムクロック140は停止していないため、動作/停止レジスタ208が保持する値は「1」のままであり、秒カウンタも停止しないためカウント値は増加を続ける。
Here, since the potential of the node B in the low
次に、時刻t2からt3の期間では、電源電圧VDDが再び検出電圧1より上回った場合を想定している。この場合、低電圧検出回路110におけるノードAの電位は、基準電圧源111の出力電位より高くなり、コンパレータ112の出力は「L」レベルとなる。よって、リセット信号1であるインバータ113の出力は「H」レベルとなり、CPU130やその他の周辺機能150はリセットが解除され、動作を開始する(基本的に、その他の周辺機能はCPU130からの信号により動作開始する)。
Next, it is assumed that the power supply voltage VDD again exceeds the detection voltage 1 during the period from time t2 to t3. In this case, the potential of the node A in the low
低電圧検出回路120におけるノードBの電位は、基準電圧源121の出力電位より高いため、コンパレータ122の出力は「L」レベルである。よって、リセット信号2であるインバータ123の出力も「H」レベルであり、リアルタイムクロック140は通常動作を行う。よって、リアルタイムクロック140は停止していないため、動作/停止レジスタ208が保持する値は「1」のままであり、秒カウンタのカウント値は増加する。
Since the potential of the node B in the low
ここで、CPU130は、リセットから復帰したことから時刻情報を再度取得するため、リアルタイムクロック140が動作しているかどうかを確認するため動作/停止レジスタ208の値を読み出す。上述したように動作/停止レジスタ208の値は、時刻t1からt2の期間、リアルタイムクロック140が停止していないため、「1」のままである。よって、CPU130は、リアルタイムクロック140が動作していると確認した後、秒カウンタの時刻情報を取得する。
Here, the
時刻t3以後は、電源電圧VDDが検出電圧1以上であり、CPU130が時刻情報取得済みの場合である。よってこの期間は時刻t1以前と同様の動作を行う。以上が図3のタイムチャートにおける本実施の形態のマイクロコントローラの動作の説明である。
After time t3, the power supply voltage VDD is equal to or higher than the detection voltage 1, and the
次に、図4のタイムチャートにおける本実施の形態のマイクロコントローラ100の動作説明を行う。まず、時刻t4までの期間では、電源電圧VDDが低下するが検出電圧1以上である場合である。この場合、低電圧検出回路110における抵抗素子R111とR112間のノードAの電位は、基準電圧源111の出力電位より高いため、コンパレータ112の出力は「L」レベルとなる。よって、リセット信号1であるインバータ113の出力は「H」レベルとなり、CPU130やその他の周辺機能150は通常動作を行う。
Next, the operation of the
また同様に低電圧検出回路120における抵抗素子R121とR122間のノードBの電位は、基準電圧源121の出力電位より高いため、コンパレータ122の出力も、やはり「L」レベルとなる。よって、リセット信号2であるインバータ123の出力も「H」レベルとなり、リアルタイムクロック140は通常動作を行う。よって、リアルタイムクロック140は停止していないため、動作/停止レジスタ208の値は「1」のままであり、秒カウンタも停止しないためカウント値が増加する。よって、CPU130は、リアルタイムクロック140の秒カウンタから時刻情報を取得する。
Similarly, since the potential of the node B between the resistance elements R121 and R122 in the low
次に、時刻t4からt5の期間では、更に電源電圧VDDが下がり検出電圧1以下となるが検出電圧2以上の場合である。この場合、低電圧検出回路110におけるノードAの電位は、基準電圧源111の出力電位より低くなり、コンパレータ112の出力は「H」レベルとなる。よって、リセット信号1であるインバータ113の出力は「L」レベルとなり、CPU130やその他の周辺機能150はリセットされ、動作を停止する。
Next, in the period from the time t4 to the time t5, the power supply voltage VDD further decreases and becomes the detection voltage 1 or less, but is the detection voltage 2 or more. In this case, the potential of the node A in the low
ここで低電圧検出回路120におけるノードBの電位は、時刻t1以前と同様、基準電圧源121の出力電位より高いため、コンパレータ122の出力は「L」レベルである。よって、リセット信号2であるインバータ123の出力も「H」レベルであり、リアルタイムクロック140は通常動作を行い続ける。よって、リアルタイムクロック140は停止していないため、動作/停止レジスタ208の値は「1」のままであり、秒カウンタも停止しないためカウント値は増加を続ける。
Here, since the potential of the node B in the low
次に、時刻t5からt6の期間では、更に電源電圧VDDが下がり検出電圧2以下となる場合である。この場合、低電圧検出回路110におけるノードAの電位は、基準電圧源111の出力電位より低いままであり、コンパレータ112の出力は「H」レベルである。よって、リセット信号1であるインバータ113の出力は「L」レベルであり、CPU130やその他の周辺機能150は動作を停止したままである。
Next, in the period from time t5 to t6, the power supply voltage VDD further decreases and becomes the detection voltage 2 or less. In this case, the potential of the node A in the low
ここで、低電圧検出回路120におけるノードBの電位も、基準電圧源121の出力電位より低くなるため、コンパレータ122の出力は「H」レベルとなる。よって、リセット信号2であるインバータ123の出力は「L」レベルとなり、リアルタイムクロック140はリセットされ、動作を停止する。よって、動作/停止レジスタ208の値は「0」となり、秒カウンタもリセットされカウンタの値は「0」となる。
Here, since the potential of the node B in the low
次に、時刻t6からt7の期間は、電源電圧VDDが上がり検出電圧2以上となるが検出電圧1以下の場合である。この場合、低電圧検出回路110におけるノードAの電位は、基準電圧源111の出力電位より低いままであり、コンパレータ112の出力は「H」レベルである。よって、リセット信号1であるインバータ113の出力は「L」レベルであり、CPU130やその他の周辺機能150は動作を停止したままである。
Next, the period from time t6 to t7 is a case where the power supply voltage VDD rises and becomes equal to or higher than the detection voltage 2 but is equal to or lower than the detection voltage 1. In this case, the potential of the node A in the low
ここで、低電圧検出回路120におけるノードBの電位は、基準電圧源121の出力電位は高くなるため、コンパレータ122の出力は「L」レベルとなる。よって、リセット信号2であるインバータ123の出力は「H」レベルとなり、リアルタイムクロック140は動作可能状態となる。ただし、上述のようにCPU130のリセットが解除されていないため、時刻情報が設定されず、また動作/停止レジスタ208の値も「0」のままである。よって、サブカウンタ2011も動作せず、秒カウンタの値も「0」のままであり、リアルタイムクロック140は動作停止の状態を続ける。
Here, since the potential of the node B in the low
次に、時刻t7からt8の期間では、電源電圧VDDが上がり検出電圧1以上となる場合である。この場合、低電圧検出回路110におけるノードAの電位は、基準電圧源111の出力電位より高くなり、コンパレータ112の出力は「L」レベルとなる。よって、リセット信号1であるインバータ113の出力は「H」レベルとなり、CPU130やその他の周辺機能150はリセットが解除され、動作を開始する。
Next, in the period from time t7 to t8, the power supply voltage VDD rises and becomes the detected voltage 1 or more. In this case, the potential of the node A in the low
ここで低電圧検出回路120におけるノードBの電位は、基準電圧源121の出力電位より高いため、コンパレータ122の出力は「L」レベルである。よって、リセット信号2であるインバータ123の出力も「H」レベルであり、リアルタイムクロック140は時刻t6からt7の期間と同様動作可能であるが停止状態である。
Here, since the potential of the node B in the low
ここで、CPU130は、リセットから復帰したことから時刻情報を再度取得するため、リアルタイムクロック140が動作しているかどうか動作/停止レジスタ208の値を読み出す。上述したように動作/停止レジスタ208の値は、時刻t5からt7の期間、リアルタイムクロック140が停止していたため、「0」のままである。よって、CPU130は、リアルタイムクロック140が動作していないことを確認後、例えば、ユーザに対し時刻情報を再設定するメッセージを外部ディスプレイに表示する等の処理を行い、時刻設定情報を取得し、この取得した時刻設定情報に基づきリアルタイムクロック140の秒カウンタにカウンタ値を設定(本例では「34」の値を設定)する。また、動作/停止レジスタ208の値を「0」から「1」に書き換え、サブカウンタ2011を動作させ、リアルタイムクロック140が再び動作を開始する。以後、時刻t8以降は、時刻t4以前の期間と同様の動作となる。
Here, the
ここで、本例のマイクロコントローラを有する機器システムが、現在時刻を利用せず、主にシステム内部のローカル時間でリアルタイムクロック140を利用する場合(例えば、ある時刻間の秒カウンタの値の差分のみ利用する等)では、時刻の再設定が必要ないため、電源電圧VDDが検出電圧2以上になった時点でリアルタイムクロック140は動作してもよい。
Here, when the device system having the microcontroller of this example does not use the current time but uses the real-
以上が図4のタイムチャートにおける本実施の形態のマイクロコントローラの動作の説明である。 The above is the description of the operation of the microcontroller of the present embodiment in the time chart of FIG.
ここで、補足として電源電圧VDDが低下し、例えばレギュレータ等で構成される基準電圧源111や121の動作限界電圧以下(例えば、0.7V以下)になった場合を説明する。この様な条件下では、基準電圧源111、121から所定の電圧が出力されなくなりノードA、Bの電圧と比較するコンパレータ112、122の出力、同時にインバータ113、123が出力するリセット信号1、2が反転する可能性がある(リセット信号1、2が「H」レベルになる可能性がある)。よって、電源電圧VDDが低下した状態でCPU130等が起動し、機器が暴走する可能性が考えられる。
Here, as a supplement, a case will be described in which the power supply voltage VDD decreases and becomes equal to or lower than the operation limit voltage (for example, 0.7 V or lower) of the
しかし、そもそもこの場合、電源電圧VDDは、CPU130、その他の周辺機能150、リアルタイムクロック140の動作限界電圧を下回っており、動作することができない。またここで、低電圧で動作可能なリアルタイムクロック140であっても、水晶振動子の発振が止まってしまうため動作することができない。よって以上のことから、電源電圧VDDの低下により、基準電圧源111、121の動作限界電圧以下になったとしても問題は生じないことがわかる。
However, in this case, the power supply voltage VDD is lower than the operation limit voltages of the
次に、図5に図3、図4の動作状態を含めた本実施の形態のマイクロコントローラ100の動作処理手順を示す。
Next, FIG. 5 shows an operation processing procedure of the
まず、マイクロコントローラ100は、低電圧検出回路110において電源電圧VDDが検出電圧1(例えば2.0V)より高いかどうかを判断する(S101)。次に、S101で電源電圧VDDが検出電圧1より低いと判断された場合(S101NO)、S101に戻る。
First, the
一方、S101で電源電圧VDDが検出電圧1より高いと判断された場合(S101YES)、リセット信号1はディセーブルとなり、CPU130が動作を開始する(S102)。続いて、CPU130はリアルタイムクロック140の動作/停止レジスタ208が保持する値を読み出し、リアルタイムクロック140が動作しているかどうかを判断する(S103)。
On the other hand, when it is determined in S101 that the power supply voltage VDD is higher than the detection voltage 1 (S101 YES), the reset signal 1 is disabled and the
次に、S103でリアルタイムクロック140が動作をしていると判断された場合(S103YES)、リアルタイムクロック140の各カウンタの時刻情報をCPU130が読み取り、処理に利用する。また、その他の周辺機能150の初期設定を行い、動作を開始する(S104)。一方、S103でリアルタイムクロック140が動作をしていないと判断された場合(S103NO)、リアルタイムクロック140の初期設定(時刻情報セット)を行い、動作を開始させる。また、その他の周辺機能150の初期設定を行い、動作を開始する(S114)。続いて、CPU130、その他の周辺機能150、リアルタイムクロック140の動作を継続させる(S105)。続いて、低電圧検出回路110において電源電圧VDDが検出電圧1(例えば2.0V)より低いかどうかを判断する(S106)。次に、S106で電源電圧VDDが検出電圧1より高いと判断された場合(S106NO)、S105に戻る。
Next, when it is determined in S103 that the real-
一方、S106で電源電圧VDDが検出電圧1より高いと判断された場合(S106YES)、リセット信号1はイネーブルとなり、CPU130、その他の周辺機能150がリセットされる(S107)。
On the other hand, when it is determined in S106 that the power supply voltage VDD is higher than the detection voltage 1 (S106 YES), the reset signal 1 is enabled, and the
次に、リアルタイムクロック140が動作をしている場合(S108YES)、CPU130、その他の周辺機能150は機能停止状態を継続し、リアルタイムクロック140は動作状態を継続する(S109)。一方、リアルタイムクロック140が動作をしていない場合(S108NO)、CPU130、その他の周辺機能150、リアルタイムクロック140は機能停止状態を継続する(S115)。続いて、低電圧検出回路110において電源電圧VDDが検出電圧1より低いかどうかを判断する(S110)。次に、S110で電源電圧VDDが検出電圧1より高いと判断された場合(S110NO)、S102に戻る。
Next, when the real-
一方、S110で電源電圧VDDが検出電圧2より低いと判断された場合(S110YES)、低電圧検出回路120において電源電圧VDDが検出電圧2より低いかどうかを判断する(S111)。次に、S111で電源電圧VDDが検出電圧2より高いと判断された場合(S111NO)、S108に戻る。
On the other hand, if it is determined in S110 that the power supply voltage VDD is lower than the detection voltage 2 (S110 YES), the low
一方、S111で電源電圧VDDが検出電圧2より低いと判断された場合(S111YES)、リセット信号2はイネーブルとなり、リアルタイムクロック140がリセットされる(S112)。続いて、CPU130、その他の周辺機能150、リアルタイムクロック140は機能停止状態を継続する(S113)。その後、S111に戻る。以上、マイクロコントローラ100の動作処理手順の説明とする。
On the other hand, if it is determined in S111 that the power supply voltage VDD is lower than the detection voltage 2 (S111 YES), the reset signal 2 is enabled and the real-
以上のことから、本発明による実施の形態のマイクロコントローラは以下のような効果がある。従来のマイクロコントローラは、CPUを中心に考えて設計されており、電源電圧の低下によるマイクロコントローラの暴走を防ぐため、CPUの最低動作限度電圧を基準にして同一チップ上にある全ての機能(例えば、リアルタイムクロック等)にリセットをかけていた。よって、CPUの最低動作限度電圧になるたびに同一チップ上にあるリアルタイムクロック等のCPUよりも低電圧で動作する機能を含めて全て動作を停止してしまうため、ユーザに対し時刻情報の再設定等、製品の利便性を損なう操作を強いていた。 From the above, the microcontroller according to the embodiment of the present invention has the following effects. Conventional microcontrollers are designed with the CPU at the center, and in order to prevent the microcontroller from running away due to a drop in power supply voltage, all functions on the same chip (for example, the minimum operating voltage limit of the CPU) , The real-time clock, etc.) was reset. Therefore, every time the CPU reaches the minimum operating limit voltage, all operations including functions that operate at a lower voltage than the CPU, such as a real-time clock on the same chip, are stopped. For example, operations that impair the convenience of the product were forced.
本発明による実施の形態のマイクロコントローラは、同一チップ上にあるにも関わらず、比較的高い動作保障最低電圧で動作するCPU等の機能を検出電圧1でリセット信号1によりリセットし、より低い動作保障最低電圧で動作するリアルタイムクロック等の機能を検出電圧2でリセット信号2によりリセットする。このことにより、バッテリ等の電源電圧が低下しCPU等がリセットされても、より低い電源電圧になるまでリアルタイムクロックが動作可能であり、CPUのリセットによる時刻情報の再設定を行わなくてよくなる。このため、ユーザの利便性を損なわず、さらにワンチップによりマイクロコントローラを実現できるため、製造コスト等の増加も伴わない。 The microcontroller according to the embodiment of the present invention resets the function of the CPU or the like that operates at a relatively high minimum operation-guaranteed voltage by the reset signal 1 with the detection voltage 1 even though it is on the same chip, and operates at a lower level. A function such as a real-time clock that operates at the guaranteed minimum voltage is reset by the reset signal 2 at the detection voltage 2. As a result, even if the power supply voltage of the battery or the like is reduced and the CPU or the like is reset, the real-time clock can operate until the power supply voltage becomes lower, and it is not necessary to reset the time information by resetting the CPU. For this reason, since the microcontroller can be realized by one chip without impairing the convenience of the user, the manufacturing cost is not increased.
なお、本発明は上記実施の形態に限られたものでなく、趣旨を逸脱しない範囲で適宜変更することが可能である。よって、検出電圧2までリセットされない機能としては、リアルタイムクロック以外のものであってもよい。つまり、同一チップ上において、少なくとも2以上の電圧検出回路を有し、それぞれが異なる検出電圧(上述した例で言うところの検出電圧1、2)で電源電圧を検出し、リセット信号を出力する機能を有する全てのマイクロコントローラに有効である。例えば、上述した実施の形態では、リセット信号2で制御されている機能として、リアルタイムクロックを記載しているが、リアルタイムクロックの代わりに、外付けICへのクロック供給を行ったり圧電ブザーへブザー出力を行ったりするクロック出力回路を用いてもよい。この場合だと、例えば電源電圧VDDが下がりCPUがリセット信号1によりリセットされても、クロック出力回路はリセット信号1ではリセットされず動作し続ける。このため、クロック出力回路のクロック出力をブザー出力として使用し、ユーザへ電圧低下をブザーにより知らせることができる機能をワンチップのマイクロコントローラで実現できる。 Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention. Therefore, the function that is not reset to the detection voltage 2 may be other than the real-time clock. That is, the function of having at least two or more voltage detection circuits on the same chip, each detecting a power supply voltage with different detection voltages (detection voltages 1 and 2 in the above example), and outputting a reset signal. It is effective for all microcontrollers having For example, in the above-described embodiment, a real-time clock is described as a function controlled by the reset signal 2, but a clock is supplied to an external IC or a buzzer is output to a piezoelectric buzzer instead of the real-time clock. Alternatively, a clock output circuit that performs the above may be used. In this case, for example, even if the power supply voltage VDD decreases and the CPU is reset by the reset signal 1, the clock output circuit continues to operate without being reset by the reset signal 1. For this reason, a function that can use the clock output of the clock output circuit as a buzzer output and notify the user of a voltage drop by the buzzer can be realized by a one-chip microcontroller.
100 マイクロコントローラ
110、120 低電圧検出回路
111、121 基準電圧源
112、122 コンパレータ
113、123 インバータ
130 CPU
131 フラッシュROM
132 RAM
140 リアルタイムクロック
150 その他の周辺機能
151 データ入出力端子
160 内部バス
170 水晶振動子
171、172、181、182 外部端子
R111、R112、R121、R122 抵抗素子
100
131 Flash ROM
132 RAM
140 Real-
Claims (7)
電源電圧が第1の電圧値以下になったとき前記CPUを停止させる信号を出力する第1の低電圧検出回路と、
電源電圧が前記第1の電圧値より低い第2の電圧値になったときに前記リアルタイムクロックを停止させる信号を出力する第2の低電圧検出回路と、
を有するマイクロコントローラ。 A microcontroller having a CPU and a real-time clock on the same chip,
A first low voltage detection circuit for outputting a signal for stopping the CPU when a power supply voltage becomes equal to or lower than a first voltage value;
A second low voltage detection circuit that outputs a signal for stopping the real-time clock when a power supply voltage becomes a second voltage value lower than the first voltage value;
Having a microcontroller.
第1の基準電圧源と、
前記第1の基準電圧源から出力される電圧と前記第1の電圧値に基づいて生成される電圧に応じて、前記CPUを停止させる信号を生成する第1の比較器と、
を有する請求項1から請求項3のいずれか1項に記載のマイクロコントローラ。 The first low voltage detection circuit includes:
A first reference voltage source;
A first comparator for generating a signal for stopping the CPU in accordance with a voltage output from the first reference voltage source and a voltage generated based on the first voltage value;
The microcontroller according to any one of claims 1 to 3, further comprising:
第2の基準電圧源と、
前記第2の基準電圧源から出力される電圧と前記第2の電圧値に基づいて生成される電圧に応じて、前記リアルタイムクロックを停止させる信号を生成する第2の比較器と、
を有する請求項1から請求項4のいずれか1項に記載のマイクロコントローラ。 The second low voltage detection circuit includes:
A second reference voltage source;
A second comparator for generating a signal for stopping the real-time clock in response to a voltage output from the second reference voltage source and a voltage generated based on the second voltage value;
5. The microcontroller according to claim 1, comprising:
電源電圧が前記第1の電圧値より低い第2の電圧値になったときに前記CPUと同一のチップ上にあるリアルタイムクロックを停止するマイクロコントローラの制御方法。 When the power supply voltage falls below the first voltage value, the CPU is stopped,
A method of controlling a microcontroller, which stops a real-time clock on the same chip as the CPU when a power supply voltage becomes a second voltage value lower than the first voltage value.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007201809A JP2009037456A (en) | 2007-08-02 | 2007-08-02 | Micro-controller and its control method |
US12/216,769 US8296588B2 (en) | 2007-08-02 | 2008-07-10 | Microcontroller and control method therefor |
CN200810144784.XA CN101359236B (en) | 2007-08-02 | 2008-08-01 | Microcontroller and control method therefore |
US13/608,847 US8788854B2 (en) | 2007-08-02 | 2012-09-10 | Microcontroller and control method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007201809A JP2009037456A (en) | 2007-08-02 | 2007-08-02 | Micro-controller and its control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009037456A true JP2009037456A (en) | 2009-02-19 |
Family
ID=40331698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007201809A Pending JP2009037456A (en) | 2007-08-02 | 2007-08-02 | Micro-controller and its control method |
Country Status (3)
Country | Link |
---|---|
US (2) | US8296588B2 (en) |
JP (1) | JP2009037456A (en) |
CN (1) | CN101359236B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011210152A (en) * | 2010-03-30 | 2011-10-20 | Renesas Electronics Corp | Microcomputer |
JP2012048527A (en) * | 2010-08-27 | 2012-03-08 | Seiko Epson Corp | Real-time clock module, electronic device, and control method |
JP7494610B2 (en) | 2020-07-10 | 2024-06-04 | セイコーエプソン株式会社 | Circuit device and real-time clock device |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009037456A (en) * | 2007-08-02 | 2009-02-19 | Nec Electronics Corp | Micro-controller and its control method |
TW201015282A (en) * | 2008-10-09 | 2010-04-16 | Realtek Semiconductor Corp | Circuit and method of adjusting system clock in low voltage detection, and low voltage reset circuit |
GB2472030B (en) * | 2009-07-22 | 2011-11-02 | Wolfson Microelectronics Plc | Real-time clock |
CN103050142B (en) * | 2011-10-13 | 2016-04-27 | 赛恩倍吉科技顾问(深圳)有限公司 | Solid state hard disc electric power system |
CN103576074A (en) * | 2012-08-06 | 2014-02-12 | 上海海尔集成电路有限公司 | Real-time clock module test device |
JP2015011505A (en) * | 2013-06-28 | 2015-01-19 | ソニー株式会社 | Voltage detector, electronic device, and control method of voltage detector |
US9651630B2 (en) * | 2013-07-17 | 2017-05-16 | Infineon Technologies Ag | Circuitry and method for monitoring a power supply of an electronic device |
TWI521534B (en) * | 2013-10-09 | 2016-02-11 | 新唐科技股份有限公司 | Integrated circuit and operation method thereof |
CN104808761A (en) * | 2015-04-29 | 2015-07-29 | 联想(北京)有限公司 | Power supply method, power supply system and electronic equipment |
CN105955009B (en) * | 2016-04-27 | 2019-12-10 | 深圳市元征科技股份有限公司 | Power supply circuit of real-time clock and intelligent bracelet |
JP6837762B2 (en) * | 2016-06-28 | 2021-03-03 | ラピスセミコンダクタ株式会社 | Semiconductor integrated circuit and power supply switching method |
CN106843435A (en) * | 2016-12-21 | 2017-06-13 | 深圳市紫光同创电子有限公司 | A kind of chip reset circuit and method for PLD |
JP2019106053A (en) * | 2017-12-13 | 2019-06-27 | ルネサスエレクトロニクス株式会社 | Semiconductor device |
TWI678043B (en) * | 2018-06-26 | 2019-11-21 | 新唐科技股份有限公司 | Microcontroller unit and protection method for eft events |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63268058A (en) * | 1987-04-27 | 1988-11-04 | Sony Corp | Microcomputer |
JPH03109665A (en) * | 1989-09-22 | 1991-05-09 | Toshiba Corp | Microcomputer device |
JPH0460710A (en) * | 1990-06-28 | 1992-02-26 | Sanyo Electric Co Ltd | Reset processing method for micro computer |
JPH06230153A (en) * | 1993-01-29 | 1994-08-19 | Victor Co Of Japan Ltd | Electronic timepiece |
JPH11351669A (en) * | 1998-06-10 | 1999-12-24 | Sharp Corp | Electric apparatus |
JP2001228932A (en) * | 2000-02-15 | 2001-08-24 | Ricoh Co Ltd | Real-time clock device |
JP2002222030A (en) * | 2001-01-29 | 2002-08-09 | Seiko Instruments Inc | Portable electronic equipment |
JP2002354707A (en) * | 2001-05-21 | 2002-12-06 | Mitsubishi Electric Corp | Integrated semiconductor circuit |
JP2004061379A (en) * | 2002-07-30 | 2004-02-26 | Ricoh Co Ltd | Real time clock and system using real time clock |
JP2005190483A (en) * | 2003-12-24 | 2005-07-14 | Samsung Electronics Co Ltd | Processor system for reducing power consumption in idle mode and its method |
JP2006195560A (en) * | 2005-01-11 | 2006-07-27 | Matsushita Electric Ind Co Ltd | Electronic device |
JP2007018428A (en) * | 2005-07-11 | 2007-01-25 | Denso Wave Inc | Personal digital assistance |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5696950A (en) * | 1993-09-29 | 1997-12-09 | Seiko Epson Corporation | Flexible clock and reset signal generation and distribution system having localized programmable frequency synthesizers |
US5715465A (en) * | 1994-04-29 | 1998-02-03 | Dell Usa, L.P. | Power supply control apparatus using last power state memory |
US6137192A (en) * | 1998-05-15 | 2000-10-24 | Energenius, Inc. | Embedded backup energy storage unit |
US6721892B1 (en) * | 2000-05-09 | 2004-04-13 | Palmone, Inc. | Dynamic performance adjustment of computation means |
US6556901B2 (en) * | 2000-06-29 | 2003-04-29 | Denso Corporation | Electronic control unit and method measuring and using electric power-off period |
FI115811B (en) * | 2001-06-27 | 2005-07-15 | Nokia Corp | Procedure for checking time data, system and terminal |
KR100433532B1 (en) * | 2001-12-29 | 2004-05-31 | 삼성전자주식회사 | Apparatus and method for managing power |
US7287169B2 (en) * | 2002-10-10 | 2007-10-23 | Stmicroelectronics, Inc. | Electronic device and timer therefor with tamper event stamp features and related methods |
US7765334B2 (en) * | 2004-05-12 | 2010-07-27 | Canon Kabushiki Kaisha | Electronic apparatus for use with removable storage medium, control method therefor, and program for implementing the method |
US7343504B2 (en) * | 2004-06-30 | 2008-03-11 | Silicon Labs Cp, Inc. | Micro controller unit (MCU) with RTC |
JP2006079332A (en) | 2004-09-09 | 2006-03-23 | Seiko Epson Corp | Integrated circuit device, microcomputer and electronic equipment |
US7516339B2 (en) * | 2005-05-05 | 2009-04-07 | Irvine Sensors Corp. | Low power electronic circuit incorporating real time clock |
US7640424B2 (en) * | 2005-10-13 | 2009-12-29 | Sandisk Corporation | Initialization of flash storage via an embedded controller |
US7728459B2 (en) * | 2006-05-02 | 2010-06-01 | Mediatek Inc. | Power supply for real-time clock generation |
US7603643B2 (en) * | 2007-01-30 | 2009-10-13 | Cadence Design Systems, Inc. | Method and system for conducting design explorations of an integrated circuit |
JP2009037456A (en) * | 2007-08-02 | 2009-02-19 | Nec Electronics Corp | Micro-controller and its control method |
-
2007
- 2007-08-02 JP JP2007201809A patent/JP2009037456A/en active Pending
-
2008
- 2008-07-10 US US12/216,769 patent/US8296588B2/en not_active Expired - Fee Related
- 2008-08-01 CN CN200810144784.XA patent/CN101359236B/en not_active Expired - Fee Related
-
2012
- 2012-09-10 US US13/608,847 patent/US8788854B2/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63268058A (en) * | 1987-04-27 | 1988-11-04 | Sony Corp | Microcomputer |
JPH03109665A (en) * | 1989-09-22 | 1991-05-09 | Toshiba Corp | Microcomputer device |
JPH0460710A (en) * | 1990-06-28 | 1992-02-26 | Sanyo Electric Co Ltd | Reset processing method for micro computer |
JPH06230153A (en) * | 1993-01-29 | 1994-08-19 | Victor Co Of Japan Ltd | Electronic timepiece |
JPH11351669A (en) * | 1998-06-10 | 1999-12-24 | Sharp Corp | Electric apparatus |
JP2001228932A (en) * | 2000-02-15 | 2001-08-24 | Ricoh Co Ltd | Real-time clock device |
JP2002222030A (en) * | 2001-01-29 | 2002-08-09 | Seiko Instruments Inc | Portable electronic equipment |
JP2002354707A (en) * | 2001-05-21 | 2002-12-06 | Mitsubishi Electric Corp | Integrated semiconductor circuit |
JP2004061379A (en) * | 2002-07-30 | 2004-02-26 | Ricoh Co Ltd | Real time clock and system using real time clock |
JP2005190483A (en) * | 2003-12-24 | 2005-07-14 | Samsung Electronics Co Ltd | Processor system for reducing power consumption in idle mode and its method |
JP2006195560A (en) * | 2005-01-11 | 2006-07-27 | Matsushita Electric Ind Co Ltd | Electronic device |
JP2007018428A (en) * | 2005-07-11 | 2007-01-25 | Denso Wave Inc | Personal digital assistance |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011210152A (en) * | 2010-03-30 | 2011-10-20 | Renesas Electronics Corp | Microcomputer |
JP2012048527A (en) * | 2010-08-27 | 2012-03-08 | Seiko Epson Corp | Real-time clock module, electronic device, and control method |
JP7494610B2 (en) | 2020-07-10 | 2024-06-04 | セイコーエプソン株式会社 | Circuit device and real-time clock device |
Also Published As
Publication number | Publication date |
---|---|
CN101359236B (en) | 2012-10-03 |
US8296588B2 (en) | 2012-10-23 |
US8788854B2 (en) | 2014-07-22 |
CN101359236A (en) | 2009-02-04 |
US20090037755A1 (en) | 2009-02-05 |
US20120331331A1 (en) | 2012-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2009037456A (en) | Micro-controller and its control method | |
US10110060B2 (en) | Semiconductor device | |
JP4918866B2 (en) | COMMUNICATION DEVICE, SEMICONDUCTOR INTEGRATED CIRCUIT DEVICE, AND COMMUNICATION SYSTEM | |
JP2002318647A (en) | Detecting device and its detecting method | |
CN108279760A (en) | A kind of power on detection circuit, chip and wearable device | |
WO2011010146A2 (en) | Real-time clock | |
US20080246549A1 (en) | Real time clock integrated circuit and electronic apparatus using the same | |
US10951228B2 (en) | Semiconductor apparatus | |
JP2013149079A (en) | Random number generating device | |
US7199676B2 (en) | Frequency adjustment circuit | |
CN108398997A (en) | Semiconductor device | |
JP2011114953A (en) | Voltage application time period measuring circuit and power supply apparatus | |
US20130111231A1 (en) | Control circuit for power supply of memory | |
JPH09146653A (en) | Information processor | |
JP2007324819A (en) | Delay time generation circuit | |
JP4547226B2 (en) | Oscillator and semiconductor device | |
TW201820144A (en) | Motherboard and computer system thereof | |
CN111382822A (en) | Chip and method for manufacturing the same | |
KR101709821B1 (en) | Cloc recovery in a battery powered device | |
JP2017060120A (en) | Semiconductor device and control method of oscillation circuit | |
JP2004304334A (en) | Semiconductor device and reset signal transmission method | |
US9195933B2 (en) | Electronic circuit and electronic device including the same | |
EP3211508B1 (en) | Semiconductor device | |
CN211653694U (en) | Chip and method for manufacturing the same | |
JP6213187B2 (en) | Data storage device and communication device including the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100512 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110117 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110201 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120110 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120312 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20121016 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130116 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20130123 |
|
A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20130329 |