JPS616721A - One-chip microcontroller - Google Patents

One-chip microcontroller

Info

Publication number
JPS616721A
JPS616721A JP59128021A JP12802184A JPS616721A JP S616721 A JPS616721 A JP S616721A JP 59128021 A JP59128021 A JP 59128021A JP 12802184 A JP12802184 A JP 12802184A JP S616721 A JPS616721 A JP S616721A
Authority
JP
Japan
Prior art keywords
power supply
clock
circuit
supply voltage
clock frequency
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
JP59128021A
Other languages
Japanese (ja)
Inventor
Mitsuharu Kato
光治 加藤
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.)
Denso Corp
Original Assignee
NipponDenso Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP59128021A priority Critical patent/JPS616721A/en
Priority to US06/722,075 priority patent/US4766567A/en
Publication of JPS616721A publication Critical patent/JPS616721A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Direct Current Feeding And Distribution (AREA)
  • Power Sources (AREA)

Abstract

PURPOSE:To simplify the constitution of a circuit by selecting the 2nd clock frequency lower than the 1st one by the 1st power supply voltage detecting circuit when a power supply voltage becomes less than the 1st lower limit reference voltage, and generating a reset signal when the power supply voltage becomes less than the 2nd lower limit reference voltage. CONSTITUTION:A one-chip microcontroller is provided with the 1st and 2nd power supply voltage detecting circuits 12, 13, a clock generating circuit 14 for producing the 1st clock frequency fo and a clock frequency dividing circuit 32 for producing the 2nd clock frequency (fo)/8 lower than the 1st one and a driving two-phase clock signals phia, phib are generated from a two-phase clock generating circuit 15 through a clock selecting circuit 28. Internal circuits such as a program counter 16 and a test mode control circuit 20 to be driven by the clock signals phia, phib are also connected. If a power supply voltage Vdd is dropped and Vdd<=Vs is formed, the drop is detected by the 1st detecting circuit 12 and the low frequency (fo)/8 is selected by the clock selecting circuit 28. When the voltage is dropped further and Vdd<=Vr is formed, a reset signal (b) is generated.

Description

【発明の詳細な説明】 (発明の技術分野) この発明は、例えばマイクロコンピュータ、マイクロプ
ロセッサ等を1千・ノブの半導体集積回路で構成した1
チツプマイクロコントローラに係り、特に電源電圧の変
動による内部回路素子の誤動作防止を内部で行なえるよ
うに改良したものに関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field of the Invention) The present invention relates to a microcomputer, a microprocessor, etc. that is constructed of a 1,000-knob semiconductor integrated circuit.
The present invention relates to a chip microcontroller, and particularly to a chip microcontroller that has been improved to internally prevent malfunctions of internal circuit elements due to fluctuations in power supply voltage.

(発明の背景技術とその問題点) 従来より、マイクロコンピュータ、マイクロプロセッサ
等を1チツプのC−MO3半導体集積回路で構成した1
チソプマイクロコンレコ一ラ番よ、同一半導体基板上に
クロ・ツク発生回路、フログラムメモリ (ROM)、
データメモリ (RAM)、演算部(ALU)、入出力
制御部(Ilo)等の回路素子を組込んで構成され、外
部から供給される電源により駆動されるようになされて
いる。
(Background art of the invention and its problems) Conventionally, microcomputers, microprocessors, etc. have been constructed using a single C-MO3 semiconductor integrated circuit.
Chisop Microcontroller's number one, clock generation circuit, program memory (ROM), on the same semiconductor substrate.
It is constructed by incorporating circuit elements such as a data memory (RAM), an arithmetic unit (ALU), and an input/output control unit (Ilo), and is driven by an externally supplied power source.

ところで、上記のような従来の1チツプマイクロコント
ローラは、電源電圧の降下時には与えられたクロック周
波数に対して決まる下限動作電圧以下になると上記各部
の動作保証ができなくなるため、外部の電源電圧検出回
路がら発生される割込み処理信号およびリセット信号に
より割込み処理によるデーたを回避して回路の誤動作を
防止すると共に、内部回路素子部をリセットし、内部状
態の初期化をするようになされている。しかしながら、
このようなlチップマイクロコントローラでは、必然的
に外付けのマイクロコントローラを制御する電源電圧検
出回路が必要となり、・またこの電源型圧検出回から出
力される割込み処理信号およびリセット信号等を入力す
るため入力端子も必要となるばかりでなく、内部に複雑
な割込み処理回路が必要となって、内部回路素子部の構
成が複雑になってしまう。
By the way, in the conventional one-chip microcontroller as described above, when the power supply voltage drops and the operating voltage drops below the lower limit operating voltage determined for the given clock frequency, the operation of the above parts cannot be guaranteed, so an external power supply voltage detection circuit is required. The interrupt processing signal and reset signal generated during the interrupt processing avoid data caused by the interrupt processing to prevent malfunction of the circuit, and also reset the internal circuit element section and initialize the internal state. however,
Such an L-chip microcontroller inevitably requires a power supply voltage detection circuit to control the external microcontroller, and also inputs interrupt processing signals, reset signals, etc. output from this power supply voltage detection circuit. Therefore, not only an input terminal is required, but also a complicated interrupt processing circuit is required internally, resulting in a complicated configuration of the internal circuit element section.

