JPH11327701A - Microcomputer device - Google Patents

Microcomputer device

Info

Publication number
JPH11327701A
JPH11327701A JP10138805A JP13880598A JPH11327701A JP H11327701 A JPH11327701 A JP H11327701A JP 10138805 A JP10138805 A JP 10138805A JP 13880598 A JP13880598 A JP 13880598A JP H11327701 A JPH11327701 A JP H11327701A
Authority
JP
Japan
Prior art keywords
signal
circuit
reset signal
regulator
bit
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
Application number
JP10138805A
Other languages
Japanese (ja)
Inventor
Shinji Niijima
慎司 新島
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP10138805A priority Critical patent/JPH11327701A/en
Publication of JPH11327701A publication Critical patent/JPH11327701A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable control of a regulator without a CPU running away even at the time of the regulator operation or stop and without making connection terminals a user can use fewer. SOLUTION: A regulator 1 lowers a voltage applied to a power source terminal and supplies it with an internal circuit, and a control signal switches operation or stop. A counter 2 stops when a reset signal to be inputted is inactive and starts counting operation when the signal is active by a signal from a clock terminal. A pulse width decision circuit 31 outputs an operation control signal as a result of this counter 2 deciding an active level width of a specific bit signal and a reset signal counted to the regulator 1 and controls operation or stop. The length of the active level width of the reset signal to be inputted to a reset signal input terminal controls switching of operation or stop of the regulator 1 which lowers the voltage applied to an external power source terminal and supplies it with the internal circuit.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、外部電源端子に
印加される電圧を低下して内部回路に供給する定電圧出
力回路(適宜、レギュレータと称する)を備えるマイク
ロコンピュータ装置に関し、詳細には、レギュレータの
動作または停止を、リセット入力端子に入力されるリセ
ット信号のアクティブレベル幅の長短で切り替えるマイ
クロコンピュータ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer device having a constant voltage output circuit (referred to as a regulator as appropriate) for reducing a voltage applied to an external power supply terminal and supplying the reduced voltage to an internal circuit. The present invention relates to a microcomputer device that switches the operation or stop of a regulator depending on the length of an active level width of a reset signal input to a reset input terminal.

【0002】[0002]

【従来の技術】近年、マイクロコンピュータ装置を使用
した電子機器では、多機能化および省電力化が進展して
いる。また電子機器の小型化によって電子部品が放射す
るノイズによる他の部品および機器での誤動作が問題と
なっている。したがって、マイクロコンピュータ装置に
は、CPU処理の高速化や低消費電力化、さらに動作中
の放射ノイズを抑える低ノイズ化が要求される。この低
消費電力化および低ノイズ対策のため、内部にレギュレ
ータを搭載したマイクロコンピュータ装置が知られてい
る。このレギュレータで内部電源電圧を外部電源電圧よ
りも低下させている。これによりマイクロコンピュータ
装置の動作電圧が低下して消費電流が低減し、さらに内
部信号の振幅値が小さくなることから放射ノイズを低減
できるようになっている。
2. Description of the Related Art In recent years, electronic devices using microcomputer devices have been developed to have more functions and to save power. In addition, due to miniaturization of electronic devices, malfunctions in other components and devices due to noise radiated by the electronic components have become a problem. Therefore, the microcomputer device is required to have a high-speed CPU process, low power consumption, and low noise for suppressing radiation noise during operation. In order to reduce the power consumption and reduce noise, a microcomputer device having a regulator mounted therein is known. This regulator makes the internal power supply voltage lower than the external power supply voltage. As a result, the operating voltage of the microcomputer device is reduced, the current consumption is reduced, and since the amplitude value of the internal signal is reduced, the radiation noise can be reduced.

【0003】一方、CPUでの高速データ処理のために
は、動作電圧を下げることはできず、レギュレータによ
る電圧低下ができない。この相反する矛盾を解決するた
め、現状では電子機器によって、低消費電力化または低
ノイズ化が優先される場合は、搭載しているレギュレー
タを動作させ、またCPUでの高速データ処理を優先す
る場合は搭載しているレギュレータの動作を停止させて
いる。
On the other hand, for high-speed data processing in a CPU, the operating voltage cannot be reduced, and the voltage cannot be reduced by a regulator. In order to solve this conflicting contradiction, if low power consumption or low noise is prioritized by electronic equipment at present, the mounted regulator is operated and high-speed data processing by CPU is prioritized. Stops the operation of the mounted regulator.

【0004】従来、このようなレギュレータの動作また
は停止を設定する例として、特開平5−108193号
公報例に開示されている制御用レジスタを設けた構成や
専用に外部端子を設けた構成が知られている。
Conventionally, as an example of setting the operation or stop of such a regulator, a configuration provided with a control register and a configuration provided with an external terminal for exclusive use disclosed in Japanese Patent Application Laid-Open No. 5-108193 are known. Have been.

【0005】図4に示す例は、制御用レジスタを設けた
構成例であり、クロック信号入力端子に入力されたクロ
ック信号を、分周回路41が動作制御信号で分周したシ
ステムクロック信号を生成してCPU42に供給してい
る。CPU42が書き込み制御信号をレジスタ43に出
力する。レジスタ43からの書き込み制御信号が、分周
回路41およびレギュレータ44に出力される。レギュ
レータ44は低消費電力化または低ノイズ化が優先され
る場合は動作し、この反対にCPU42での高速データ
処理を優先する場合はレギュレータ44の動作を停止す
るようにしている。
The example shown in FIG. 4 is a configuration example in which a control register is provided, and a frequency divider circuit 41 generates a system clock signal obtained by dividing a clock signal input to a clock signal input terminal by an operation control signal. And supplies it to the CPU 42. The CPU 42 outputs a write control signal to the register 43. The write control signal from the register 43 is output to the frequency dividing circuit 41 and the regulator 44. The regulator 44 operates when priority is given to lower power consumption or lower noise. Conversely, when priority is given to high-speed data processing by the CPU 42, the operation of the regulator 44 is stopped.

