JP2002207531A - Semiconductor integrated circuit - Google Patents

Semiconductor integrated circuit

Info

Publication number
JP2002207531A
JP2002207531A JP2001002677A JP2001002677A JP2002207531A JP 2002207531 A JP2002207531 A JP 2002207531A JP 2001002677 A JP2001002677 A JP 2001002677A JP 2001002677 A JP2001002677 A JP 2001002677A JP 2002207531 A JP2002207531 A JP 2002207531A
Authority
JP
Japan
Prior art keywords
control
clock
opening
closing
group
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
JP2001002677A
Other languages
Japanese (ja)
Inventor
Hirokazu Koshiba
寛和 小柴
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001002677A priority Critical patent/JP2002207531A/en
Publication of JP2002207531A publication Critical patent/JP2002207531A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

PROBLEM TO BE SOLVED: To provide a semiconductor integrated circuit processing clock supply control to a peripheral circuit block by a flexible and integrative method, and allowing generation of an efficient low-power-consumption control program by use of an interrupt set in the peripheral circuit block. SOLUTION: The semiconductor integrated circuit has a grouped control circuit 11 holding one or more clock opening/closing control settings wherein arbitrary opening/closing state settings of clock control circuits 4-9 are grouped, and specifying one group among the clock opening/closing control settings, and controls the opening/closing of the clock control circuits 4-9 according to the specified clock opening/closing control setting. The integrated circuit directly controls the opening/closing of the clock control circuits 4-9 by use of interrupt effective control making the interrupt set in the peripheral circuit block effective, or specifies the one group among the clock opening/closing control settings.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は半導体集積回路に係
わり、特に、1チップマイクロコンピュータ(1チップ
マイコン)等の低消費電力制御に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor integrated circuit, and more particularly to low power consumption control of a one-chip microcomputer (one-chip microcomputer) or the like.

【0002】[0002]

【従来の技術】従来の1チップマイコンは、スタンバイ
状態やクロック停止状態等の低消費電力モードにおい
て、ハードウェアで決められた所定の回路ブロック群に
対してクロックの供給を一律に停止するような低消費電
力モードを持つ。これらの1チップマイコンでは、低消
費電力モードになる条件をハードウェアで固定している
ため、セット設計者にシステム仕様上の制限を与えてし
まい、システム上で柔軟な低消費電力制御対策を行うこ
とができなかった。
2. Description of the Related Art In a conventional one-chip microcomputer, in a low power consumption mode such as a standby state or a clock stop state, a clock supply to a predetermined circuit block group determined by hardware is uniformly stopped. Has low power consumption mode. In these one-chip microcomputers, the conditions for the low power consumption mode are fixed by hardware, which imposes restrictions on the system specifications for set designers, and implements flexible low power consumption control measures on the system. I couldn't do that.

【0003】また、通常動作モードや低消費電力モード
等のシステム上で考えられる動作状態において、一部の
回路ブロックはその動作を必要とせず、その回路ブロッ
クへのシステムクロックの供給が不要な場合が発生して
も、任意の回路ブロックに対するクロック供給を個別に
停止させる制御ができないために、余分な電力消費を抑
えることができなかった。
[0003] Further, in an operating state conceivable on a system such as a normal operation mode or a low power consumption mode, some circuit blocks do not need to operate, and supply of a system clock to the circuit blocks is unnecessary. However, since the control for individually stopping the clock supply to an arbitrary circuit block cannot be performed even when the error occurs, the excessive power consumption cannot be suppressed.

【0004】図3は、従来の1チップマイコンにおける
システムクロック供給系統の構成を示すブロック図であ
り、マイコンのCPU部1、マイコン周辺回路の割り込
み制御を行う割り込み制御部2及びマイコン周辺回路に
クロックを供給するクロック発生部3を有し、クロック
発生部3から周辺回路用システムクロック(PERICLK)
10をマイコン周辺回路の一つであるタイマーa14、
タイマーb15、タイマーc16及びタイマーd17並
びにシリアルe18及びシリアルf19に供給する。
FIG. 3 is a block diagram showing the configuration of a system clock supply system in a conventional one-chip microcomputer. The system includes a CPU section 1 of the microcomputer, an interrupt control section 2 for controlling interrupts of the microcomputer peripheral circuits, and a clock signal for the microcomputer peripheral circuits. And a peripheral circuit system clock (PERICLK) from the clock generating unit 3.
10 is a timer a14 which is one of microcomputer peripheral circuits,
The signals are supplied to the timer b15, the timer c16 and the timer d17, and the serial e18 and the serial f19.

【0005】タイマーa14からタイマーd17までは
各タイマーの出力が順にカスケード接続されており、最
大4つのタイマーを1つのタイマーとして使用すること
も可能な構成を持つ。
The outputs of the timers a14 to d17 are cascaded in order, so that a maximum of four timers can be used as one timer.