(発明の目的) この発明は上記のような問題を改善するためになされた
もので、電源電圧変動時の制御信号を入力するための端
子を設けることなく、内部で電源電圧の変動よる内部回
路素子の誤動作防止を行なうことのでき、さらに内部に
複雑な割込み処理回路を設ける必要のない1チツプマイ
クロコントローラを提供することを目的とする。
(Purpose of the Invention) This invention was made to improve the above-mentioned problems, and the present invention does not require a terminal for inputting control signals when the power supply voltage fluctuates; It is an object of the present invention to provide a one-chip microcontroller that can prevent malfunction of elements and does not require a complicated internal interrupt processing circuit.

(発明の概要) すなわち、この発明に係る1チツプマイクロコントロー
ラは、半導体基板上に内部回路素子部を形成し、この内
部回路素子部に対してクロック発生回路から第1クロッ
ク周波数かあるいはより低い周波数の第2クロック周波
数を選択して駆動クロック信号を供給し、上記半導体基
板に対して設けられる電源端子を外部の電源に接続し、
上記電源端子からの電源電圧を第1の電源電圧検出回路
に供給し、この第1の電源電圧検出回路により電源電圧
が上記第1のクロ・ツク周波数において、上記内部回路
素子部の安定動作を保証する第1の下限基準電圧VS以
下となる状態を検出して上記クロック発生回路に対して
第2のクロック周波数を選択する信号を発生させ、上記
電源端子からの電源電圧を第2の電源電圧検出回路に供
給し、この第2の電源電圧検出回路により電源電圧が第
2のクロック周波数における上記内部回路素子部の動作
状態保証最低電圧vTよりやや高くその動作状態保持を
保証できる第2の下限基準電圧Vr以下となる状態を検
出してリセット信号を発生させ、このリセット信号の発
生に応じて上記内部回路素子部を初期状態に設定するよ
うにしたものである。
(Summary of the Invention) In other words, the one-chip microcontroller according to the present invention has an internal circuit element section formed on a semiconductor substrate, and a clock generation circuit transmits a first clock frequency or a lower frequency to the internal circuit element section. selecting a second clock frequency to supply a driving clock signal, and connecting a power supply terminal provided to the semiconductor substrate to an external power supply;
The power supply voltage from the power supply terminal is supplied to a first power supply voltage detection circuit, and the power supply voltage is controlled by the first power supply voltage detection circuit to ensure stable operation of the internal circuit element section at the first clock frequency. A state in which the guaranteed first lower limit reference voltage VS or less is detected is detected, and a signal for selecting a second clock frequency is generated for the clock generation circuit, and the power supply voltage from the power supply terminal is changed to the second power supply voltage. A second lower limit is supplied to the detection circuit, and the power supply voltage is set by the second power supply voltage detection circuit to be slightly higher than the minimum voltage vT for guaranteeing the operating state of the internal circuit element section at the second clock frequency, and is capable of guaranteeing that the operating state is maintained. A reset signal is generated by detecting a state where the voltage is lower than the reference voltage Vr, and the internal circuit element section is set to an initial state in response to the generation of this reset signal.

(発明の実施例) 以下、図面を参照してこの発明の一実施例を詳細に発明
する。
(Embodiment of the Invention) Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

第1図はその構成を示すもので、このlチップマイクロ
コントローラは、Vdd電源11に接続される電源端子
PL、P2、クロック周波数調整用の外付抵抗R1を接
続するためのクロック制御用端子P3.P4を備え、さ
らにテスト信号3tを入力するための端子P5、データ
入力用の端子PAO〜PA6、データ入出力用の端子P
BO〜PB7を有している。
FIG. 1 shows its configuration. This l-chip microcontroller has power terminals PL and P2 connected to a Vdd power supply 11, and a clock control terminal P3 to which an external resistor R1 for clock frequency adjustment is connected. .. P4, and further includes a terminal P5 for inputting the test signal 3t, terminals PAO to PA6 for data input, and a terminal P for data input/output.
It has BO to PB7.