【0006】なお、このような制御用レジスタを用いて
動作または停止を切り替える構成では、CPUの暴走す
るおそれがある。これは、通常、レギュレータ出力電圧
がCPUや他の周辺回路が動作する最低電圧に設定され
ているためである。即ち、低消費電力化や低ノイズ化の
ために、可能な限り内部電源電圧を低下させている。例
えば、CPU動作によってレギュレータの動作または停
止を切り替える場合、停止状態から動作状態に遷移する
過渡状態において、レギュレータの出力電圧が不安定に
なるためである。
In such a configuration in which the operation or the stop is switched by using such a control register, the CPU may run away. This is because the regulator output voltage is usually set to the lowest voltage at which the CPU and other peripheral circuits operate. That is, in order to reduce power consumption and noise, the internal power supply voltage is reduced as much as possible. For example, when the operation or stop of the regulator is switched by the CPU operation, the output voltage of the regulator becomes unstable in a transitional state in which the state changes from the stop state to the operation state.

【0007】[0007]

【発明が解決しようとする課題】このように上記した従
来例では、レギュレータの動作または停止を切り替える
場合に出力電圧が不安定になることがある。そのためレ
ギュレータの出力電圧をCPU、周辺回路の最低動作電
圧に設定していると、レギュレータ電圧が、その最低電
圧を下回ってしまう場合がある。この場合、CPUが暴
走することがある。この暴走を回避するために、レギュ
レータの設定電圧を、CPUおよび周辺回路の最低動作
電圧より多少高く設定して、マージンを有した設計を行
う必要がある。
As described above, in the above-described conventional example, the output voltage may become unstable when switching the operation or stop of the regulator. Therefore, if the output voltage of the regulator is set to the minimum operating voltage of the CPU and peripheral circuits, the regulator voltage may fall below the minimum voltage. In this case, the CPU may run away. In order to avoid this runaway, it is necessary to set the regulator setting voltage to be slightly higher than the minimum operating voltage of the CPU and peripheral circuits, and to design with a margin.

【0008】また専用端子を設けてレギュレータの動作
または停止を切り替える構成では、上記説明のような過
渡的な電圧低下の問題は回避できるが、ユーザが使用可
能な接続端子の本数が少なくなることから、多機能化を
求められているマイクロコンピュータ装置としては極め
て使用し難い状態になってしまう。
In a configuration in which a dedicated terminal is provided to switch the operation or stop of the regulator, the problem of the transient voltage drop as described above can be avoided, but the number of connection terminals usable by the user is reduced. However, it becomes extremely difficult to use the microcomputer as a multi-functional microcomputer.

【0009】この発明は、上述の事情に鑑みてなされた
もので、外部電源端子に印加される電圧を低下して内部
回路に供給する定電圧出力回路の動作または停止の切り
替えが、リセット入力端子に入力するリセット信号のア
クティブレベル幅の長短で制御できるようになり、レギ
ュレータ動作または停止時にも出力電圧が低下せずに、
低消費電流化及び低ノイズ化が可能になるとともに、C
PUが暴走するおそれがなくなり、且つ、ユーザ使用可
能な端子を減らすことなく定電圧出力回路の動作制御が
できるマイクロコンピュータ装置を提供することを目的
としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and switching between operation and stop of a constant voltage output circuit for reducing a voltage applied to an external power supply terminal and supplying the same to an internal circuit is performed by a reset input terminal. Can be controlled by the length of the active level width of the reset signal input to the
Low current consumption and low noise can be achieved, and C
It is an object of the present invention to provide a microcomputer device that eliminates the possibility of a PU runaway and controls the operation of a constant voltage output circuit without reducing the number of terminals that can be used by a user.

【0010】[0010]

【課題を解決するための手段】上記課題を解決するため
に、本発明のマイクロコンピュータ装置では、電源端子
に印加した電圧を降圧して内部回路に供給し、且つ、制
御信号により動作または停止を切り替える定電圧出力手
段と、入力されるリセット信号がインアクティブ時に停
止し、且つ、アクティブ時にクロック端子からのクロッ
ク信号でカウント動作を開始する計数手段と、前記計数
手段がカウントした所定ビット信号とリセット信号のア
クティブレベル幅を判定した結果の動作制御信号を前記
定電圧出力手段へ出力して動作または停止を制御するた
めのパルス幅判定手段とを備えることを特徴とする。
In order to solve the above-mentioned problems, in a microcomputer device of the present invention, a voltage applied to a power supply terminal is stepped down and supplied to an internal circuit, and operation or stop is performed by a control signal. Constant voltage output means for switching, a counting means for stopping when an input reset signal is inactive, and starting a count operation with a clock signal from a clock terminal when active, and a predetermined bit signal counted by the counting means and resetting And a pulse width determining means for outputting an operation control signal as a result of determining the active level width of the signal to the constant voltage output means to control operation or stop.

【0011】また本発明では前記計数手段を、リセット
信号の入力中に発振回路の安定時間を確保するために、
オーバフロー信号発生により発振安定時間の経過が、中
央演算装置を含む周辺回路に示される発振安定用カウン
タと兼用したことを特徴とする。
In the present invention, the counting means is provided so as to secure a stabilization time of the oscillation circuit during the input of the reset signal.
The oscillation stabilization time elapsing due to the generation of the overflow signal is shared with an oscillation stabilization counter shown in a peripheral circuit including the central processing unit.

【0012】さらに本発明は前記計数手段でカウントす
る所定ビット数信号が、少なくとも2ビットであること
を特徴とし、前記入力されるリセット信号のノイズを除
去してパルス幅判定手段へ出力するノイズ除去手段をさ
らに備えることを特徴とする。
Further, the present invention is characterized in that the predetermined bit number signal counted by the counting means is at least two bits, and the noise of the input reset signal is removed and output to the pulse width determining means. It is characterized by further comprising means.

