JP2001147746A - Power supply circuit for microcomputer - Google Patents

Power supply circuit for microcomputer

Info

Publication number
JP2001147746A
JP2001147746A JP32867599A JP32867599A JP2001147746A JP 2001147746 A JP2001147746 A JP 2001147746A JP 32867599 A JP32867599 A JP 32867599A JP 32867599 A JP32867599 A JP 32867599A JP 2001147746 A JP2001147746 A JP 2001147746A
Authority
JP
Japan
Prior art keywords
circuit
power supply
supply voltage
vdc
internal peripheral
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
JP32867599A
Other languages
Japanese (ja)
Inventor
Tatsuya Oki
達哉 沖
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP32867599A priority Critical patent/JP2001147746A/en
Publication of JP2001147746A publication Critical patent/JP2001147746A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a power supply circuit for a microcomputer, capable of reducing current consumption of a microcomputer built in a VDC circuit. SOLUTION: The current consumption of a peripheral circuit which is not required to be driven, can be suppressed by suppressing the current consumption due to the leakage of a current from a VDC circuit of a power supply circuit, corresponding to the peripheral circuit which does not require supply of dropped power supply voltage by switching circuits 11, 12, and also the current consumption of the microcomputer can be suppressed further by removing current leakage from the VDC circuit, corresponding to the peripheral circuit not required to be driven.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、マイクロコンピ
ュータの電源回路に関し、特に電源電圧降下回路を内蔵
するマイクロコンピュータの電源回路に関するものであ
る。
The present invention relates to a power supply circuit of a microcomputer, and more particularly to a power supply circuit of a microcomputer having a power supply voltage dropping circuit.

【0002】[0002]

【従来の技術】マイコンのプロセスルールの微細化が進
むにつれてマイコン内部回路に使用するトランジスタの
オン耐圧が従来の5V系では確保できなくなってくるた
め、微細プロセスルールを使用する5V系マイコンの標
準的なシステムとして、電源電圧降下回路(Volta
ge Down Converter:以下、VDC回
路という)やレベルシフト回路を内蔵した外部5V系−
内部3V系システムが普及している。
2. Description of the Related Art With the miniaturization of the process rules of microcomputers, the on-breakdown voltage of transistors used in microcomputer internal circuits cannot be ensured by the conventional 5V system. Power supply voltage drop circuit (Volta
Ge Down Converter: hereinafter referred to as a VDC circuit) and an external 5 V system incorporating a level shift circuit.
Internal 3V systems are widespread.

【0003】これによると、外部から各端子へ印加する
電圧は従来通り5V系だが、前記VDC回路が外部から
印加された5Vの電源電圧を降圧し、前記レベルシフト
回路が入力信号のレベルを変換するため、内部は3V系
の電源電圧による動作となる。
According to this, the voltage applied to each terminal from the outside is a 5 V system as before, but the VDC circuit reduces the power supply voltage of 5 V applied from the outside, and the level shift circuit converts the level of the input signal. Therefore, the internal operation is based on a 3V power supply voltage.

【0004】図9は、このような従来のマイクロコンピ
ュータ(以下、マイコンという)の電源回路に用いられ
ているVDC回路100の構成を示す回路図である。図
において、1は基準電圧の発生と降圧した3V系電源電
圧を生成するための比較を行うVREFオペアンプブロ
ック、2はマイコン外部から入力される5V系電源電圧
(以下、外系VDDという)、3は前記外系VDD2を
降圧し3V系電源電圧を供給するPチャネルトランジス
タ(以下、PchTrという)、4は電圧を降圧させる
ための抵抗群であり、VREFオペアンプブロック1ヘ
フィードバックをかけ細かい電圧制御を実施するための
ものである。5はマイコン内部回路へ供給する3V系電
源電圧(以下、降下電源電圧VDという)が出力される
電源ライン、7はグランドである。
FIG. 9 is a circuit diagram showing a configuration of a VDC circuit 100 used in a power supply circuit of such a conventional microcomputer (hereinafter referred to as a microcomputer). In the figure, reference numeral 1 denotes a VREF operational amplifier block which performs comparison for generating a reference voltage and generating a lowered 3V power supply voltage, 2 denotes a 5V power supply voltage (hereinafter referred to as an external VDD) inputted from outside the microcomputer, and 3 Is a P-channel transistor (hereinafter, referred to as PchTr) for stepping down the external system VDD2 and supplying a 3V system power supply voltage, and 4 is a group of resistors for stepping down the voltage, and applying a feedback to the VREF operational amplifier block 1 to perform fine voltage control. It is intended to be implemented. Reference numeral 5 denotes a power supply line for outputting a 3V power supply voltage (hereinafter referred to as a drop power supply voltage VD) supplied to the microcomputer internal circuit, and 7 denotes a ground.

【0005】次に動作について説明する。VDC回路1
00では、外部から印加する外系VDD2をPchTr
3および抵抗群4により電圧降下させ、降下電源電圧V
Dを電源ライン5に出力する。また、抵抗群4からは降
下電源電圧VDを安定して得るためのフィードバック信
号をVREFオペアンプブロック1へ接続している。
Next, the operation will be described. VDC circuit 1
00, the external system VDD2 applied from the outside is
3 and the resistor group 4 to drop the power supply voltage V
D is output to the power supply line 5. Further, a feedback signal for stably obtaining the drop power supply voltage VD is connected to the VREF operational amplifier block 1 from the resistor group 4.

【0006】このようなVDC回路100を内蔵するこ
とにより、外部電源電圧を使用する主にポートドライバ
などのブロックと、降下電源電圧VDを使用する主にC
PUなどの内部回路のブロックへ別々に電源電圧を供給
する。この場合、VDC回路100からマイコン内部へ
供給される電源電圧は一般的には1種類であるため、ス
タンバイ時などでもマイコン内部の全てのブロックヘ電
源電圧を供給している。
By incorporating such a VDC circuit 100, blocks mainly using an external power supply voltage, such as a port driver, and a block mainly using a reduced power supply voltage VD can be used.
A power supply voltage is separately supplied to a block of an internal circuit such as a PU. In this case, since the power supply voltage supplied from the VDC circuit 100 to the inside of the microcomputer is generally one type, the power supply voltage is supplied to all the blocks inside the microcomputer even during standby or the like.

【0007】[0007]

【発明が解決しようとする課題】従来のマイクロコンピ
ュータの電源回路は以上のように構成されているので、
VDC回路100はスタンバイ時でもマイコン内部の全
ブロックヘ電源電圧を供給しているため、マイコンの静
特性、特にスタンバイ時の消費電流を低減できない課題
があった。
Since the power supply circuit of the conventional microcomputer is configured as described above,
Since the VDC circuit 100 supplies the power supply voltage to all the blocks inside the microcomputer even during standby, there is a problem that static characteristics of the microcomputer, particularly current consumption during standby, cannot be reduced.

【0008】この発明は、上記のような課題を解決する
ためになされたものであり、VDC回路を内蔵したマイ
コンにおける消費電流を低減出来るマイクロコンピュー
タの電源回路を得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has as its object to provide a microcomputer power supply circuit capable of reducing current consumption in a microcomputer having a built-in VDC circuit.

【0009】[0009]

【課題を解決するための手段】この発明に係るマイクロ
コンピュータの電源回路は、各内部周辺回路ごとに設け
られ、外部電源電圧を降圧し、それぞれ対応する内部周
辺回路へ供給する降圧電源電圧を生成するVDC回路
と、該VDC回路のリーク電流を低減する、VDC回路
ごとに設けられたリーク電流低減回路と、前記VDC回
路ごとに設けられ、当該VDC回路から対応する内部周
辺回路への前記降下電源電圧の供給、供給停止を行うス
イッチ回路と、前記VDC回路が生成した前記降下電源
電圧の前記スイッチ回路による供給、供給停止、およ
び、前記降下電源電圧の供給が停止されている内部周辺
回路に対応するVDC回路について、そのリーク電流低
減回路によるリーク電流の低減を制御する制御手段とを
備えるようにしたものである。
A power supply circuit of a microcomputer according to the present invention is provided for each internal peripheral circuit, and steps down an external power supply voltage to generate a step-down power supply voltage to be supplied to a corresponding internal peripheral circuit. VDC circuit, a leakage current reduction circuit provided for each VDC circuit for reducing the leakage current of the VDC circuit, and the power supply from the VDC circuit to a corresponding internal peripheral circuit provided for each VDC circuit. Corresponds to a switch circuit for supplying and stopping a voltage, and an internal peripheral circuit in which the supply and the supply of the lowered power supply voltage generated by the VDC circuit are stopped and the supply of the reduced power supply voltage is stopped. Control means for controlling the reduction of leakage current by the leakage current reduction circuit. A.

【0010】この発明に係るマイクロコンピュータの電
源回路は、VDC回路が生成した降下電源電圧の供給、
供給停止、および、前記降下電源電圧の供給が停止され
ている内部周辺回路に対応するVDC回路のリーク電流
の低減を制御する、前記VDC回路に対応した制御信号
を出力するVDC制御レジスタを備えるようにしたもの
である。
A power supply circuit for a microcomputer according to the present invention supplies a reduced power supply voltage generated by a VDC circuit,
A VDC control register for outputting a control signal corresponding to the VDC circuit for controlling supply stop and reduction of leakage current of a VDC circuit corresponding to an internal peripheral circuit to which supply of the drop power supply voltage is stopped. It was made.

【0011】この発明に係るマイクロコンピュータの電
源回路は、スタンバイ時におけるVDC回路が生成する
降下電源電圧の供給停止、および、前記降下電源電圧の
供給が停止される内部周辺回路に対応するVDC回路の
リーク電流の低減について、VDC制御レジスタから出
力される制御信号に優先する制御信号を出力する優先回
路を備えるようにしたものである。
The power supply circuit of the microcomputer according to the present invention is configured to stop the supply of the reduced power supply voltage generated by the VDC circuit during standby and to supply the VDC circuit corresponding to the internal peripheral circuit where the supply of the reduced power supply voltage is stopped. In order to reduce the leakage current, a priority circuit is provided which outputs a control signal which has priority over a control signal output from the VDC control register.

【0012】この発明に係るマイクロコンピュータの電
源回路は、共通の降下電源電圧が供給される複数の内部
周辺回路における各内部周辺回路の前記降下電源電圧の
供給、供給停止についての設定データと、前記複数の内
部周辺回路に前記降下電源電圧を供給するVDC回路に
対応した、VDC制御レジスタから出力された制御信号
をもとに、前記VDC回路により生成された前記降下電
源電圧の供給、供給停止を、前記複数の内部周辺回路の
各内部周辺回路のそれぞれに対し行う電源制御手段を備
えるようにしたものである。
According to another aspect of the present invention, there is provided a power supply circuit for a microcomputer, comprising: a plurality of internal peripheral circuits to which a common power supply voltage is supplied; Based on a control signal output from a VDC control register corresponding to a VDC circuit that supplies the lowered power supply voltage to a plurality of internal peripheral circuits, supply and stop of the supply of the lowered power supply voltage generated by the VDC circuit are performed. Power supply control means for controlling each of the plurality of internal peripheral circuits.