また、この1チツプマイクロコントローラは、第1の電
源電圧検出回路12および第2の電源電圧検出回路13
からなり電源電圧監視手段を備えると共に、上記外付抵
抗R1が接続される内蔵キャパシタCI、インバータI
nV1、I nv2、Inv3よりなる第1のクロック
周波数fOを生成するクロック発生回路14と上記クロ
ック発生回路14により生成されるクロック周波数fO
を8分周することにより、より低い周波数の第2のクロ
ック周波数fO/8を生成するクロ・ツク分周回路32
と、このクロック発生回路14からのクロック信号fO
あるいは、分周回路32からのクロックfO/8のいず
れかがアンドオアゲートG1とインバータInv4とに
より構成されるクロック選択回路28を経て、2相りロ
ック発生回路15で駆動用2相クロツク信号φa、φb
を発生するようになされている。
Further, this one-chip microcontroller includes a first power supply voltage detection circuit 12 and a second power supply voltage detection circuit 13.
and a built-in capacitor CI to which the external resistor R1 is connected, and an inverter I.
A clock generation circuit 14 that generates a first clock frequency fO consisting of nV1, Inv2, and Inv3, and a clock frequency fO generated by the clock generation circuit 14.
A clock frequency divider circuit 32 generates a lower second clock frequency fO/8 by dividing the frequency by 8.
and the clock signal fO from this clock generation circuit 14.
Alternatively, one of the clocks fO/8 from the frequency dividing circuit 32 passes through the clock selection circuit 28 composed of an AND-OR gate G1 and an inverter Inv4, and the two-phase lock generation circuit 15 generates the driving two-phase clock signal φa. ,φb
It is designed to occur.