【0013】また本発明は前記パルス幅判定手段が、リ
セット信号の立ち下がりを検出したラッチ初期化信号を
出力する立ち下がりエッジ検出回路と、計数手段からの
最上位ビットの立ち上がりによりセットされ、且つ、前
記立ち下がりエッジ検出回路からのラッチ初期化信号で
リセットされてタイマOVF信号を出力する一方のラッ
チ回路と、前記一方のラッチ回路からのタイマOVF信
号と計数手段からの最上位ビット以外の任意ビットとの
論理積処理の立ち上がりでセットされ、且つ、前記立ち
下がりエッジ検出回路からのラッチ初期化信号でリセッ
トされた動作制御信号を定電圧出力手段へ出力する他方
のラッチ回路と、前記一方のラッチ回路からのタイマO
VF信号と計数手段からの最上位ビット以外の任意ビッ
トとの論理積信号を、前記他方のラッチ回路へ出力する
AND回路とを備えることを特徴とする。
In the present invention, the pulse width judging means is set by a falling edge detecting circuit for outputting a latch initialization signal which detects a falling of a reset signal, a rising edge of the most significant bit from the counting means, and A latch circuit that is reset by a latch initialization signal from the falling edge detection circuit and outputs a timer OVF signal; and a timer OVF signal from the one latch circuit and an arbitrary bit other than the most significant bit from the counting means. The other latch circuit that outputs to the constant voltage output means an operation control signal that is set at the rising edge of the AND operation with the bit and that is reset by the latch initialization signal from the falling edge detection circuit; Timer O from latch circuit
An AND circuit for outputting a logical product signal of the VF signal and an arbitrary bit other than the most significant bit from the counting means to the other latch circuit.

【0014】さらに本発明は前記リセット信号のアクテ
ィブレベル幅を判定した結果の動作制御信号が、定電圧
出力手段を動作状態にするものであり、且つ、このリセ
ット信号のアクティブレベル幅が、最上位ビットセット
時間と最上位以外の任意ビットセット時間との加算値よ
り小さい値であることを特徴とする。
Further, according to the present invention, the operation control signal as a result of the determination of the active level width of the reset signal activates the constant voltage output means, and the active level width of the reset signal is highest. It is characterized in that the value is smaller than the sum of the bit set time and an arbitrary bit set time other than the most significant bit set time.

【0015】また本発明は前記リセット信号のアクティ
ブレベル幅を判定した結果の動作制御信号が、定電圧出
力手段を動作状態にするものであり、且つ、このリセッ
ト信号のアクティブレベル幅が、最上位ビットセット時
間と最上位以外の任意ビットセット時間との加算値より
大きい値であることを特徴とする。
According to the present invention, the operation control signal resulting from the determination of the active level width of the reset signal activates the constant voltage output means, and the active level width of the reset signal is the highest. The value is larger than the sum of the bit set time and any bit set time other than the highest bit.

【0016】このような発明のマイクロコンピュータ装
置では、リセット信号入力端子に入力するリセット信号
のアクティブレベル幅によって、定電圧出力回路の動作
または停止を、切り替えているため、従来例のようにC
PUの命令実行で定電圧出力回路に対する動作制御用レ
ジスタにデータを設定せずに定電圧出力回路の動作また
は停止の切り替えが出来るようになる。
In the microcomputer device of the present invention, the operation or stop of the constant voltage output circuit is switched by the active level width of the reset signal input to the reset signal input terminal.
The execution or the stop of the constant voltage output circuit can be switched without setting data in the operation control register for the constant voltage output circuit by executing the PU instruction.

【0017】また切り替えタイミングでは、CPUや他
の周辺回路が動作しておらず、即ち、リセット信号の入
力中であるため切り替えの過渡状態で瞬間的に定電圧出
力回路の出力電圧が低下した場合でも、CPUが暴走す
るおそれがなくなる。
At the switching timing, when the CPU or other peripheral circuits are not operating, that is, when the reset signal is being input, the output voltage of the constant voltage output circuit drops momentarily in the transitional state of switching. However, there is no possibility that the CPU will run away.

【0018】さらに定電圧出力回路の出力電圧をCPU
および周辺回路が動作できる最低電圧に設定できるた
め、従来のマイクロコンピュータ装置に比較して低消費
電流化、低ノイズ化を図ることができる。
Further, the output voltage of the constant voltage output circuit is used by a CPU.
In addition, since the voltage can be set to the minimum voltage at which the peripheral circuits can operate, lower current consumption and lower noise can be achieved as compared with a conventional microcomputer device.

【0019】また定電圧出力回路に対する動作制御用端
子を設ける必要がなく、外部端子が他の機能設定用の端
子として有効に活用できるようになる。
Further, it is not necessary to provide an operation control terminal for the constant voltage output circuit, and the external terminal can be effectively used as a terminal for setting other functions.

【0020】[0020]

【発明の実施の形態】以下、図面を参照して、この発明
の実施の形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0021】図1は、この発明のマイクロコンピュータ
装置の実施形態の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of a microcomputer device of the present invention.

【0022】このマイクロコンピュータ装置は、クロッ
クゼネレータなどからのクロック信号が入力されるクロ
ック入力端子T1と、リセット信号が入力されるリセッ
ト信号入力端子T2と、外部電源電圧が印加される外部
電源端子T3とを有している。さらに動作制御信号27
で動作または停止の制御が可能なレギュレータ1と、内
部リセット信号22でカウント開始または停止クリアの
制御が可能なカウンタ(計数手段)2と、リセット信号
入力端子T2からのリセット信号21のノイズを除去し
た内部リセット信号22を出力するノイズ除去回路7と
を有している。またカウンタ2でのカウントにおける最
上位ビットであるmビット信号29と最上位ビット以外
の任意ビットであるnビット信号28とを入力してリセ
ット信号21のアクティブレベル幅を検出するパルス幅
判定回路31を有している。
This microcomputer device has a clock input terminal T1 to which a clock signal from a clock generator or the like is input, a reset signal input terminal T2 to which a reset signal is input, and an external power supply terminal T3 to which an external power supply voltage is applied. And Further, the operation control signal 27
, A counter (counting means) 2 capable of controlling a count start or a stop clear by an internal reset signal 22, and a noise removal of a reset signal 21 from a reset signal input terminal T2. And a noise removing circuit 7 for outputting the internal reset signal 22. A pulse width determination circuit 31 for inputting an m-bit signal 29 as the most significant bit and an n-bit signal 28 as an arbitrary bit other than the most significant bit in the counting by the counter 2 and detecting the active level width of the reset signal 21 have.