【0006】図3のように構成された1チップマイコン
において、システムの動作状態を低消費電力モードにす
る場合、クロック発生部3はCPU部1からの制御によ
り周辺用システムクロック10を止め、タイマーa14
〜タイマーd17、シリアルe18、シリアルf19の
各マイコン周辺回路へのクロック供給を一律に停止する
制御を行う。
In the one-chip microcomputer configured as shown in FIG. 3, when the operation state of the system is set to the low power consumption mode, the clock generator 3 stops the peripheral system clock 10 under the control of the CPU 1, and a14
To control to uniformly stop the clock supply to the microcomputer d17, serial e18, and serial f19 peripheral circuits.

【0007】[0007]

【発明が解決しようとする課題】上記の様に、従来の1
チップマイコンにおいては、マイコン周辺回路へのクロ
ック供給制御が一律に制御されるため、マイコンを使っ
たシステムに最適な低消費電力制御を行うことができな
いという問題があった。
As described above, the conventional 1
In the chip microcomputer, the clock supply control to the microcomputer peripheral circuit is uniformly controlled, so that there has been a problem that low power consumption control optimal for a system using the microcomputer cannot be performed.

【0008】このような問題を解決するために、例え
ば、マイコン周辺回路へのクロック供給制御を個別の回
路ブロックごとに行う技術(特開平5−303445号
公報)が知られている。この技術によれば、個別の回路
ブロックに対するプログラム可能なスタンバイ制御信号
により、その回路ブロックへのシステムクロック供給を
個別に停止させることができる。
In order to solve such a problem, for example, a technique for controlling the clock supply to a microcomputer peripheral circuit for each individual circuit block has been known (JP-A-5-303445). According to this technique, the supply of the system clock to each circuit block can be individually stopped by a programmable standby control signal for that circuit block.

【0009】しかしながら、周辺回路ブロックに対して
個別にクロック供給制御を行うだけでは、1チップマイ
コンを構成する周辺回路ブロックが多数になると、全体
的なクロック供給及び停止状態の間の遷移が複雑にな
り、結果として、プログラムが個別の処理に依存し効率
の悪いものになる恐れがある。また、状態遷移に係わる
周辺回路ブロックに設定された割り込みへの対応も個別
のプログラムで処理する必要がある。
However, simply controlling the clock supply individually to the peripheral circuit blocks makes the transition between the clock supply and the stop state complicated as the number of peripheral circuit blocks constituting the one-chip microcomputer increases. As a result, there is a possibility that the program depends on individual processing and becomes inefficient. In addition, it is necessary to deal with the interrupt set in the peripheral circuit block relating to the state transition by an individual program.

【0010】本発明は、上記従来の問題点を解決するた
めになされたもので、周辺回路ブロックに対するクロッ
ク供給制御をシステムの目的や状態に合わせた柔軟かつ
統合的な方法で処理し、また周辺回路ブロックに設定さ
れた割り込みを有効に利用することで効率の良いプログ
ラム作成を可能にし、システムの目的に適合した低消費
電力制御を行うことができる半導体集積回路を提供する
ことを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problems. The present invention provides a flexible and integrated method for controlling clock supply to peripheral circuit blocks according to the purpose and state of a system. An object of the present invention is to provide a semiconductor integrated circuit capable of efficiently creating a program by effectively using an interrupt set in a circuit block and performing low power consumption control suitable for the purpose of the system.

【0011】[0011]

【課題を解決するための手段】本発明の請求項1に記載
の半導体集積回路は、複数個の回路ブロック(タイマー
a14〜タイマーd17、シリアルe、シリアルf)に
システムクロック(周辺回路用システムクロック10)
を供給する半導体集積回路において、前記複数個の回路
ブロックに対する前記システムクロックの供給をそれぞ
れ開閉制御する複数個のクロック制御回路(クロック制
御回路4〜クロック制御回路9)と、前記複数個のクロ
ック制御回路の開閉制御状態がグループ化して設定さ
れ、設定された開閉制御状態に応じて前記複数個のクロ
ック制御回路の開閉制御を個別に制御するクロック開閉
制御信号(クロック開閉制御90〜クロック開閉制御9
5)を生成する制御回路(グループ化制御回路11)
と、を具備したことを特徴とする。
According to a first aspect of the present invention, there is provided a semiconductor integrated circuit comprising a plurality of circuit blocks (timers a14 to d17, serial e and serial f) each having a system clock (peripheral circuit system clock). 10)
A plurality of clock control circuits (clock control circuits 4 to 9) for controlling the supply and opening of the system clock to the plurality of circuit blocks, respectively, and the plurality of clock control circuits. Circuit open / close control states are grouped and set, and clock open / close control signals (clock open / close control 90 to clock open / close control 9) for individually controlling open / close control of the plurality of clock control circuits according to the set open / close control states.
Control circuit for generating 5) (grouping control circuit 11)
And characterized in that:

【0012】請求項2に記載の半導体集積回路は、前記
クロック開閉制御信号が、前記制御回路に設定された開
閉制御状態に応じて生成されるだけでなく、前記複数個
の回路ブロックに設定された割り込みを有効化する割り
込み有効制御(割り込み有効制御20〜割り込み有効制
御23)に応じて生成されることを特徴とする。
According to a second aspect of the present invention, in the semiconductor integrated circuit, the clock switching control signal is generated not only in accordance with the switching control state set in the control circuit but also in the plurality of circuit blocks. The interrupt is generated in accordance with the interrupt enable control (interrupt enable control 20 to interrupt enable control 23) for enabling the interrupt.

【0013】請求項3に記載の半導体集積回路は、前記
制御回路が、前記クロック制御回路の開閉制御状態をグ
ループ単位で保持する複数個の保持手段(開閉制御設定
レジスタ35〜開閉制御設定レジスタ38)と、前記複
数個の保持手段の何れか1つを指定する指定手段(グル
ープ制御レジスタ30)と、指定された保持手段に保持
されている開閉制御状態に応じて前記クロック開閉制御
信号を生成する手段(ANDゲート50〜57:AND
ゲート60〜67:ANDゲート70〜77:ANDゲ
ート80〜87:ORゲート40〜47)と、を具備し
たことを特徴とする。
According to a third aspect of the present invention, in the semiconductor integrated circuit, the control circuit includes a plurality of holding means (opening / closing control setting register 35 to opening / closing control setting register 38) for holding the open / close control state of the clock control circuit in groups. ), Specifying means (group control register 30) for specifying any one of the plurality of holding means, and generating the clock opening / closing control signal in accordance with the opening / closing control state held in the specified holding means. (AND gates 50 to 57: AND gate
(Gates 60 to 67: AND gates 70 to 77: AND gates 80 to 87: OR gates 40 to 47).

【0014】請求項4に記載の半導体集積回路は、さら
に、前記複数個の保持手段を、前記指定手段により指定
するだけでなく、前記複数個の回路ブロックに設定され
た割り込みを有効化する割り込み有効制御(割り込み有
効制御20〜割り込み有効制御23)に応じて指定する
手段(ORゲート31〜ORゲート34)を具備したこ
とを特徴とする。
The semiconductor integrated circuit according to claim 4, further comprising an interrupt for not only specifying said plurality of holding means by said specifying means but also for enabling an interrupt set in said plurality of circuit blocks. A means (OR gate 31 to OR gate 34) for designating according to the validity control (interrupt validity control 20 to interrupt validity control 23) is provided.

【0015】請求項1に記載の半導体集積回路によれ
ば、システムの目的や状態に合わせて最適にグループ化
したクロック開閉状態を制御回路に適宜設定し、この設
定に従ってクロック制御回路を開閉制御することによ
り、システムの目的に適合した低消費電力制御を行う効
率の良いプログラム作成が可能となる。
According to the semiconductor integrated circuit of the first aspect, clock open / close states optimally grouped according to the purpose and state of the system are appropriately set in the control circuit, and the open / close control of the clock control circuit is performed according to this setting. This makes it possible to create an efficient program for performing low power consumption control suitable for the purpose of the system.

【0016】請求項2に記載の半導体集積回路によれ
ば、回路ブロックに設定された割り込みを有効化する割
り込み有効制御を用いて直接クロック制御回路を開閉制
御することにより、割り込みに直接連動した低消費電力
制御を行うことが可能となる。
According to the semiconductor integrated circuit of the present invention, by directly opening and closing the clock control circuit using the interrupt enable control for enabling the interrupt set in the circuit block, a low level directly linked to the interrupt is achieved. Power consumption control can be performed.

【0017】請求項3に記載の半導体集積回路によれ
ば、システムの目的や状態に合わせて最適にグループ化
した複数個のクロック開閉状態を常に保持し、これをグ
ループ指定手段によって選択指定することにより、シス
テムの状況に応じた状態遷移をさらに容易に行うことが
可能になり、低消費電力制御を行う一層効率の良いプロ
グラム作成が可能となる。
According to the semiconductor integrated circuit of the present invention, a plurality of clock open / close states optimally grouped according to the purpose and state of the system are always held, and the clock open / close states are selected and designated by the group designating means. Accordingly, it is possible to more easily perform a state transition according to the state of the system, and it is possible to create a more efficient program for performing low power consumption control.

【0018】請求項4に記載の半導体集積回路によれ
ば、回路ブロックに設定された割り込みを有効化する割
り込み有効制御を用いてグループ化した複数個のクロッ
ク開閉制御設定の1つを選択指定することにより、割り
込みに連動したクロック開閉制御設定を常時保持するこ
とが可能になり、プログラムによるクロック開閉制御を
さらに簡略化することができ、割り込みに直接連動する
低消費電力制御を一層容易に行うことが可能となる。
According to the semiconductor integrated circuit of the present invention, one of a plurality of clock opening / closing control settings grouped by using interrupt enable control for enabling an interrupt set in a circuit block is selected and designated. This makes it possible to always maintain the clock opening / closing control setting linked to the interrupt, further simplify the clock opening / closing control by the program, and more easily perform the low power consumption control directly linked to the interrupt. Becomes possible.

【0019】[0019]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。図1は本発明の一実施の形
態に係る半導体集積回路のシステムクロック供給系統の
構成を示すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a system clock supply system of a semiconductor integrated circuit according to one embodiment of the present invention.

【0020】図1において、CPU部1、周辺回路の割
り込み制御を行う割り込み制御部2、クロック発生部
3、周辺回路用システムクロック(PERICLK)10、タ
イマーa14、タイマーb15、タイマーc16、タイ
マーd17、シリアルe18、シリアルf19は、それ
ぞれ図3に示した同一符号の各ブロックに対応し、それ
ぞれの機能も図3と同じである。また、タイマーa14
からタイマーd17までのタイマーの出力が順にカスケ
ード接続されている構成も図3の構成と同じである。
In FIG. 1, a CPU 1, an interrupt controller 2 for controlling interrupts of peripheral circuits, a clock generator 3, a system clock for a peripheral circuit (PERICLK) 10, a timer a14, a timer b15, a timer c16, a timer d17, The serial e18 and the serial f19 respectively correspond to the respective blocks having the same reference numerals shown in FIG. 3, and the respective functions are the same as those in FIG. Also, the timer a14
The configuration in which the outputs of the timers from to to the timer d17 are sequentially cascaded is the same as the configuration in FIG.

【0021】本発明に係る半導体集積回路は、さらに、
CPU部1及び割り込み制御部2の制御を受けるグルー
プ化制御回路11と、グループ化制御回路11からそれ
ぞれクロック開閉制御信号90、91、92、93、9
4、95を受け、クロック発生部3から供給されるシス
テムクロック10をオン又はオフにする開閉制御を個別
に行い、それぞれタイマーa14、タイマーb15、タ
イマーc16、タイマーd17、シリアルe18、シリ
アルf19にシステムクロックを供給するクロック制御
回路4、5、6、7、8、9と、を含むクロック制御ブ
ロック12を備える。なお、この個別のクロック開閉制
御は、低消費電力モードに限らず、通常動作モードにお
いても使用可能である。
The semiconductor integrated circuit according to the present invention further comprises:
A grouping control circuit 11 under the control of the CPU unit 1 and the interrupt control unit 2; and clock opening / closing control signals 90, 91, 92, 93, 9 from the grouping control circuit 11, respectively.
4 and 95, and individually performs opening / closing control to turn on or off the system clock 10 supplied from the clock generation unit 3, and controls the timer a14, timer b15, timer c16, timer d17, serial e18, and serial f19, respectively. A clock control block 12 including clock control circuits 4, 5, 6, 7, 8, 9 for supplying clocks; Note that this individual clock switching control can be used not only in the low power consumption mode but also in the normal operation mode.

【0022】図2は、グループ化制御回路11の構成を
示す回路図である。図中、20、21、22、23は、
それぞれ割り込み制御部2から供給されるタイマーb割
り込み有効制御、タイマーd割り込み有効制御、シリア
ルe割り込み有効制御及びシリアルf割り込み有効制御
である。タイマーb割り込み有効制御20は、タイマー
b15に設定した割り込みの発生をCPU部1が認識で
きるように割り込み有効化設定をした場合に有効になる
信号である。同様に、タイマーd割り込み有効制御21
はタイマーd17の割り込み有効化に、シリアルe割り
込み有効制御22はシリアルe18の割り込み有効化
に、シリアルf割り込み有効制御23はシリアルf19
の割り込み有効化に対応して、それぞれ有効になる信号
である。
FIG. 2 is a circuit diagram showing a configuration of the grouping control circuit 11. In the figure, 20, 21, 22, and 23 are:
These are timer b interrupt enable control, timer d interrupt enable control, serial e interrupt enable control, and serial f interrupt enable control supplied from the interrupt control unit 2, respectively. The timer b interrupt enable control 20 is a signal that is enabled when the interrupt enable setting is performed so that the CPU unit 1 can recognize the occurrence of the interrupt set in the timer b15. Similarly, timer d interrupt enable control 21
Is an interrupt enable of the timer d17, the serial e interrupt enable control 22 is an enable of the serial e18 interrupt, and the serial f interrupt enable control 23 is a serial f19 enable.
These signals are enabled in response to the interrupts being enabled.

【0023】さらに、図中、35、36、37、38
は、それぞれ1つのグループのクロック開閉制御設定を
保持するグループ開閉制御設定レジスタで、35はグル
ープA開閉制御設定レジスタ、36はグループB開閉制
御設定レジスタ、37はグループC開閉制御設定レジス
タ、38はグループD開閉制御設定レジスタであり、そ
れぞれタイマーa14、タイマーb15、タイマーc1
6及びタイマーd17並びにシリアルe18及びシリア
ルf19の各周辺回路へのクロック開閉制御設定の組み
合わせをグループ化して格納しておくことができる。図
示例では、これらのグループ開閉制御設定レジスタは8
ビットであり、各ビットがクロック制御回路4〜9のク
ロック開閉制御信号に対応している。
Further, in the figure, 35, 36, 37, 38
Is a group opening / closing control setting register for holding a clock opening / closing control setting of one group, 35 is a group A opening / closing control setting register, 36 is a group B opening / closing control setting register, 37 is a group C opening / closing control setting register, and 38 is a group opening / closing control setting register. Group D opening / closing control setting register, which includes a timer a14, a timer b15, and a timer c1, respectively.
6 and a combination of the timer d17 and the clock opening / closing control settings for the peripheral circuits of the serial e18 and the serial f19 can be grouped and stored. In the illustrated example, these group opening / closing control setting registers have eight registers.
Each of the bits corresponds to a clock opening / closing control signal of the clock control circuits 4 to 9.

【0024】さらに、各ビットの設定によりグループ開
閉制御設定レジスタ35、36、37、38の1つを指
定するグループ制御レジスタ30を備える。グループ制
御レジスタ30のグループA制御ビット、グループB制
御ビット、グループC制御ビット及びグループD制御ビ
ットの各ビット出力は、グループA、B、C、Dの各グ
ループ指定に対応し、それぞれ2入力ORゲート31、
32、33、34を介して、ANDゲートのグループ5
0〜57、60〜67、70〜77、80〜87に供給
される。そして、ANDゲートの各グループにより、グ
ループA開閉制御設定レジスタ35、グループB開閉制
御設定レジスタ36、グループC開閉制御設定レジスタ
37及びグループD開閉制御設定レジスタ38がそれぞ
れ選択される。
Further, there is provided a group control register 30 for designating one of the group opening / closing control setting registers 35, 36, 37, 38 by setting each bit. Each bit output of the group A control bit, the group B control bit, the group C control bit, and the group D control bit of the group control register 30 corresponds to each group designation of the groups A, B, C, and D. Gate 31,
Group 32 of AND gates via 32, 33, 34
0-57, 60-67, 70-77, 80-87. Then, a group A opening / closing control setting register 35, a group B opening / closing control setting register 36, a group C opening / closing control setting register 37, and a group D opening / closing control setting register 38 are selected by each group of the AND gates.

【0025】それぞれ一端にグループ制御レジスタ30
の各ビットが供給される2入力ORゲート31、32、
33、34の各他端には、割り込み制御部2からのタイ
マーb割り込み有効制御20、タイマーd割り込み有効
制御21、シリアルe割り込み有効制御22、シリアル
f割り込み有効制御23が供給され、ANDゲートの各
グループにより、グループA開閉制御設定レジスタ3
5、グループB開閉制御設定レジスタ36、グループC
開閉制御設定レジスタ37及びグループD開閉制御設定
レジスタ38がそれぞれ選択される。
A group control register 30 is provided at one end.
, Two-input OR gates 31, 32,
The other end of each of 33 and 34 is supplied with a timer b interrupt enable control 20, a timer d interrupt enable control 21, a serial e interrupt enable control 22, and a serial f interrupt enable control 23 from the interrupt control unit 2. Group A opening / closing control setting register 3
5, Group B opening / closing control setting register 36, Group C
The opening / closing control setting register 37 and the group D opening / closing control setting register 38 are selected.

【0026】クロック開閉制御信号90、91、92、
93、94、95は、グループA開閉制御設定レジスタ
35、グループB開閉制御設定レジスタ36、グループ
C開閉制御設定レジスタ37、グループD開閉制御設定
レジスタ38の各ビットの出力を4入力ORゲート40
〜47で出力合成した制御信号である。
The clock open / close control signals 90, 91, 92,
Reference numerals 93, 94, and 95 denote the output of each bit of the group A opening / closing control setting register 35, the group B opening / closing control setting register 36, the group C opening / closing control setting register 37, and the group D opening / closing control setting register 38 as a 4-input OR gate 40.
The control signals output and synthesized at # 47.

【0027】以上の様に構成された本実施形態のシステ
ムクロック供給系統について、以下、その動作を説明す
る。以下の説明において、ビット値の「1」は制御が有
効(オン)になることを示すものとする。
The operation of the system clock supply system of the present embodiment configured as described above will be described below. In the following description, a bit value “1” indicates that the control is valid (ON).

【0028】グループA開閉制御設定レジスタ35に上
位(ビット7側)から「00001111」を設定し、
グループB開閉制御設定レジスタ36〜グループD開閉
制御設定レジスタ38には「00000000」を設定
する。この設定後にグループ制御レジスタ30のグルー
プA制御ビットを有効にすることにより、タイマーa1
4からタイマーd17には周辺用システムクロック10
が供給され、シリアルe18及びシリアルf19には周
辺用システムクロック10が供給されないように制御さ
れる。
"00001111" is set in the group A opening / closing control setting register 35 from the upper bit (bit 7 side),
“00000000” is set in the group B opening / closing control setting register 36 to the group D opening / closing control setting register 38. By enabling the group A control bit of the group control register 30 after this setting, the timer a1
From 4 to the timer d17, the peripheral system clock 10
Is supplied, and the serial e18 and the serial f19 are controlled so that the peripheral system clock 10 is not supplied.

【0029】同様に、グループB開閉制御設定レジスタ
36からグループD開閉制御設定レジスタ38のレジス
タビットに任意の値を設定した後に、制御レジスタ30
の対応するビットをオンにすることにより、周辺回路ブ
ロックへの周辺用システムクロック10の供給制御を容
易に行うことができる。
Similarly, after an arbitrary value is set in the register bit of the group B opening / closing control setting register 38 from the group B opening / closing control setting register 36, the control register 30
By turning on the corresponding bit of, the supply control of the peripheral system clock 10 to the peripheral circuit block can be easily performed.

【0030】以上説明したように、各周辺回路ブロック
へのクロック供給又は停止状態が遷移する度に各周辺回
路用にクロック開閉制御の設定処理を行うのは煩雑なの
で、グループ化したクロック開閉制御設定を保持するグ
ループ開閉制御設定レジスタ群(グループA開閉制御設
定レジスタ35〜グループD開閉制御設定レジスタ3
8)を準備し、グループ制御レジスタ30のグループ指
定ビットを操作することで、プログラムによる設定変更
を容易にしている。
As described above, since it is complicated to perform the clock open / close control setting process for each peripheral circuit every time the clock supply to each peripheral circuit block or the stop state changes, the clock open / close control setting is grouped. Group of opening / closing control setting registers (group A opening / closing control setting register 35 to group D opening / closing control setting register 3
8) is prepared and the setting change by the program is facilitated by operating the group designation bit of the group control register 30.

【0031】また、割り込み制御部2からの割り込み有
効制御を利用する適用例として、タイマーa14とタイ
マーb15とをカスケード接続して使用し、かつ、この
2つのタイマー以外は動作させる必要がない状態が生ず
る場合を想定する。この場合、グループA開閉制御設定
レジスタ35に「00000011」を予めセットした
上で、タイマーb15の割り込みをCPU部1に認識さ
せる割り込み有効化設定を行うと、タイマーb割り込み
有効制御20によりグループA開閉制御設定レジスタ3
5が選択されるため、あらためてグループ制御レジスタ
30のグループA制御ビットを有効にする操作をするこ
とが不要になる。
As an application example of using the interrupt validity control from the interrupt control unit 2, there is a state in which a timer a14 and a timer b15 are cascaded and used, and it is not necessary to operate other than these two timers. It is assumed that it occurs. In this case, if “00000011” is set in advance in the group A opening / closing control setting register 35 and the interrupt enable setting for recognizing the interrupt of the timer b15 to the CPU unit 1 is performed, the group A opening / closing control 20 is performed by the timer b interrupt enable control 20. Control setting register 3
Since 5 is selected, it is not necessary to perform an operation for validating the group A control bit of the group control register 30 again.

【0032】このように、割り込み制御部2からの割り
込み有効制御を効果的に利用することにより、プログラ
ムによる設定制御をさらに簡略化することが可能とな
る。同様に、タイマーc16とタイマーd17とをカス
ケード接続する場合、タイマーa14からタイマーd1
7までをカスケード接続する場合、シリアルe18を使
用する場合、シリアルf19を使用する場合、或いはそ
れぞれの使用及び未使用の組み合わせに適する状態をグ
ループA開閉制御設定レジスタ35からグループD開閉
制御設定レジスタ38に設定しておくことにより、ソフ
ト設定の煩雑さを最小限に抑えた上で、システムの低消
費電力化を図ることが可能となる。
As described above, by effectively utilizing the interrupt validity control from the interrupt control unit 2, the setting control by the program can be further simplified. Similarly, when the timer c16 and the timer d17 are cascaded, the timer a14 to the timer d1
7, the serial e18 is used, the serial f19 is used, or a state suitable for each used and unused combination is determined from the group A opening / closing control setting register 35 to the group D opening / closing control setting register 38. , It is possible to reduce the power consumption of the system while minimizing the complexity of software setting.

【0033】以上、本実施形態に示した制御回路の動作
は1チップマイコン等の動作モードに依存しないので、
低消費電力モード時だけでなく、通常動作モード時にお
いても、未使用の周辺回路へのクロック供給を制限する
ことによってシステムの低消費電力を図ることが可能と
なる。
As described above, since the operation of the control circuit shown in this embodiment does not depend on the operation mode of the one-chip microcomputer or the like,
In the normal operation mode as well as in the low power consumption mode, it is possible to reduce the power consumption of the system by restricting the clock supply to unused peripheral circuits.

【0034】また、CPU部1が停止しているときも周
辺回路のタイマーやシリアルにはシステムクロックが供
給されて動作するスタンバイモードを持つマイコンも存
在するが、本実施形態に示した制御回路は、このような
スタンバイモードにおいても、必要最低限の周辺回路に
対して周辺用システムクロック10を供給制御するよう
にして適用することができる。
Also, there are microcomputers having a standby mode in which the system clock is supplied to the timers and serials of the peripheral circuits even when the CPU unit 1 is stopped, but the control circuit shown in this embodiment is Also in such a standby mode, the present invention can be applied by controlling the supply of the peripheral system clock 10 to the minimum necessary peripheral circuits.

【0035】[0035]

【発明の効果】以上説明したように、本発明によれば、
システムの目的や状態に合わせて最適にグループ化した
クロック開閉状態を1つあるいは複数の保持し、この設
定に従ってクロック制御回路を開閉制御することによ
り、システムの目的に適合した低消費電力制御を行う効
率の良いプログラム作成が可能となる。
As described above, according to the present invention,
One or more clock opening / closing states optimally grouped according to the purpose and state of the system are held, and the clock control circuit is opened / closed in accordance with this setting, thereby performing low power consumption control suitable for the purpose of the system. An efficient program can be created.

【0036】さらに、本発明によれば、回路ブロックに
設定された割り込みを有効化する割り込み有効制御を用
いて、直接クロック制御回路を開閉制御したり、グルー
プ化した複数個のクロック開閉状態の1つを選択指定す
ることにより、割り込みに直接連動した低消費電力制御
を行うことが可能となり、プログラムによるクロック開
閉制御をさらに簡略化することができる。
Further, according to the present invention, the clock control circuit is directly opened and closed using interrupt enable control for enabling an interrupt set in a circuit block, or one of a plurality of clock open / close states is grouped. By selectively specifying one of them, it is possible to perform low power consumption control directly linked to the interrupt, and it is possible to further simplify the clock switching control by the program.

【0037】このように、本発明によれば、1チップマ
イコン等を使ったシステムにおいて、通常動作モード時
や低消費電力モード時に、簡易な設定を行うだけで低消
費電力制御に最適な状態を任意に選択実施でき、消費電
力の低減を柔軟に図ることができる半導体集積回路を提
供することができる。
As described above, according to the present invention, in a system using a one-chip microcomputer or the like, in a normal operation mode or a low power consumption mode, an optimum state for low power consumption control can be obtained by performing simple settings. A semiconductor integrated circuit that can be arbitrarily selected and implemented and can flexibly reduce power consumption can be provided.

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

【図1】本発明の一実施の形態に係わる半導体集積回路
のシステムクロック供給系統の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of a system clock supply system of a semiconductor integrated circuit according to an embodiment of the present invention.

【図2】グループ化制御回路の構成例を示す回路図であ
る。
FIG. 2 is a circuit diagram illustrating a configuration example of a grouping control circuit.

【図3】従来の1チップマイコンにおけるシステムクロ
ック供給系統の構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a system clock supply system in a conventional one-chip microcomputer.

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

1 CPU部 2 割り込み制御部 3 クロック発生部 4、5、6、7、8、9 クロック制御回路 10 周辺回路用システムクロック(PERICLK) 11 グループ化制御回路 12 クロック制御ブロック 14 タイマーa 15 タイマーb 16 タイマーc 17 タイマーd 18 シリアルe 19 シリアルf 20 タイマーb割り込み有効制御 21 タイマーd割り込み有効制御 22 シリアルe割り込み有効制御 23 シリアルf割り込み有効制御 30 グループ制御レジスタ 31、32、33、34 2入力ORゲート 35 グループA開閉制御設定レジスタ 36 グループB開閉制御設定レジスタ 37 グループC開閉制御設定レジスタ 38 グループD開閉制御設定レジスタ 40〜47 4入力ORゲート 50〜57、60〜67、70〜77、80〜87 A
NDゲート 90 タイマーaクロック開閉制御信号 91 タイマーbクロック開閉制御信号 92 タイマーcクロック開閉制御信号 93 タイマーdクロック開閉制御信号 94 シリアルeクロック開閉制御信号 95 シリアルfクロック開閉制御信号
DESCRIPTION OF SYMBOLS 1 CPU part 2 Interrupt control part 3 Clock generation part 4, 5, 6, 7, 8, 9 Clock control circuit 10 System clock for peripheral circuits (PERICLK) 11 Grouping control circuit 12 Clock control block 14 Timer a 15 Timer b 16 Timer c 17 Timer d 18 Serial e 19 Serial f 20 Timer b interrupt enable control 21 Timer d interrupt enable control 22 Serial e interrupt enable control 23 Serial f interrupt enable control 30 Group control register 31, 32, 33, 34 2-input OR gate 35 Group A opening / closing control setting register 36 Group B opening / closing control setting register 37 Group C opening / closing control setting register 38 Group D opening / closing control setting register 40-474 4-input OR gate 50-57, 60-67, 70-77, 80- 87 A
ND gate 90 Timer a clock switching control signal 91 Timer b clock switching control signal 92 Timer c clock switching control signal 93 Timer d clock switching control signal 94 Serial e clock switching control signal 95 Serial f clock switching control signal

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数個の回路ブロックにシステムクロッ
クを供給する半導体集積回路において、 前記複数個の回路ブロックに対する前記システムクロッ
クの供給をそれぞれ開閉制御する複数個のクロック制御
回路と、 前記複数個のクロック制御回路の開閉制御状態がグルー
プ化して設定され、設定された開閉制御状態に応じて前
記複数個のクロック制御回路の開閉制御を個別に制御す
るクロック開閉制御信号を生成する制御回路と、を具備
したことを特徴とする半導体集積回路。
1. A semiconductor integrated circuit for supplying a system clock to a plurality of circuit blocks, comprising: a plurality of clock control circuits for controlling opening and closing of the supply of the system clock to the plurality of circuit blocks; A control circuit that generates a clock opening / closing control signal that individually controls the opening / closing control of the plurality of clock control circuits according to the set opening / closing control state. A semiconductor integrated circuit, comprising:
【請求項2】 前記クロック開閉制御信号が、前記制御
回路に設定された開閉制御状態に応じて生成されるだけ
でなく、前記複数個の回路ブロックに設定された割り込
みを有効化する割り込み有効制御に応じて生成されるこ
とを特徴とする請求項1に記載の半導体集積回路。
2. An interrupt enable control for not only generating the clock open / close control signal according to the open / close control state set in the control circuit but also enabling an interrupt set in the plurality of circuit blocks. 2. The semiconductor integrated circuit according to claim 1, wherein the semiconductor integrated circuit is generated according to the following.
【請求項3】 前記制御回路が、 前記クロック制御回路の開閉制御状態をグループ単位で
保持する複数個の保持手段と、 前記複数個の保持手段の何れか1つを指定する指定手段
と、 指定された保持手段に保持されている開閉制御状態に応
じて前記クロック開閉制御信号を生成する手段と、を具
備したことを特徴とする請求項1又は請求項2に記載の
半導体集積回路。
3. The control circuit, comprising: a plurality of holding units for holding an open / close control state of the clock control circuit in a group unit; a designation unit for designating any one of the plurality of holding units; 3. The semiconductor integrated circuit according to claim 1, further comprising: means for generating the clock switching control signal in accordance with the switching control state held by the holding means.
【請求項4】 さらに、前記複数個の保持手段を、前記
指定手段により指定するだけでなく、前記複数個の回路
ブロックに設定された割り込みを有効化する割り込み有
効制御に応じて指定する手段を具備したことを特徴とす
る請求項3に記載の半導体集積回路。
4. A means for designating the plurality of holding means not only by the designating means but also according to interrupt enable control for enabling an interrupt set in the plurality of circuit blocks. 4. The semiconductor integrated circuit according to claim 3, comprising:
JP2001002677A 2001-01-10 2001-01-10 Semiconductor integrated circuit Pending JP2002207531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001002677A JP2002207531A (en) 2001-01-10 2001-01-10 Semiconductor integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001002677A JP2002207531A (en) 2001-01-10 2001-01-10 Semiconductor integrated circuit

Publications (1)

Publication Number Publication Date
JP2002207531A true JP2002207531A (en) 2002-07-26

Family

ID=18871145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001002677A Pending JP2002207531A (en) 2001-01-10 2001-01-10 Semiconductor integrated circuit

Country Status (1)

Country Link
JP (1) JP2002207531A (en)

Similar Documents

Publication Publication Date Title
JP2000181566A (en) Multiclock parallel processor
US20030079152A1 (en) Microprocessor with multiple low power modes and emulation apparatus for said microprocessor
KR101981723B1 (en) Microcontroller with configurable logic array
CN109948200B (en) Low-power-consumption processor for fine-grained control of power supply
US6381705B1 (en) Method and device for reducing current consumption of a microcontroller
US5606715A (en) Flexible reset configuration of a data processing system and method therefor
KR100247582B1 (en) Clock signal control system
JP2002207531A (en) Semiconductor integrated circuit
JP4831899B2 (en) Semiconductor integrated circuit and clock control method
JPS62145458A (en) Microcomputer
JP3779073B2 (en) Clock control device
JP2002325459A (en) Pulse width modulation signal generator
KR930005648B1 (en) Input switching circuit
JPH08249083A (en) Electronic apparatus
JPH09231195A (en) Micro computer
JP2003296296A (en) Microcontroller
KR0174356B1 (en) Personal computer power control method and apparatus
JPS63100522A (en) Control method for clock signal supply in data processor
JP3977894B2 (en) Data processing system and flexible reset setting method
JP2004234047A (en) Electronic circuit and assembler
KR100272531B1 (en) Method for prohibitting exhaust of power source in electronic equipment
JP2002150787A (en) Semiconductor integrated circuit
JPH11305887A (en) Method for controlling microcontroller and microcontroller
JPS60263523A (en) Microprocessor
JPS6275822A (en) Computer system