そして、この1チツプマイクロコントローラは、上記2
相クロ、り発生回路15からのクロック信号φa、φb
で駆動される内部回路を備えるもので、この内部回路は
、例えばプログラムカウンタ】6、プログラムメモリ(
ROM)17、命令デコーダ(IRQ)18、アドレス
バッファ19、テストモード制御回路20.演算部(A
LU)21、リザルトレジスタ(RR)22、データメ
モリ (RAM>23、アドレスデコーダ24、特殊カ
ウンタ群25、λカポート(PA)26、入出力ボート
(PB)27で構成され、各ブロックの駆動制御信号は
制御ハス29を介して、アドレス信号はアドレスバス3
0を介して、データ信号はデータバス31を介して転送
される。このような内部回路は、ダイナミンク回路で構
成され、1チツプ化されてなるものである。
And, this one-chip microcontroller is
Clock signals φa and φb from the phase black and red generation circuit 15
This internal circuit includes, for example, a program counter]6, a program memory (
ROM) 17, instruction decoder (IRQ) 18, address buffer 19, test mode control circuit 20. Arithmetic unit (A
Consists of LU) 21, result register (RR) 22, data memory (RAM>23, address decoder 24, special counter group 25, λ port (PA) 26, input/output board (PB) 27, and controls the drive of each block. The signal passes through the control bus 29, and the address signal passes through the address bus 3.
0, data signals are transferred via data bus 31. Such an internal circuit is composed of a dynamic circuit and is integrated into a single chip.

ここで、上記第1の電源電圧検出回路12は、前記電源
11の出力電圧Vddが第1クロック周波数fOにおい
て内部回路の安定動作を保証し得る最低電圧VS(以下
、第1の下限基準電圧とする)より下がったか否かを検
出するもので、VdddVSにおいて、″0″理論レベ
ルとなるクロック発生停止信号aを発生する。このクロ
ック発生停止信号aは、上記クロック選択回路28のア
ンドオアゲートG1とI nv4とに供給される。
Here, the first power supply voltage detection circuit 12 detects that the output voltage Vdd of the power supply 11 is a minimum voltage VS (hereinafter referred to as a first lower limit reference voltage) that can guarantee stable operation of the internal circuit at the first clock frequency fO. It detects whether or not the voltage has fallen below the voltage VdddVS, and generates a clock generation stop signal a that has a theoretical level of "0" at VdddVS. This clock generation stop signal a is supplied to the AND-OR gates G1 and Inv4 of the clock selection circuit 28.

また、第2の電源電圧検出回路13は、上記電源電圧V
dd力5第5第クロック周波数fO/8において内部回
路の動作状態を保証し得る最低電圧■r (以下、第2
の下限基準電圧とする)より下がったか否かを検出する
もので、VdddVrにおいて”1”理論レベルとなる
リセット信号すを発生する。このリセット信号は、制御
バス29を介して上記内部回路の必要なブロックへ供給
される。
Further, the second power supply voltage detection circuit 13 detects the power supply voltage V
dd force 5 The lowest voltage ■r that can guarantee the operating state of the internal circuit at the fifth clock frequency fO/8 (hereinafter referred to as the second
It detects whether or not the voltage has fallen below the lower limit reference voltage of VdddVr, and generates a reset signal that has a theoretical level of "1" at VdddVr. This reset signal is supplied via the control bus 29 to the necessary blocks of the internal circuit.

そして、上記クロック発生回路14は、インバータIn
vlの論理スレショールド電圧、外付抵抗R1の抵抗値
および内蔵キャパシタC1の容量値で周波数が決定され
る。CR発振によるクロックを発生するものである。
Then, the clock generation circuit 14 includes an inverter In
The frequency is determined by the logic threshold voltage of vl, the resistance value of external resistor R1, and the capacitance value of built-in capacitor C1. A clock is generated by CR oscillation.

このクロック発生回路14の出力クロンク2相クロック
発生回路15に供給される。この2相りロック発生回路
15は、上記発振回路14の出力クロックからオーバー
ランプのない2つの内部クロックφa、φbを発生する
ものである。この2つの内部クロックφa、φbは、ダ
イナミ・ツク回路構成の内部回路の各ブロックを駆動す
るためのもので、図示しないが各ブロックに供給される
ようになされている。
The output of this clock generation circuit 14 is supplied to a clock two-phase clock generation circuit 15. This two-phase lock generation circuit 15 generates two internal clocks φa and φb without overramp from the output clock of the oscillation circuit 14. These two internal clocks φa and φb are for driving each block of the internal circuit of the dynamic circuit configuration, and are supplied to each block, although not shown.

なお、上記プログラムカウンタ16は、上記内部クロッ
クφaによりカウンタア・ノブするもので、その出力は
アドレス信号としてプログラムメモリ17に供給される
。このプログラムメモリ17は、上記アドレス信号に応
じて命令内容を指定するもので、その出力は12ビツト
からなり、上位4ビ・7トが命令内容として命令デコー
ダ18を介して制御バス29に供給され、下位8ビツト
がオペランドのアドレスとしてアドレスバッファ19を
介してアドレスバス30に供給される。また、上記演算
部21は、リガルトレジスタ22と共にいわゆるアキュ
ミレータを構成するものである。また、上記データメモ
リ23には特殊バス32を介して特殊カウンタ25のカ
ウント出力か供給されるようになされている。
The program counter 16 is operated by the internal clock φa, and its output is supplied to the program memory 17 as an address signal. This program memory 17 specifies the instruction content according to the address signal, and its output consists of 12 bits, and the upper 4 bits and 7 bits are supplied to the control bus 29 via the instruction decoder 18 as the instruction content. , the lower 8 bits are supplied to the address bus 30 via the address buffer 19 as the address of the operand. Further, the arithmetic unit 21 and the regalt register 22 constitute a so-called accumulator. Further, the count output of a special counter 25 is supplied to the data memory 23 via a special bus 32.

上記のような構成において、以下その動作について説明
する。
The operation of the above configuration will be described below.

一般的にMO3型半導体集積回路の動作周波数と動作電
源電圧範囲は第2図のようになって(7入る。
Generally, the operating frequency and operating power supply voltage range of an MO3 type semiconductor integrated circuit are as shown in FIG.

すなわち、成る周波数fOにおける最低動作電圧はvm
 i nであり、Vmin以上では正寓に動作スルが、
Vmin以下では誤動作してしまう。動作周波数と最低
作動電圧は比例関係にある。
That is, the lowest operating voltage at the frequency fO is vm
i n, and above Vmin, it does not work properly,
If it is below Vmin, it will malfunction. There is a proportional relationship between the operating frequency and the minimum operating voltage.

このマイクロコントローラは、クロ・ツク周波数foに
おける下限安定動作電圧V m i nとすると、電源
電圧VddがVmin電圧以下となるとき正常な動作を
保証することができなくなるので、クロックを周波数f
oから「0/8に切り替える第1の下限基準電圧レベル
をVS、リセ・)l−信号すを発生させ第2の下限基準
電圧レベルをVrとして、VS>Vmin>Vrに設定
することにより、電源電圧Vddの立ち上がり時や電圧
変動による電圧降下時に発生する誤動作を防止するよう
番こしたものである。
In this microcontroller, if the lower limit stable operating voltage Vmin at the clock frequency fo is set, normal operation cannot be guaranteed when the power supply voltage Vdd becomes lower than the Vmin voltage.
The first lower limit reference voltage level to be switched from o to 0/8 is set to VS, and the second lower limit reference voltage level is set to Vr by generating a signal S and setting VS>Vmin>Vr. This arrangement is made to prevent malfunctions that occur when the power supply voltage Vdd rises or when the voltage drops due to voltage fluctuations.

すなわち、電源電圧Vddの立ち上がり時において、O
(V)<Vdd≦VrO間では、第2の電源電圧検出回
路13が作動してリセ7)信号すをプログラムカウンタ
16および制御ハス29を介して他の必要なブロックに
供給し、そのプログラムカウンタ16および各ブロック
を初期化する。
That is, when the power supply voltage Vdd rises, O
(V)<Vdd≦VrO, the second power supply voltage detection circuit 13 is activated and supplies the reset signal 7) to other necessary blocks via the program counter 16 and control hash 29, and the program counter 16 and initialize each block.