【0013】この発明に係るマイクロコンピュータの電
源回路は、内部周辺回路である共通の降下電源電圧が供
給される各ポートラッチ回路ブロックに対するスタンバ
イ命令実行中における降下電源電圧の供給、供給停止に
ついてのビットデータが設定されるブロック選択レジス
タと、該ブロック選択レジスタに設定された前記ビット
データと、前記ポートラッチ回路ブロックである内部周
辺回路に降下電源電圧を供給するVDC回路に対応し
た、VDC制御レジスタから出力された制御信号とをも
とにポートラッチ電源制御信号を生成する電源制御信号
生成回路と、前記VDC回路により生成された降下電源
電圧の前記各ポートラッチ回路ブロックへの供給、供給
停止を、前記ポートラッチ電源制御信号をもとに前記各
ポートラッチ回路ブロックのそれぞれに対し行う、前記
各ポートラッチ回路ブロックに対応して設けられたスイ
ッチ回路とを備えるようにしたものである。
A power supply circuit for a microcomputer according to the present invention is provided with a bit for supplying and stopping supply of a reduced power supply voltage during execution of a standby instruction to each port latch circuit block to which a common reduced power supply voltage is supplied as an internal peripheral circuit. A block selection register in which data is set, the bit data set in the block selection register, and a VDC control register corresponding to a VDC circuit that supplies a drop power supply voltage to an internal peripheral circuit that is the port latch circuit block. A power supply control signal generation circuit for generating a port latch power supply control signal based on the output control signal; and supplying and stopping supply of the lowered power supply voltage generated by the VDC circuit to each of the port latch circuit blocks. Each port latch circuit block is controlled based on the port latch power control signal. Performed for each click, the is obtained so as to include a switch circuit provided corresponding to each port latch circuit block.

【0014】この発明に係るマイクロコンピュータの電
源回路は、リセット時に出力されるリセット信号と、内
部周辺回路ごとの前記リセット時における降下電源電圧
の供給、供給停止についての設定データと、前記リセッ
ト時において実行する所定のモードを規定する信号とを
もとに、前記リセット時における所望の内部周辺回路に
対する降下電源電圧の供給、供給停止についての制御を
行うリセット時電源制御回路を備えるようにしたもので
ある。
According to the power supply circuit of the microcomputer according to the present invention, a reset signal output at the time of resetting, setting data for supply and stop of the supply of the reduced power supply voltage at the time of the reset for each of the internal peripheral circuits, A reset power supply control circuit for controlling supply of a reduced power supply voltage to a desired internal peripheral circuit at the time of resetting based on a signal defining a predetermined mode to be executed, and supply stop. is there.

【0015】[0015]