【0023】図1中のパルス幅判定回路31は、ノイズ
除去回路7が出力する内部リセット信号22の立ち下が
り(後縁)を検出したパルス状のラッチ初期化信号23
を出力する立ち下がりエッジ検出回路8と、カウンタ2
からのmビット信号29の立ち上がりでセット(ハイレ
ベル)され、且つ、ラッチ初期化信号23でリセット
(ローレベル)され、この処理出力のタイマOVF信号
を出力するラッチ回路3とを有している。
The pulse width determination circuit 31 shown in FIG. 1 has a pulse-shaped latch initialization signal 23 which detects the falling edge (trailing edge) of the internal reset signal 22 output from the noise removal circuit 7.
Falling edge detection circuit 8 that outputs
And a latch circuit 3 which is set (high level) at the rising edge of the m-bit signal 29 and reset (low level) by the latch initialization signal 23 and outputs a timer OVF signal of this processing output. .

【0024】さらにパルス幅判定回路31は、ラッチ回
路3からのタイマOVF信号26とnビット信号28と
の論理積処理の立ち上がりでセット(ハイレベル)さ
れ、且つ、ラッチ初期化信号23でリセット(ローレベ
ル)されて生成した動作制御信号27をレギュレータ1
へ出力するラッチ回路4と、ラッチ回路3からのタイマ
OVF信号26とnビット信号28との論理積信号をラ
ッチ回路4に出力するAND回路5とで構成されてい
る。
Further, the pulse width determination circuit 31 is set (high level) at the rise of the AND operation of the timer OVF signal 26 and the n-bit signal 28 from the latch circuit 3 and reset by the latch initialization signal 23 ( The operation control signal 27 generated by being (low level)
And an AND circuit 5 that outputs a logical product signal of the timer OVF signal 26 and the n-bit signal 28 from the latch circuit 3 to the latch circuit 4.

【0025】なお、マイクロコンピュータ装置は通常C
PUや周辺回路などのユニットを内蔵しているが、これ
らのユニットについては、その構成および以下での説明
を省略する。
The microcomputer device is usually C
Units such as a PU and peripheral circuits are built in, but the configuration and description of these units will be omitted.

【0026】以下、この実施形態の動作について説明す
る。
Hereinafter, the operation of this embodiment will be described.

【0027】まず、図1の各部の動作を説明する。First, the operation of each unit in FIG. 1 will be described.

【0028】レギュレータ1はパルス幅判定回路31が
出力する動作制御信号27により動作し、または停止す
る。レギュレータ1には動作時に外部電源端子T3に印
加された外部電源電圧20が入力され、ここで低下した
内部電源電圧30をCPUおよび周辺回路(図示せず)
へ印加する。またレギュレータ1の停止時には、外部電
源電圧20を低下しない内部電源電圧30を供給する。
The regulator 1 operates or stops in response to the operation control signal 27 output from the pulse width determination circuit 31. The external power supply voltage 20 applied to the external power supply terminal T3 during operation is input to the regulator 1, and the reduced internal power supply voltage 30 is reduced by the CPU and peripheral circuits (not shown).
Apply to When the regulator 1 is stopped, the internal power supply voltage 30 that does not decrease the external power supply voltage 20 is supplied.

【0029】カウンタ2はノイズ除去回路7の出力であ
る内部リセット信号22でカウント開始または停止クリ
アの制御が行われる。このカウント開始時はクロック入
力端子T1に入力されるクロック信号24でカウントア
ップを行い、また停止クリア時はカウンタ2を初期化し
てカウントアップを停止する。カウンタ2は、カウント
した最上位ビット情報のmビット信号29をパルス幅判
定回路31に出力する。またカウンタ2の最上位ビット
以外の任意ビット(1ビット)情報のnビット信号28
をパルス幅判定回路31に出力する。
The counter 2 is controlled to start or stop counting by an internal reset signal 22 output from the noise elimination circuit 7. At the start of the count, the count is incremented by the clock signal 24 input to the clock input terminal T1, and when the stop is cleared, the counter 2 is initialized and the count is stopped. The counter 2 outputs the counted m-bit signal 29 of the most significant bit information to the pulse width determination circuit 31. Also, an n-bit signal 28 of arbitrary bit (1 bit) information other than the most significant bit of the counter 2
Is output to the pulse width determination circuit 31.

【0030】ノイズ除去回路7はリセット信号入力端子
T2に入力されるリセット信号21が入力され、ここで
ノイズ除去を行った後の内部リセット信号22を、カウ
ンタ2、パルス幅判定回路31,CPUおよび周辺回路
(図示せず)に出力する。
The noise elimination circuit 7 receives a reset signal 21 input to the reset signal input terminal T2, and converts the internal reset signal 22 after noise elimination into the counter 2, the pulse width determination circuit 31, the CPU and Output to a peripheral circuit (not shown).

【0031】パルス幅判定回路31にはカウンタ2から
mビット信号29およびnビット信号28が入力され、
ノイズ除去回路7から内部リセット信号22が入力され
る。これらのmビット信号29,nビット信号28およ
び内部リセット信号22からタイマOVF信号26およ
び動作制御信号27を生成して、ラッチ回路3からタイ
マOVF信号26を出力し、且つ、ラッチ回路4から動
作制御信号27をレギュレータ1へ出力する。
The pulse width determination circuit 31 receives an m-bit signal 29 and an n-bit signal 28 from the counter 2,
The internal reset signal 22 is input from the noise removal circuit 7. The timer OVF signal 26 and the operation control signal 27 are generated from the m-bit signal 29, the n-bit signal 28 and the internal reset signal 22, the timer OVF signal 26 is output from the latch circuit 3, and the operation is performed from the latch circuit 4. The control signal 27 is output to the regulator 1.

【0032】このタイマOVF信号26をCPUおよび
周辺回路(図示せず)に出力し、また動作制御信号27
をレギュレータ1に出力する。
This timer OVF signal 26 is output to a CPU and peripheral circuits (not shown), and an operation control signal 27
Is output to the regulator 1.

【0033】次に、全体動作について説明する。Next, the overall operation will be described.

【0034】リセット信号入力端子T2に入力されるリ
セット信号21がアクティブになり、ノイズ除去回路7
でノイズが除去された内部リセット信号22がローレベ
ルになるとカウンタ2が動作を開始する。次に、リセッ
ト信号21がインアクティブになり内部リセット信号2
2がハイレベルになると、カウンタ2のカウント動作が
停止する。パルス幅判定回路31はカウンタ2のカウン
ト情報からリセット信号21のアクティブレベル幅を判
定し、その結果に基づいた動作制御信号27を出力す
る。レギュレータ1は動作制御信号27により動作また
は停止を切り替える。即ち、リセット信号21のアクテ
ィブレベル幅でレギュレータ1の動作制御が行われる。
The reset signal 21 input to the reset signal input terminal T2 becomes active, and the noise removal circuit 7
When the internal reset signal 22 from which the noise has been removed goes low, the counter 2 starts operating. Next, the reset signal 21 becomes inactive and the internal reset signal 2
When 2 goes high, the counting operation of the counter 2 stops. The pulse width determination circuit 31 determines the active level width of the reset signal 21 from the count information of the counter 2 and outputs an operation control signal 27 based on the result. The regulator 1 switches between operation and stop by the operation control signal 27. That is, the operation of the regulator 1 is controlled by the active level width of the reset signal 21.

【0035】パルス幅判定回路31では、立ち下がりエ
ッジ検出回路8に内部リセット信号22が入力される。
この内部リセット信号22の立ち下がり(後縁)をエッ
ジ検出回路8が検出するとパルス状のラッチ初期化信号
23をラッチ回路3,4に出力する。ラッチ回路3はm
ビット信号29の立ち上がりでセット(ハイレベル)さ
れ、またラッチ初期化信号23でリセット(ローレベ
ル)される。この処理出力がタイマOVF信号となる。
ラッチ回路4は、タイマOVF信号26とnビット信号
28との論理積処理によるAND回路5の立ち上がりに
よりセット(ハイレベル)され、またラッチ初期化信号
23でリセット(ローレベル)される。この出力が動作
制御信号27となる。
In the pulse width determination circuit 31, the internal reset signal 22 is input to the falling edge detection circuit 8.
When the edge detection circuit 8 detects the falling edge (trailing edge) of the internal reset signal 22, it outputs a pulse-like latch initialization signal 23 to the latch circuits 3 and 4. Latch circuit 3 is m
It is set (high level) at the rise of the bit signal 29 and is reset (low level) by the latch initialization signal 23. This processing output becomes the timer OVF signal.
The latch circuit 4 is set (high level) by the rising of the AND circuit 5 by the AND operation of the timer OVF signal 26 and the n-bit signal 28, and is reset (low level) by the latch initialization signal 23. This output becomes the operation control signal 27.

【0036】従って、レギュレータ1の動作または停止
を制御する場合、専用の制御端子を備える必要がなくな
る。さらに図示しないCPU(マイクロコンピュータ装
置内部にある中央処理装置)が、従来例で説明したよう
な命令実行によりレギュレータ動作制御用のレジスタに
値を設定する処理などが不要になる。
Therefore, when controlling the operation or stop of the regulator 1, it is not necessary to provide a dedicated control terminal. Further, it is unnecessary for a CPU (not shown) (a central processing unit in the microcomputer device) to set a value in a regulator operation control register by executing an instruction as described in the conventional example.

【0037】以下、上記動作の要部を詳細に説明する。Hereinafter, the main part of the above operation will be described in detail.

【0038】図2はレギュレータ1の動作状態のタイミ
ングチャートである。
FIG. 2 is a timing chart of the operation state of the regulator 1.

【0039】レギュレータ1の動作または停止は、リセ
ット信号21のアクティブレベル幅で行うため、リセッ
ト信号21のアクティブ(ローレベル)以後からの動作
について説明する。
Since the operation or stop of the regulator 1 is performed by the active level width of the reset signal 21, the operation after the reset signal 21 becomes active (low level) will be described.

【0040】リセット信号21がアクティブ(ローレベ
ル)になるとノイズ除去回路7での遅延を経て内部リセ
ット信号22がアクティブ(ローレベル)になる。内部
リセット信号22がアクティブ(ローレベル)になる
と、カウンタ2がクロック信号24によりカウントアッ
プを開始するとともに、パルス幅判定回路31の立ち下
がりエッジ検出回路8がパルス状のラッチ初期化信号2
3を出力する。
When the reset signal 21 becomes active (low level), the internal reset signal 22 becomes active (low level) after a delay in the noise removing circuit 7. When the internal reset signal 22 becomes active (low level), the counter 2 starts counting up by the clock signal 24, and the falling edge detection circuit 8 of the pulse width determination circuit 31 outputs the pulse-like latch initialization signal 2
3 is output.

【0041】ラッチ初期化信号23が出力されると、ラ
ッチ回路3およびラッチ回路4は出力をクリア(ローレ
ベル)するため、タイマOVF信号26と動作制御信号
27はローレベルになる。その後カウンタ2がカウント
アップしてnビット信号28がハイレベルになる。
When the latch initialization signal 23 is output, the latch circuit 3 and the latch circuit 4 clear the output (low level), so that the timer OVF signal 26 and the operation control signal 27 become low level. Thereafter, the counter 2 counts up and the n-bit signal 28 becomes high level.

【0042】この処理時点では、まだmビット信号29
はローレベルであるので、AND回路5の出力もローレ
ベルとなりラッチ回路4の出力はセットされない。さら
にカウンタ2がカウントを続けてmビット信号29がハ
イレベルになると、ラッチ回路3がセットされタイマO
VF26がハイレベルになる。これによりAND回路5
の一方の入力がハイレベルになる。
At the time of this processing, the m-bit signal 29
Is low level, the output of the AND circuit 5 is also low level, and the output of the latch circuit 4 is not set. Further, when the counter 2 continues counting and the m-bit signal 29 goes high, the latch circuit 3 is set and the timer O
VF26 becomes high level. Thereby, the AND circuit 5
Becomes high level.

【0043】ラッチ回路3がセットされるタイミングで
はnビット信号28がローレベルである。さらにカウン
トアップすると再びnビット信号28がハイレベルにな
り、AND回路5出力がハイレベルとなるためラッチ回
路4がセットされる。
At the timing when the latch circuit 3 is set, the n-bit signal 28 is at a low level. When the count is further increased, the n-bit signal 28 goes high again, and the output of the AND circuit 5 goes high, so that the latch circuit 4 is set.

【0044】これにより動作制御信号27はハイレベル
になりレギュレータ1が動作状態になる。このように、
タイマOVF信号26がハイレベルになった後、nビッ
ト信号28がハイレベルになるまで内部リセット信号2
2がローレベルである場合、レギュレータ1は動作状態
になる。
As a result, the operation control signal 27 becomes high level, and the regulator 1 enters the operating state. in this way,
After the timer OVF signal 26 goes high, the internal reset signal 2 is kept until the n-bit signal 28 goes high.
When 2 is at the low level, the regulator 1 enters the operating state.

【0045】図3はレギュレータ1の停止状態のタイミ
ングチャートである。
FIG. 3 is a timing chart when the regulator 1 is stopped.

【0046】リセット信号21にローレベルが入力して
からカウンタ2がカウントアップし、mビット信号29
がハイレベルになりタイマOVF信号26がセットされ
るまでは、上記のレギュレータ1の動作と同様であり、
その説明を省略する。
After the low level is input to the reset signal 21, the counter 2 counts up, and the m-bit signal 29
Is the same as the operation of the regulator 1 until the timer OVF signal 26 is set.
The description is omitted.

【0047】タイマOVF信号26がセットした後のn
ビット信号28がハイレベルになる前に内部リセット信
号22がインアクティブレベル(ハイレベル)に変化す
る。この場合、動作制御信号27はローレベルの状態の
ままとなり、レギュレータ1は停止状態となる。
N after the timer OVF signal 26 is set
Before the bit signal 28 goes high, the internal reset signal 22 changes to the inactive level (high level). In this case, the operation control signal 27 remains at the low level, and the regulator 1 is stopped.

【0048】このようにリセット信号入力端子T2に入
力するリセット信号21のアクティブレベル幅の長短に
よって、レギュレータ1の動作または停止が制御され
る。ここでリセット信号21のアクティブレベル幅とし
ては、レギュレータ1を動作状態にする場合は、「mビ
ット信号29セット時間+nビット信号28セット時間
<アクティブレベル幅」の条件となる。
As described above, the operation or stop of the regulator 1 is controlled by the length of the active level width of the reset signal 21 input to the reset signal input terminal T2. Here, the active level width of the reset signal 21 satisfies the condition of “m bit signal 29 set time + n bit signal 28 set time <active level width” when the regulator 1 is operated.

【0049】またレギュレータ1を停止状態にする場合
は、「アクティブレベル幅<mビット信号29セット時
間+nビット信号28セット時間」の条件となる。
When the regulator 1 is stopped, the condition of “active level width <m bit signal 29 set time + n bit signal 28 set time” is satisfied.

【0050】具体的にカウンタ2を8ビットで構成し、
nビットを6ビットに割り当て、且つ、クロック信号2
4の入力周波数を1MHzとした場合、レギュレータ1
を動作状態にするリセット信号21のアクティブレベル
幅は数1で得られる。この場合、アクティブレベル幅は
160μs以上となる。 mビット信号29セット時間=1μs×128カウント nビット信号28セット時間=1μs×32カウント
Specifically, the counter 2 is composed of 8 bits,
n bits are allocated to 6 bits, and the clock signal 2
In the case where the input frequency of 4 is 1 MHz, the regulator 1
The active level width of the reset signal 21 for making the operation state is obtained by Equation 1. In this case, the active level width is 160 μs or more. m-bit signal 29 set time = 1 μs × 128 count n-bit signal 28 set time = 1 μs × 32 count

【0051】[0051]

【数1】 (1μs×128)+(1μs×32)=160μs なお、上記実施形態でのカウンタ2は、単にレギュレー
タ1の動作または停止を制御する動作制御信号27を生
成するためのカウンタであるが、このカウンタは従来の
マイクロコンピュータ装置に内蔵している発振安定用カ
ウンタで代用することができる。この発振安定用カウン
タはリセット信号入力中に発振回路の安定時間を確保す
るためのカウンタであり、カウンタのオーバフロー信号
発生により発振安定時間の経過をCPUおよび他の周辺
回路に通知するための周知の回路である。
(1 μs × 128) + (1 μs × 32) = 160 μs The counter 2 in the above embodiment is a counter for simply generating the operation control signal 27 for controlling the operation or stop of the regulator 1. However, this counter can be replaced by an oscillation stabilizing counter built in a conventional microcomputer device. This oscillation stabilization counter is a counter for securing the stabilization time of the oscillation circuit during the input of the reset signal, and is a well-known method for notifying the CPU and other peripheral circuits of the elapse of the oscillation stabilization time by generating an overflow signal of the counter. Circuit.

【0052】このように発振安定用カウンタを、この実
施形態のカウンタ2と兼用した場合、レギュレータ1の
動作または停止指定を行うリセット信号21のアクティ
ブレベル幅は以下のようになる。リセット信号21は必
ず発振安定時間以上アクティブレベルを入力する必要が
ある。レギュレータ1を動作状態にする場合、「mビッ
ト信号29セット時間+nビット信号28セット時間<
アクティブレベル幅」の条件であり、またレギュレータ
1を停止状態にする場合、「mビット信号29セット時
間<アクティブレベル幅<mビット信号29セット時間
+nビット信号28セット時間」の条件である。
When the oscillation stabilizing counter is also used as the counter 2 of this embodiment, the active level width of the reset signal 21 for designating the operation or stop of the regulator 1 is as follows. It is necessary to always input the active level of the reset signal 21 for the oscillation stabilization time or longer. When the regulator 1 is set in the operating state, “the set time of the m-bit signal 29 + the set time of the n-bit signal 28 <
When the regulator 1 is stopped, the condition is “m bit signal 29 set time <active level width <m bit signal 29 set time + n bit signal 28 set time”.

【0053】上記の具体例では、レギュレータ1動作指
定時に、160μs以上のアクティブレベル幅を入力す
る。またレギュレータ1停止指定時は、128μs以上
160μs未満のアクティブレベル幅を入力する。両者
のアクティブレベル幅の差はnビット信号28のビット
位置により変更でき、またアクティブレベル幅の絶対値
を変更する時はカウンタ2のビット数を増加または減少
させることで対応できるため、外部のリセット信号出力
部(図示せず)の規格に合わせて任意の設計が可能にな
る。
In the above example, when the operation of the regulator 1 is designated, an active level width of 160 μs or more is input. When the regulator 1 is stopped, an active level width of 128 μs or more and less than 160 μs is input. The difference between the two active level widths can be changed by the bit position of the n-bit signal 28, and when the absolute value of the active level width is changed, the number of bits of the counter 2 can be increased or decreased. Arbitrary design is possible according to the standard of the signal output unit (not shown).

【0054】[0054]

【発明の効果】以上説明したように、この発明によれ
ば、リセット信号入力端子に入力するリセット信号のア
クティブレベル幅によって、定電圧出力回路の動作また
は停止を切り替えている。これによってレギュレータ動
作または停止時にも出力電圧が低下せずに、低消費電流
化、低ノイズ化が可能になるとともに、CPUが暴走す
る恐れがなくなり、且つ、ユーザが使用可能な接続端子
を減らすことなく定電圧出力回路の動作制御ができるよ
うになる。
As described above, according to the present invention, the operation or stop of the constant voltage output circuit is switched according to the active level width of the reset signal input to the reset signal input terminal. As a result, the current consumption and the noise can be reduced without lowering the output voltage even when the regulator is operating or stopped, and the runaway of the CPU is eliminated, and the number of connection terminals usable by the user is reduced. The operation of the constant voltage output circuit can be controlled without the need.

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

【図1】この発明のマイクロコンピュータ装置の実施形
態の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of a microcomputer device of the present invention.

【図2】実施形態においてレギュレータの動作状態のタ
イミングチャートである。
FIG. 2 is a timing chart of an operation state of a regulator in the embodiment.

【図3】実施形態においてレギュレータの停止状態のタ
イミングチャートである。
FIG. 3 is a timing chart in a stop state of a regulator in the embodiment.

【図4】従来例のマイクロコンピュータ装置の構成を示
すブロック図である。
FIG. 4 is a block diagram showing a configuration of a conventional microcomputer device.

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

1 レギュレータ 2 カウンタ 3,4 ラッチ回路 5 AND回路 7 ノイズ除去回路 8 エッジ検出回路 20 外部電源電圧 21 リセット信号 22 内部リセット信号 26 タイマOVF信号 27 動作制御信号 31 パルス幅判定回路 DESCRIPTION OF SYMBOLS 1 Regulator 2 Counter 3, 4 Latch circuit 5 AND circuit 7 Noise removal circuit 8 Edge detection circuit 20 External power supply voltage 21 Reset signal 22 Internal reset signal 26 Timer OVF signal 27 Operation control signal 31 Pulse width judgment circuit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 電源端子に印加した電圧を降圧して内部
回路に供給し、且つ、制御信号により動作または停止を
切り替える定電圧出力手段と、 入力されるリセット信号がインアクティブ時に停止し、
且つ、アクティブ時にクロック端子からのクロック信号
でカウント動作を開始する計数手段と、 前記計数手段がカウントした所定ビット数信号とリセッ
ト信号のアクティブレベル幅を判定した結果の動作制御
信号を前記定電圧出力手段へ出力して動作または停止を
制御するためのパルス幅判定手段と、 を備えることを特徴とするマイクロコンピュータ装置。
1. A constant voltage output means for stepping down a voltage applied to a power supply terminal and supplying the same to an internal circuit and switching between operation and stop by a control signal, and stopping when an input reset signal is inactive,
A counting means for starting a counting operation with a clock signal from a clock terminal when active; and a constant voltage output of an operation control signal as a result of determining a predetermined bit number signal counted by the counting means and an active level width of a reset signal. And a pulse width determining means for controlling operation or stop by outputting to the means.
【請求項2】 前記請求項1記載のマイクロコンピュー
タ装置において、 計数手段を、リセット信号の入力中に発振回路の安定時
間を確保するために、オーバフロー信号発生により発振
安定時間の経過が、中央演算装置を含む周辺回路に示さ
れる発振安定用カウンタと兼用したことを特徴とするマ
イクロコンピュータ装置。
2. The microcomputer device according to claim 1, wherein the counting means controls the elapse of the oscillation stabilization time by the generation of an overflow signal so as to secure the stabilization time of the oscillation circuit during the input of the reset signal. A microcomputer device which is also used as an oscillation stabilization counter shown in a peripheral circuit including the device.
【請求項3】 前記計数手段でカウントする所定ビット
数信号が、少なくとも2ビットであることを特徴とする
請求項1記載のマイクロコンピュータ装置。
3. The microcomputer device according to claim 1, wherein the predetermined bit number signal counted by said counting means is at least two bits.
【請求項4】 前記入力されるリセット信号のノイズを
除去してパルス幅判定手段へ出力するノイズ除去手段を
さらに備えることを特徴とする請求項1記載のマイクロ
コンピュータ装置。
4. The microcomputer device according to claim 1, further comprising a noise removing unit that removes noise from the input reset signal and outputs the noise to a pulse width determining unit.
【請求項5】 前記パルス幅判定手段が、 リセット信号の立ち下がりを検出したラッチ初期化信号
を出力する立ち下がりエッジ検出回路と、 計数手段からの最上位ビットの立ち上がりによりセット
され、且つ、前記立ち下がりエッジ検出回路からのラッ
チ初期化信号でリセットされてタイマOVF信号を出力
する一方のラッチ回路と、 前記一方のラッチ回路からのタイマOVF信号と計数手
段からの最上位ビット以外の任意ビットとの論理積処理
の立ち上がりでセットされ、且つ、前記立ち下がりエッ
ジ検出回路からのラッチ初期化信号でリセットされた動
作制御信号を定電圧出力手段へ出力する他方のラッチ回
路と、 前記一方のラッチ回路からのタイマOVF信号と前記計
数手段からの最上位ビット以外の任意ビットとの論理積
信号を、前記他方のラッチ回路へ出力するAND回路
と、 を備えることを特徴とする請求項1記載のマイクロコン
ピュータ装置。
5. A falling edge detecting circuit for outputting a latch initialization signal which detects a falling edge of a reset signal, said pulse width determining means being set by rising of a most significant bit from counting means, and One latch circuit which is reset by a latch initialization signal from the falling edge detection circuit and outputs a timer OVF signal; and a timer OVF signal from the one latch circuit and an arbitrary bit other than the most significant bit from the counting means. The other latch circuit for outputting to the constant voltage output means an operation control signal which is set at the rising edge of the AND operation and is reset by the latch initialization signal from the falling edge detection circuit; From the timer OVF signal from the counter and any bit other than the most significant bit from the counting means, Serial other microcomputer device according to claim 1, wherein an AND circuit for outputting to the latch circuit, characterized in that it comprises for.
【請求項6】 前記リセット信号のアクティブレベル幅
を判定した結果の動作制御信号が、定電圧出力手段を動
作状態にするものであり、且つ、このリセット信号のア
クティブレベル幅が、最上位ビットセット時間と最上位
以外の任意ビットセット時間との加算値より小さい値で
あることを特徴とする請求項1記載のマイクロコンピュ
ータ装置。
6. An operation control signal obtained as a result of determining an active level width of the reset signal activates the constant voltage output means, and the active level width of the reset signal is set to the most significant bit set. 2. The microcomputer device according to claim 1, wherein the value is smaller than the sum of the time and an arbitrary bit set time other than the most significant bit.
【請求項7】 前記リセット信号のアクティブレベル幅
を判定した結果の動作制御信号が、定電圧出力手段を動
作状態にするものであり、且つ、このリセット信号のア
クティブレベル幅が、最上位ビットセット時間と最上位
以外の任意ビットセット時間との加算値より大きい値で
あることを特徴とする請求項1記載のマイクロコンピュ
ータ装置。
7. An operation control signal as a result of determining an active level width of the reset signal activates the constant voltage output means, and the active level width of the reset signal is set to the most significant bit set. 2. The microcomputer device according to claim 1, wherein the value is larger than the sum of the time and an arbitrary bit set time other than the highest order.
JP10138805A 1998-05-20 1998-05-20 Microcomputer device Pending JPH11327701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10138805A JPH11327701A (en) 1998-05-20 1998-05-20 Microcomputer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10138805A JPH11327701A (en) 1998-05-20 1998-05-20 Microcomputer device

Publications (1)

Publication Number Publication Date
JPH11327701A true JPH11327701A (en) 1999-11-30

Family

ID=15230659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10138805A Pending JPH11327701A (en) 1998-05-20 1998-05-20 Microcomputer device

Country Status (1)

Country Link
JP (1) JPH11327701A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008090592A (en) * 2006-10-02 2008-04-17 Canon Inc Electronic device
US7516347B2 (en) 2004-12-22 2009-04-07 Samsung Electronics Co., Ltd Electronic device having power-down mode and method of reducing power consumption
US20140313178A1 (en) * 2004-10-18 2014-10-23 Tamiras Per Pte. Ltd., Llc Automatic Activity Detection in a Display Controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140313178A1 (en) * 2004-10-18 2014-10-23 Tamiras Per Pte. Ltd., Llc Automatic Activity Detection in a Display Controller
US10134354B2 (en) * 2004-10-18 2018-11-20 Tamiras Per Pte. Ltd., Llc Automatic activity detection in a display controller
US7516347B2 (en) 2004-12-22 2009-04-07 Samsung Electronics Co., Ltd Electronic device having power-down mode and method of reducing power consumption
JP2008090592A (en) * 2006-10-02 2008-04-17 Canon Inc Electronic device

Similar Documents

Publication Publication Date Title
US5461649A (en) Method and apparatus for maintaining a state of a state machine during unstable clock conditions without clock delay
JPH0720968A (en) Method for reduction of power consumption of computer by changing voltage and frequency dynamically
JP2917731B2 (en) Integrated clock signal generation circuit
EP1479167B1 (en) Frequency divider
EP1688820A2 (en) Clock supplying method and information processing apparatus
JP2004006446A (en) Semiconductor integrated circuit
JP2009053984A (en) Data processor, power supply voltage generation circuit, and power supply voltage generation method therefor
JPH07191779A (en) Napnop circuit for saving of electric power in computer system
JPH1031531A (en) Electronic device
US20100295582A1 (en) Clock circuit for digital circuit
JPH11327701A (en) Microcomputer device
CN113504826B (en) Dynamic voltage frequency adjusting circuit and dynamic voltage frequency adjusting method
US8402288B2 (en) Apparatus and method for controlling voltage and frequency using multiple reference circuits
JP2001117903A (en) Semiconductor integrated circuit device, microprocessor, microcomputer and electronic equipment
JPH10143272A (en) Oscillation circuit
JP2000200110A (en) Voltage drop circuit
JP2009303434A (en) Motor controller
JP3012556B2 (en) Processor power control method
JPH09288527A (en) Power consumption reducing circuit
JPH05259825A (en) Clock generating circuit
EP0602422A1 (en) Dynamic frequency shifting with divide by one clock generators
US20060195714A1 (en) Clock control device, microprocessor, electronic device, clock control method, and clock control program
JP3905022B2 (en) Clock switching device
JPS60251418A (en) Operating frequency switching control circuit of arithmetic unit
JP2003303887A (en) Integrated circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020402