このとき、Vdd<VSであるため、第1の電源電圧検
出回路12がこれを検出してクロック選択信号aを発生
出力しており、このクロック選択信号aが0”論理レベ
ルであることにより、クロック選択回路28からは電源
電圧が低い領域でも保証できるクロック周波数f O/
8が選択されて、2相クロツクφa、φbが供給される
。また、■r<Vdd≦VSの間では、上記第2の電源
電圧検出回路13によるリセットが解除されるが、第1
の電源電圧検出回路12が作動してクロック選択信号a
を発生出力しているため、クロック選択回路28は低い
周波数f O/8を選択しており、このマイクロコント
ローラは動作状態を保証されている。今の状態では、リ
セット状態を保持している。そして、V d d > 
v 3となったとき、上記第1の電源電圧検出回路12
がこれを検出してクロック選択信号aの出力を”1″論
理レベルにするため、クロック選択回路28によりクロ
ック周波数fOが選択される。これによって、このマイ
クロコントローラは完全に動作状態となる。
At this time, since Vdd<VS, the first power supply voltage detection circuit 12 detects this and generates and outputs the clock selection signal a, and since this clock selection signal a is at the 0'' logic level, The clock selection circuit 28 selects a clock frequency fO/ that can be guaranteed even in a region where the power supply voltage is low.
8 is selected and two-phase clocks φa and φb are supplied. Further, in the range ■r<Vdd≦VS, the reset by the second power supply voltage detection circuit 13 is released, but the reset by the first power supply voltage detection circuit 13 is canceled.
The power supply voltage detection circuit 12 operates to output the clock selection signal a.
Since the clock selection circuit 28 selects the low frequency f O/8, the microcontroller is guaranteed to operate. In its current state, it is held in a reset state. And V d d >
v 3, the first power supply voltage detection circuit 12
detects this and sets the output of the clock selection signal a to the "1" logic level, so the clock frequency fO is selected by the clock selection circuit 28. This makes the microcontroller fully operational.

次に、電源電圧Vdd降下時において、電源電圧Vdd
が降下してIVdd≦VSとなると、第1の電源電圧検
出回路12がこれを検出してクロック発生停止信号aと
して論理レベル”0”を発生出力し、クロック選択回路
28により低い周波数fO/8を選択し、継続して安定
的に続けるため、低電圧においてもこのマイクロコント
ローラは動作していた状態を保証し続ける。このとき、
マイクロコントローラはクロック周波数が正富時のfO
からf O/8に低下するため、たとえばタイマー動作
のようにクロック周波数に依存するものは多少乱れるが
、殆んどのブロックの状態については、状態の保証がで
きる。しかる後、Vdd>VSとなると、その状態から
再び動作を開始するようになる。このようにして、短時
間の電源電圧降下に対しては、実用上全く問題のない動
作を行なう。そして、電源電圧VddがVdd≦Vrま
で降下すると、第2の電源電圧検出回路13がこれを検
出してリセット信号すを発生出力するようになり、これ
によって信号すを発生出力するようになり、これによっ
てマイクロコントローラは初期化されるようになる。
Next, when the power supply voltage Vdd drops, the power supply voltage Vdd
falls and becomes IVdd≦VS, the first power supply voltage detection circuit 12 detects this and generates and outputs a logic level "0" as the clock generation stop signal a, and the clock selection circuit 28 selects a lower frequency fO/8. The microcontroller continues to operate stably even at low voltages. At this time,
The microcontroller has fO when the clock frequency is Masatomi.
Since the clock frequency decreases from f O/8, things that depend on the clock frequency, such as timer operations, are slightly disturbed, but the states of most blocks can be guaranteed. Thereafter, when Vdd>VS, the operation starts again from that state. In this way, the device can operate without any practical problems even when the power supply voltage drops for a short period of time. Then, when the power supply voltage Vdd drops to Vdd≦Vr, the second power supply voltage detection circuit 13 detects this and starts generating and outputting a reset signal S, thereby generating and outputting a signal S. This will initialize the microcontroller.