【発明の実施の形態】以下、この発明の実施の一形態に
ついて説明する。 実施の形態1.図1は、電源電圧降下回路(以下、VD
C回路という)を含むこの実施の形態1によるマイクロ
コンピュータ(以下、マイコンという)の電源回路を示
す回路図である。図において、1は基準電圧の発生と、
3V系電源電圧を生成するための比較を行うVREFオ
ペアンプブロック、2はマイコン外部から入力される5
V系電源電圧(以下、外系VDDという)、3は外系V
DD2を降圧して3V系電源電圧(以下、降下電源電圧
VDという)を供給するPチャネルトランジスタ(以
下、PchTrという)、4は電圧を降圧させるための
抵抗群であり、VREFオペアンプブロック1ヘフィー
ドバックをかけ細かい電圧制御を実施するためのもので
ある。5は前記マイコン内部の図示していない各周辺回
路へ供給する降下電源電圧VDが出力される電源ライ
ン、7はグランドである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 shows a power supply voltage drop circuit (hereinafter referred to as VD
FIG. 2 is a circuit diagram showing a power supply circuit of the microcomputer according to the first embodiment (hereinafter, referred to as a microcomputer) including a C circuit. In the figure, 1 is the generation of a reference voltage,
A VREF operational amplifier block for performing a comparison for generating a 3V system power supply voltage.
V system power supply voltage (hereinafter referred to as external system VDD), 3 is external system V
A P-channel transistor (hereinafter, referred to as PchTr) 4 that steps down DD2 and supplies a 3V power supply voltage (hereinafter, referred to as dropped power supply voltage VD), 4 is a group of resistors for stepping down the voltage, and feeds back to the VREF operational amplifier block 1 To perform fine voltage control. Reference numeral 5 denotes a power supply line for outputting a drop power supply voltage VD supplied to each peripheral circuit (not shown) inside the microcomputer, and 7 denotes a ground.

【0016】6a,6b,6cはスイッチ回路であり、
前記マイコン内部の各周辺回路への電源電圧の供給をオ
ン、オフするためのものであり、降下電源電圧VDの前
記マイコン内部の各周辺回路への供給、供給停止が制御
信号OFF0、OFF1・・・OFFnにより制御され
る。
6a, 6b and 6c are switch circuits,
This is for turning on / off the supply of the power supply voltage to each peripheral circuit inside the microcomputer. The supply of the drop power supply voltage VD to each peripheral circuit inside the microcomputer and the stop of the supply are control signals OFF0, OFF1,. Controlled by OFFn.

【0017】8aはスイッチ回路6aにより降下電源電
圧VDの供給、供給停止が制御される前記マイコンの周
辺回路の降下電源電圧ライン、8bはスイッチ回路6b
により降下電源電圧VD1の供給、供給停止が制御され
る前記マイコンの別の周辺回路の降下電源電圧ライン、
8cはスイッチ回路6cにより降下電源電圧VDnの供
給、供給停止が制御されるさらに別の周辺回路の降下電
源電圧ラインである。
Reference numeral 8a denotes a drop power supply voltage line of a peripheral circuit of the microcomputer whose supply and stop of the supply of the drop power supply voltage VD are controlled by the switch circuit 6a, and 8b denotes a switch circuit 6b
The supply and stop of the supply of the reduced power supply voltage VD1 are controlled by the reduced supply voltage line of another peripheral circuit of the microcomputer;
Reference numeral 8c denotes a falling power supply voltage line of still another peripheral circuit whose supply and stop of the supply of the falling power supply voltage VDn are controlled by the switch circuit 6c.

【0018】スイッチ回路6a,6b,6cでは、前記
マイコン内部の各周辺回路への降下電源電圧VD0,V
D1,・・・VDnの供給は、制御信号OFF0,Of
f1・・・Offnをインアクティブにすることで、降
下電源電圧ライン8a,8b,・・・8cをそれぞれ電
源ライン5側へ接続することで行い、また、降下電源電
圧VD0,VD1,・・・VDnの供給停止は、前記制
御信号OFF0,Off1・・・Offnをアクティブ
にすることにより降下電源電圧ライン8a,8b,・・
・8cをグランド7側へ接続することで行う。
In the switch circuits 6a, 6b and 6c, the drop power supply voltages VD0 and VD0 to the peripheral circuits inside the microcomputer are provided.
D1,... VDn are supplied by control signals OFF0, Of.
.. 8c are connected to the side of the power supply line 5, respectively. Further, the falling power supply voltages VD0, VD1,. The supply of VDn is stopped by activating the control signals OFF0, Off1,..., Offn so that the power supply voltage lines 8a, 8b,.
8c is connected to the ground 7 side.

【0019】次に動作について説明する。外部から印加
する外系VDD2をPchTr3、抵抗群4により電圧
降下させ、電源ライン5にその降下電源電圧VDを出力
する。また、抵抗群4からは降下電源電圧VDを安定し
て得るためのフィードバック信号をVREFオペアンプ
ブロック1へ戻している。VREFオペアンプブロック
1から降下電源電圧VDが出力される電源ライン5は、
マイコン内部の各周辺回路へ降下電源電圧VD0,VD
1,・・・VDnを供給するための降下電源電圧ライン
8a,8b,・・・8cへ分岐し、そのそれぞれがスイ
ッチ回路6a,6b,・・・6cにより降下電源電圧ラ
イン8a,8b,・・・8cと接続または開放される。
Next, the operation will be described. The voltage of the external system VDD2 applied from the outside is reduced by the PchTr 3 and the resistor group 4, and the lowered power supply voltage VD is output to the power supply line 5. Further, a feedback signal for stably obtaining the drop power supply voltage VD is returned from the resistor group 4 to the VREF operational amplifier block 1. The power supply line 5 from which the drop power supply voltage VD is output from the VREF operational amplifier block 1
Power supply voltage VD0, VD is supplied to each peripheral circuit inside the microcomputer.
.. 8c for supplying VDn, each of which is switched by switch circuits 6a, 6b,. ..Connected or disconnected with 8c.

【0020】このため、スタンバイ時に、例えば降下電
源電圧VD0が電源として供給される内部回路を動作さ
せ、それ以外の内部回路は電源電圧を供給せず非動作に
して、スタンバイ時の消費電流を抑制する場合には、ス
タンバイ時に制御信号OFF0はインアクティブのまま
で、制御信号Off1,・・・Offnをアクティブに
することで降下電源電圧VDl〜VDnをグランドレベ
ルに切り替え、不要な内部回路に降下電源電圧そのもの
を供給しないように出来る。
For this reason, at the time of standby, for example, the internal circuit to which the power supply voltage VD0 is supplied as a power supply is operated, and other internal circuits are not operated without supplying the power supply voltage, thereby suppressing current consumption at the time of standby. In this case, the control signal OFF0 remains inactive during standby, and the control signals Off1,... Offn are activated to switch the drop power supply voltages VD1 to VDn to the ground level. It is possible not to supply the voltage itself.

【0021】以上のように、この実施の形態1によれ
ば、スタンバイ時に電源供給が不要な内部回路につい
て、制御信号Off0,Off1,・・・Offnによ
りスイッチ回路6a,6b・・・6cを制御すること
で、電源供給が不要な内部回路への電源を遮断すること
が出来るため、マイコンの静特性、特にスタンバイ時の
消費電流を低減出来るマイクロコンピュータの電源回路
が得られる効果がある。
As described above, according to the first embodiment, switch circuits 6a, 6b,... 6c are controlled by control signals Off0, Off1,. By doing so, it is possible to cut off the power supply to the internal circuit that does not require power supply, and thus it is possible to obtain a power supply circuit of a microcomputer that can reduce static characteristics of the microcomputer, particularly, current consumption during standby.

【0022】実施の形態2.図2は、VDC回路を含む
この実施の形態2によるマイクロコンピュータの電源回
路の構成を示す回路図である。図2において図1と同一
または相当の部分については同一の符号を付し説明を省
略する。図において、9aはマイコン内部の周辺回路へ
降下電源電圧VD0を供給する第1電源回路、9bは同
様にマイコン内部の別の周辺回路へ降下電源電圧VD1
を供給する第2電源回路、9cは同様にマイコン内部の
さらに別の周辺回路へ降下電源電圧VDnを供給する第
n電源回路である。また、6は第1電源回路9aのVD
C回路で生成した降下電源電圧VDを降下電源電圧ライ
ン8aへ供給するかしないかを制御信号OFF0により
制御するためのスイッチ回路である。なお、他の電源回
路(第2電源回路、・・・第n電源回路)にも同様な構
成のスイッチ回路が設けられている。また、Off0,
Off1,・・・Offnは、前記実施の形態1と同様
にスタンバイ時に電源供給が不要な内部回路について各
スイッチ回路6を制御する制御信号とする。
Embodiment 2 FIG. FIG. 2 is a circuit diagram showing a configuration of a power supply circuit of a microcomputer according to the second embodiment including a VDC circuit. 2, the same or corresponding parts as those in FIG. 1 are denoted by the same reference numerals, and description thereof will be omitted. In the figure, reference numeral 9a denotes a first power supply circuit for supplying a reduced power supply voltage VD0 to peripheral circuits inside the microcomputer, and 9b similarly designates a reduced power supply voltage VD1 to another peripheral circuit inside the microcomputer.
The second power supply circuit 9c is an n-th power supply circuit that similarly supplies the reduced power supply voltage VDn to another peripheral circuit inside the microcomputer. 6 is VD of the first power supply circuit 9a.
This is a switch circuit for controlling whether or not the falling power supply voltage VD generated by the C circuit is supplied to the falling power supply voltage line 8a by a control signal OFF0. Note that other power supply circuits (second power supply circuit,..., Nth power supply circuit) are provided with switch circuits having the same configuration. Also, Off0,
Offn are control signals for controlling each switch circuit 6 for an internal circuit that does not require power supply during standby, as in the first embodiment.

【0023】このように、この実施の形態2では、マイ
コン内部の各周辺回路ごとに、それぞれ降下電源電圧の
供給および供給停止を制御可能にする前記スイッチ回路
とVDC回路からなる電源回路が個別に設けられてい
る。
As described above, in the second embodiment, the power supply circuit composed of the switch circuit and the VDC circuit that can control the supply and stop of the supply of the reduced power supply voltage is individually provided for each peripheral circuit inside the microcomputer. Is provided.

【0024】次に動作について説明する。この実施の形
態2のマイクロコンピュータの電源回路では、マイコン
内部の各周辺回路に対応して設けられたVDC回路とス
イッチ回路6からなる電源回路9a,9b,9cによ
り、それぞれの周辺回路に対して降下電源電圧VD0,
VD1,・・・VDnの供給、供給停止を個別に制御す
る。マイコン内部の各周辺回路に対する降下電源電圧V
D0,VD1,・・・VDnの供給停止は、前記実施の
形態1と同様に制御信号OFF0〜OFFnをアクティ
ブにすることでそれそれ独立に実施出来る。
Next, the operation will be described. In the power supply circuit of the microcomputer according to the second embodiment, the power supply circuits 9a, 9b, and 9c each including a VDC circuit provided for each peripheral circuit inside the microcomputer and the switch circuit 6 provide the peripheral circuit with respect to each peripheral circuit. The drop power supply voltage VD0,
VD1,... VDn supply and supply stop are individually controlled. Power supply voltage drop for each peripheral circuit inside microcomputer
Stopping the supply of D0, VD1,..., VDn can be performed independently by activating the control signals OFF0 to OFFn as in the first embodiment.

【0025】このように、各周辺回路ごとにVDC回路
を設ける構成であるため、各電源回路9a,9b,・・
・9cはそれぞれ対応した周辺回路のみを負荷として受
け持つことになり、前記実施の形態1のマイクロコンピ
ュータの電源回路に比べて、各電源回路のコントロール
負荷が軽減され、降下電源電圧を制御する際の精度の向
上が期待出来る。
As described above, since the VDC circuit is provided for each peripheral circuit, each of the power supply circuits 9a, 9b,.
9c is responsible for only the corresponding peripheral circuit as a load, so that the control load of each power supply circuit is reduced as compared with the power supply circuit of the microcomputer of the first embodiment, and the control load for controlling the falling power supply voltage is reduced. An improvement in accuracy can be expected.

【0026】以上のように、この実施の形態2によれ
ば、各周辺回路ごとに電源回路を設け、その各電源回路
にそれぞれ対応する周辺回路への降下電源電圧VD0,
VD1,・・・VDnの供給、供給停止を、前記各電源
回路のスイッチ回路6により電源回路ごとに制御可能に
したので、電源供給が不要な内部回路への電源を遮断す
ることが出来るため、マイコンの静特性、特にスタンバ
イ時の消費電流を低減出来るとともに、各VDC回路の
コントロール負荷を軽減でき、降下電源電圧を制御する
際の精度を向上出来るマイクロコンピュータの電源回路
が得られる効果がある。
As described above, according to the second embodiment, a power supply circuit is provided for each peripheral circuit, and the drop power supply voltage VD0, VD0 to the peripheral circuit corresponding to each power supply circuit is provided.
Since VD1,... VDn supply and supply stop can be controlled for each power supply circuit by the switch circuit 6 of each power supply circuit, power to an internal circuit that does not require power supply can be cut off. In addition to reducing the static characteristics of the microcomputer, particularly the current consumption during standby, the control load of each VDC circuit can be reduced, and the power supply circuit of the microcomputer that can improve the accuracy in controlling the power supply voltage drop can be obtained.

【0027】実施の形態3.図3は、この実施の形態3
によるマイクロコンピュータの電源回路の構成を示す回
路図である。図3において図2と同一または相当の部分
については同一の符号を付し説明を省略する。図3にお
いて、10aはマイコン内部の周辺回路へ降下電源電圧
VD0を供給する第1電源回路、10bは同様にマイコ
ン内部の別の周辺回路へ降下電源電圧VD1を供給する
第2電源回路、10cは同様にマイコン内部のさらに別
の周辺回路へ降下電源電圧VDnを供給する第n電源回
路である。
Embodiment 3 FIG. 3 shows the third embodiment.
1 is a circuit diagram showing a configuration of a power supply circuit of a microcomputer according to the present invention. 3, the same or corresponding parts as those in FIG. 2 are denoted by the same reference numerals, and description thereof will be omitted. In FIG. 3, reference numeral 10a denotes a first power supply circuit for supplying a reduced power supply voltage VD0 to peripheral circuits inside the microcomputer, and 10b similarly denotes a second power supply circuit for supplying a reduced power supply voltage VD1 to another peripheral circuit inside the microcomputer. Similarly, it is an n-th power supply circuit for supplying the reduced power supply voltage VDn to another peripheral circuit inside the microcomputer.

【0028】11は第1電源回路10aのVDC回路に
おける抵抗群4とVREFオペアンプブロック1との間
のフィードバック回路に配置されたスイッチ回路(リー
ク電流低減回路)であり、通常は抵抗群4で分圧された
フィードバック信号がVREFオペアンプブロック1へ
与えられるように、抵抗群4のフィードバック信号を抽
出する箇所とVREFオペアンプブロック1とを接続し
ており、制御信号OFF0がアクティブになると、前記
フィードバック回路を遮断して、VREFオペアンプブ
ロック1の前記フィードバック信号が与えられる入力側
を外系VDD2へ接続するものである。
Reference numeral 11 denotes a switch circuit (leakage current reducing circuit) arranged in a feedback circuit between the resistor group 4 and the VREF operational amplifier block 1 in the VDC circuit of the first power supply circuit 10a. A portion for extracting the feedback signal of the resistor group 4 is connected to the VREF operational amplifier block 1 so that the compressed feedback signal is supplied to the VREF operational amplifier block 1. When the control signal OFF0 becomes active, the feedback circuit is activated. The input side of the VREF operational amplifier block 1 to which the feedback signal is supplied is connected to the external system VDD2.

【0029】12は第1電源回路10aのVREFオペ
アンプブロック1の出力端子とPchTr3のゲートと
の間に配置されたスイッチ回路(リーク電流低減回路)
であり、通常はPchTr3のゲートへVREFオペア
ンプブロック1の出力が与えられるように、PchTr
3のゲートとVREFオペアンプブロック1の出力端子
とを接続しており、制御信号OFF0がアクティブにな
ると、PchTr3のゲートとVREFオペアンプブロ
ック1の出力端子との接続を遮断して、前記PchTr
3のゲートを外系VDD2へ接続し、PchTr3と抵
抗群4を介して外系VDD2からグランド7へのリーク
電流の発生を無くすものである。
Reference numeral 12 denotes a switch circuit (leakage current reducing circuit) disposed between the output terminal of the VREF operational amplifier block 1 of the first power supply circuit 10a and the gate of the PchTr3.
Normally, the output of the VREF operational amplifier block 1 is supplied to the gate of the PchTr 3 so that the PchTr
3 and the output terminal of the VREF operational amplifier block 1, and when the control signal OFF0 becomes active, the connection between the gate of the PchTr3 and the output terminal of the VREF operational amplifier block 1 is cut off,
The third gate is connected to the external system VDD2 to eliminate the occurrence of a leak current from the external system VDD2 to the ground 7 via the PchTr3 and the resistor group 4.

【0030】なお、第1電源回路10a以外のVDC回
路にも同様な構成でスイッチ回路11、12が設けられ
ている。
The VDC circuits other than the first power supply circuit 10a are provided with switch circuits 11 and 12 having the same configuration.

【0031】次に動作について説明する。スタンバイ時
に例えば降下電源電圧VD0のみを対応するマイコンの
周辺回路のみへ供給するときは、制御信号OFF0をイ
ンアクティブにし、他の制御信号OFF1・・・OFF
nをアクティブにして、第1電源回路10aのVDC回
路のスイッチ回路12によりVREFオペアンプブロッ
ク1の出力をPchTr3のゲートへ供給するととも
に、抵抗群4とVREFオペアンプブロック1との間の
フィードバック回路によりフィードバック信号をVRE
Fオペアンプブロック1へ供給する。
Next, the operation will be described. When, for example, only the drop power supply voltage VD0 is supplied to the peripheral circuit of the corresponding microcomputer during standby, the control signal OFF0 is made inactive, and the other control signals OFF1,.
n is activated, the output of the VREF operational amplifier block 1 is supplied to the gate of the PchTr 3 by the switch circuit 12 of the VDC circuit of the first power supply circuit 10a, and the feedback circuit between the resistor group 4 and the VREF operational amplifier block 1 provides feedback. Signal to VRE
It is supplied to the F operational amplifier block 1.

【0032】また、このとき、他の制御信号OFF1・
・・OFFnはアクティブであり、第2電源回路10b
・・・第n電源回路10cでは、各VDC回路のスイッ
チ回路12によりPchTr3のゲートを外系VDD2
へ接続するとともに、スイッチ回路11によりVREF
オペアンプブロック1のフィードバック信号の入力側を
外系VDD2へ接続した構成にする。
At this time, another control signal OFF1.
.. OFFn is active and the second power supply circuit 10b
... In the nth power supply circuit 10c, the gate of the PchTr3 is connected to the external system VDD2 by the switch circuit 12 of each VDC circuit.
And VREF by the switch circuit 11.
The input side of the feedback signal of the operational amplifier block 1 is connected to the external system VDD2.

【0033】この結果、第1電源回路10aを除く他の
電源回路では、PchTr3はオフし、またVREFオ
ペアンプブロック1のPchTr3のゲートへの出力側
はオープンになった状態となり、さらにVREFオペア
ンプブロック1のフィードバック信号の入力側は外系V
DD2へプルアップされた状態になり、降下電源電圧V
D1・・・VDnを供給する電源回路では、PchTr
3および抵抗群4を介して外系VDD2からグランド7
へリークする電流や、VREFオペアンプブロック1で
リークする電流が抑制されて、前記実施の形態2のマイ
クロコンピュータの電源回路に比べ消費電流をさらに軽
減することが出来る。
As a result, in the other power supply circuits except the first power supply circuit 10a, the PchTr3 is turned off, the output side of the VREF operational amplifier block 1 to the gate of the PchTr3 is opened, and the VREF operational amplifier block 1 is opened. The input side of the feedback signal of
The state is pulled up to DD2, and the falling power supply voltage V
In a power supply circuit that supplies D1.
3 and the external system VDD2 to the ground 7 through the resistor group 4.
Since the current leaking to the microcomputer and the current leaking in the VREF operational amplifier block 1 are suppressed, the current consumption can be further reduced as compared with the power supply circuit of the microcomputer of the second embodiment.

【0034】以上のように、この実施の形態3によれ
ば、降下電源電圧の供給が不要な周辺回路に対応した電
源回路のVDC回路でのリークによる消費電流をスイッ
チ回路11,12によりさらに抑制するように構成した
ので、消費電流をより抑制出来るマイクロコンピュータ
の電源回路が得られる効果がある。
As described above, according to the third embodiment, the switching circuits 11 and 12 further suppress the current consumption due to the leakage in the VDC circuit of the power supply circuit corresponding to the peripheral circuit that does not need to supply the drop power supply voltage. Therefore, there is an effect that a power supply circuit of a microcomputer which can further reduce current consumption can be obtained.

【0035】実施の形態4.図4は、前記実施の形態
1、前記実施の形態2、前記実施の形態3で用いた制御
信号OFF0,OFF1,・・・OFFnを生成するた
めのVDC制御レジスタ周辺の回路構成を示すブロック
図である。図において、29は制御手段である中央処理
装置(以下、CPUという)、20はアドレスデコー
ダ、21は各周辺回路対応のビットが格納されるVDC
制御レジスタであり、このVDC制御レジスタ21に設
定されるビットは読み出し/書き込み可能なビットで、
リセット解除後は全て‘0’(インアクティブ)とな
る。
Embodiment 4 FIG. FIG. 4 is a block diagram showing a circuit configuration around a VDC control register for generating the control signals OFF0, OFF1,... OFFn used in the first, second, and third embodiments. It is. In the figure, reference numeral 29 denotes a central processing unit (hereinafter referred to as a CPU) as control means, 20 an address decoder, 21 a VDC in which bits corresponding to each peripheral circuit are stored.
The VDC control register 21 is a readable / writable bit.
After reset release, all become "0" (inactive).

【0036】22はマイコン内アドレスバス、23はマ
イコン内データバス、24はCPU29からのSTP命
令信号が出力される信号線である。25は制御信号OF
Fnが出力される信号線、26は制御信号OFFn−1
が出力される信号線、28は制御信号OFF0が出力さ
れる信号線である。27はVDC制御レジスタ21に設
定されたビット出力と前記STP命令信号をもとに、制
御信号OFFn−1・・・制御信号OFF0をそれぞれ
出力する2入力ORゲート(優先回路)である。なお、
この実施の形態4では、制御信号OFFnについてはV
DC制御レジスタ21に設定されたビットがそのまま制
御信号として出力される。
Reference numeral 22 denotes an address bus in the microcomputer, reference numeral 23 denotes a data bus in the microcomputer, and reference numeral 24 denotes a signal line for outputting an STP command signal from the CPU 29. 25 is a control signal OF
A signal line from which Fn is output, and 26 is a control signal OFFn-1
Is a signal line from which the control signal OFF0 is output. Reference numeral 27 denotes a two-input OR gate (priority circuit) that outputs a control signal OFFn-1,..., A control signal OFF0 based on the bit output set in the VDC control register 21 and the STP command signal. In addition,
In the fourth embodiment, the control signal OFFn is V
The bit set in the DC control register 21 is output as it is as a control signal.

【0037】次に動作について説明する。このVDC制
御レジスタ21周辺の回路構成により、前記実施の形態
1から実施の形態3で説明した、各周辺回路への降下電
源電圧VD0〜VDnの供給、供給停止を制御する制御
信号OFF0〜OFFnを生成する。例えばリセット解
除後に使用しないことが既知な周辺回路に降下電源電圧
を供給しないように、その周辺回路に対応する電源回路
へ与える制御信号OFFnをアクティブにするが、この
場合、以下のような動作となる。
Next, the operation will be described. According to the circuit configuration around the VDC control register 21, the control signals OFF0 to OFFn for controlling the supply and the stop of the supply of the drop power supply voltages VD0 to VDn to the respective peripheral circuits described in the first to third embodiments are provided. Generate. For example, a control signal OFFn to be supplied to a power supply circuit corresponding to a peripheral circuit which is known not to be used after reset release is activated so as not to supply the lowered power supply voltage. In this case, the following operation is performed. Become.

【0038】すなわち、CPU29がVDC制御レジス
タ21のアドレスをアドレスバス22に出力し、アドレ
スデコーダ20は前記アドレスバス22へ出力された前
記アドレスをデコードし、VDC制御レジスタ21へ書
込信号を出力する。また、CPU29は、リセット解除
後に使用しないことが既知である周辺回路に対応するビ
ットnのみ‘1’であるデータをデータバス23に出力
する。この結果、アドレスデコーダ10からの前記書込
信号に同期してレジスタ21のビットnの位置に‘1’
が、それ以外のビット位置には‘0’が書き込まれる。
That is, the CPU 29 outputs the address of the VDC control register 21 to the address bus 22, and the address decoder 20 decodes the address output to the address bus 22 and outputs a write signal to the VDC control register 21. . Further, the CPU 29 outputs data to the data bus 23 in which only the bit n corresponding to the peripheral circuit that is known not to be used after the reset is released is “1”. As a result, "1" is set at the position of bit n of the register 21 in synchronization with the write signal from the address decoder 10.
However, '0' is written in other bit positions.

【0039】この結果、対応する制御信号OFFnのレ
ベルは‘1’(アクティブ)になり、使用しないことが
既知の周辺回路に対応する前記実施の形態1ではスイッ
チ回路6c、また前記実施の形態2では電源回路9cの
スイッチ回路6、また前記実施の形態3では電源回路1
0cのスイッチ回路6,11,12が、前記実施の形態
1から前記実施の形態3で説明したように切り換えら
れ、前記周辺回路への降下電源電圧VDnの供給が停止
される。
As a result, the level of the corresponding control signal OFFn becomes "1" (active), and the switch circuit 6c in the first embodiment corresponding to the peripheral circuit which is known not to be used, and the second embodiment corresponds to the second embodiment. In the third embodiment, the switch circuit 6 of the power supply circuit 9c is used.
The switch circuits 6, 11, and 12 of 0c are switched as described in the first embodiment to the third embodiment, and the supply of the drop power supply voltage VDn to the peripheral circuit is stopped.

【0040】また、周辺回路の動作を停止するスタンバ
イ命令、例えばSTP命令等が実行されたときに、復帰
に必要な周辺回路(この場合、制御信号OFFnが与え
られる電源回路が受け持つ周辺回路)を除き全て降下電
源電圧の供給を停止することも可能である。これは、図
4に示す2入力OR回路27により実現され、この場
合、STP命令を実行するとCPU29からはSTP命
令信号が信号線24へ出力される。そして、降下電源電
圧の供給を行う制御信号(‘0’でノンアクティブ)が
一方の入力端子へ与えられている2入力ORゲート27
の他方の入力端子に対し、前記STP命令信号‘1’を
入力し、制御信号OFFn−1・・・制御信号OFF0
を‘1’すなわちアクティブにして、制御信号OFFn
−1・・・制御信号OFF0が与えられる電源回路が受
け持つ各周辺回路に対し、降下電源電圧の供給を強制的
に停止する。この場合、復帰に必要な周辺回路ヘ降下電
源電圧を供給する制御信号OFFnが出力される信号線
25には2入力ORゲート27は設けられておらず、制
御信号OFFnはインアクティブのままである。
Further, when a standby instruction for stopping the operation of the peripheral circuit, for example, an STP instruction or the like is executed, a peripheral circuit necessary for recovery (in this case, a peripheral circuit which is provided by the power supply circuit to which the control signal OFFn is supplied) is provided. Except for all, the supply of the drop power supply voltage can be stopped. This is realized by the two-input OR circuit 27 shown in FIG. 4. In this case, when the STP instruction is executed, the STP instruction signal is output from the CPU 29 to the signal line 24. Then, a two-input OR gate 27 to which a control signal (“0” and non-active) for supplying a drop power supply voltage is supplied to one input terminal.
, The control signal OFFn-1... The control signal OFF0.
To “1”, that is, active, and the control signal OFFn
-1... Forcibly stop the supply of the falling power supply voltage to each peripheral circuit that is provided by the power supply circuit to which the control signal OFF0 is supplied. In this case, the two-input OR gate 27 is not provided on the signal line 25 from which the control signal OFFn for supplying the lowered power supply voltage to the peripheral circuit necessary for the return is provided, and the control signal OFFn remains inactive. .

【0041】以上のように、この実施の形態4によれ
ば、制御信号OFF0,OFF1,・・・OFFnの生
成に、このVDC制御レジスタ周辺の回路構成を用いる
ことで、リセット解除後に使用しないことが既知な周辺
回路での消費電流値、前記周辺回路に対応したVDC回
路におけるリーク電流値を抑制でき、スタンバイ命令実
行中のマイコンの静特性としての消費電流値を削減出来
るマイクロコンピュータの電源回路が得られる効果があ
る。
As described above, according to the fourth embodiment, the control signals OFF0, OFF1,..., OFFn are generated by using the circuit configuration around the VDC control register, so that they are not used after reset release. A power supply circuit of a microcomputer that can suppress a current consumption value in a known peripheral circuit, a leakage current value in a VDC circuit corresponding to the peripheral circuit, and reduce a current consumption value as a static characteristic of a microcomputer during execution of a standby instruction. There is an effect that can be obtained.

【0042】実施の形態5.図5は、この実施の形態5
のマイクロコンピュータの電源回路の一部であるポート
ラッチ回路周辺の構成を示すブロック図である。図にお
いて、38は隣接するポートラッチ回路ブロック39へ
の降下電源電圧の供給、供給停止をポートラッチ電源制
御信号をもとに行うスイッチ回路、39は前記ポートラ
ッチ回路ブロック(内部周辺回路)、40は例えば前記
実施の形態1の図1、前記実施の形態2の図2、または
前記実施の形態3の図3に示す降下電源電圧ライン8c
からポートラッチ回路ブロック39用に分けられた降下
電源電圧が供給される電源ラインである。41は電源ラ
イン40から各ポートラッチ回路ブロック39への降下
電源電圧の供給を制御する前記ポートラッチ電源制御信
号が出力される信号線である。このポートラッチ電源制
御信号は各スイッチ回路38へ出力される。
Embodiment 5 FIG. FIG. 5 shows the fifth embodiment.
FIG. 2 is a block diagram showing a configuration around a port latch circuit which is a part of a power supply circuit of the microcomputer of FIG. In the figure, reference numeral 38 denotes a switch circuit for supplying and stopping the supply of a drop power supply voltage to an adjacent port latch circuit block 39 based on a port latch power supply control signal; 39, the port latch circuit block (internal peripheral circuit); Is the power supply voltage drop line 8c shown in FIG. 1 of the first embodiment, FIG. 2 of the second embodiment, or FIG. 3 of the third embodiment.
Is a power supply line to which a reduced power supply voltage for the port latch circuit block 39 is supplied. Reference numeral 41 denotes a signal line from which the port latch power control signal for controlling the supply of the drop power supply voltage from the power supply line 40 to each port latch circuit block 39 is output. This port latch power control signal is output to each switch circuit 38.

【0043】図6は、前記ポートラッチ電源制御信号*
OFF0〜*OFFnを、例えば前記実施の形態4で説
明した図4に示す制御信号OFFnと、ブロック選択レ
ジスタ32に設定されたビットデータとをもとに生成す
るポートラッチ電源制御信号生成回路であり、図におい
て31はアドレスデコーダ、32はブロック選択レジス
タ(電源制御手段)、33,34,35は2入力AND
ゲートである(電源制御手段,電源制御信号生成回
路)。
FIG. 6 shows the port latch power control signal *
A port latch power supply control signal generation circuit that generates OFF0 to * OFFn based on, for example, the control signal OFFn illustrated in FIG. 4 described in the fourth embodiment and the bit data set in the block selection register 32. In the figure, 31 is an address decoder, 32 is a block selection register (power control means), and 33, 34 and 35 are two-input ANDs.
It is a gate (power control means, power control signal generation circuit).

【0044】次に動作について説明する。マイコン内部
で各ポートラッチ回路ブロック39を1つのブロックと
してまとめて配置することで、ポートラッチ回路ブロッ
ク39へ降下電源電圧を供給する電源ライン40は図5
のようにレイアウトすることが出来る。そこで各ポート
ラッチ回路ブロック39の間にそれぞれスイッチ回路3
8を配置し、そのスイッチ回路38のスイッチ切替信号
としてポートラッチ電源制御信号*OFF0〜*OFF
nを用いる。
Next, the operation will be described. By arranging the respective port latch circuit blocks 39 as one block inside the microcomputer, the power supply line 40 for supplying the lowered power supply voltage to the port latch circuit block 39 is configured as shown in FIG.
You can lay out like this. Therefore, the switch circuit 3 is provided between each port latch circuit block 39.
8 as port switch power control signals * OFF0 to * OFF as switch switching signals of the switch circuit 38.
n is used.

【0045】そして、ポートラッチ電源制御信号*OF
F0〜*OFFnは前記実施の形態4とは異なり、電源
ライン40から各ポートラッチ回路ブロック39への降
下電源電圧の供給について、ポートラッチ電源制御信号
*OFF0〜*OFFnを各ビットとして組み合せたコ
ード(この場合、各スイッチ回路38には前記コードを
デコードするためのデコーダが必要である)、またはビ
ット単位の各ポートラッチ電源制御信号*OFF0〜*
OFFnにより制御出来る構成としておく。
Then, the port latch power supply control signal * OF
Unlike the fourth embodiment, F0 to * OFFn are codes obtained by combining the port latch power control signals * OFF0 to * OFFn as bits for the supply of the drop power supply voltage from the power supply line 40 to each port latch circuit block 39. (In this case, each switch circuit 38 requires a decoder for decoding the code.) Or, each port latch power control signal * OFF0 *
It is configured to be controllable by OFFn.

【0046】なお、以下の説明では後者の場合を例に説
明しており、ポートラッチ電源制御信号*OFF0〜*
OFFnが‘1’のときに、そのポートラッチ電源制御
信号が入力されるスイッチ回路38は、電源ライン40
から対応するポートラッチ回路ブロック39への降下電
源電圧の供給を遮断する。
In the following description, the latter case is described as an example, and the port latch power control signals * OFF0 to * OFF
When OFFn is “1”, the switch circuit 38 to which the port latch power control signal is input is connected to the power supply line 40.
Block the supply of the drop power supply voltage to the corresponding port latch circuit block 39.

【0047】図4に示すCPU29は、図6に示すブロ
ック選択レジスタ32のアドレスをアドレスバス22に
出力し、アドレスデコーダ31は前記アドレスバス22
へ出力された前記アドレスをデコードし、ブロック選択
レジスタ32へ書込信号を出力する。また、CPU29
は、スタンバイ命令実行中に降下電源電圧を供給しない
ポートラッチ回路ブロック39に対応するビットのみ
‘1’であるデータをデータバス23に出力する。この
結果、アドレスデコーダ31からの前記書込信号に同期
して、ブロック選択レジスタ32の前記スタンバイ命令
実行中に降下電源電圧を供給しないポートラッチ回路ブ
ロック39に対応するビット位置に‘1’が、それ以外
のビット位置には‘0’が書き込まれる。
The CPU 29 shown in FIG. 4 outputs the address of the block selection register 32 shown in FIG. 6 to the address bus 22, and the address decoder 31
The address output to the block selector 32 is decoded, and a write signal is output to the block selection register 32. Also, the CPU 29
Outputs data to the data bus 23 in which only the bit corresponding to the port latch circuit block 39 that does not supply the falling power supply voltage during execution of the standby instruction is “1”. As a result, in synchronization with the write signal from the address decoder 31, "1" is set at a bit position of the block selection register 32 corresponding to the port latch circuit block 39 that does not supply the falling power supply voltage during execution of the standby instruction, '0' is written in other bit positions.

【0048】このブロック選択レジスタ32へ書き込ま
れたビットデータは2入力ANDゲート33,34,・
・・35でそれぞれ制御信号OFFnと論理積演算され
る。
The bit data written into the block selection register 32 is a two-input AND gate 33, 34,.
... AND operation with the control signal OFFn is performed at 35.

【0049】この場合の制御信号OFFnは、前記実施
の形態2の図2に示す電源回路9c、または前記実施の
形態3の図3に示す電源回路10cへ与えられる信号で
あり、図4に示すVDC制御レジスタ21の対応すビッ
ト位置には‘1’が設定される。この実施の形態5では
前記電源回路9cまたは前記電源回路10cが各ポート
ラッチ回路ブロック39へ供給される降下電源電圧を受
け持つ構成であると仮定する。
The control signal OFFn in this case is a signal applied to the power supply circuit 9c of the second embodiment shown in FIG. 2 or the power supply circuit 10c of the third embodiment shown in FIG. 3, and is shown in FIG. '1' is set in the corresponding bit position of the VDC control register 21. In the fifth embodiment, it is assumed that the power supply circuit 9c or the power supply circuit 10c is configured to handle the drop power supply voltage supplied to each port latch circuit block 39.

【0050】この結果、スタンバイ命令実行中に降下電
源電圧を供給しないポートラッチ回路ブロック39に対
応するポートラッチ電源制御信号が‘1’、降下電源電
圧を供給するポートラッチ回路ブロック39に対応する
ポートラッチ電源制御信号が‘0’となり、これらポー
トラッチ電源制御信号*OFF0〜*OFFnが図5に
示す信号線41へ出力される。
As a result, the port latch power supply control signal corresponding to the port latch circuit block 39 which does not supply the falling power supply voltage during execution of the standby instruction is “1”, and the port corresponding to the port latch circuit block 39 supplying the falling power supply voltage is “1”. The latch power control signal becomes "0", and these port latch power control signals * OFF0 to * OFFn are output to the signal line 41 shown in FIG.

【0051】この結果、‘1’であるポートラッチ電源
制御信号が入力されたスイッチ回路38は、対応するポ
ートラッチ回路ブロック39に対し降下電源電圧の供給
を遮断し、また‘0’であるポートラッチ電源制御信号
が入力されたスイッチ回路38は、電源ライン40から
降下電源電圧を対応するポートラッチ回路ブロック39
へ供給する。
As a result, the switch circuit 38 to which the port latch power control signal of “1” has been inputted cuts off the supply of the drop power supply voltage to the corresponding port latch circuit block 39 and the port circuit of “0” The switch circuit 38 to which the latch power supply control signal has been input is connected to the port latch circuit block 39 corresponding to the drop power supply voltage from the power supply line 40.
Supply to

【0052】従って、ブロック選択レジスタ32へ設定
するビットデータをスタンバイ命令実行ごとに設定変え
することで、スタンバイ命令実行ごとに所望のポートラ
ッチ回路ブロック39にのみ電源を供給することが可能
となる。
Accordingly, by changing the bit data set in the block selection register 32 every time the standby instruction is executed, it becomes possible to supply power only to the desired port latch circuit block 39 every time the standby instruction is executed.

【0053】また、通常動作時において初期リセットに
よりブロック選択レジスタ32はゼロリセットされるた
め、降下電源電圧を各ポートラッチ回路ブロック39へ
常時供給出来る。
In the normal operation, the block selection register 32 is reset to zero by the initial reset, so that the lowered power supply voltage can be constantly supplied to each port latch circuit block 39.

【0054】以上のように、この実施の形態5によれ
ば、所望のポートラッチ回路ブロックにのみ降下電源電
圧を供給出来るため、例えばマイコンの不良解析手法の
一種である発光解析(スタンバイ命令を実行し、そのと
き流れる電流を光エネルギーに変換してリーク箇所を特
定する手法)を実施しなくても、ポートラッチ回路ブロ
ック39に隣り合うスイッチ回路38をスタンバイ命令
のたびに切り替えることで、静電破壊によるリーク箇所
調査程度なら、どのポートラッチ回路ブロック39でリ
ークが発生しているかをLSIテスターによるテストに
て簡単に判別出来る効果がある。
As described above, according to the fifth embodiment, since the falling power supply voltage can be supplied only to the desired port latch circuit block, for example, the light emission analysis (executing the standby command, which is a kind of microcomputer failure analysis method) is performed. Then, the switch circuit 38 adjacent to the port latch circuit block 39 is switched every time a standby command is performed without performing the method of converting the current flowing at that time into light energy to specify light energy and specifying a leak point. In the case of investigating a leak location due to destruction, it is possible to easily determine in which port latch circuit block 39 a leak is occurring by a test using an LSI tester.

【0055】実施の形態6.図7は、リセット時に電源
供給の必要な例えばROMとポートラッチ回路ブロック
などの周辺回路へ降下電源電圧を供給し、リセット時に
電源供給の必要のない他の周辺回路に対しては降下電源
電圧の供給を停止する電源制御信号生成回路を示す回路
図である。図において、41はLowレベルのリセット
信号が入力されるリセット端子(リセット時電源制御回
路)、42は任意の外部端子(リセット時電源制御回
路)、43,62,64,66はANDゲート(リセッ
ト時電源制御回路)、44は一方の入力に前記ANDゲ
ート62の出力が供給され、また他方の入力には図4に
示す制御信号OFFnが供給される2入力ORゲートで
ある。45は一方の入力に前記ANDゲート64の出力
が供給され、また他方の入力には図4に示す制御信号O
FF1が供給される2入力ORゲートである。
Embodiment 6 FIG. FIG. 7 shows a case where a reduced power supply voltage is supplied to peripheral circuits such as a ROM and a port latch circuit block which require power supply at the time of reset, and the reduced power supply voltage is supplied to other peripheral circuits which do not need power supply at the time of reset. FIG. 3 is a circuit diagram illustrating a power supply control signal generation circuit that stops supply. In the figure, reference numeral 41 denotes a reset terminal (reset power supply control circuit) to which a low-level reset signal is input, 42 denotes an arbitrary external terminal (reset power supply control circuit), and 43, 62, 64, and 66 denote AND gates (reset). The power supply control circuit 44 is a two-input OR gate to which one input is supplied with the output of the AND gate 62 and the other input is supplied with the control signal OFFn shown in FIG. Reference numeral 45 denotes one input to which the output of the AND gate 64 is supplied, and the other input to the control signal O shown in FIG.
FF1 is a two-input OR gate supplied.

【0056】46は一方の入力に前記ANDゲート66
の出力が供給され、また他方の入力には図4に示す制御
信号OFF0が供給される2入力ORゲートである。こ
れら2入力ORゲート44,・・・45,46からは電
源制御信号**OFFn〜**OFF0が出力される。
61は制御信号OFFnにより制御される図3の電源回
路10aが受け持つ周辺回路に対し、リセット時に降下
電源電圧を供給するかしないかを設定する外部端子(リ
セット時電源制御回路)であり、その周辺回路に対しリ
セット時に降下電源電圧を供給する場合はグランド側、
供給しない場合にはVcc側に接続する。同様に63は
制御信号OFF1により制御される図3の電源回路10
bが受け持つ周辺回路に対し、リセット時に降下電源電
圧を供給するかしないかを設定する外部端子(リセット
時電源制御回路)であり、この場合の周辺回路はROM
とする。同様に65は制御信号OFF0により制御され
る図3の電源回路10aが受け持つ周辺回路に対し、リ
セット時に降下電源電圧を供給するかしないかを設定す
る外部端子(リセット時電源制御回路)であり、この場
合の周辺回路はポートラッチ回路とする。
46 is an AND gate 66 connected to one input.
And the other input is a two-input OR gate to which the control signal OFF0 shown in FIG. 4 is supplied. 45, 46 output power control signals ** OFFn to ** OFF0.
Reference numeral 61 denotes an external terminal (reset power supply control circuit) for setting whether or not to supply a drop power supply voltage at the time of reset to a peripheral circuit which is controlled by the control signal OFFn and is served by the power supply circuit 10a of FIG. When supplying the falling power supply voltage to the circuit at reset, ground side,
If not supplied, connect to Vcc side. Similarly, reference numeral 63 denotes the power supply circuit 10 of FIG.
b is an external terminal (power supply control circuit at reset) for setting whether or not to supply a lowered power supply voltage at the time of reset to the peripheral circuit assigned to b.
And Similarly, reference numeral 65 denotes an external terminal (reset power control circuit) for setting whether or not to supply a drop power supply voltage at the time of reset to a peripheral circuit which is controlled by the control signal OFF0 and is served by the power supply circuit 10a of FIG. The peripheral circuit in this case is a port latch circuit.

【0057】図8は、前記ROMと前記ポートラッチ回
路などの周辺の電源供給についての回路構成を示す回路
図である。図において、47は前記電源制御信号**O
FF0〜**OFFnが出力される信号線である。48
はROM(内部周辺回路)49への降下電源電圧の供
給、供給停止を制御するスイッチ回路であり、前記電源
制御信号がLowレベルでROM49への降下電源電圧
の供給を行い、前記電源制御信号がHighレベルでは
ROM49への降下電源電圧の供給を停止する。49は
ROM、50はポートラッチ回路(内部周辺回路)51
への降下電源電圧の供給、供給停止を制御するスイッチ
回路であり、前記スイッチ回路48と同様に動作する。
52はROMへ供給される降下電源電圧が出力される電
源ラインであり、この実施の形態6では図3に示す電源
回路10bの降下電源電圧ライン8bから分岐してい
る。53はポートラッチ回路51へ供給される降下電源
電圧が出力される電源ラインであり、同様に図3に示す
電源回路10aの降下電源電圧ライン8aから分岐して
いる。
FIG. 8 is a circuit diagram showing a circuit configuration for power supply around the ROM and the port latch circuit. In the figure, 47 is the power control signal ** O
FF0 to ** OFFn are output signal lines. 48
Is a switch circuit for controlling the supply and stop of the supply of the reduced power supply voltage to the ROM (internal peripheral circuit) 49. The power supply control signal supplies the lowered power supply voltage to the ROM 49 when the power supply control signal is at the Low level. At the High level, the supply of the drop power supply voltage to the ROM 49 is stopped. 49 is a ROM, 50 is a port latch circuit (internal peripheral circuit) 51
This is a switch circuit that controls the supply and stop of the supply of the falling power supply voltage to the power supply, and operates in the same manner as the switch circuit 48.
Reference numeral 52 denotes a power supply line for outputting a lowered power supply voltage to be supplied to the ROM. In the sixth embodiment, the power supply line branches off from the lowered power supply voltage line 8b of the power supply circuit 10b shown in FIG. Reference numeral 53 denotes a power supply line for outputting a lowered power supply voltage supplied to the port latch circuit 51, and similarly branches off from the lowered power supply voltage line 8a of the power supply circuit 10a shown in FIG.

【0058】次に動作について説明する。この実施の形
態6では、マイコンのリセット期間中に実施する各種動
作、例えばROMへの書き込み/読み出しアクセスや解
析用の特殊モードなどの実行時にも、降下電源電圧の供
給が不要な周辺回路に対し降下電源電圧の供給を停止す
る。このため、あらかじめ任意の外部端子42の入力
と、リセット端子41もしくは特殊モードのイネーブル
信号との間でANDゲート43によりアンドをとってお
く。また、リセット時に降下電源電圧を供給する周辺回
路、例えばROM49に対しては、対応する外部端子6
3をグランド側へ接続し、また同様にリセット時に降下
電源電圧を供給するポートラッチ回路51に対しては、
対応する外部端子65をグランド側へ接続する。また、
その他のリセット時に降下電源電圧を供給しない周辺回
路に対しては、対応する外部端子をVcc側へ接続す
る。
Next, the operation will be described. In the sixth embodiment, even when various operations performed during the reset period of the microcomputer, such as execution of write / read access to the ROM and a special mode for analysis, are performed, peripheral circuits that do not need to supply the drop power supply voltage are provided. Stop supplying the falling power supply voltage. For this reason, an AND operation is performed between the input of an arbitrary external terminal 42 and the reset terminal 41 or the enable signal of the special mode by the AND gate 43 in advance. For a peripheral circuit for supplying a drop power supply voltage at the time of reset, for example, the ROM 49, a corresponding external terminal 6 is connected.
3 is connected to the ground side, and similarly, for a port latch circuit 51 that supplies a falling power supply voltage at the time of reset,
The corresponding external terminal 65 is connected to the ground side. Also,
For other peripheral circuits that do not supply the falling power supply voltage at reset, the corresponding external terminals are connected to the Vcc side.

【0059】そして、リセット時に前記外部端子42に
任意のレベル(この場合、Highレベル)を印加し、
また外部端子41にはLowレベルのリセット信号を入
力することで、ANDゲート43の出力はHighレベ
ルになる。このとき外部端子63,65はグランド側へ
接続されていることからANDゲート64,66の出力
はLowレベルであり、リセット時、電源制御信号**
OFF0,**OFF1としてLowレベルが出力さ
れ、ポートラッチ回路51にはスイッチ回路50により
電源ライン52から降下電源電圧VD0、またROM4
9にはスイッチ回路48により電源ライン53から降下
電源電圧VD1が供給される。また、他の周辺回路に対
しては、電源制御信号**OFF0,**OFF1を除
く電源制御信号がHighレベルとなるため降下電源電
圧は供給されない。
At the time of reset, an arbitrary level (in this case, High level) is applied to the external terminal 42,
Also, when a low-level reset signal is input to the external terminal 41, the output of the AND gate 43 goes high. At this time, since the external terminals 63 and 65 are connected to the ground side, the outputs of the AND gates 64 and 66 are at the low level.
A low level is output as OFF0, ** OFF1, and a drop power supply voltage VD0 from the power supply line 52 and a ROM 4
9 is supplied with a drop power supply voltage VD1 from a power supply line 53 by a switch circuit 48. Further, the power supply control signals except for the power supply control signals ** OFF0 and ** OFF1 become High level to other peripheral circuits, so that the reduced power supply voltage is not supplied.

【0060】このように、各周辺回路に対応した外部端
子をグランド側またはVcc側へ接続することで、2入
力ORゲート44,45,46を通じて、リセット時に
降下電源電圧の供給が不要な周辺回路の各スイッチ回路
へ出力する電源制御信号を‘1’に、また、リセット時
に降下電源電圧の供給が必要な周辺回路の各スイッチ回
路へ出力する電源制御信号を‘0’にして、例えば前記
ROM49と前記ポートラッチ回路51だけにリセット
時、降下電源電圧を供給する。
As described above, by connecting the external terminals corresponding to the respective peripheral circuits to the ground side or the Vcc side, the peripheral circuits which do not need to supply the reduced power supply voltage at the time of reset through the two-input OR gates 44, 45, 46 The power supply control signal to be output to each switch circuit is set to "1", and the power supply control signal to be output to each switch circuit of a peripheral circuit which needs to supply the drop power supply voltage at reset is set to "0". And the port power supply voltage is supplied to only the port latch circuit 51 at the time of reset.

【0061】以上のように、この実施の形態6によれ
ば、リセット時に動作させる必要のない周辺回路に対す
る降下電源電圧の供給を停止出来るため、リセット時の
マイコンの静特性としての消費電流値を削減出来るマイ
クロコンピュータの電源回路が得られる効果がある。
As described above, according to the sixth embodiment, the supply of the reduced power supply voltage to the peripheral circuits which do not need to be operated at the time of resetting can be stopped. There is an effect that a power supply circuit of a microcomputer that can be reduced can be obtained.

【0062】[0062]

【発明の効果】以上のように、この発明によれば、VD
C回路のリーク電流を低減する、各VDC回路ごとに設
けられたリーク電流低減回路と、前記VDC回路ごとに
設けられ、当該VDC回路から対応する内部周辺回路へ
の前記降下電源電圧の供給、供給停止を行うスイッチ回
路と、対応する各内部周辺回路への前記各VDC回路が
生成した降下電源電圧の前記スイッチ回路による供給、
供給停止、および、前記降下電源電圧の供給が停止され
ている内部周辺回路に対応するVDC回路について、そ
のリーク電流低減回路によるリーク電流の低減を制御す
る制御手段とを備えるように構成したので、VDC回路
から供給される動作させる必要のない内部周辺回路の消
費電流を前記制御手段により無くすことが出来るだけで
なく、前記動作させる必要のない内部周辺回路に対応す
るVDC回路におけるリーク電流も低減出来るため、V
DC回路内蔵タイプのマイクロコンピュータにおける消
費電流をより有効に低減出来る効果がある。
As described above, according to the present invention, VD
A leak current reducing circuit provided for each VDC circuit for reducing a leak current of the C circuit, and supply and supply of the lowered power supply voltage from the VDC circuit to a corresponding internal peripheral circuit provided for each VDC circuit A switch circuit for stopping, and supply of the lowered power supply voltage generated by each of the VDC circuits to the corresponding internal peripheral circuit by the switch circuit;
Since the supply is stopped and the VDC circuit corresponding to the internal peripheral circuit to which the supply of the drop power supply voltage is stopped is provided with control means for controlling the leakage current reduction by the leakage current reduction circuit. The control unit can eliminate the current consumption of the internal peripheral circuit that does not need to be operated supplied from the VDC circuit, and can also reduce the leakage current in the VDC circuit corresponding to the internal peripheral circuit that does not need to operate. Therefore V
There is an effect that current consumption in a microcomputer with a built-in DC circuit can be more effectively reduced.

【0063】この発明によれば、VDC回路が生成した
降下電源電圧の供給、供給停止、および、前記降下電源
電圧の供給が停止されている内部周辺回路に対応するV
DC回路のリーク電流の低減を制御する、前記VDC回
路に対応した制御信号を出力するVDC制御レジスタを
備えるように構成したので、前記VDC制御レジスタ
で、動作させる必要のない内部周辺回路に対応するVD
C回路を指定することで、そのVDC回路から供給され
る動作させる必要のない内部周辺回路の消費電流を無く
すことが出来るだけでなく、そのVDC回路におけるリ
ーク電流も低減出来るため、VDC回路内蔵タイプのマ
イクロコンピュータにおける消費電流をより有効に低減
出来る効果がある。
According to the present invention, the supply of the lowered power supply voltage generated by the VDC circuit is stopped, the supply of the supply voltage is stopped, and the V CC corresponding to the internal peripheral circuit to which the supply of the lowered power supply voltage is stopped is provided.
The VDC control register for controlling the reduction of the leakage current of the DC circuit and outputting a control signal corresponding to the VDC circuit is provided. Therefore, the VDC control register corresponds to an internal peripheral circuit that does not need to be operated. VD
Designating the C circuit not only eliminates the current consumption of internal peripheral circuits that do not need to be operated and that is supplied from the VDC circuit, but also reduces the leakage current in the VDC circuit. This has the effect of reducing the current consumption of the microcomputer more effectively.

【0064】この発明によれば、スタンバイ時における
VDC回路が生成する降下電源電圧の供給停止、およ
び、前記降下電源電圧の供給が停止される内部周辺回路
に対応するVDC回路のリーク電流の低減について、V
DC制御レジスタから出力される制御信号に優先する制
御信号を出力する優先回路を備えるように構成したの
で、前記スタンバイ時において前記VDC回路から供給
される動作させる必要のない内部周辺回路の消費電流
を、前記VDC制御レジスタによる指定内容にかかわら
ず、前記優先回路により無くすことが出来るだけでな
く、前記動作させる必要のない内部周辺回路に対応する
VDC回路におけるリーク電流も低減出来るため、VD
C回路内蔵タイプのマイクロコンピュータにおける消費
電流をより有効に低減出来る効果がある。
According to the present invention, the supply of the reduced power supply voltage generated by the VDC circuit during standby and the reduction of the leakage current of the VDC circuit corresponding to the internal peripheral circuit to which the supply of the reduced power supply voltage is stopped are described. , V
Since a priority circuit that outputs a control signal that is higher than a control signal that is output from the DC control register is provided, the current consumption of the internal peripheral circuits that need not be operated and supplied from the VDC circuit in the standby mode can be reduced. Irrespective of the contents specified by the VDC control register, not only the priority circuit can eliminate the leakage current, but also the leakage current in the VDC circuit corresponding to the internal peripheral circuit that does not need to operate can be reduced.
There is an effect that current consumption in a microcomputer with a built-in C circuit can be reduced more effectively.

【0065】この発明によれば、共通の降下電源電圧が
供給される各内部周辺回路についての前記降下電源電圧
の供給、供給停止についての設定データと、前記複数の
内部周辺回路に前記降下電源電圧を供給するVDC回路
に対応した、VDC制御レジスタから出力された制御信
号をもとに、前記VDC回路により生成された前記降下
電源電圧の供給、供給停止を、前記複数の内部周辺回路
の各内部周辺回路のそれぞれに対し行う電源制御手段を
備えるように構成したので、前記設定データにより動作
させる必要のない内部周辺回路を変えて自由にその消費
電流を無くすことが出来るだけでなく、前記複数の内部
周辺回路以外の動作させる必要のない内部周辺回路に対
応するVDC回路のリーク電流も低減出来るため、VD
C回路内蔵タイプのマイクロコンピュータにおける消費
電流をより有効に低減出来る効果がある。
According to the present invention, the setting data for the supply and stop of the supply of the drop power supply voltage to each of the internal peripheral circuits to which the common drop power supply voltage is supplied, and the drop power supply voltage to the plurality of internal peripheral circuits Supply and stop of the drop power supply voltage generated by the VDC circuit based on a control signal output from a VDC control register corresponding to the VDC circuit that supplies the internal power supply to each of the plurality of internal peripheral circuits. Since the power supply control means is provided for each of the peripheral circuits, not only the internal peripheral circuits that do not need to be operated according to the setting data can be changed to freely eliminate the current consumption, but also the plurality of peripheral circuits can be used. Since the leakage current of a VDC circuit corresponding to an internal peripheral circuit that does not need to be operated other than the internal peripheral circuit can be reduced, VD
There is an effect that current consumption in a microcomputer with a built-in C circuit can be reduced more effectively.

【0066】この発明によれば、内部周辺回路である共
通の降下電源電圧が供給される各ポートラッチ回路ブロ
ックに対するスタンバイ命令実行中における前記降下電
源電圧の供給、供給停止についてブロック選択レジスタ
に設定されたビットデータと、前記ポートラッチ回路ブ
ロックである内部周辺回路に降下電源電圧を供給するV
DC回路に対応した、VDC制御レジスタから出力され
た制御信号とをもとにポートラッチ電源制御信号を生成
する電源制御信号生成回路と、前記VDC回路により生
成された降下電源電圧の前記各ポートラッチ回路ブロッ
クへの供給、供給停止を、前記ポートラッチ電源制御信
号をもとに前記各ポートラッチ回路ブロックのそれぞれ
に対し行う、前記各ポートラッチ回路ブロックに対応し
て設けられたスイッチ回路を備えるように構成したの
で、前記ブロック選択レジスタに設定されたビットデー
タにより動作させる必要のないポートラッチ回路ブロッ
クを変えて自由にその消費電流を無くすことが出来るだ
けでなく、前記各ポートラッチ回路ブロック以外の動作
させる必要のない内部周辺回路に対応するVDC回路の
リーク電流も低減出来るため、VDC回路内蔵タイプの
マイクロコンピュータにおける消費電流をより有効に低
減出来る効果がある。
According to the present invention, the supply of the lowered power supply voltage and the stop of the supply during the execution of the standby instruction to each of the port latch circuit blocks to which the common lowered power supply voltage as the internal peripheral circuit is supplied are set in the block selection register. Bit data and a V that supplies a drop power supply voltage to the internal peripheral circuit that is the port latch circuit block.
A power supply control signal generation circuit for generating a port latch power supply control signal based on a control signal output from a VDC control register corresponding to a DC circuit; and each of the port latches of a drop power supply voltage generated by the VDC circuit There is provided a switch circuit provided corresponding to each of the port latch circuit blocks, wherein the switch circuit is provided for each of the port latch circuit blocks, based on the port latch power supply control signal, for supplying and stopping supply to the circuit blocks. Therefore, not only the port latch circuit block which does not need to be operated according to the bit data set in the block selection register can be changed to eliminate the current consumption freely, but also to reduce the current consumption. The leak current of the VDC circuit corresponding to the internal peripheral circuits that do not need to operate is also reduced. Because there is more effectively reduced can effect the consumption current in the VDC circuit built-in microcomputer.

【0067】この発明によれば、リセット時に出力され
るリセット信号と、内部周辺回路ごとの前記リセット時
における降下電源電圧の供給、供給停止についての設定
データと、前記リセット時において実行する所定のモー
ドを規定する信号とをもとに、前記リセット時における
所望の内部周辺回路に対する降下電源電圧の供給、供給
停止についての制御を行うリセット時電源制御回路を備
えるように構成したので、リセット時に動作させる必要
のない内部周辺回路の消費電流を前記リセット時電源制
御回路により無くすことが出来、また、前記動作させる
必要のない内部周辺回路に対応するVDC回路における
リーク電流も低減出来るため、VDC回路内蔵タイプの
マイクロコンピュータにおける消費電流をより有効に低
減出来る効果がある。
According to the present invention, the reset signal output at the time of resetting, the setting data regarding the supply and stop of the supply of the reduced power supply voltage at the time of resetting for each internal peripheral circuit, and the predetermined mode executed at the time of resetting The power supply circuit includes a reset power supply control circuit that controls supply of a reduced power supply voltage to a desired internal peripheral circuit at the time of resetting and supply stop based on a signal defining the above. The unnecessary power consumption of the internal peripheral circuits can be eliminated by the reset power supply control circuit, and the leak current in the VDC circuit corresponding to the internal peripheral circuits that do not need to be operated can be reduced. The current consumption of the microcomputer can be reduced more effectively. .

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

【図1】 この発明の実施の形態1によるマイクロコン
ピュータの電源回路を示す回路図である。
FIG. 1 is a circuit diagram showing a power supply circuit of a microcomputer according to a first embodiment of the present invention.

【図2】 この発明の実施の形態2によるマイクロコン
ピュータの電源回路の構成を示す回路図である。
FIG. 2 is a circuit diagram showing a configuration of a power supply circuit of a microcomputer according to a second embodiment of the present invention.

【図3】 この発明の実施の形態3によるマイクロコン
ピュータの電源回路の構成を示す回路図である。
FIG. 3 is a circuit diagram showing a configuration of a power supply circuit of a microcomputer according to a third embodiment of the present invention.

【図4】 この発明の実施の形態4によるマイクロコン
ピュータの電源回路のVDC制御レジスタ周辺の回路構
成を示すブロック図である。
FIG. 4 is a block diagram showing a circuit configuration around a VDC control register of a power supply circuit of a microcomputer according to a fourth embodiment of the present invention.

【図5】 この発明の実施の形態5のマイクロコンピュ
ータの電源回路の一部であるポートラッチ回路周辺の構
成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration around a port latch circuit which is a part of a power supply circuit of a microcomputer according to a fifth embodiment of the present invention;

【図6】 この発明の実施の形態5のマイクロコンピュ
ータの電源回路のポートラッチ電源制御信号生成回路を
示すブロック図である。
FIG. 6 is a block diagram showing a port latch power supply control signal generation circuit of a power supply circuit of a microcomputer according to a fifth embodiment of the present invention.

【図7】 この発明の実施の形態6のマイクロコンピュ
ータの電源回路の電源制御信号生成回路を示すブロック
図である。
FIG. 7 is a block diagram showing a power supply control signal generation circuit of a power supply circuit of a microcomputer according to Embodiment 6 of the present invention.

【図8】 この発明の実施の形態6のマイクロコンピュ
ータの電源回路のROMとポートラッチ回路などの周辺
の電源供給についての回路構成を示す回路図である。
FIG. 8 is a circuit diagram showing a circuit configuration for supplying power to peripherals such as a ROM and a port latch circuit of a power supply circuit of a microcomputer according to a sixth embodiment of the present invention.

【図9】 従来のマイクロコンピュータの電源回路に用
いられているVDC回路の構成を示す回路図である。
FIG. 9 is a circuit diagram showing a configuration of a VDC circuit used in a power supply circuit of a conventional microcomputer.

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

6,38 スイッチ回路、11,12 スイッチ回路
(リーク電流低減回路)、21 VDC制御レジスタ、
27 2入力ORゲート(優先回路)、29 CPU
(制御手段)、32 ブロック選択レジスタ(電源制御
手段)、33,34,35 2入力ANDゲート(電源
制御手段,電源制御信号生成回路)、39ポートラッチ
回路ブロック(内部周辺回路)、41 リセット端子
(リセット時電源制御回路)、42,61,63,65
外部端子(リセット時電源制御回路)、43,62,
64,66 ANDゲート(リセット時電源制御回
路),49ROM(内部周辺回路)、51 ポートラッ
チ回路(内部周辺回路)。
6,38 switch circuit, 11,12 switch circuit (leakage current reduction circuit), 21 VDC control register,
27 2-input OR gate (priority circuit), 29 CPU
(Control means), 32 block selection register (power control means), 33, 34, 352 2-input AND gate (power control means, power control signal generation circuit), 39-port latch circuit block (internal peripheral circuit), 41 reset terminal (Power supply control circuit at reset), 42, 61, 63, 65
External terminals (reset power control circuit), 43, 62,
64, 66 AND gate (reset power control circuit), 49 ROM (internal peripheral circuit), 51 port latch circuit (internal peripheral circuit).

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 外部電源電圧を降圧し内部周辺回路へ供
給する降圧電源電圧を生成するマイクロコンピュータの
電源回路において、 各内部周辺回路ごとに設けられ、前記外部電源電圧を降
圧し、それぞれ対応する内部周辺回路へ供給する降圧電
源電圧を生成するVDC回路と、 該VDC回路のリーク電流を低減する、VDC回路ごと
に設けられたリーク電流低減回路と、 前記VDC回路ごとに設けられ、当該VDC回路から対
応する内部周辺回路への前記降下電源電圧の供給、供給
停止を行うスイッチ回路と、 前記VDC回路が生成した前記降下電源電圧の前記スイ
ッチ回路による供給、供給停止、および、前記降下電源
電圧の供給が停止されている内部周辺回路に対応するV
DC回路について、そのリーク電流低減回路によるリー
ク電流の低減を制御する制御手段と、を備えていること
を特徴とするマイクロコンピュータの電源回路。
A power supply circuit of a microcomputer for generating a reduced power supply voltage to be supplied to an internal peripheral circuit by reducing an external power supply voltage, wherein the power supply circuit is provided for each internal peripheral circuit and reduces the external power supply voltage. A VDC circuit for generating a step-down power supply voltage to be supplied to an internal peripheral circuit; a leak current reducing circuit provided for each VDC circuit for reducing a leak current of the VDC circuit; and a VDC circuit provided for each VDC circuit. And a switch circuit for supplying and stopping the supply of the reduced power supply voltage to the corresponding internal peripheral circuit, and supplying the supply of the reduced power supply voltage generated by the VDC circuit by the switch circuit, stopping the supply, and controlling the supply of the reduced power supply voltage. V corresponding to the internal peripheral circuit whose supply is stopped
A power supply circuit for a microcomputer, comprising: a DC circuit; and control means for controlling a reduction in leakage current by the leakage current reduction circuit.
【請求項2】 制御手段は、 VDC回路が生成した降下電源電圧の供給、供給停止、
および、前記降下電源電圧の供給が停止されている内部
周辺回路に対応するVDC回路のリーク電流の低減を制
御する、前記VDC回路に対応した制御信号を出力する
VDC制御レジスタを備えていることを特徴とする請求
項1記載のマイクロコンピュータの電源回路。
2. The control means includes the steps of: supplying a supply voltage drop generated by the VDC circuit;
And a VDC control register that outputs a control signal corresponding to the VDC circuit and controls a reduction in leakage current of a VDC circuit corresponding to an internal peripheral circuit to which the supply of the power supply voltage is stopped. A power supply circuit for a microcomputer according to claim 1, wherein:
【請求項3】 制御手段は、 スタンバイ時におけるVDC回路が生成する降下電源電
圧の供給停止、および、前記降下電源電圧の供給が停止
される内部周辺回路に対応するVDC回路のリーク電流
の低減について、VDC制御レジスタから出力される制
御信号に優先する制御信号を出力する優先回路を備えて
いることを特徴とする請求項2記載のマイクロコンピュ
ータの電源回路。
3. The control means is configured to stop supply of the reduced power supply voltage generated by the VDC circuit during standby and to reduce leakage current of the VDC circuit corresponding to an internal peripheral circuit in which the supply of the reduced power supply voltage is stopped. 3. A power supply circuit for a microcomputer according to claim 2, further comprising a priority circuit for outputting a control signal having priority over a control signal output from the VDC control register.
【請求項4】 共通の降下電源電圧が供給される複数の
内部周辺回路の各内部周辺回路における前記降下電源電
圧の供給、供給停止についての設定データと、前記複数
の内部周辺回路に前記降下電源電圧を供給するVDC回
路に対応した、VDC制御レジスタから出力された制御
信号とをもとに、前記VDC回路により生成された前記
降下電源電圧の供給、供給停止を、前記複数の内部周辺
回路の各内部周辺回路のそれぞれに対し行う電源制御手
段を備えていることを特徴とする請求項3記載のマイク
ロコンピュータの電源回路。
4. A setting data on supply and stop of the supply of the lowered power supply voltage in each of a plurality of internal peripheral circuits to which a common power supply voltage is supplied, and a supply of the lowered power supply to the plurality of internal peripheral circuits. Based on a control signal output from a VDC control register corresponding to a VDC circuit that supplies a voltage, supply and stop of the supply of the lowered power supply voltage generated by the VDC circuit are performed by the plurality of internal peripheral circuits. 4. The power supply circuit for a microcomputer according to claim 3, further comprising power supply control means for controlling each of the internal peripheral circuits.
【請求項5】 電源制御手段は、 内部周辺回路である共通の降下電源電圧が供給される各
ポートラッチ回路ブロックに対するスタンバイ命令実行
中における降下電源電圧の供給、供給停止についてのビ
ットデータが設定されるブロック選択レジスタと、 該ブロック選択レジスタに設定された前記ビットデータ
と、前記ポートラッチ回路ブロックである内部周辺回路
に降下電源電圧を供給するVDC回路に対応した、VD
C制御レジスタから出力された制御信号とをもとにポー
トラッチ電源制御信号を生成する電源制御信号生成回路
と、 前記VDC回路により生成された降下電源電圧の前記各
ポートラッチ回路ブロックへの供給、供給停止を、前記
ポートラッチ電源制御信号をもとに前記各ポートラッチ
回路ブロックのそれぞれに対し行う、前記各ポートラッ
チ回路ブロックに対応して設けられたスイッチ回路と、 を備えていることを特徴とする請求項4記載のマイクロ
コンピュータの電源回路。
5. The power supply control means sets bit data for supplying and stopping supply of a reduced power supply voltage during execution of a standby instruction to each port latch circuit block to which a common reduced power supply voltage as an internal peripheral circuit is supplied. A block select register, and the bit data set in the block select register and a VDC circuit corresponding to a VDC circuit for supplying a drop power supply voltage to an internal peripheral circuit which is the port latch circuit block.
A power supply control signal generation circuit that generates a port latch power supply control signal based on a control signal output from a C control register; and a supply of the lowered power supply voltage generated by the VDC circuit to each of the port latch circuit blocks. A switch circuit provided corresponding to each of the port latch circuit blocks, for stopping supply of the respective port latch circuit blocks based on the port latch power supply control signal. The power supply circuit of a microcomputer according to claim 4, wherein
【請求項6】 リセット時に出力されるリセット信号
と、内部周辺回路ごとの前記リセット時における降下電
源電圧の供給、供給停止についての設定データと、前記
リセット時において実行する所定のモードを規定する信
号とをもとに、前記リセット時における所望の内部周辺
回路に対する降下電源電圧の供給、供給停止についての
制御を行うリセット時電源制御回路を備えていることを
特徴とする請求項3記載のマイクロコンピュータの電源
回路。
6. A reset signal output at the time of resetting, setting data about supply and stop of supply of a reduced power supply voltage at the time of resetting for each internal peripheral circuit, and a signal defining a predetermined mode to be executed at the time of resetting 4. The microcomputer according to claim 3, further comprising: a reset-time power supply control circuit that controls supply of a reduced power supply voltage to a desired internal peripheral circuit at the time of said reset and control of supply stop. Power circuit.
JP32867599A 1999-11-18 1999-11-18 Power supply circuit for microcomputer Pending JP2001147746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32867599A JP2001147746A (en) 1999-11-18 1999-11-18 Power supply circuit for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32867599A JP2001147746A (en) 1999-11-18 1999-11-18 Power supply circuit for microcomputer

Publications (1)

Publication Number Publication Date
JP2001147746A true JP2001147746A (en) 2001-05-29

Family

ID=18212917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32867599A Pending JP2001147746A (en) 1999-11-18 1999-11-18 Power supply circuit for microcomputer

Country Status (1)

Country Link
JP (1) JP2001147746A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008522258A (en) * 2004-11-30 2008-06-26 フリースケール セミコンダクター インコーポレイテッド Apparatus and method for reducing power consumption using selective power gating
JP2020166384A (en) * 2019-03-28 2020-10-08 ラピスセミコンダクタ株式会社 Power supply circuit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008522258A (en) * 2004-11-30 2008-06-26 フリースケール セミコンダクター インコーポレイテッド Apparatus and method for reducing power consumption using selective power gating
US8018247B2 (en) 2004-11-30 2011-09-13 Freescale Semiconductor, Inc. Apparatus and method for reducing power consumption using selective power gating
JP2020166384A (en) * 2019-03-28 2020-10-08 ラピスセミコンダクタ株式会社 Power supply circuit
US11442480B2 (en) 2019-03-28 2022-09-13 Lapis Semiconductor Co., Ltd. Power supply circuit alternately switching between normal operation and sleep operation
JP7173915B2 (en) 2019-03-28 2022-11-16 ラピスセミコンダクタ株式会社 power circuit

Similar Documents

Publication Publication Date Title
US11573622B2 (en) Discrete power control of components within a computer system
US7373533B2 (en) Programmable I/O cell capable of holding its state in power-down mode
US20160231806A1 (en) Initial operational mode for integrated circuit
KR20090087956A (en) Maintaining input and/or output configuration and data state during and when coming out of a low power mode
US20100188133A1 (en) Power control circuit
JP4544081B2 (en) Microcomputer
JP2008098774A (en) Semiconductor integrated circuit device
US7847441B2 (en) Semiconductor integrated circuit
EP1621971A2 (en) Circuit and method for controlling a power cut-off protection circuit
US5732281A (en) Programmable power management circuit for a power supply in a computer system
JP4308735B2 (en) Semiconductor circuit
JP2001147746A (en) Power supply circuit for microcomputer
US9779788B1 (en) Sub-threshold enabled flash memory system
KR20080014531A (en) Method of leakage current decrease using voltage control and power gating and an apparatus of semiconductor using the method
JP4623494B2 (en) Microcomputer
US11294441B2 (en) Simplifying power sequencing for integrated circuits
KR100481847B1 (en) Computer system having power management function
JPH0756660A (en) Power consumption reduction control method/circuit for bus circuit
JP3459821B2 (en) Microprocessor
KR100460582B1 (en) Plasma display module
US20040220757A1 (en) Pipeline control for power management
US11774993B2 (en) Power supply management device and power supply management method
JP4240863B2 (en) Semiconductor integrated circuit
JPH09230967A (en) Circuit with power saving function
KR20080067895A (en) Power control apparatus, method, and system thereof