ここで、上記第1の電源電圧検出回路12は、D型Vフ
リップフロップFFなどでクロック発生回路14からの
クロックに同期して駆動することにより、このマイクロ
コントローラがVdd>VSで正常に動作しているとき
に不意にVdd≦■Sとなった場合に、無条件にクロッ
クを切り替えるのではなく、現状の命令実行を終えて次
のクロックサイクルに移るときにクロックを停止させる
ようになされている。これにより、命令実行に必要な最
少クロック時間幅を常に確保している。
Here, the first power supply voltage detection circuit 12 is driven by a D-type V flip-flop FF or the like in synchronization with the clock from the clock generation circuit 14, so that the microcontroller operates normally when Vdd>VS. If Vdd≦S suddenly occurs while the clock is running, instead of switching the clock unconditionally, the clock is stopped when the current instruction is finished and the next clock cycle begins. . This always ensures the minimum clock time width necessary for instruction execution.

このような本来の動作時のクロック周波数fOにおけ電
源電圧Vddに関する動作保証の下限は一般的には7m
 i nレベルであるか、上記マイクロコントローラで
は自動的にクロック低下させ状態保証させることにより
、見掛は上火幅に低く設定することができ、第2の下限
基準電圧Vrレベルまで動作を保証することができるも
のである。
The lower limit of guaranteed operation regarding the power supply voltage Vdd at the clock frequency fO during such original operation is generally 7m.
The above microcontroller automatically lowers the clock to guarantee the state, so that the apparent upper limit can be set low, and operation is guaranteed up to the second lower limit reference voltage Vr level. It is something that can be done.

さらに、上記実施例について具体的な数値を用いて説明
する。
Furthermore, the above embodiment will be explained using specific numerical values.

第1の下限基準電圧VSは約4.0(V)、第2の下限
基準電圧Vrは約2.0(V)と設定しである。また、
リセットが実際に働く動作状態保証最低電圧vTは、約
1.5(V)である。またP5端子に外部からテスト信
号を印加して第1の電源電圧検出回路12の作動を禁止
した状態でクロック周波数fOで動作させる場合の下限
安定動作電圧Vminは3.5(V)であり、上限安定
動作電圧6.0(V)である。第3図にその動作可能範
囲を示す。
The first lower limit reference voltage VS is set to approximately 4.0 (V), and the second lower limit reference voltage Vr is set to approximately 2.0 (V). Also,
The minimum operating state guaranteed voltage vT at which the reset actually works is about 1.5 (V). Further, the lower limit stable operating voltage Vmin is 3.5 (V) when the first power supply voltage detection circuit 12 is operated at the clock frequency fO with an external test signal applied to the P5 terminal and the operation of the first power supply voltage detection circuit 12 is prohibited. The upper limit stable operating voltage is 6.0 (V). Fig. 3 shows its operable range.

すなわち、この場合のマイクロコントローラは、クロッ
ク周波数foの場合に完全に動作する3、5〜6.0(
V)に加えて、2.0〜4.0(V)の間はクロックが
自動的に低下してそのときの動作状態を擬イ以的に保持
するため、電源電圧Vddの不意の降下時に動作を保証
し得る範囲2.0〜6.0(V)と低電圧側を大幅に改
善することができる。また、電源電圧Vddが2.0(
V)まで降下した場合には、完全に初期化されるため、
実質的な動作範囲2.0〜6.0(V)となる。
That is, the microcontroller in this case has a clock frequency of 3,5 to 6.0 (
In addition to V), the clock automatically lowers between 2.0 and 4.0 (V) and maintains the current operating state, so if the power supply voltage Vdd suddenly drops, The low voltage side can be significantly improved to a range of 2.0 to 6.0 (V) in which operation can be guaranteed. In addition, the power supply voltage Vdd is 2.0 (
V), it will be completely initialized, so
The practical operating range is 2.0 to 6.0 (V).

このように、このマイクロコントローラは、電源電圧V
ddの立ち上がりや動作状態において、電圧Vddが急
激に変動する場合においても、暴走することなく安定に
動作することができるものである。これは、Vmin<
VSとしてクロック周波数fQにおける動作保証範囲と
、クロック周波数fO/8の周波数における動作電圧範
囲をオーバーランプさせたこと、クロック周波数fO/
8の低周波数における動作電圧範囲とリセット範囲をオ
ーバーラツプさせたこと、および実質的な動作保持が共
に保証できない空白な領域を無くしたこと等によるもの
である。
In this way, this microcontroller has a power supply voltage V
Even if the voltage Vdd fluctuates rapidly at the rise of dd or in the operating state, it can operate stably without running out of control. This means that Vmin<
As VS, the guaranteed operation range at the clock frequency fQ and the operating voltage range at the clock frequency fO/8 are overramped, and the clock frequency fO/
This is due to the fact that the operating voltage range and the reset range at the low frequency of 8 overlap, and that there is no blank area where substantial operation maintenance cannot be guaranteed.

したがって、上記のように構成した1チツプマイクロコ
ントローラは、従来のように電源電圧変動時の制御信号
を入力するための端子を設けることなく、内部で電源電
圧の変動による内部回路の誤動作を防止することができ
、さらに内部に複雑な割込み処理回路を設ける必要なく
、動作を保証する下限電圧レベルを大幅に低く設定する
ことができるようになる。これによって、特に外部から
の電波障害や、自動車電装品に到来するイグニッション
雑音のような高音波・高電圧雑音により、電源電圧が不
安定になる場合に、極めて有効なものとすることができ
る。
Therefore, the one-chip microcontroller configured as described above does not have a terminal for inputting a control signal when the power supply voltage fluctuates, as in the conventional case, and internally prevents malfunction of the internal circuit due to fluctuations in the power supply voltage. Furthermore, the lower limit voltage level that guarantees operation can be set significantly lower without the need to provide a complicated internal interrupt processing circuit. This makes it extremely effective, especially when the power supply voltage becomes unstable due to external radio wave interference or high-sound/high-voltage noise such as ignition noise arriving at automobile electrical components.

なお、上記実施例では、第2のクロック周波数を得るの
に第1のクロック周波数は、精度はそれ程要しないため
、よく知られているリングオシレータや第1図のCR発
振器14に類似な回路を半導体基板上に完全に組み込み
、第1の周波数を独立にしてもよい。
In the above embodiment, since the first clock frequency does not require much precision to obtain the second clock frequency, a well-known ring oscillator or a circuit similar to the CR oscillator 14 in FIG. 1 is used. It may be completely integrated on the semiconductor substrate and the first frequency may be independent.

この場合、リングオシレータを用いれば、マイクロコン
トローラの動作速度が電源電圧の降下に伴なって遅くな
る程度とリングオシレータの周波数が遅くなる程度が同
じであるため、本発明の主旨がより発揮できる。
In this case, if a ring oscillator is used, the gist of the present invention can be more effectively achieved because the degree to which the operating speed of the microcontroller slows down as the power supply voltage drops is the same as the degree to which the frequency of the ring oscillator slows down.

(発明の効果) 以上詳述したようにこの発明によれば、電源電圧変動時
の制御信号を入力するための端子を設けることなく、内
部で電源電圧の変動による内部回路素子の誤動作防止を
行なうことのでき、さらに内部に複雑な割込み処理回路
を設ける必要のない1チツプマイクロコントローラを提
供することができる。
(Effects of the Invention) As detailed above, according to the present invention, malfunction of internal circuit elements due to fluctuations in power supply voltage is internally prevented without providing a terminal for inputting a control signal when power supply voltage fluctuates. Furthermore, it is possible to provide a one-chip microcontroller that does not require a complex internal interrupt processing circuit.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明に係る1チツプマイクロコントローラ
の一実施例を示すブロック回路図、第2図は上記実施例
の具体的な動作周波数とマイクロコントローラとしての
動作電圧範囲を示した図、第3図は上記実施例の具体的
な動作範囲を説明するための図である。 11・・・Vdd電源、12・・・第1の電源電圧検出
回路、13・・・第2の電源電圧検出回路、14・・・
クロック発生回路、15・・・2相りロック発生回路、
29・・・制御バス、30・・・アドレスバス、31・
・・データバス、Pl、P2・・・電源端子、P3.P
4・・・クロック制御用端子、VS・・・第1の下限基
準電圧、Vr・・・第2の下限基準電圧、Vmin・・
・下限安定動作電圧、Vr・・・動作保証最低電圧、a
・・・クロック発生停止信号、b・・・リセット信号、
28・・・クロックツ周波数選択回路、32・・・クロ
ック分周回路。
FIG. 1 is a block circuit diagram showing an embodiment of a one-chip microcontroller according to the present invention, FIG. 2 is a diagram showing the specific operating frequency and operating voltage range of the microcontroller of the above embodiment, and FIG. The figure is a diagram for explaining a specific operating range of the above embodiment. DESCRIPTION OF SYMBOLS 11...Vdd power supply, 12...1st power supply voltage detection circuit, 13...2nd power supply voltage detection circuit, 14...
Clock generation circuit, 15...2-phase lock generation circuit,
29... Control bus, 30... Address bus, 31.
...Data bus, Pl, P2...Power terminal, P3. P
4... Clock control terminal, VS... First lower limit reference voltage, Vr... Second lower limit reference voltage, Vmin...
・Lower limit stable operating voltage, Vr...minimum operation guaranteed voltage, a
...Clock generation stop signal, b...Reset signal,
28... Clock frequency selection circuit, 32... Clock frequency division circuit.

Claims (1)

【特許請求の範囲】[Claims]  半導体基板上に内部回路素子部と、この内部回路素子
部に対して駆動クロック信号として、第1のクロック周
波数か或いはより周波数の低い第2のクロック周波数を
選択して供給するクロック発生回路と、上記半導体基板
に対して設けられた外部の電源に対して接続される電源
端子と、この電源端子からの電源電圧が供給されこの電
源電圧が上記第1のクロック周波数において、上記内部
回路素子部の安定動作を保証する第1の下限基準電圧V
_S以下となる状態を検出して上記クロック発生回路に
対して、上記第2のクロック周波数を選択する第1の電
源電圧検出回路と、上記電源端子からの電源電圧が供給
されこの電源電圧が上記第2のクロック周波数における
上記内部回路素子部の動作状態保証電圧V_Tよりやや
高くその動作状態保持を保証できる第2の下限基準電圧
V_r以下となる状態を検出してリセット信号を発生す
る第2の電源電圧検出回路と、上記リセット信号の発生
に応じて上記内部回路素子部を初期状態に設定する手段
とを具備してなることを特徴とする1チップマイクロコ
ントローラ。
an internal circuit element portion on a semiconductor substrate; a clock generation circuit that selects and supplies a first clock frequency or a second clock frequency having a lower frequency as a driving clock signal to the internal circuit element portion; A power supply terminal connected to an external power supply provided on the semiconductor substrate, and a power supply voltage from this power supply terminal being supplied to the internal circuit element section at the first clock frequency. First lower limit reference voltage V that guarantees stable operation
a first power supply voltage detection circuit that detects a state in which the clock frequency is equal to or less than _S and selects the second clock frequency for the clock generation circuit; a second lower limit reference voltage V_r that is slightly higher than a guaranteed operating state voltage V_T of the internal circuit element section at a second clock frequency and below a second lower limit reference voltage V_r that can guarantee maintenance of the operating state, and generates a reset signal; A one-chip microcontroller comprising: a power supply voltage detection circuit; and means for setting the internal circuit element section to an initial state in response to generation of the reset signal.
JP59128021A 1984-04-19 1984-06-20 One-chip microcontroller Pending JPS616721A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP59128021A JPS616721A (en) 1984-06-20 1984-06-20 One-chip microcontroller
US06/722,075 US4766567A (en) 1984-04-19 1985-04-11 One-chip data processing device including low voltage detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59128021A JPS616721A (en) 1984-06-20 1984-06-20 One-chip microcontroller

Publications (1)

Publication Number Publication Date
JPS616721A true JPS616721A (en) 1986-01-13

Family

ID=14974523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59128021A Pending JPS616721A (en) 1984-04-19 1984-06-20 One-chip microcontroller

Country Status (1)

Country Link
JP (1) JPS616721A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5890226A (en) * 1981-11-25 1983-05-28 Nec Corp Synchronous data processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5890226A (en) * 1981-11-25 1983-05-28 Nec Corp Synchronous data processor

Similar Documents

Publication Publication Date Title
US4766567A (en) One-chip data processing device including low voltage detector
US4931748A (en) Integrated circuit with clock generator
US5983014A (en) Power management system that one of plurality of peripheral signals is selectably routed to main pad clock node during a test mode
JP2885256B2 (en) Microcomputer
US5652536A (en) Non-glitch clock switching circuit
KR100363983B1 (en) Semiconductor integrated circuit
KR960003061B1 (en) Clock generator
US5606293A (en) Clock generator for microcomputer having reduced start-up time
JPS63126018A (en) Semiconductor integrated circuit
EP0355466A2 (en) Integrated circuit with clock generator circuit
JPS61138356A (en) One-chip microcontroller
JPS616721A (en) One-chip microcontroller
US5734878A (en) Microcomputer in which a CPU is operated on the basis of a clock signal input into one of two clock terminals
EP0212640B1 (en) Data processor
US5751175A (en) Control of clock signal in semiconductor device
US6631467B1 (en) Microcomputer timing control circuit provided with internal reset signal generator triggered by external reset signal
JPH0321928B2 (en)
JP2735838B2 (en) One-chip microcomputer
JP3469827B2 (en) PLL circuit
JPS60221816A (en) One chip microcontroller
JPH0222716A (en) Clock control circuit
KR100442290B1 (en) A circuit for controlling program counter
JPH0344719A (en) Integrated circuit with variable-frequency clock
JPH0573360A (en) Watchdog timer
JPH01180024A (en) Control system for synchronous logic circuit