[go: up one dir, main page]

JP2013016012A - Microcomputer - Google Patents

Microcomputer Download PDF

Info

Publication number
JP2013016012A
JP2013016012A JP2011148214A JP2011148214A JP2013016012A JP 2013016012 A JP2013016012 A JP 2013016012A JP 2011148214 A JP2011148214 A JP 2011148214A JP 2011148214 A JP2011148214 A JP 2011148214A JP 2013016012 A JP2013016012 A JP 2013016012A
Authority
JP
Japan
Prior art keywords
resource
power
signal
control unit
resources
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.)
Granted
Application number
JP2011148214A
Other languages
Japanese (ja)
Other versions
JP5917031B2 (en
Inventor
Eiji Minamizono
英治 南薗
Tatsuro Yamashita
達郎 山下
Takeshi Murakami
武司 村上
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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor 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 Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2011148214A priority Critical patent/JP5917031B2/en
Publication of JP2013016012A publication Critical patent/JP2013016012A/en
Application granted granted Critical
Publication of JP5917031B2 publication Critical patent/JP5917031B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Microcomputers (AREA)
  • Power Sources (AREA)

Abstract

【課題】リソースでの無駄な消費電力を削減することができるマイクロコンピュータを提供することを目的とする。
【解決手段】外部から電源を供給されるマイクロコンピュータにおいて,それぞれの所定の機能を有し,外部から供給される前記電源の起動時に電源が供給されない複数のリソースと,前記複数のリソースにバスを介して接続され,前記リソースに前記バスを介してアクセス信号を供給する制御ユニットと,前記複数のリソースにそれぞれ設けられ,電源起動信号に応答して外部から供給される前記電源から対応するリソースにリソース内電源を供給する複数のリソース内電源供給部と,前記複数のリソースにそれぞれ設けられ,前記バスを介して供給されるアクセス信号が対応するリソース宛か否かを検知し,前記アクセス信号が対応するリソース宛の場合に前記電源起動信号を対応するリソース内電源供給部に出力できる電源制御部とを有する。
【選択図】 図4
An object of the present invention is to provide a microcomputer capable of reducing wasteful power consumption in resources.
In a microcomputer to which power is supplied from outside, each of the plurality of resources has a predetermined function and is not supplied with power when the power supplied from outside is activated, and a bus is connected to the plurality of resources. A control unit for supplying an access signal to the resource via the bus, and a plurality of resources provided to the corresponding resource from the power source supplied from the outside in response to a power activation signal. A plurality of in-resource power supply units for supplying in-resource power, and each of the plurality of resources, detecting whether an access signal supplied via the bus is addressed to a corresponding resource, and the access signal is A power control unit capable of outputting the power activation signal to a corresponding in-resource power supply unit when addressed to a corresponding resource; To.
[Selection] Figure 4

Description

本発明は,マイクロコンピュータに関する。   The present invention relates to a microcomputer.

近年,半導体集積回路は,リーク電流等による消費電力を削減することが要求されている。例えば,汎用マイクロコンピュータ(マイコン)は多数のリソースを搭載しており,多様なユーザの用途に応えられるように構成されている。ただし,多数のリソースの中にはユーザの用途によっては動作が不要なリソースも含まれている。低消費電力の策が何も講じられていないと,マイクロコンピュータの電源を起動した時,動作が不要なリソースでも電流が無駄に消費されてしまう。   In recent years, semiconductor integrated circuits are required to reduce power consumption due to leakage current and the like. For example, general-purpose microcomputers (microcomputers) are equipped with a large number of resources and are configured to meet the needs of various users. However, many resources include resources that do not need to be operated depending on the user's purpose. If no measures for low power consumption are taken, when the microcomputer power is turned on, even resources that do not require operation are wasted.

通常,マイクロコンピュータは,入力待ち状態や動作が必要ない時には内部動作を停止させるスタンバイ機能を有している。スタンバイ状態では,RAM等の限られたリソースのみに電源を供給し,CPUを含めて他の大部分のリソースへの電源が遮断される。しかし,通常動作状態では全てのリソースに電源が供給されるため,ユーザの用途では動作が不要なリソースまで電源が供給され無駄な消費電力を招いている。   Usually, the microcomputer has a standby function for stopping the internal operation when an input waiting state or operation is not required. In the standby state, power is supplied only to limited resources such as RAM, and power to most other resources including the CPU is shut off. However, since power is supplied to all resources in the normal operation state, power is supplied to resources that do not require operation in the user's application, causing unnecessary power consumption.

そこで,動作が不要なリソースの消費電力を削減する手段として,不要なリソースへのクロック供給を停止して消費電力を低減する技術(特許文献1,特許文献2),外部からの受信信号に応答して,動作が不要なリソースへの電源を遮断または減少させる技術(特許文献3),レジスタに予め動作が不要なリソースを登録しておき,電源起動後,CPUからの電源遮断信号を電源遮断制御回路へ出力し,動作が不要なリソースの電源を遮断する技術(特許文献4)等が提案されている。   Therefore, as means for reducing the power consumption of resources that do not need to be operated, technologies for reducing the power consumption by stopping the clock supply to unnecessary resources (Patent Document 1, Patent Document 2), responding to received signals from the outside Then, technology to shut down or reduce the power to resources that do not require operation (Patent Document 3), register resources that do not require operation in the register in advance, and power off the power off signal from the CPU A technique (Patent Document 4) that outputs power to a control circuit and shuts off the power supply of resources that do not require operation has been proposed.

特開平04−127210号公報JP 04-127210 A 特開平05−324871号公報Japanese Patent Laid-Open No. 05-324871 特告昭57−028124号公報Japanese Patent Publication No. 57-028124 特開昭63−126018号公報JP 63-12618 A

しかしながら,マイクロコンピュータの電源起動後電源遮断制御回路へ電源遮断信号が出力されるまでの間は,不要なリソースにも電源が供給されるので,無駄な消費電力が発生する。また,特許文献4に記載された発明では,不要なリソースを予め決めておく必要があり,必ずしも動作状況に応じて不要なリソースの電源を遮断することはできない。   However, since power is supplied to unnecessary resources until the power cut-off signal is output to the power cut-off control circuit after the microcomputer is turned on, unnecessary power consumption occurs. Further, in the invention described in Patent Document 4, it is necessary to determine unnecessary resources in advance, and it is not always possible to cut off the power supply of unnecessary resources according to the operation status.

そこで,本発明は,できるだけリソースでの無駄な消費電力を削減することができるマイクロコンピュータを提供することを目的とする。   Accordingly, an object of the present invention is to provide a microcomputer that can reduce wasteful power consumption in resources as much as possible.

上記の目的を達成するために,本発明の第1の側面によれば,外部から電源を供給されるマイクロコンピュータにおいて,
それぞれの所定の機能を有し,外部から供給される前記電源の起動時に電源が供給されない複数のリソースと,
前記複数のリソースにバスを介して接続され,前記リソースに前記バスを介してアクセス信号を供給する制御ユニットと,
前記複数のリソースにそれぞれ設けられ,電源起動信号に応答して外部から供給される前記電源から対応するリソースにリソース内電源を供給する複数のリソース内電源供給部と,
前記複数のリソースにそれぞれ設けられ,前記バスを介して供給されるアクセス信号が対応するリソース宛か否かを検知し,
前記アクセス信号が対応するリソース宛の場合に前記電源起動信号を対応するリソース内電源供給部に出力できる電源制御部とを有する。
In order to achieve the above object, according to a first aspect of the present invention, in a microcomputer supplied with power from outside,
A plurality of resources each having a predetermined function, to which power is not supplied when the power supplied from outside is activated;
A control unit connected to the plurality of resources via a bus and supplying an access signal to the resources via the bus;
A plurality of in-resource power supply units that are respectively provided in the plurality of resources and that supply in-resource power to the corresponding resources from the power supplied from outside in response to a power activation signal;
Each of the plurality of resources is provided to detect whether an access signal supplied via the bus is addressed to a corresponding resource;
A power control unit capable of outputting the power activation signal to the corresponding in-resource power supply unit when the access signal is addressed to the corresponding resource.

第1の側面によれば,マイクロコンピュータの電源起動時に動作が不要なリソースの消費電力を削減することができる。   According to the first aspect, it is possible to reduce the power consumption of resources that do not require operation when the microcomputer is powered on.

本実施の形態におけるマイクロコンピュータの構成図である。It is a block diagram of the microcomputer in this Embodiment. マイクロコンピュータの電源起動後,制御ユニットから電源起動時に電源が供給されていないリソースにアクセスがあった場合の状態図である。FIG. 5 is a state diagram when a resource to which power is not supplied is accessed from the control unit after power-on of the microcomputer. 本実施の形態における消費電力削減効果を示す図である。It is a figure which shows the power consumption reduction effect in this Embodiment. 第1の実施の形態における電源制御部とリソース内電源供給部の回路図である。FIG. 3 is a circuit diagram of a power control unit and an in-resource power supply unit in the first embodiment. リソース内電源起動時の電源ステータスを示す図である。It is a figure which shows the power status at the time of the power supply in a resource starting. 第1の実施の形態における電源制御部の動作を示すフローチャート図である。It is a flowchart figure which shows operation | movement of the power supply control part in 1st Embodiment. 第1の実施の形態におけるタイムチャートを示す図である。It is a figure which shows the time chart in 1st Embodiment. 第2の実施の形態における電源制御部とリソース内電源供給部の回路図である。FIG. 10 is a circuit diagram of a power control unit and an in-resource power supply unit according to the second embodiment. 第2の実施の形態における電源制御部の動作を示すフローチャート図である。It is a flowchart figure which shows operation | movement of the power supply control part in 2nd Embodiment. 第2の実施の形態におけるタイムチャートを示す図である。It is a figure which shows the time chart in 2nd Embodiment. 第2の実施の形態におけるカー・エリア・ネットワーク通信機器ユニットと波形ジェネレータユニットの電源供給動作を示すフローチャート図である。It is a flowchart figure which shows the power supply operation | movement of the car area network communication apparatus unit and waveform generator unit in 2nd Embodiment. 第3の実施の形態における電源制御部とリソース内電源供給部の回路図である。FIG. 10 is a circuit diagram of a power control unit and an in-resource power supply unit according to the third embodiment. 第3の実施の形態における電源制御部の動作を示すフローチャート図である。It is a flowchart figure which shows operation | movement of the power supply control part in 3rd Embodiment. 第3の実施の形態におけるタイムチャートを示す図である。It is a figure which shows the time chart in 3rd Embodiment. 第4の実施の形態における電源制御部とリソース内電源供給部の回路図である。FIG. 10 is a circuit diagram of a power control unit and an in-resource power supply unit in a fourth embodiment. 第4の実施の形態における電源制御部の動作を示すフローチャート図である。It is a flowchart figure which shows operation | movement of the power supply control part in 4th Embodiment. 第4の実施の形態におけるタイムチャートを示す図である。It is a figure which shows the time chart in 4th Embodiment.

以下,図面を用いて本発明の実施の形態について説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は,本実施の形態におけるマイクロコンピュータの構成図である。図1のマイクロコンピュータは,CPU1,オンチップデバッグ機能を提供するデバッグサポートユニット2,プログラム用の不揮発性半導体メモリ3,RAM4,6,ダイレクトメモリアクセス(DMA)コントローラ5,データ記憶用の不揮発性半導体メモリ7,カー・エリア・ネットワーク(CAN)用通信機器ユニット8,クロック生成回路9,UART等複数機能を有するマルチファンクションシリアル10,外部割込みユニット11,22,アウトプットコンペアユニット12,フリーランタイマ13,インプットキャプチャユニット14,ウォッチドッグタイマユニット15,任意の波形を生成する波形ジェネレータユニット16,LIN−UART17,リロードタイマユニット18,アップダウンカウンタ19,A/Dコンバータ20,D/Aコンバータ21,リアルタイムクロックユニット23,32ビット幅の高速内部バス24,内部バスインターフェース25,32ビット幅の周辺バスインターフェース26,16ビット幅の周辺バスインターフェース27,バスb1,b2,b3などを有する。   FIG. 1 is a configuration diagram of a microcomputer according to this embodiment. 1 includes a CPU 1, a debug support unit 2 that provides an on-chip debugging function 2, a nonvolatile semiconductor memory 3 for a program 3, a RAM 4, 6, a direct memory access (DMA) controller 5, and a nonvolatile semiconductor for data storage. Memory 7, car area network (CAN) communication device unit 8, clock generation circuit 9, multifunction serial 10 having multiple functions such as UART, external interrupt units 11, 22, output compare unit 12, free-run timer 13 , Input capture unit 14, watchdog timer unit 15, waveform generator unit 16 for generating an arbitrary waveform, LIN-UART 17, reload timer unit 18, up / down counter 19, A / D counter Converter 20, D / A converter 21, real-time clock unit 23, 32-bit wide high-speed internal bus 24, internal bus interface 25, 32-bit wide peripheral bus interface 26, 16-bit wide peripheral bus interface 27, buses b1, b2 , B3 and the like.

つまり,図1のマイクロコンピュータは,CPU1やDMAコントローラ5などの制御ユニットと,プログラム用の不揮発性半導体メモリ3やRAM4に加えて,上記のユニット等の所定の機能を有し制御ユニットからアクセスされて制御される多数のリソースを有している。この制御ユニットと多数のリソースは,バスインターフェース24,25,26とバスb1,b2,b3とを介して接続され,CPU1やDMAコントローラ5などの制御ユニットから各リソースへバスを介してアクセス信号が供給されると,アクセス信号を供給されたリソースは動作を行って所定の機能を実現する。また,マイクロコンピュータを起動させるために,図示しない外部電源よりマイクロコンピュータに電源が供給される。   That is, the microcomputer shown in FIG. 1 has a predetermined function such as the above unit in addition to the control unit such as the CPU 1 and the DMA controller 5 and the nonvolatile semiconductor memory 3 and RAM 4 for the program, and is accessed from the control unit. Has a number of resources that are controlled by The control unit and a large number of resources are connected via bus interfaces 24, 25, and 26 and buses b1, b2, and b3, and an access signal is transmitted from the control unit such as the CPU 1 or the DMA controller 5 to each resource via the bus. When supplied, the resource supplied with the access signal operates to realize a predetermined function. In order to start the microcomputer, power is supplied to the microcomputer from an external power source (not shown).

本実施の形態のマイクロコンピュータでは,電源を起動したときに,電源起動時に動作する必要のないリソースには電源を供給しない。図1では,一例として,デバッグサポートユニット2,FLASH7,カー・エリア・ネットワーク用通信機器ユニット8,マルチファンクションシリアル10,アウトプットコンペアユニット12,フリーランタイマ13,インプットキャプチャユニット14,波形ジェネレータユニット16,LIN−UART17,リロードタイマユニット18,アップダウンカウンタ19らが,電源起動時に動作が不要なリソースとして,電源を供給されていない。したがって,マイクロコンピュータの電源起動時には,CPU1とDMAコントローラ5などの制御ユニットと上記以外のリソースにだけ電源が供給される。   In the microcomputer according to the present embodiment, when the power is activated, the power is not supplied to resources that do not need to operate when the power is activated. In FIG. 1, as an example, the debug support unit 2, FLASH 7, car area network communication device unit 8, multifunction serial 10, output compare unit 12, free-run timer 13, input capture unit 14, waveform generator unit 16 , LIN-UART 17, reload timer unit 18, up / down counter 19, etc. are not supplied with power as resources that do not need to be operated when the power is activated. Accordingly, when the microcomputer is powered on, power is supplied only to control units such as the CPU 1 and the DMA controller 5 and resources other than those described above.

一方,本実施の形態では,図1に示すように,マイクロコンピュータは,上記の電源起動時に動作が不要なリソースとバスb1,b2,b3との間には,CPU1やDMAコントローラ5などの制御ユニットから対応するリソースへのアクセス信号を検知する電源制御部28〜38と,対応するリソースへ電源を供給するリソース内電源供給部39〜49を有する。本実施の形態では,リソース内電源供給部39〜49は,例えばマイクロコンピュータ内の電源配線とリソース内の電源配線とを接続するパワースイッチである。   On the other hand, in the present embodiment, as shown in FIG. 1, the microcomputer controls the CPU 1 and the DMA controller 5 between the above-described resources that do not need to be operated when the power is turned on and the buses b1, b2, and b3. There are power control units 28 to 38 for detecting an access signal to the corresponding resource from the unit, and in-resource power supply units 39 to 49 for supplying power to the corresponding resource. In the present embodiment, the in-resource power supply units 39 to 49 are, for example, power switches that connect the power supply wiring in the microcomputer and the power supply wiring in the resource.

図2は,マイクロコンピュータの電源起動後,制御ユニットから電源起動時に電源が供給されていないリソースにアクセスがあった場合の状態図である。図2では,電源制御部30,32,33,35,37が対応するリソースへのアクセス信号を検知した場合は,電源制御部30,32,33,35,37はパワースイッチであるリソース内電源供給部41,43,44,46,48へ電源起動信号を出力する。そして,リソース内電源供給部41,43,44,46,48は,電源起動信号に応答して,内部のパワースイッチをオンにし,対応するリソースであるカー・エリア・ネットワーク用通信機器ユニット8,アウトプットコンペアユニット12,フリーランタイマ13,波形ジェネレータユニット16,リロードタイマ18にそれぞれ電源を供給する。   FIG. 2 is a state diagram when a resource that is not supplied with power is accessed from the control unit after the microcomputer is powered on. In FIG. 2, when the power control units 30, 32, 33, 35, and 37 detect access signals to the corresponding resources, the power control units 30, 32, 33, 35, and 37 are power switches in the resource. A power activation signal is output to the supply units 41, 43, 44, 46, and 48. Then, the in-resource power supply units 41, 43, 44, 46, and 48 turn on the internal power switch in response to the power activation signal, and the car area network communication device unit 8, which is the corresponding resource, Power is supplied to the output compare unit 12, the free-run timer 13, the waveform generator unit 16, and the reload timer 18, respectively.

例えば,図2中に破線で示されるとおり,CPU1からカー・エリア・ネットワーク用通信機器ユニット8へアクセス信号が出力された場合,そのリソースの電源制御部30がそのアクセス信号を検知してリソース内電源供給部41へ電源起動信号を出力する。そして,リソース内電源供給部41はその電源起動信号に応答してカー・エリア・ネットワーク用通信機器ユニット8に電源を供給する。図2では,リソース12,13,16,18も同様に制御ユニットからのアクセス信号に応答して電源が供給開始されている。このように,マイクロコンピュータの電源起動時には必ずしも全てのリソースに電源を供給せず,その後制御ユニットからアクセスされたリソースにだけ電源を供給する。   For example, as shown by a broken line in FIG. 2, when an access signal is output from the CPU 1 to the communication device unit 8 for car area network, the power control unit 30 of the resource detects the access signal and A power activation signal is output to the power supply unit 41. Then, the in-resource power supply unit 41 supplies power to the car area network communication device unit 8 in response to the power activation signal. In FIG. 2, the resources 12, 13, 16, and 18 are similarly started to supply power in response to an access signal from the control unit. As described above, when the microcomputer is powered on, power is not necessarily supplied to all resources, and then power is supplied only to resources accessed from the control unit.

図3は,本実施の形態における消費電力削減効果を示す図である。図3のグラフは,縦軸を電流,横軸を時間として,マイクロコンピュータの動作状態に対する消費電流の遷移を示すグラフである。また,本実施の形態の効果を示すために,2つの比較例が併せて記載されている。   FIG. 3 is a diagram showing the power consumption reduction effect in the present embodiment. The graph of FIG. 3 is a graph showing the transition of current consumption with respect to the operating state of the microcomputer, with the vertical axis representing current and the horizontal axis representing time. Moreover, in order to show the effect of this Embodiment, the two comparative examples are described collectively.

比較例1のグラフは,マイクロコンピュータの電源起動とともに全てのリソースに電源を供給した場合の消費電流の遷移を示す。比較例1では,マイクロコンピュータに電源が供給された時間T0から,電源が遮断された時間T10までの間に,電力W1が消費されている。   The graph of Comparative Example 1 shows the transition of current consumption when power is supplied to all resources as the microcomputer is powered on. In Comparative Example 1, power W1 is consumed from time T0 when power is supplied to the microcomputer to time T10 when power is shut off.

比較例2のグラフは,マイクロコンピュータの電源起動とともに全てのリソースに電源を供給し,その後不要なリソースの電源を遮断した場合の消費電流の遷移を示す。比較例2では,時間T0にマイクロコンピュータに電源を供給開始した後,時間T1からT2までの間に,複数の不要なリソースの電源を順に遮断し,時間T10でマイクロコンピュータの電源を遮断している。その結果,時間T0からT10までに電力W2が消費され,比較例1よりもΔW21=W1−W2の消費電力削減効果が得られている。   The graph of Comparative Example 2 shows the transition of current consumption when power is supplied to all resources when the microcomputer is powered on, and then the power of unnecessary resources is shut off. In Comparative Example 2, after the power supply to the microcomputer is started at time T0, the power of a plurality of unnecessary resources is sequentially cut off between time T1 and T2, and the microcomputer is turned off at time T10. Yes. As a result, the power W2 is consumed from time T0 to T10, and a power consumption reduction effect of ΔW21 = W1−W2 is obtained as compared with Comparative Example 1.

一方,本実施の形態では,時間T0にマイクロコンピュータに電源を供給開始した時には,電源起動時に動作不要な複数のリソースには電源の供給をせず,電源起動後の通常動作状態中の時間T1からT2までの間に,制御ユニットからアクセス信号を供給されたリソースのみに電源を供給し,時間T10でマイクロコンピュータの電源が遮断されている。そのため,まず電源起動時の消費電力は比較例1,2よりも少なく,時間T0から最初にリソースがアクセスされる時間T1までの間,少ない消費電力状態になっている。その結果,時間T0からT10までの消費電力W3は,比較例1よりもΔW31=W1−W3だけ削減され,さらに,比較例2よりもΔW32=W2−W3だけ削減されている。   On the other hand, in this embodiment, when power supply to the microcomputer is started at time T0, power is not supplied to a plurality of resources that do not require operation at the time of power activation, and time T1 during the normal operation state after power activation. From time T2 to time T2, power is supplied only to the resource to which the access signal is supplied from the control unit, and the microcomputer is turned off at time T10. For this reason, the power consumption at the time of starting the power source is less than that of the first and second comparative examples, and the power consumption state is low from the time T0 to the time T1 when the resource is first accessed. As a result, the power consumption W3 from time T0 to T10 is reduced by ΔW31 = W1−W3 from the first comparative example, and further by ΔW32 = W2−W3 from the second comparative example.

このように,マイクロコンピュータの電源起動時に動作が不要なリソースについては,電源起動時には電源を供給せず,電源起動後の動作中に制御ユニットからアクセスがあった場合にそのリソースには電源を供給することによって,削減可能な消費電力をより大きくすることができる。   In this way, for resources that do not require operation when the microcomputer power is turned on, power is not supplied when the power is turned on, and power is supplied to the resources when accessed from the control unit during operation after power is turned on. By doing so, the power consumption that can be reduced can be increased.

[第1の実施の形態]
上記の通り,第1の実施の形態では,マイクロコンピュータの電源起動時はCPU1などの制御ユニットと最低限必要なリソースのみ電源が起動され,起動後においてCPU1などの制御ユニットからアクセス信号を供給されたリソースが,そのアクセス信号に応答してリソース内電源を供給される。制御ユニットは単にアクセス信号を供給すればよく,どのリソースがリソース内に電源を供給されているか否かを予め確認する必要はない。そのために,各リソースは,電源スイッチであるリソース内電源供給部と電源制御部とを有する。
[First Embodiment]
As described above, in the first embodiment, when the microcomputer is powered on, only the control unit such as CPU 1 and the minimum necessary resources are activated, and after the activation, an access signal is supplied from the control unit such as CPU 1. The resources in the resource are supplied with power in response to the access signal. The control unit only needs to supply an access signal, and it is not necessary to confirm in advance which resource is supplied with power in the resource. For this purpose, each resource has an in-resource power supply unit that is a power switch and a power control unit.

図4は,第1の実施の形態における電源制御部とリソース内電源供給部の回路図である。リソース106は,個別に電源を供給または遮断可能な電源遮断領域内に設けられている。そして,リソース内電源供給部は,マイクロコンピュータ内の電源VDDをリソース106内の電源に接続する電源スイッチ104,105と,その電源スイッチのオン・オフを制御するパワーマネージメントユニットPMU103とを有する。電源スイッチ104,105は例えばPチャネルMOSトランジスタで構成される。また,電源制御部102は,アドレスデコード回路110,起動カウンタ111,電源ステータス回路112,バス制御回路113,命令バッファ114,バッファカウンタ115,NANDゲート116,117を有する。   FIG. 4 is a circuit diagram of the power control unit and the in-resource power supply unit in the first embodiment. The resource 106 is provided in a power cutoff region where power can be individually supplied or shut off. The in-resource power supply unit includes power switches 104 and 105 that connect the power VDD in the microcomputer to the power in the resource 106, and a power management unit PMU 103 that controls on / off of the power switch. The power switches 104 and 105 are composed of, for example, P channel MOS transistors. The power control unit 102 includes an address decoding circuit 110, a start counter 111, a power status circuit 112, a bus control circuit 113, an instruction buffer 114, a buffer counter 115, and NAND gates 116 and 117.

アドレスデコード回路110は,CPU1やDMAコントローラ5などの制御ユニットからバス101を介してリソース106宛に供給されるアクセス信号を検知し,そのアクセス信号の検知に応答して,PMU103と起動カウンタ111と電源ステータス回路112へ電源起動信号126を,命令バッファ114へアドレスデコード信号125をそれぞれ出力する。   The address decoding circuit 110 detects an access signal supplied from the control unit such as the CPU 1 or the DMA controller 5 to the resource 106 via the bus 101, and in response to the detection of the access signal, the PMU 103, the activation counter 111, A power activation signal 126 is output to the power status circuit 112, and an address decode signal 125 is output to the instruction buffer 114.

PMU103は,電源起動信号126に応答して,電源スイッチ104,105のオン・オフを制御する。電源スイッチ104,105は2個設けられ,PMU103は,電源起動信号126に応答して,Lレベルのスイッチ信号PSW1,PSW2を一定の時間間隔をおいて電源スイッチ104と105に供給し,電源スイッチ104,105を順にオンさせる。これによりリソース内の電源は,電位0Vから基準電位まで2段階に分けて上昇する。リソース内電源の起動に伴い,電源が供給されている他の回路に電源ノイズを与えないようにするため,このように2段階に分けて電源起動が行われる。そのため,リソース内電源が基準電位まで昇圧するまで一定の時間がかかることになる。電源スイッチが複数個でなくても,リソース内の電源を起動するためには一定の時間を要する。   The PMU 103 controls on / off of the power switches 104 and 105 in response to the power activation signal 126. Two power switches 104 and 105 are provided. In response to the power activation signal 126, the PMU 103 supplies L level switch signals PSW1 and PSW2 to the power switches 104 and 105 at regular time intervals. 104 and 105 are sequentially turned on. As a result, the power supply in the resource rises in two stages from the potential 0 V to the reference potential. In order to prevent power supply noise from being applied to other circuits to which power is supplied as the power supply in the resource is started, the power supply is started in two stages as described above. Therefore, it takes a certain time for the in-resource power supply to boost to the reference potential. Even if there are not a plurality of power switches, it takes a certain time to activate the power in the resource.

しかしながら,CPU1やDMAコントローラ5などの制御ユニットは,アクセス対象のリソースが電源起動済みか否かにかかわらず,通常のタイミングでアドレス信号,書き込み信号,書き込みの場合のデータ信号などのアクセス信号を次々に供給してくる。それに対して,リソースは最初のアクセス信号を検知してから,リソース内電源が起動して制御ユニットからのアクセス信号を受信可能になるまで一定の時間を要する。そこで,本実施の形態では,電源制御部102内の電源ステータス回路112がリソース内電源の起動状況を示す電源ステータスを管理し,電源制御部102は,その電源ステータス信号129に応じて,供給されてくるアクセス信号の命令バッファ114への一時的格納や,リソース内電源が起動後にその一時的に格納したアクセス信号の転送などを行う。   However, control units such as the CPU 1 and the DMA controller 5 send access signals such as an address signal, a write signal, and a data signal at the time of writing one after another regardless of whether or not the resource to be accessed is already powered on. Come to supply. On the other hand, after the resource detects the first access signal, it takes a certain time until the power in the resource is activated and the access signal from the control unit can be received. Therefore, in the present embodiment, the power status circuit 112 in the power control unit 102 manages the power status indicating the activation status of the in-resource power, and the power control unit 102 is supplied according to the power status signal 129. Temporary storage of the incoming access signal in the instruction buffer 114, transfer of the temporarily stored access signal after the in-resource power supply is activated, and the like are performed.

起動カウンタ111は,電源起動信号126に応答して図示しないクロックに同期してカウントを開始し,リソース内電源が基準電位まで昇圧するまでの時間,すなわち電源起動待ち時間をカウントする。予めリソース内の電源起動に要する時間に対応してカウント数nが定められており,起動カウンタ111はnまでカウントを完了すると,電源起動待ち信号127を電源ステータス112へ出力する。   The activation counter 111 starts counting in synchronization with a clock (not shown) in response to the power activation signal 126, and counts the time until the in-resource power supply is boosted to the reference potential, that is, the power activation waiting time. The count number n is determined in advance corresponding to the time required for power activation in the resource. When the activation counter 111 completes counting up to n, the power activation wait signal 127 is output to the power status 112.

命令バッファ114は,アドレスデコード信号125に応答して,CPU1などの制御ユニットからのアクセス信号(アドレスやデータ)を格納する。バッファカウンタ115は,命令バッファ114に格納されたアクセス信号のデータ数をカウントし,カウントがゼロのときにカウント完了信号135を電源ステータス回路112に出力する。   The instruction buffer 114 stores an access signal (address or data) from a control unit such as the CPU 1 in response to the address decode signal 125. The buffer counter 115 counts the number of data of the access signal stored in the instruction buffer 114 and outputs a count completion signal 135 to the power status circuit 112 when the count is zero.

電源ステータス回路112は,電源起動信号126と電源起動待ち信号127とカウント完了信号135に応じて,2ビットの電源ステータス信号129を生成し,バス制御回路113と命令バッファ114とNANDゲート116へ出力する。   The power status circuit 112 generates a 2-bit power status signal 129 in response to the power activation signal 126, the power activation wait signal 127, and the count completion signal 135, and outputs it to the bus control circuit 113, the instruction buffer 114, and the NAND gate 116. To do.

図5は,リソース内電源起動時の電源ステータスを示す図である。電源起動信号126と電源起動待ち信号127とカウント完了信号135に応じて生成される電源ステータス信号129と,それに対応する電源ステータス状態とが示されている。アドレスデコード回路110が未だ制御ユニットからのアクセス信号を検出していない間は,電源起動信号126は「0」であり,リソースはパワーオフの状態(電源ステータス信号129は「00」)にある。次に,電源起動信号126が「1」になるとリソース内電源が起動開始し,電源起動待ち信号127が「0」の間は,ウェイト状態(電源ステータス信号129は「01」)にある。この間,制御ユニットから送信されてくるアクセス信号は命令バッファ114に格納される。その後,電源起動待ち信号127が「1」になると,リソース内電源の起動が完了したことになり,リソース106はアクセス信号を受信可能になる。そこで,命令バッファ114内に格納されているアクセス信号はリソース106にトランスファされる(電源ステータス信号129は「10」でトランスファ状態)。最後に,後述するとおり,命令バッファ114内のアクセス信号が全てリソース106に転送されるとカウント完了信号135が「1」になり,電源ステータス状態はパワーオン状態(電源ステータス信号129は「11」)になる。   FIG. 5 is a diagram showing the power status when the in-resource power supply is activated. A power status signal 129 generated in response to the power activation signal 126, the power activation wait signal 127 and the count completion signal 135, and the corresponding power status status are shown. While the address decode circuit 110 has not yet detected an access signal from the control unit, the power activation signal 126 is “0” and the resource is in a power-off state (the power status signal 129 is “00”). Next, when the power activation signal 126 becomes “1”, the in-resource power supply starts to be activated, and while the power activation waiting signal 127 is “0”, it is in a wait state (the power status signal 129 is “01”). During this time, the access signal transmitted from the control unit is stored in the instruction buffer 114. Thereafter, when the power activation waiting signal 127 becomes “1”, it means that the activation of the in-resource power supply is completed, and the resource 106 can receive the access signal. Therefore, the access signal stored in the instruction buffer 114 is transferred to the resource 106 (the power status signal 129 is “10” for transfer). Finally, as described later, when all the access signals in the instruction buffer 114 are transferred to the resource 106, the count completion signal 135 becomes “1”, the power status is the power-on status (the power status signal 129 is “11”). )become.

図4にもどり,バス制御回路113は,電源ステータス信号129に応じて,バス101とリソース106間のバス経路と,命令バッファ114とリソース106間のバス経路とを制御するセレクタである。電源ステータス信号129が「00」「01」の間は,いずれのバス経路も接続されない。電源ステータス信号129が「10」になると,バス制御回路113は,命令バッファ114とリソース106を接続するバス経路を生成し,命令バッファ114は,格納しているアクセス信号をリソース106へ転送する。その後,電源ステータス信号が「11」になると,バス制御回路113は,バス101とリソース106とを接続するバス経路を生成し,バスから供給されるアクセス信号は直接リソース106に入力される。   Returning to FIG. 4, the bus control circuit 113 is a selector that controls the bus path between the bus 101 and the resource 106 and the bus path between the instruction buffer 114 and the resource 106 in accordance with the power status signal 129. No bus path is connected while the power status signal 129 is “00” “01”. When the power status signal 129 becomes “10”, the bus control circuit 113 generates a bus path connecting the instruction buffer 114 and the resource 106, and the instruction buffer 114 transfers the stored access signal to the resource 106. Thereafter, when the power status signal becomes “11”, the bus control circuit 113 generates a bus path connecting the bus 101 and the resource 106, and the access signal supplied from the bus is directly input to the resource 106.

NANDゲート116は,電源ステータス信号129の1ビット目と2ビット目を入力信号とし,電源ステータス信号129が「11」の時は,出力はLレベルとなり,それ以外はHレベルとなる。   The NAND gate 116 receives the first and second bits of the power status signal 129 as an input signal. When the power status signal 129 is “11”, the output is at the L level, and otherwise the output is at the H level.

一方,NANDゲート117は,CPU1などの制御ユニットからのアクセス信号とNANDゲート116の出力とを入力信号とし,電源ステータス信号129が「11」でなければNANDゲート116の出力のHレベルによりアクセス信号を反転して通過させ,電源ステータス信号129が「11」であれば,出力を強制的にHレベルに固定してアクセス信号を遮断する。   On the other hand, the NAND gate 117 receives the access signal from the control unit such as the CPU 1 and the output of the NAND gate 116 as an input signal, and if the power status signal 129 is not “11”, the access signal depends on the H level of the output of the NAND gate 116. If the power status signal 129 is “11”, the output is forcibly fixed to the H level and the access signal is cut off.

図6は,第1の実施の形態における電源制御部の動作を示すフローチャート図である。図中,左側には電源ステータス状態が示されている。   FIG. 6 is a flowchart illustrating the operation of the power supply control unit in the first embodiment. In the figure, the power status is shown on the left side.

最初に,パワーオフの状態(電源ステータス信号129は「00」)において,マイクロコンピュータの電源起動時に,電源起動後に電源制御されるリソース106は電源遮断状態のままで,電源起動後に電源制御されないリソースは電源起動される(S101)。電源制御されるリソースは,図1の7,8,10,12,13,14,16〜19である。   First, in the power-off state (the power status signal 129 is “00”), when the microcomputer is powered on, the resource 106 that is power-controlled after power-on remains in the power-off state, and is not resource-controlled after power-on. Is activated (S101). The resources whose power is controlled are 7, 8, 10, 12, 13, 14, 16 to 19 in FIG.

次に,CPU1などの制御ユニットからバス101を介して供給されたアクセス信号がリソース106宛であることを,アドレスデコード回路110が検知すると(S102),アドレスデコード回路110はPMU103と起動カウンタ111と電源ステータス回路112へ電源起動信号126を出力する。これで,電源ステータス状態はウェイト状態(電源ステータス信号129は「01」)になる。   Next, when the address decoding circuit 110 detects that the access signal supplied from the control unit such as the CPU 1 via the bus 101 is addressed to the resource 106 (S102), the address decoding circuit 110 detects the PMU 103, the activation counter 111, and the like. A power activation signal 126 is output to the power status circuit 112. As a result, the power status becomes the wait status (the power status signal 129 is “01”).

ウェイト状態では,PMU103は,電源起動信号126に応答して,スイッチ信号PSW1,PSW2を順に出力して,電源スイッチ104,105を順にオンさせて,リソース106へ供給するリソース内電源の起動を開始する(S103)。それと併せて,起動カウンタ111は,電源起動信号126に応じて電源待ち時間のカウントを開始する(S104)。   In the wait state, the PMU 103 sequentially outputs the switch signals PSW1 and PSW2 in response to the power activation signal 126, sequentially turns on the power switches 104 and 105, and starts activation of the in-resource power supply supplied to the resource 106. (S103). At the same time, the activation counter 111 starts counting the power supply waiting time in response to the power activation signal 126 (S104).

リソース内電源が昇圧している間,電源制御部102がCPU1などの制御ユニットからアクセス信号を供給されれば(S105の「あり」),バス制御回路113は制御ユニットからアクセス信号が供給されるバス101とリソース106とを接続するバス経路を遮断し(S106),アクセス信号は命令バッファ114へ格納され(S107),バッファカウンタ115は命令バッファ114に格納されたアクセス信号の数をカウントする(S108)。   If the power control unit 102 is supplied with an access signal from a control unit such as the CPU 1 while the in-resource power supply is boosted (“Yes” in S105), the bus control circuit 113 is supplied with the access signal from the control unit. The bus path connecting the bus 101 and the resource 106 is blocked (S106), the access signal is stored in the instruction buffer 114 (S107), and the buffer counter 115 counts the number of access signals stored in the instruction buffer 114 (S107). S108).

そして,リソース内電源が基準電位まで昇圧してリソース内電源の起動が完了したら(S109のYES),電源ステータス状態はトランスファ状態に移行する。このトランスファ状態では,バッファカウンタ115のカウント値が0になるまで(S110のNO),バス制御回路113は命令バッファ114とリソース106を接続するバス経路を生成し(S111),命令バッファ114は格納されたアクセス信号をリソース106に転送する(S112)。   When the in-resource power supply is boosted to the reference potential and the activation of the in-resource power supply is completed (YES in S109), the power supply status state shifts to the transfer state. In this transfer state, until the count value of the buffer counter 115 reaches 0 (NO in S110), the bus control circuit 113 generates a bus path connecting the instruction buffer 114 and the resource 106 (S111), and the instruction buffer 114 stores. The access signal thus transferred is transferred to the resource 106 (S112).

バッファカウンタ115のカウンタ数が0となったとき(S110のYES),すなわち,命令バッファ114からリソース106へのアクセス信号の転送が完了したとき(S113),バス制御回路113はバス101からリソース106へのバス経路を生成し(S114),リソース106はバス101から直接アクセス信号を受信する通常動作を開始する。   When the counter number of the buffer counter 115 becomes 0 (YES in S110), that is, when the transfer of the access signal from the instruction buffer 114 to the resource 106 is completed (S113), the bus control circuit 113 transmits the resource from the bus 101 to the resource 106. (S114), the resource 106 starts a normal operation of receiving an access signal directly from the bus 101.

図7は,第1の実施の形態におけるタイムチャートを示す図である。図6のフローチャートに示された電源制御部102での動作について,信号波形図が示されている。電源制御部102はクロック121に同期して動作する。また,アドレス・データ信号122とライト信号124が,アクセス信号として,CPU1などの制御ユニットよりバス101を介してリソース106に供給される。以下,クロック121のサイクルT1〜T21に基づいて,電源制御部内の動作について説明する。   FIG. 7 is a diagram illustrating a time chart according to the first embodiment. A signal waveform diagram is shown for the operation of the power supply control unit 102 shown in the flowchart of FIG. The power control unit 102 operates in synchronization with the clock 121. An address / data signal 122 and a write signal 124 are supplied as access signals from the control unit such as the CPU 1 to the resource 106 via the bus 101. Hereinafter, based on cycles T1 to T21 of the clock 121, the operation in the power supply control unit will be described.

アドレス・データ信号122として,サイクルT2でアドレスadrA−0が,サイクルT3でそれに対応するデータdata0が供給される。また,制御ユニットからはサイクルT3でデータdata0と共にHレベルのライト信号124が1サイクルだけ供給されている。アドレスデコード回路110は,アドレス・データ信号122のうちアドレスadrA−0をアドレス信号123として内部でラッチしリソース106宛のアドレスか否かを検出する。図7の例では,アドレスデコード回路110はアドレスadrA−0がリソース106宛のアドレスであることを検出し,サイクルT3でHレベルのアドレスデコード信号125を出力している。   As address / data signal 122, address adrA-0 is supplied in cycle T2, and data data0 corresponding thereto is supplied in cycle T3. The control unit is supplied with the H level write signal 124 together with the data data0 in cycle T3 for one cycle. The address decode circuit 110 internally latches the address adrA-0 in the address / data signal 122 as the address signal 123 and detects whether the address is addressed to the resource 106. In the example of FIG. 7, the address decode circuit 110 detects that the address adrA-0 is an address addressed to the resource 106, and outputs an H-level address decode signal 125 at cycle T3.

これに応答して,サイクルT4で電源起動信号126がHレベルになり起動カウンタ111がnからカウントダウンを開始し,起動カウンタのカウンタ値である電源起動待ち時間128がnからクロック121に同期してデクリメントされている。また,サイクルT4から命令バッファ114内の各バッファ131に,アクセス信号であるアドレスとデータとが順に格納される。サイクルT4,T5では次のアドレスとデータが供給され,その後サイクルT9,T10で8つ目のアドレスadrA−7とデータdata7とが供給されるまで,2つのクロックのサイクルでアドレスとデータが順番に供給され,それらは命令バッファ114に格納される。   In response to this, the power supply start signal 126 becomes H level in cycle T4, the start counter 111 starts counting down from n, and the power supply start wait time 128 as the counter value of the start counter is synchronized with the clock 121 from n. It has been decremented. Also, from cycle T4, addresses and data as access signals are sequentially stored in the respective buffers 131 in the instruction buffer 114. In cycles T4 and T5, the next address and data are supplied, and then in cycles T9 and T10, the address and data are sequentially input in two clock cycles until the eighth address adrA-7 and data data7 are supplied. Are supplied and stored in the instruction buffer 114.

バッファカウンタ115内のライトカウンタ132はアクセス信号が格納される度にインクリメントされ次のライトアドレスを示し,8つ目のアドレスとデータが格納されるとライトカウンタ132のカウント値は「8」になっている。さらに,リードカウンタ133は格納されたアクセス信号がリードされる度にインクリメントされ次のリードアドレスを示し,サイクルT13まで「0」のままである。そして,バッファカウント数134は,命令バッファ114内に格納されているアクセス信号の数を示し,ライトカウンタ132からリードカウンタ133のカウント値を減算した値である。   The write counter 132 in the buffer counter 115 is incremented every time an access signal is stored and indicates the next write address. When the eighth address and data are stored, the count value of the write counter 132 becomes “8”. ing. Further, the read counter 133 is incremented every time the stored access signal is read and indicates the next read address, and remains “0” until the cycle T13. The buffer count number 134 indicates the number of access signals stored in the instruction buffer 114, and is a value obtained by subtracting the count value of the read counter 133 from the write counter 132.

サイクルT4からT12までがウェイト状態である。そして,サイクルT13で起動カウンタ111によるデクリメント値が「0」に達すると,起動カウンタ111は電源起動待ち信号127をHレベルにする。これにより電源ステータス状態はトランスファ状態になる。この電源ステータス信号129のトランスファ状態「10」に応答して,命令バッファ114は格納しているアクセス信号をリードカウンタ133のリードアドレスから順にリソース106に転送開始する。この時,電源ステータス信号129のトランスファ状態「10」により,バス制御回路113は命令バッファ114からリソース106へのバス経路を生成する。   The cycles from T4 to T12 are in the wait state. When the decrement value by the activation counter 111 reaches “0” in cycle T13, the activation counter 111 sets the power activation waiting signal 127 to the H level. As a result, the power supply status state becomes the transfer state. In response to the transfer state “10” of the power status signal 129, the instruction buffer 114 starts to transfer the stored access signal to the resource 106 in order from the read address of the read counter 133. At this time, the bus control circuit 113 generates a bus path from the instruction buffer 114 to the resource 106 according to the transfer state “10” of the power status signal 129.

そして,サイクルT20で8つ目のアクセス信号adrA−7, data7がリソース106に転送されると,バッファカウンタ115内のバッファカウント数134が「0」になり,電源ステータス回路112は電源ステータス信号129をパワーオン状態の「11」にする。これに応答して,バス制御回路113はバス101からリソース106へのバス経路を生成し,リソース106はバス101から直接アクセス信号を入力する。   When the eighth access signals adrA-7 and data7 are transferred to the resource 106 in cycle T20, the buffer count number 134 in the buffer counter 115 becomes “0”, and the power status circuit 112 receives the power status signal 129. Is set to “11” in the power-on state. In response to this, the bus control circuit 113 generates a bus path from the bus 101 to the resource 106, and the resource 106 inputs an access signal directly from the bus 101.

以上のとおり,第1の実施の形態によれば,マイクロコンピュータの電源起動時に電源を遮断したままだったリソースでは,CPUなどの制御ユニットからの自分宛のアクセス信号を電源制御部102が検知すると,対応するリソース内電源供給部のパワースイッチがオンしてリソース内の電源が起動する。これにより,制御ユニットからアクセスされ動作が必要になったリソースだけに電源が供給されリソースの消費電力を削減することができる。   As described above, according to the first embodiment, when the power supply control unit 102 detects an access signal addressed to itself from a control unit such as a CPU in a resource that has been turned off when the microcomputer is powered on. , The power switch of the corresponding in-resource power supply unit is turned on to start the power in the resource. As a result, power is supplied only to resources that are accessed from the control unit and need to be operated, and the power consumption of the resources can be reduced.

また,電源制御部102は,リソース内電源の昇圧中に,制御ユニットから継続して供給されるアクセス信号(アドレスとデータ)を命令バッファ114に記憶し,リソース内電源の昇圧完了後に,命令バッファ114内のアクセス信号(アドレスとデータ)を対応するリソースへ転送する。さらに,電源制御部102は,格納された全てのアクセス信号の転送完了後,バス101とリソース106との間のバス経路を復帰させ,その後はリソース106はバス101から直接アクセス信号を入力する。このように,電源制御部102は,制御ユニットからのアクセス信号に応答してリソース内電源を起動させるものの,制御ユニットから通常動作と同様に次々とアクセス信号が供給されてもそれらを命令バッファ114に確実に格納し,リソース内電源の起動完了後にそれらのアクセス信号を転送するので,一部のリソースが電源起動時においてリソース内電源を起動されてなくても,CPU1などの制御ユニットは通常通りにリソースに対してアクセス信号を送信することができる。   Further, the power supply control unit 102 stores the access signal (address and data) continuously supplied from the control unit during boosting of the in-resource power supply in the instruction buffer 114, and after completing the boosting of the in-resource power supply, The access signal (address and data) in 114 is transferred to the corresponding resource. Further, the power supply control unit 102 restores the bus path between the bus 101 and the resource 106 after completing the transfer of all stored access signals, and then the resource 106 inputs the access signal directly from the bus 101. As described above, the power supply control unit 102 activates the in-resource power supply in response to the access signal from the control unit. However, even if access signals are successively supplied from the control unit as in the normal operation, they are transferred to the instruction buffer 114. Therefore, the control unit such as the CPU 1 can operate normally even if some of the resources are not activated when the power is activated. An access signal can be transmitted to the resource.

[第2の実施の形態]
第2の実施の形態では,マイクロコンピュータの電源起動時は制御ユニットと最低限必要なリソースのみ電源が起動され,起動後において制御ユニットからアクセス信号を供給された2個のリソースが,そのアクセス信号にそれぞれ応答して,リソース内電源を供給される。
[Second Embodiment]
In the second embodiment, when the microcomputer is activated, only the control unit and the minimum necessary resources are activated, and after the activation, two resources supplied with an access signal from the control unit are connected to the access signal. In response to each, the in-resource power is supplied.

図8は,第2の実施の形態における電源制御部とリソース内電源供給部の回路図である。個別に電源を供給または遮断可能な電源遮断領域に設けられているリソース206,210は,マイクロコンピュータの電源起動時は動作が不要なリソースであり電源が遮断されている。リソース206のリソース内電源供給部は,マイクロコンピュータ内の電源VDDをリソース206に供給するスイッチ204,205と,その電源スイッチのオン・オフを制御するパワーマネージメントユニットPMU203とを有する。また,リソース210のリソース内電源供給部は,マイクロコンピュータ内の電源VDDをリソース210に供給するスイッチ208,209と,その電源スイッチのオン・オフを制御するパワーマネージメントユニットPMU203とを有する。リソース206,210のリソース内電源供給部は,第1の実施の形態と同様に,2段階に分けてリソース内電源の昇圧を行う。一方,リソース206の電源制御部202は,アドレスデコード回路220,起動カウンタ221,電源ステータス回路222,バス制御回路223,命令バッファ224,バッファカウンタ225,NANDゲート226,227を有する。また,リソース210の電源制御部207は,アドレスデコード回路230,起動カウンタ231,電源ステータス回路232,バス制御回路233,命令バッファ234,バッファカウンタ235,NANDゲート236,237を有する。つまり,リソース206の電源制御部202とリソース内電源制御部203〜205と,リソース210の電源制御部207とリソース内電源制御部203,208,209とは,第1の実施の形態にて述べたリソース106の電源制御部102とリソース内電源制御部103〜105にそれぞれ相当する。   FIG. 8 is a circuit diagram of the power control unit and the in-resource power supply unit in the second embodiment. The resources 206 and 210 provided in the power shut-off area where the power can be individually supplied or shut off are resources that do not need to be operated when the microcomputer is powered on, and the power is shut off. The in-resource power supply unit of the resource 206 includes switches 204 and 205 that supply the power VDD in the microcomputer to the resource 206, and a power management unit PMU 203 that controls on / off of the power switch. The in-resource power supply unit of the resource 210 includes switches 208 and 209 that supply the power VDD in the microcomputer to the resource 210, and a power management unit PMU 203 that controls on / off of the power switch. The in-resource power supply unit of the resources 206 and 210 boosts the in-resource power supply in two stages as in the first embodiment. On the other hand, the power control unit 202 of the resource 206 includes an address decoding circuit 220, a start counter 221, a power status circuit 222, a bus control circuit 223, an instruction buffer 224, a buffer counter 225, and NAND gates 226 and 227. The power supply control unit 207 of the resource 210 includes an address decoding circuit 230, a start counter 231, a power supply status circuit 232, a bus control circuit 233, an instruction buffer 234, a buffer counter 235, and NAND gates 236 and 237. That is, the power control unit 202 and the in-resource power control units 203 to 205 of the resource 206, and the power control unit 207 and the in-resource power control units 203, 208, and 209 of the resource 210 are described in the first embodiment. Correspond to the power control unit 102 and the in-resource power control units 103 to 105 of the resource 106, respectively.

マイクロコンピュータの電源起動後,CPU1やDMAコントローラ5などの制御ユニットからバス101を介して,リソース206,210がそれぞれアクセス信号を供給されたとき,アドレスデコード回路220は,バス201を介してリソース206宛のアクセス信号を検知し,そのアクセス信号に応答して,PMU203と起動カウンタ221と電源ステータス回路222へ電源起動信号246を,命令バッファ224へアドレスデコード信号245を出力する。また,アドレスデコード回路230は,バス201を介してリソース210宛のアクセス信号を検知し,そのアクセス信号に応答して,PMU203と起動カウンタ231と電源ステータス回路232へ電源起動信号265を,命令バッファ234へアドレスデコード信号264を出力する。   After the microcomputer power is turned on, when the access signals are supplied to the resources 206 and 210 from the control unit such as the CPU 1 or the DMA controller 5 via the bus 101, the address decoding circuit 220 receives the resource 206 via the bus 201. The addressed access signal is detected, and in response to the access signal, the power activation signal 246 is output to the PMU 203, the activation counter 221 and the power status circuit 222, and the address decode signal 245 is output to the instruction buffer 224. The address decoding circuit 230 detects an access signal addressed to the resource 210 via the bus 201, and in response to the access signal, sends a power activation signal 265 to the PMU 203, the activation counter 231 and the power status circuit 232 to the instruction buffer. An address decode signal 264 is output to 234.

PMU203は,電源起動信号246に応答して,Lレベルのスイッチ信号PSW1,PSW2を一定の時間間隔をおいて電源スイッチ204,205に供給し,電源スイッチ204,205を順にオンさせる。また,PMU203は,電源起動信号265に応答して,Lレベルのスイッチ信号PSW3,PSW4を一定の時間間隔をおいて電源スイッチ208,209に供給し,電源スイッチ208,209を順にオンさせる。   In response to the power activation signal 246, the PMU 203 supplies the L level switch signals PSW1 and PSW2 to the power switches 204 and 205 at regular intervals, and sequentially turns on the power switches 204 and 205. In response to the power activation signal 265, the PMU 203 supplies the L level switch signals PSW3 and PSW4 to the power switches 208 and 209 at regular time intervals, and sequentially turns on the power switches 208 and 209.

起動カウンタ221,231は,電源起動信号246,265にそれぞれ応答し,図示しないクロックに同期してカウントを開始し,リソース内電源が基準電位まで昇圧するまでの時間,すなわち電源起動待ち時間をカウントする。起動カウンタは,予め定められたカウント数nまでカウントを完了すると,電源起動待ち信号247,267を電源ステータス回路222,232へそれぞれ出力する。   The activation counters 221 and 231 respond to the power activation signals 246 and 265, respectively, start counting in synchronization with a clock (not shown), and count the time until the in-resource power supply is boosted to the reference potential, that is, the power activation waiting time. To do. When the activation counter completes counting to a predetermined count number n, it outputs power activation waiting signals 247 and 267 to the power status circuits 222 and 232, respectively.

電源ステータス回路222,232は,電源起動信号246,265と電源起動待ち信号247,266とカウント完了信号256,275にそれぞれ応じて,2ビットの電源ステータス信号249,268を生成し,バス制御回路223,233と命令バッファ224,234とNANDゲート226,236へそれぞれ出力する。   The power status circuits 222 and 232 generate 2-bit power status signals 249 and 268 in response to the power activation signals 246 and 265, the power activation wait signals 247 and 266, and the count completion signals 256 and 275, respectively. 223 and 233, instruction buffers 224 and 234, and NAND gates 226 and 236, respectively.

バス制御回路223は,電源ステータス信号249に応じて,バス201とリソース206間のバス経路と,命令バッファ224とリソース206間のバス経路とを制御するセレクタである。また,バス制御回路233は,電源ステータス信号268に応じて,バス201とリソース210間のバス経路と,命令バッファ234とリソース210間のバス経路とを制御するセレクタである。電源ステータス信号249,268が「00」「01」の間は,いずれのバス経路も接続されない。電源ステータス信号249,268が「10」になると,バス制御回路223,233は,命令バッファ224,234とリソース206,210を接続するバス経路をそれぞれ生成し,命令バッファ224,234は,格納しているアクセス信号をリソース206,210へそれぞれ転送する。その後,電源ステータス信号が「11」になると,バス制御回路223,233は,バス201とリソース206とを接続するバス経路,バス201とリソース210とを接続するバス経路をそれぞれ生成し,バスから供給されるアクセス信号は直接リソース206,210に入力される。   The bus control circuit 223 is a selector that controls the bus path between the bus 201 and the resource 206 and the bus path between the instruction buffer 224 and the resource 206 in accordance with the power status signal 249. The bus control circuit 233 is a selector that controls the bus path between the bus 201 and the resource 210 and the bus path between the instruction buffer 234 and the resource 210 according to the power status signal 268. No bus path is connected while the power status signals 249 and 268 are “00” and “01”. When the power status signals 249 and 268 become “10”, the bus control circuits 223 and 233 generate bus paths that connect the instruction buffers 224 and 234 and the resources 206 and 210, respectively, and the instruction buffers 224 and 234 store them. Are transferred to the resources 206 and 210, respectively. Thereafter, when the power status signal becomes “11”, the bus control circuits 223 and 233 respectively generate a bus path that connects the bus 201 and the resource 206 and a bus path that connects the bus 201 and the resource 210. The supplied access signal is directly input to the resources 206 and 210.

NANDゲート226,236は電源ステータス信号249,268の1ビット目と2ビット目を入力信号とし,電源ステータス信号249,268が「11」のときは,出力はLレベルとなり,それ以外はHレベルとなる。   The NAND gates 226 and 236 receive the first and second bits of the power status signals 249 and 268 as input signals. When the power status signals 249 and 268 are “11”, the output is L level, otherwise the H level. It becomes.

また,NANDゲート227,237は,制御ユニットからのアクセス信号とNANDゲート226,236の出力を入力信号とし,電源ステータス信号249,268が「11」でなければNANDゲート226,236の出力のHレベルによりアクセス信号を反転してそれぞれ通過させ,電源ステータス信号249,268が「11」であれば,それぞれ出力を強制的にHレベルに固定してアクセス信号を遮断する。   The NAND gates 227 and 237 receive the access signal from the control unit and the outputs of the NAND gates 226 and 236 as input signals. If the power status signals 249 and 268 are not “11”, the output of the NAND gates 226 and 236 is H When the power status signals 249 and 268 are “11”, the access signals are forcibly fixed to the H level and the access signals are cut off, respectively.

以上のように,リソース206の電源制御部202,リソース210の電源制御部207は,自分宛のアクセス信号を検知すると,それぞれで,第1の実施の形態と同様にリソース内電源供給動作を行う。   As described above, when the power control unit 202 of the resource 206 and the power control unit 207 of the resource 210 detect the access signal addressed to themselves, they respectively perform the power supply operation within the resource in the same manner as in the first embodiment. .

図9は,第2の実施の形態における電源制御部の動作を示すフローチャート図である。   FIG. 9 is a flowchart showing the operation of the power supply control unit in the second embodiment.

まず,リソース206,210などの電源起動時に動作が不要なリソースは電源遮断状態のままにして,マイクロコンピュータを電源起動する。その後,リソース206,210は,CPU1などの制御ユニットからバス201を介してアクセス信号を供給される。   First, the resources such as the resources 206 and 210 that do not need to be operated when the power is turned on are left in the power-off state, and the microcomputer is turned on. Thereafter, the resources 206 and 210 are supplied with an access signal from the control unit such as the CPU 1 via the bus 201.

最初にリソース206のアドレスデコード回路220が,アクセス信号がリソース206宛であることを検知すると(S201),アドレスデコード回路220はPMU203と起動カウンタ221と電源ステータス回路222へ電源起動信号246を出力する。PMU203は,電源起動信号246に応答して,スイッチ信号PSW1,PSW2を順に出力して,スイッチ204,205を順にオンさせて,リソース206へ供給するリソース内電源の起動を開始する(S202)。リソース内電源を昇圧している間,リソース206が制御ユニットからバスを介してアクセス信号を供給されれば,バス制御回路223は,制御ユニットからのアクセス信号が供給されるバス201とリソース206とを接続するバス経路を遮断し,アクセス信号を命令バッファ224へ格納し(S203),バッファカウンタ225は命令バッファ224に格納されたアクセス信号の数をカウントする。リソース内電源が基準電位まで昇圧してリソース内電源の起動が完了したら(S204),バス制御回路223は命令バッファ224とリソース206とを接続するバス経路を生成し,バッファカウンタ225のカウンタ値が0になるまで,命令バッファ224は格納されたアクセス信号をリソース206に転送する(S205)。バッファカウンタ225のカウンタ値が0になったとき,すなわち,命令バッファ224からリソース206へのアクセス信号の転送が終わったとき,バス制御回路223は,バス201からリソース206へのバス経路を生成し(S206),リソース206はバス201から直接アクセス信号を受信する通常動作を開始する(S207)。   First, when the address decode circuit 220 of the resource 206 detects that the access signal is addressed to the resource 206 (S201), the address decode circuit 220 outputs a power activation signal 246 to the PMU 203, activation counter 221, and power status circuit 222. . In response to the power activation signal 246, the PMU 203 sequentially outputs switch signals PSW1 and PSW2, turns on the switches 204 and 205 in order, and starts activation of the in-resource power supplied to the resource 206 (S202). If the resource 206 is supplied with an access signal from the control unit via the bus while boosting the power supply in the resource, the bus control circuit 223 causes the bus 201 and the resource 206 to which the access signal from the control unit is supplied. And the access signal is stored in the instruction buffer 224 (S203), and the buffer counter 225 counts the number of access signals stored in the instruction buffer 224. When the in-resource power supply is boosted to the reference potential and the activation of the in-resource power supply is completed (S204), the bus control circuit 223 generates a bus path that connects the instruction buffer 224 and the resource 206, and the counter value of the buffer counter 225 is Until it becomes 0, the instruction buffer 224 transfers the stored access signal to the resource 206 (S205). When the counter value of the buffer counter 225 reaches 0, that is, when the transfer of the access signal from the instruction buffer 224 to the resource 206 is completed, the bus control circuit 223 generates a bus path from the bus 201 to the resource 206. (S206), the resource 206 starts a normal operation of receiving an access signal directly from the bus 201 (S207).

一方,リソース206へのアクセスに続いてリソース210へのアクセスが発生すると,リソース210のアドレスデコード回路230は,アクセス信号がリソース210宛であることを検知し(S211),アドレスデコード回路230はPMU203と起動カウンタ231と電源ステータス回路232へ電源起動信号265を出力する。PMU203は,電源起動信号265に応答して,スイッチ信号PSW3,PSW4を出力して,スイッチ208,209を順にオンさせて,リソース210へ供給するリソース内電源の起動を開始する(S212)。リソース内電源が昇圧している間,リソース210が制御ユニットからバスを介してアクセス信号を供給されれば,バス制御回路233は,制御ユニットからのアクセス信号が供給されるバス201とリソース210とを接続するバス経路を遮断し,アクセス信号を命令バッファ234へ格納し(S213),バッファカウンタ235は命令バッファ234に格納されたアクセス信号の数をカウントする。リソース内電源が基準電位まで昇圧してリソース内電源の起動が完了したら(S214),バス制御回路233は命令バッファ234とリソース210とを接続するバス経路を生成し,バッファカウンタ235のカウンタ値が0になるまで,命令バッファ234は格納されたアクセス信号をリソース210に転送する(S215)。バッファカウンタ235のカウンタ値が0になったとき,すなわち,命令バッファ234からリソース210へのアクセス信号の転送が終わったとき,バス制御回路233は,バス201からリソース210へのバス経路を生成し(S216),リソース210はバス201から直接アクセス信号を受信する通常動作を開始する(S217)。   On the other hand, when the access to the resource 210 occurs following the access to the resource 206, the address decoding circuit 230 of the resource 210 detects that the access signal is addressed to the resource 210 (S211), and the address decoding circuit 230 detects the PMU 203. The power supply activation signal 265 is output to the activation counter 231 and the power supply status circuit 232. In response to the power activation signal 265, the PMU 203 outputs switch signals PSW3 and PSW4, turns on the switches 208 and 209 in order, and starts activation of the in-resource power supplied to the resource 210 (S212). If the resource 210 is supplied with an access signal from the control unit via the bus while the in-resource power supply is boosted, the bus control circuit 233 receives the bus 201 and the resource 210 to which the access signal from the control unit is supplied. And the access signal is stored in the instruction buffer 234 (S213), and the buffer counter 235 counts the number of access signals stored in the instruction buffer 234. When the in-resource power supply is boosted to the reference potential and the activation of the in-resource power supply is completed (S214), the bus control circuit 233 generates a bus path connecting the instruction buffer 234 and the resource 210, and the counter value of the buffer counter 235 is Until it becomes 0, the instruction buffer 234 transfers the stored access signal to the resource 210 (S215). When the counter value of the buffer counter 235 reaches 0, that is, when the transfer of the access signal from the instruction buffer 234 to the resource 210 is completed, the bus control circuit 233 generates a bus path from the bus 201 to the resource 210. (S216), the resource 210 starts a normal operation of receiving an access signal directly from the bus 201 (S217).

このように,リソース206の電源制御部202,リソース210の電源制御部207は自分宛のアクセス信号を検知すると,それぞれで,第1の実施の形態と同様にリソース内電源供給動作を行う。   As described above, when the power control unit 202 of the resource 206 and the power control unit 207 of the resource 210 detect the access signal addressed to the resource 206, they respectively perform the in-resource power supply operation as in the first embodiment.

図10は,第2の実施の形態におけるタイムチャートを示す図である。図9のフローチャートに示された電源制御部202,207での動作について信号波形図が示されている。電源制御部202,207はクロック241に同期して動作する。また,アドレス・データ信号242と,ライト信号244がCPU1などの制御ユニットよりバス201を介してリソース206,210に供給される。以下,クロック241のサイクルT1〜T34に基づいて,電源制御部内の動作について説明する。   FIG. 10 is a diagram illustrating a time chart in the second embodiment. A signal waveform diagram is shown for the operation of the power control units 202 and 207 shown in the flowchart of FIG. The power control units 202 and 207 operate in synchronization with the clock 241. An address / data signal 242 and a write signal 244 are supplied to the resources 206 and 210 via the bus 201 from a control unit such as the CPU 1. Hereinafter, the operation in the power supply control unit will be described based on the cycles T1 to T34 of the clock 241.

アドレス・データ信号242として,サイクルT2でアドレスadrA−0が,サイクルT3でそれに対応するデータdataA−0が供給される。アドレスデコード回路220,230は,アドレス・データ信号242のうち,アドレスadrA−0をアドレス信号243,262として内部でラッチし,それぞれ自分宛のアドレスか否かを検出する。図10の例では,アドレスデコード回路220がアドレスadrA−0はリソース206宛であることを検出し,サイクルT3でHレベルのアドレスデコード信号245を出力している。   As address / data signal 242, address adrA-0 is supplied in cycle T2, and data dataA-0 corresponding thereto is supplied in cycle T3. The address decode circuits 220 and 230 internally latch the address adrA-0 as the address signals 243 and 262 out of the address / data signal 242, and detect whether or not each address is addressed to itself. In the example of FIG. 10, the address decode circuit 220 detects that the address adrA-0 is addressed to the resource 206, and outputs an H-level address decode signal 245 at cycle T3.

これに応答して,サイクルT4で電源起動信号246がHレベルになり起動カウンタ221がnからカウントダウンを開始し,起動カウンタ221のカウンタ値である電源起動待ち時間248がnからクロック241に同期してデクリメントされている。また,サイクルT4から命令バッファ224内の各バッファ252に,アクセス信号であるアドレスとデータとが順に格納される。サイクルT4,T5では次のアドレスとデータが供給され,その後サイクルT11,T12で8つ目のアドレスadrA−7とデータdataA−7とが供給されるまで,2つのクロックのサイクルでアドレスとデータが順番に供給され,それらは命令バッファ224に格納される。   In response to this, the power source activation signal 246 becomes H level in cycle T4, the activation counter 221 starts counting down from n, and the power source activation waiting time 248 as the counter value of the activation counter 221 is synchronized with the clock 241 from n. Have been decremented. Also, from cycle T4, addresses and data as access signals are sequentially stored in the respective buffers 252 in the instruction buffer 224. In cycles T4 and T5, the next address and data are supplied, and then in cycles T11 and T12, the address and data are transferred in two clock cycles until the eighth address adrA-7 and data dataA-7 are supplied. They are supplied in order and stored in the instruction buffer 224.

バッファカウンタ225内のライトカウンタ253はアクセス信号が格納される度にインクリメントされ次のライトアドレスを示し,8つ目のアドレスとデータが格納されるとライトカウンタ253のカウント値は「8」になっている。さらに,リードカウンタ254は格納されたアクセス信号がリードされる度にインクリメントされ次のリードアドレスを示し,サイクルT15まで「0」のままである。そして,バッファカウント数255は,命令バッファ224内に格納されているアクセス信号の数を示し,ライトカウンタ253からリードカウンタ254のカウント値を減算した値である。   The write counter 253 in the buffer counter 225 is incremented every time an access signal is stored and indicates the next write address. When the eighth address and data are stored, the count value of the write counter 253 becomes “8”. ing. Further, the read counter 254 is incremented every time the stored access signal is read and indicates the next read address, and remains “0” until the cycle T15. The buffer count number 255 indicates the number of access signals stored in the instruction buffer 224, and is a value obtained by subtracting the count value of the read counter 254 from the write counter 253.

サイクルT4からT14までがウェイト状態である。そして,サイクルT15で起動カウンタ221によるデクリメント値が「0」に達すると,起動カウンタ221は電源起動待ち信号247をHレベルにする。これにより電源ステータス状態はトランスファ状態になる。この電源ステータス信号249のトランスファ状態「10」に応答して,命令バッファ224は格納しているアクセス信号をリードカウンタ254のリードアドレスから順にリソース206に転送開始する。この時,電源ステータス信号249のトランスファ状態「10」により,バス制御回路223は命令バッファ224からリソース206へのバス経路を生成する。   From cycle T4 to T14 is a wait state. When the decrement value by the activation counter 221 reaches “0” in cycle T15, the activation counter 221 sets the power activation waiting signal 247 to the H level. As a result, the power supply status state becomes the transfer state. In response to the transfer state “10” of the power status signal 249, the instruction buffer 224 starts to transfer the stored access signal to the resource 206 in order from the read address of the read counter 254. At this time, the bus control circuit 223 generates a bus path from the instruction buffer 224 to the resource 206 according to the transfer state “10” of the power status signal 249.

そして,サイクルT23で8つ目のアクセス信号adrA−7, dataA−7がリソース206に転送されると,バッファカウンタ225内のバッファカウント数255が「0」になり,電源ステータス回路222は電源ステータス信号249をパワーオン状態の「11」にする。これに応答して,バス制御回路223はバス201からリソース206へのバス経路を生成する。その結果,サイクルT25で9つ目のアクセス信号adrA−8, dataA−8がリソース206に転送されると,リソース206はバス201から直接アクセス信号を入力する。   When the eighth access signals adrA-7 and dataA-7 are transferred to the resource 206 in cycle T23, the buffer count number 255 in the buffer counter 225 becomes “0”, and the power status circuit 222 The signal 249 is set to “11” in the power-on state. In response to this, the bus control circuit 223 generates a bus path from the bus 201 to the resource 206. As a result, when the ninth access signals adrA-8 and dataA-8 are transferred to the resource 206 in cycle T25, the resource 206 inputs the access signal directly from the bus 201.

一方,リソース210に対応するアドレスデコード回路230は,サイクルT9で供給されたアクセス信号のアドレスadrB−0が自分宛であることを検知して,サイクルT10でHレベルのアドレスデコード信号264を出力している。   On the other hand, the address decoding circuit 230 corresponding to the resource 210 detects that the address adrB-0 of the access signal supplied in cycle T9 is addressed to itself, and outputs an H-level address decoding signal 264 in cycle T10. ing.

これに応答して,サイクルT11で電源起動信号265がHレベルになり起動カウンタ231がnからカウントダウンを開始し,起動カウン231タのカウンタ値である電源起動待ち時間266がnからクロック241に同期してデクリメントされている。また,サイクルT11から命令バッファ234内の各バッファ271に,アクセス信号であるアドレスとデータとが順に格納される。サイクルT13,T14では次のアドレスとデータが供給され,その後サイクルT15,T16で3つ目のアドレスadrB−2とデータdataB−2とが供給されるまで,2つのクロックのサイクルでアドレスとデータが順番に供給され,それらは命令バッファ234に格納される。   In response to this, the power activation signal 265 becomes H level at cycle T11, the activation counter 231 starts counting down from n, and the power activation waiting time 266 which is the counter value of the activation counter 231 is synchronized with the clock 241 from n. It has been decremented. In addition, from the cycle T11, addresses and data as access signals are sequentially stored in the respective buffers 271 in the instruction buffer 234. In cycles T13 and T14, the next address and data are supplied. After that, until the third address adrB-2 and data dataB-2 are supplied in cycles T15 and T16, the address and data are transferred in two clock cycles. They are supplied in order and stored in the instruction buffer 234.

バッファカウンタ235内のライトカウンタ272はアクセス信号が格納される度にインクリメントされ次のライトアドレスを示し,3つ目のアドレスとデータが格納されるとライトカウンタ272のカウント値は「3」になっている。さらに,リードカウンタ273は格納されたアクセス信号がリードされる度にインクリメントされ次のリードアドレスを示し,サイクルT23まで「0」のままである。そして,バッファカウント数274は,命令バッファ234内に格納されているアクセス信号の数を示し,ライトカウンタ272からリードカウンタ273のカウント値を減算した値である。   The write counter 272 in the buffer counter 235 is incremented every time an access signal is stored and indicates the next write address. When the third address and data are stored, the count value of the write counter 272 becomes “3”. ing. Further, the read counter 273 is incremented every time the stored access signal is read to indicate the next read address, and remains “0” until the cycle T23. The buffer count number 274 indicates the number of access signals stored in the instruction buffer 234, and is a value obtained by subtracting the count value of the read counter 273 from the write counter 272.

サイクルT11からT22までがウェイト状態である。そして,サイクルT23で起動カウンタ231によるデクリメント値が「0」に達すると,起動カウンタ231は電源起動待ち信号266をHレベルにする。これにより電源ステータスはトランスファ状態になる。この電源ステータス信号268のトランスファ状態「10」に応答して,命令バッファ234は格納しているアクセス信号をリードカウンタ273のリードアドレスから順にリソース210に転送開始する。この時,電源ステータス信号268のトランスファ状態「10」により,バス制御回路233は命令バッファ234からリソース210へのバス経路を生成する。   From cycle T11 to T22 is a wait state. When the decrement value by the activation counter 231 reaches “0” in cycle T23, the activation counter 231 sets the power activation waiting signal 266 to the H level. As a result, the power status becomes the transfer state. In response to the transfer state “10” of the power status signal 268, the instruction buffer 234 starts to transfer the stored access signal to the resource 210 in order from the read address of the read counter 273. At this time, the bus control circuit 233 generates a bus path from the instruction buffer 234 to the resource 210 according to the transfer state “10” of the power status signal 268.

そして,サイクルT29で3つ目のアクセス信号adrB−2, dataB−2がリソース210に転送されると,バッファカウンタ235内のバッファカウント数274が「0」になり,電源ステータス回路232は電源ステータス信号268をパワーオン状態の「11」にする。これに応答して,バス制御回路233はバス201からリソース210へのバス経路を生成する。その結果,サイクルT31で4つ目のアクセス信号adrB−3, dataB−3がリソース210に転送されると,リソース210はバス201から直接アクセス信号を入力する。   When the third access signals adrB-2 and dataB-2 are transferred to the resource 210 in cycle T29, the buffer count number 274 in the buffer counter 235 becomes “0”, and the power status circuit 232 The signal 268 is set to “11” in the power-on state. In response to this, the bus control circuit 233 generates a bus path from the bus 201 to the resource 210. As a result, when the fourth access signals adrB-3 and dataB-3 are transferred to the resource 210 in the cycle T31, the resource 210 inputs the access signal directly from the bus 201.

第2の実施の形態の適用例として,自動車内ネットワークCANとの通信が挙げられる。例えば,CPU1からのアクセス信号によってカー・エリア・ネットワーク用通信機器ユニット8へリソース内電源を供給後,カー・エリア・ネットワーク用通信機器ユニット8が通信によって受信したデータを波形ジェネレータユニット16へ転送するために,DMAコントローラ5が波形ジェネレータユニット16にアクセス信号を供給することで,波形ジェネレータユニット16にリソース内電源を供給し,データをDMA転送する場合である。以下,上記での電源制御部の動作について説明する。   As an application example of the second embodiment, communication with an in-vehicle network CAN is given. For example, after the in-resource power is supplied to the car area network communication device unit 8 by the access signal from the CPU 1, the data received by the car area network communication device unit 8 by communication is transferred to the waveform generator unit 16. For this reason, the DMA controller 5 supplies the waveform generator unit 16 with an access signal, thereby supplying the in-resource power source to the waveform generator unit 16 and transferring the data by DMA. Hereinafter, the operation of the power control unit will be described.

図11は,第2の実施の形態におけるカー・エリア・ネットワーク通信機器ユニットと波形ジェネレータユニットの電源供給動作を示すフローチャート図である。カー・エリア・ネットワーク用通信機器ユニット8(図8,10のリソース206に対応),波形ジェネレータユニット16(図8,10のリソース210に対応)などの電源起動時に動作が不要なリソースは電源遮断状態のままにして,マイクロコンピュータを電源起動する。その後,カー・エリア・ネットワーク用通信機器ユニット8はCPU1からアクセス信号を供給される。カー・エリア・ネットワーク用通信機器ユニット8のアドレスデコード回路220が,アクセス信号がカー・エリア・ネットワーク用通信機器ユニット8宛であることを検知すると(S231),PMU203は,電源起動信号246に応答して,スイッチ信号PSW1,PSW2を順に出力して,スイッチ204,205を順にオンさせて,カー・エリア・ネットワーク用通信機器ユニット8へ供給するリソース内電源の起動を開始する(S232)。リソース内電源を昇圧している間,カー・エリア・ネットワーク用通信機器ユニット8がCPU1からバスを介してアクセス信号を供給されれば,バス制御回路223は,CPU1からのアクセス信号が供給されるバス201とカー・エリア・ネットワーク用通信機器ユニット8とを接続するバス経路を遮断し,アクセス信号を命令バッファ224へ格納し(S233),バッファカウンタ225は命令バッファ224に格納されたアクセス信号の数をカウントする。リソース内電源が基準電位まで昇圧してリソース内電源の起動が完了したら(S234),バッファカウンタ225のカウンタ値が0になるまで,バス制御回路223は命令バッファ224とカー・エリア・ネットワーク用通信機器ユニット8とを接続するバス経路を生成し,命令バッファ224は格納されたアクセス信号をカー・エリア・ネットワーク用通信機器ユニット8に転送開始する(S235)。バッファカウンタ225のカウンタ値が0になったとき,すなわち,命令バッファ224からカー・エリア・ネットワーク用通信機器ユニット8へのアクセス信号の転送が終わったとき,バス制御回路223は,バス201からカー・エリア・ネットワーク用通信機器ユニット8へのバス経路を生成し(S236),カー・エリア・ネットワーク用通信機器ユニット8はバス201から直接アクセス信号を受信する通常動作を開始する(S237)。   FIG. 11 is a flowchart showing the power supply operation of the car area network communication device unit and the waveform generator unit in the second embodiment. Power-off for resources that do not require operation when power is turned on, such as car area network communication device unit 8 (corresponding to resource 206 in FIGS. 8 and 10) and waveform generator unit 16 (corresponding to resource 210 in FIGS. 8 and 10) Leave the power on and start the microcomputer. Thereafter, the car area network communication device unit 8 is supplied with an access signal from the CPU 1. When the address decoding circuit 220 of the car area network communication device unit 8 detects that the access signal is addressed to the car area network communication device unit 8 (S231), the PMU 203 responds to the power activation signal 246. Then, the switch signals PSW1 and PSW2 are sequentially output, the switches 204 and 205 are sequentially turned on, and the activation of the in-resource power supplied to the car area network communication device unit 8 is started (S232). If the car area network communication device unit 8 is supplied with an access signal from the CPU 1 via the bus while boosting the power in the resource, the bus control circuit 223 is supplied with the access signal from the CPU 1. The bus path connecting the bus 201 and the car area network communication device unit 8 is cut off, the access signal is stored in the instruction buffer 224 (S233), and the buffer counter 225 stores the access signal stored in the instruction buffer 224. Count the number. When the resource power supply is boosted to the reference potential and the activation of the resource power supply is completed (S234), the bus control circuit 223 communicates with the instruction buffer 224 and the car area network communication until the counter value of the buffer counter 225 becomes zero. A bus path connecting the device unit 8 is generated, and the instruction buffer 224 starts to transfer the stored access signal to the car area network communication device unit 8 (S235). When the counter value of the buffer counter 225 reaches 0, that is, when the transfer of the access signal from the instruction buffer 224 to the car area network communication device unit 8 is completed, the bus control circuit 223 performs the car control from the bus 201. A bus route to the area network communication device unit 8 is generated (S236), and the car area network communication device unit 8 starts a normal operation of receiving an access signal directly from the bus 201 (S237).

カー・エリア・ネットワーク用通信機器ユニット8は,通信により波形ジェネレータユニット16用設定データを受信(S238)した後,DMAコントローラ5に波形ジェネレータユニット16とのデータ転送命令を行う(S239)。それに応答して,波形ジェネレータユニット16は,DMAコントローラ5からアクセス信号を供給される。波形ジェネレータユニット16のアドレスデコード回路230は,アクセス信号が波形ジェネレータユニット16宛であることを検知すると(S240),PMU203と起動カウンタ231へ電源起動信号265を出力する。PMU203は,電源起動信号265に応答して,スイッチ信号PSW3,PSW4を出力して,スイッチ208,209を順にオンさせて,波形ジェネレータユニット16へ供給するリソース内電源の起動を開始する(S241)。リソース内電源を昇圧している間,波形ジェネレータユニット16がDMAコントローラ5によりバスを介してアクセス信号を供給されれば(S240,S243,S246),バス制御回路233は,DMAコントローラ5からアクセス信号が供給されるバス201と波形ジェネレータユニット16とを接続するバス経路を遮断し,アクセス信号を命令バッファ234へ格納し(S241,S244,S247),バッファカウンタ235は命令バッファ234に格納されたアクセス信号の数をカウントする。リソース内電源が基準電位まで昇圧して起動が完了したら(S248),バス制御回路233は命令バッファ234と波形ジェネレータユニット16とを接続するバス経路を生成し,バッファカウンタ235のカウンタ値が0になるまで,命令バッファ234は格納されたアクセス信号を波形ジェネレータユニット16に転送する(S249)。バッファカウンタ235のカウンタ値が0になったとき,すなわち,命令バッファ234から波形ジェネレータユニット16へのアクセス信号の転送が終わったとき,バス制御回路233は,バス201から波形ジェネレータユニット16へのバス経路を生成し(S250),波形ジェネレータユニット16はバス201から直接アクセス信号を受信する通常動作を開始する(S251)。   After receiving the setting data for the waveform generator unit 16 by communication (S238), the car area network communication device unit 8 issues a data transfer command to the DMA controller 5 with the waveform generator unit 16 (S239). In response to this, the waveform generator unit 16 is supplied with an access signal from the DMA controller 5. When the address decoding circuit 230 of the waveform generator unit 16 detects that the access signal is addressed to the waveform generator unit 16 (S240), it outputs a power source activation signal 265 to the PMU 203 and the activation counter 231. In response to the power supply activation signal 265, the PMU 203 outputs switch signals PSW3 and PSW4, sequentially turns on the switches 208 and 209, and starts activation of the in-resource power supply supplied to the waveform generator unit 16 (S241). . If the waveform generator unit 16 is supplied with an access signal via the bus by the DMA controller 5 while boosting the power in the resource (S240, S243, S246), the bus control circuit 233 receives the access signal from the DMA controller 5. Is interrupted, the access signal is stored in the instruction buffer 234 (S241, S244, S247), and the buffer counter 235 stores the access stored in the instruction buffer 234. Count the number of signals. When the in-resource power supply is boosted to the reference potential and the startup is completed (S248), the bus control circuit 233 generates a bus path that connects the instruction buffer 234 and the waveform generator unit 16, and the counter value of the buffer counter 235 is set to 0. Until this happens, the instruction buffer 234 transfers the stored access signal to the waveform generator unit 16 (S249). When the counter value of the buffer counter 235 reaches 0, that is, when the transfer of the access signal from the instruction buffer 234 to the waveform generator unit 16 is completed, the bus control circuit 233 causes the bus from the bus 201 to the waveform generator unit 16. A path is generated (S250), and the waveform generator unit 16 starts a normal operation of receiving an access signal directly from the bus 201 (S251).

このようにして,カー・エリア・ネットワーク用通信機器ユニット8,波形ジェネレータユニット16は,CPU1,DMAコントローラ5からのアクセス信号にそれぞれ応答して,問題無くリソース内電源を供給されることが可能である。   In this way, the car area network communication device unit 8 and the waveform generator unit 16 can be supplied with in-resource power without problems in response to the access signals from the CPU 1 and the DMA controller 5, respectively. is there.

以上のとおり,第2の実施の形態によれば,マイクロコンピュータの電源起動時に電源を遮断したままだったリソースでは,CPU,DMAコントローラなどの制御ユニットがアクセス信号をリソース宛に供給したとき,各リソースの電源制御部は自分宛のアクセス信号にそれぞれ応答し対応するリソースに電源を供給する。したがって,CPUなどの制御ユニットは,電源起動時に電源遮断のままのリソースに対して,特別の電源起動制御を行うことなく,通常にアクセス動作を行えば,アクセス対象のリソースを起動させて所望の機能を実行させることができる。   As described above, according to the second embodiment, in a resource that remains off when the microcomputer is powered on, each control unit such as a CPU or DMA controller supplies an access signal to the resource. The resource power control unit responds to the access signal addressed to itself and supplies power to the corresponding resource. Therefore, if a control unit such as a CPU normally performs an access operation without performing special power activation control for a resource that remains in a power-off state when the power is activated, the resource to be accessed is activated and the desired resource is activated. The function can be executed.

[第3の実施の形態]
第3の実施の形態では,マイクロコンピュータの電源起動時は制御ユニットと最低限必要なリソースのみ電源が起動され,起動後において制御ユニットからアクセス信号を供給された2個のリソースのうち,一方のリソースは,自分宛のアクセス信号に応答してリソース内電源を供給され,他方のリソースは,自分宛のアクセス信号に応答してリソース内電源を供給されることに加えて,一方のリソースの電源起動にも応答してリソース内電源を供給される。
[Third Embodiment]
In the third embodiment, when the power source of the microcomputer is activated, the power source is activated only for the control unit and the minimum necessary resources, and after the activation, one of the two resources supplied with the access signal from the control unit is activated. The resource is supplied with power in the resource in response to the access signal addressed to itself, and the other resource is supplied with power in the resource in response to the access signal addressed to itself. In-resource power is supplied in response to startup.

図12は,第3の実施の形態における電源制御部とリソース内電源供給部の回路図である。個別に電源を供給または遮断可能な電源遮断領域に設けられているリソース306,310の電源制御部302,307とリソース内電源供給部303〜305,308,309は,第2の実施の形態における電源制御部202,207とリソース内電源供給部203〜205,208,209に相当する。ただし,第3の実施の形態は,電源制御部307が連続起動フラグ311,ANDゲート312,ORゲート313を有する点で,第2の実施の形態とは異なる。以下,第2の実施の形態と異なる点に関して説明する。   FIG. 12 is a circuit diagram of the power control unit and the in-resource power supply unit in the third embodiment. The power control units 302 and 307 and the in-resource power supply units 303 to 305, 308, and 309 of the resources 306 and 310 and the power source supply units 303 to 305, 308, and 309 provided in the power cut-off area where power can be individually supplied or cut off are the same as in the second embodiment. This corresponds to the power control units 202 and 207 and the in-resource power supply units 203 to 205, 208 and 209. However, the third embodiment is different from the second embodiment in that the power supply control unit 307 includes a continuous activation flag 311, an AND gate 312, and an OR gate 313. Hereinafter, differences from the second embodiment will be described.

1ビットのフラグである連続起動フラグ311は,電源制御部307がリソース306の電源起動に応答してリソース310内に電源を供給するか否かを表し,プログラムの実行に基づきCPU1などの制御ユニットから設定可能である。このフラグがHレベルのとき,電源制御部307はリソース306の電源起動に応答してリソース310内に電源を供給し,Lレベルのときは供給しない。   A continuous activation flag 311 that is a 1-bit flag indicates whether or not the power supply control unit 307 supplies power to the resource 310 in response to the power activation of the resource 306. Can be set. When this flag is at the H level, the power control unit 307 supplies power to the resource 310 in response to the power activation of the resource 306, and does not supply it when at the L level.

ANDゲート312は,電源制御部302の電源起動信号346と連続起動フラグ311とを入力信号とし,入力信号がともにHレベルのときのみ出力信号はHレベルとなる。   The AND gate 312 receives the power activation signal 346 and the continuous activation flag 311 of the power control unit 302 as input signals, and the output signal becomes H level only when both input signals are at H level.

ORゲート313は,アドレスデコード回路330がアクセス信号が自分宛であると検知したときに出力する電源起動信号365と,ANDゲート312の出力信号とを入力信号とし,入力信号のいずれかがHレベルであれば,電源起動信号376をPMU303と起動カウンタ331へ供給する。PMU303は電源起動信号376に応答して,Lレベルのスイッチ信号PSW3,PSW4を一定の時間間隔をおいて出力し,電源スイッチ308,309を順にオンさせる。したがって,連続起動フラグがHレベルであれば,CPU1などの制御ユニットはリソース306にアクセス信号を供給することにより,リソース306と310の両方に対して電源供給動作を開始する。   The OR gate 313 receives the power activation signal 365 output when the address decode circuit 330 detects that the access signal is addressed to itself and the output signal of the AND gate 312 as input signals, and any of the input signals is at the H level. If so, the power activation signal 376 is supplied to the PMU 303 and the activation counter 331. In response to the power activation signal 376, the PMU 303 outputs L level switch signals PSW3 and PSW4 at regular time intervals, and sequentially turns on the power switches 308 and 309. Therefore, if the continuous activation flag is at the H level, the control unit such as CPU 1 starts the power supply operation for both the resources 306 and 310 by supplying the access signal to the resource 306.

起動カウンタ331は,電源起動信号376に応答し,図示しないクロックに同期してカウントを開始し,リソース内電源が基準電位まで昇圧するまでの時間,すなわち電源起動待ち時間をカウントする。起動カウンタ331は,予め定められたカウント数nまでカウントを完了すると,電源起動待ち信号366を電源ステータス回路332へ出力する。   The activation counter 331 starts counting in synchronization with a clock (not shown) in response to the power activation signal 376, and counts the time until the in-resource power supply is boosted to the reference potential, that is, the power activation waiting time. When the activation counter 331 completes the count up to a predetermined count number n, the activation counter 331 outputs a power activation wait signal 366 to the power status circuit 332.

図13は,第3の実施の形態における電源制御部の動作を示すフローチャート図である。   FIG. 13 is a flowchart illustrating the operation of the power supply control unit according to the third embodiment.

まず,リソース306,310などの電源起動時に動作が不要なリソースは電源遮断状態のままにして,マイクロコンピュータを電源起動する。そして,CPU1などの制御ユニットから連続起動フラグ311をHレベルに設定する(S301)。その後,リソース306は,CPU1などの制御ユニットからバス301を介してアクセス信号を供給される。   First, the resources such as the resources 306 and 310 that do not need to be operated when the power is turned on remain in the power-off state, and the microcomputer is turned on. Then, the continuous activation flag 311 is set to the H level from a control unit such as the CPU 1 (S301). Thereafter, the resource 306 is supplied with an access signal from a control unit such as the CPU 1 via the bus 301.

リソース306のアドレスデコード回路320はアクセス信号がリソース306宛であることを検知すると(S302),PMU303と起動カウンタ321と電源ステータス回路322とANDゲート312とへ電源起動信号346を出力する。   When the address decoding circuit 320 of the resource 306 detects that the access signal is addressed to the resource 306 (S302), it outputs a power activation signal 346 to the PMU 303, the activation counter 321, the power status circuit 322, and the AND gate 312.

PMU303は,電源起動信号346に応答して,スイッチ信号PSW1,PSW2を順に出力して,スイッチ304,305を順にオンさせて,リソース306へ供給するリソース内電源の起動を開始する(S310)。   In response to the power activation signal 346, the PMU 303 sequentially outputs the switch signals PSW1 and PSW2, turns on the switches 304 and 305 in sequence, and starts activation of the in-resource power supplied to the resource 306 (S310).

一方,ANDゲート312は電源起動信号346と連続起動フラグ311に応答してORゲート313にHレベルの出力信号を供給し,ORゲート313は電源起動信号376をPMU303へ出力する。PMU303は,電源起動信号376に応答して,スイッチ信号PSW3,PSW4を出力して,スイッチ308,309を順にオンさせて,リソース310へ供給するリソース内電源の起動を開始する(S320)。   On the other hand, the AND gate 312 supplies an H level output signal to the OR gate 313 in response to the power activation signal 346 and the continuous activation flag 311, and the OR gate 313 outputs the power activation signal 376 to the PMU 303. In response to the power activation signal 376, the PMU 303 outputs switch signals PSW3 and PSW4, turns on the switches 308 and 309 in order, and starts activation of the in-resource power supplied to the resource 310 (S320).

そして,電源制御部302,307はそれぞれ,第2の実施の形態と同様に,リソース306,310に対して電源供給動作を行う(S311〜S315,S321〜S325)。   Then, the power control units 302 and 307 perform power supply operations to the resources 306 and 310, respectively, as in the second embodiment (S311 to S315, S321 to S325).

図14は,第3の実施の形態におけるタイムチャートを示す図である。図13のフローチャートに示された電源制御部302,307での動作について信号波形図が示されている。電源制御部302,307はクロック341に同期して動作する。また,アドレス・データ信号342と,ライト信号344がCPU1などの制御ユニットよりバス301を介してリソース306,310に供給される。以下,クロック341のサイクルT1〜T34に基づいて,電源制御部内の動作について説明する。   FIG. 14 is a diagram illustrating a time chart according to the third embodiment. A signal waveform diagram is shown for the operation of the power supply control units 302 and 307 shown in the flowchart of FIG. The power control units 302 and 307 operate in synchronization with the clock 341. An address / data signal 342 and a write signal 344 are supplied from the control unit such as the CPU 1 to the resources 306 and 310 via the bus 301. Hereinafter, based on cycles T1 to T34 of the clock 341, the operation in the power supply control unit will be described.

アドレス・データ信号342として,サイクルT2でアドレスadrA−0が,サイクルT3でデータdataA−0が供給される。アドレスデコード回路320,330はアドレス・データ信号342のうち,アドレスadrA−0をアドレス信号343,362として内部でラッチし,それぞれ自分宛のアドレスか否かを検出する。図14では,アドレスデコード回路320がアドレスadrA−0はリソース306宛であることを検出し,サイクルT3でHレベルのアドレスデコード信号345を出力している。これに応答して,サイクルT4で電源起動信号346がHレベルになり起動カウンタ321がnからカウントダウンを開始し,起動カウンタのカウンタ値である電源起動待ち時間348がnからクロック341に同期してデクリメントされている。また,サイクルT4から命令バッファ324内の各バッファ352に,アクセス信号であるアドレスとデータとが順に格納される。その後,リソース306に対応する電源制御部302は,第2の実施の形態における,リソース206に対応する電源制御部202と同様な電源供給動作を行う。   As address / data signal 342, address adrA-0 is supplied in cycle T2, and data dataA-0 is supplied in cycle T3. The address decoding circuits 320 and 330 internally latch the address adrA-0 as the address signals 343 and 362 out of the address / data signal 342, and detect whether the address is addressed to itself. In FIG. 14, the address decode circuit 320 detects that the address adrA-0 is addressed to the resource 306, and outputs an H-level address decode signal 345 at cycle T3. In response to this, the power supply activation signal 346 becomes H level in cycle T4, the activation counter 321 starts counting down from n, and the power supply activation waiting time 348 as the counter value of the activation counter is synchronized with the clock 341 from n. It has been decremented. In addition, from the cycle T4, addresses and data as access signals are sequentially stored in the respective buffers 352 in the instruction buffer 324. Thereafter, the power control unit 302 corresponding to the resource 306 performs the same power supply operation as that of the power control unit 202 corresponding to the resource 206 in the second embodiment.

一方,リソース310に対応する電源制御部307では,アドレスadrA−0は自分宛ではないのでアドレスデコード信号364はHレベルにはならないが,ORゲート313が電源起動信号346に応答してサイクルT4で電源起動信号376がHレベルになる。それにより,起動カウンタ331がnからカウントダウンを開始し,起動カウンタのカウンタ値である電源起動待ち時間367がnからクロック341に同期してデクリメントされている。そして,サイクルT9,T10で1つ目のアドレスadrB−0,データdataB−0が供給され,T11から命令バッファ334内の各バッファ334に,アクセス信号であるアドレスとデータとが順に格納されている。サイクルT13,T14では次のアドレスとデータが供給され,その後サイクルT21,T22で8つ目のアドレスadrB−7,データdataB−7が供給されるまで,2つのクロックのサイクルでアドレスとデータが順番に供給され,それらは命令バッファ334に格納される。   On the other hand, in the power supply control unit 307 corresponding to the resource 310, the address adrA-0 is not addressed to itself, so the address decode signal 364 does not become H level, but the OR gate 313 responds to the power supply activation signal 346 in cycle T4. The power activation signal 376 becomes H level. As a result, the activation counter 331 starts counting down from n, and the power supply activation waiting time 367, which is the counter value of the activation counter, is decremented from n in synchronization with the clock 341. Then, in cycles T9 and T10, the first address adrB-0 and data dataB-0 are supplied, and addresses and data as access signals are sequentially stored from T11 to each buffer 334 in the instruction buffer 334. . In cycles T13 and T14, the next address and data are supplied, and then in cycles T21 and T22, the addresses and data are sequentially in two clock cycles until the eighth address adrB-7 and data dataB-7 are supplied. Are stored in the instruction buffer 334.

電源制御部307の電源ステータス状態はサイクルT4からT14までウェイト状態である。そして,サイクルT15で起動カウンタ331によるデクリメント値が「0」に達すると,起動カウンタ331は電源起動待ち信号366をHレベルにする。これにより電源ステータス状態はトランスファ状態になる。この電源ステータス信号368のトランスファ状態「10」に応答して,命令バッファ334は格納しているアクセス信号をリードカウンタ373のリードアドレスから順にリソース310に転送開始する。この時,電源ステータス信号368のトランスファ状態「10」により,バス制御回路333は命令バッファ334からリソース310へのバス経路を生成する。   The power status of the power controller 307 is a wait state from cycle T4 to T14. When the decrement value by the activation counter 331 reaches “0” in cycle T15, the activation counter 331 sets the power activation waiting signal 366 to the H level. As a result, the power supply status state becomes the transfer state. In response to the transfer state “10” of the power status signal 368, the instruction buffer 334 starts to transfer the stored access signal to the resource 310 in order from the read address of the read counter 373. At this time, the bus control circuit 333 generates a bus path from the instruction buffer 334 to the resource 310 according to the transfer state “10” of the power status signal 368.

そして,サイクルT27で8つ目のアクセス信号adrB−7,データdataB−7がリソース310に転送されるとバッファカウンタ335内のバッファカウント数374が「0」になり,電源ステータス回路332は電源ステータス信号368をパワーオン状態「11」にする。これに応答して,バス制御回路333はバス301からリソース310へのバス経路を生成する。その結果,サイクルT31で9つ目のアクセス信号adrB−8,dataB−8がリソース310に転送されると,リソース310はバス301から直接アクセス信号を入力する。   When the eighth access signal adrB-7 and data dataB-7 are transferred to the resource 310 in cycle T27, the buffer count number 374 in the buffer counter 335 becomes “0”, and the power status circuit 332 The signal 368 is set to the power-on state “11”. In response to this, the bus control circuit 333 generates a bus path from the bus 301 to the resource 310. As a result, when the ninth access signals adrB-8 and dataB-8 are transferred to the resource 310 in cycle T31, the resource 310 inputs the access signal directly from the bus 301.

以上のとおり,第3の実施の形態によれば,マイクロコンピュータの電源起動時に電源を遮断したままだったリソースでは,各リソースの電源制御部は連続起動フラグをもつことにより自分宛のアクセス信号に応答するだけでなく,関連するリソースの電源起動にも応答して,対応するリソースに電源を供給する。すなわち,CPUなどの制御ユニットは1つのリソースにアクセス信号を供給するだけで関連するリソースも含めて電源起動をすることが可能となる。したがって, リソース306の動作に起因してリソース310が動作する関係にある場合は,リソース306へのアクセスによるリソース306の電源起動に応答して,リソース310が自分宛のアクセスを待つことなく電源起動するので,リソース310がその後アクセスされた時にはすでに電源起動済であり,遅延することなく動作を開始することができる。   As described above, according to the third embodiment, for the resources that remain shut off when the microcomputer is powered on, the power control unit of each resource has the continuous activation flag so that the access signal addressed to itself is displayed. In addition to responding, it responds to power activation of the related resource and supplies power to the corresponding resource. That is, a control unit such as a CPU can start up the power supply including the related resources only by supplying an access signal to one resource. Therefore, when there is a relationship in which the resource 310 operates due to the operation of the resource 306, the resource 310 is activated without waiting for access to itself in response to the activation of the resource 306 by accessing the resource 306. Therefore, when the resource 310 is subsequently accessed, the power supply has already been activated, and the operation can be started without delay.

[第4の実施の形態]
第4の実施の形態では,マイクロコンピュータの電源起動時は制御ユニットと最低限必要なリソースのみ電源が起動され,起動後において制御ユニットからアクセス信号を供給された2個のリソースのうち,一方のリソースは,自分宛のアクセス信号に応答してリソース内電源を供給され,他のリソースは,自分宛のアクセス信号を検知したときに一方のリソースのリソース内電源が基準電位まで昇圧することを待って,リソース内電源を供給される。
[Fourth Embodiment]
In the fourth embodiment, when the microcomputer is activated, only the control unit and the minimum necessary resources are activated. After the activation, one of the two resources supplied with an access signal from the control unit is activated. The resource is supplied with the in-resource power in response to the access signal addressed to itself, and the other resource waits for the in-resource power supply of one resource to increase to the reference potential when the access signal addressed to itself is detected. Power in the resource.

図15は,第4の実施の形態における電源制御部とリソース内電源供給部の回路図である。個別に電源を供給または遮断可能な電源遮断領域に設けられているリソース406,410の電源制御部402,407とリソース内電源供給部403〜405,408,409は,第2の実施の形態における電源制御部202,207とリソース内電源供給部203〜205,208,209に相当する。ただし,第4の実施の形態は,電源制御部407が電源起動待機フラグ411,ORゲート412,ANDゲート413を有する点で,第2の実施の形態とは異なる。以下,第2の実施の形態と異なる点に関して説明する。   FIG. 15 is a circuit diagram of the power control unit and the in-resource power supply unit according to the fourth embodiment. The power control units 402 and 407 of the resources 406 and 410 and the in-resource power supply units 403 to 405, 408, and 409 provided in the power cut-off area where power can be individually supplied or cut off are the same as those in the second embodiment. This corresponds to the power control units 202 and 207 and the in-resource power supply units 203 to 205, 208 and 209. However, the fourth embodiment is different from the second embodiment in that the power control unit 407 includes a power activation standby flag 411, an OR gate 412, and an AND gate 413. Hereinafter, differences from the second embodiment will be described.

1ビットのフラグである電源起動待機フラグ411は,電源制御部407が自分宛のアクセス信号を検知したときにリソース406のリソース内電源が基準電位まで昇圧するまで待ってリソース410内に電源を供給するか否かを表し,プログラムの実行に基づきCPU1などの制御ユニットから設定可能である。このフラグがHレベルのとき,電源制御部407は,自分宛のアクセス信号を検知したときにリソース406のリソース内電源が基準電位まで昇圧することを待って,リソース410内に電源を供給し,Lレベルのときは供給しない。   The power activation standby flag 411, which is a 1-bit flag, supplies power to the resource 410 after waiting until the power in the resource of the resource 406 increases to the reference potential when the power control unit 407 detects an access signal addressed to itself. It can be set from a control unit such as the CPU 1 based on the execution of the program. When this flag is at H level, the power supply control unit 407 waits for the power supply in the resource of the resource 406 to be boosted to the reference potential when detecting the access signal addressed to itself, and supplies power to the resource 410, Not supplied when at L level.

ORゲート412は,電源制御部402の電源起動待ち信号447と電源起動待機フラグ411の反転値とを入力信号とし,入力信号のいずれかがHレベルであれば出力信号はHレベルとなる。したがって,電源起動待機フラグがHレベルに設定されている場合は,リソース406の電源制御部402内の電源起動待ち信号447がHレベルに立ち上がってから,ORゲート412の出力がHレベルになる。   The OR gate 412 receives the power activation waiting signal 447 of the power controller 402 and the inverted value of the power activation waiting flag 411 as input signals, and if any of the input signals is H level, the output signal becomes H level. Therefore, when the power activation standby flag is set to H level, the output of the OR gate 412 becomes H level after the power activation waiting signal 447 in the power control unit 402 of the resource 406 rises to H level.

ANDゲート413は,アドレスデコード回路430がアクセス信号が自分宛であると検知したときに出力する電源起動信号465と,ORゲート412の出力信号とを入力信号とし,入力信号がともにHレベルのときのみ電源起動信号476をPMU403と起動カウンタ431へ供給する。PMU403は電源起動信号476に応答して,Lレベルのスイッチ信号PSW3,PSW4を一定の時間間隔をおいて出力し,電源スイッチ408,409を順にオンさせる。すなわち電源起動待機フラグがHレベルであれば,電源制御部407は,リソース410宛のアクセス信号が供給されてそれを検知したとき,リソース406のリソース内電源が昇圧完了するのを待ってからリソース410の電源供給動作を開始する。   The AND gate 413 receives the power activation signal 465 output when the address decoding circuit 430 detects that the access signal is addressed to itself and the output signal of the OR gate 412 as input signals, and when both input signals are at the H level. Only the power activation signal 476 is supplied to the PMU 403 and the activation counter 431. In response to the power activation signal 476, the PMU 403 outputs L level switch signals PSW3 and PSW4 at regular time intervals, and sequentially turns on the power switches 408 and 409. In other words, if the power activation standby flag is at the H level, the power supply control unit 407 waits for the completion of boosting of the in-resource power supply of the resource 406 when the access signal addressed to the resource 410 is supplied and detected. The power supply operation 410 is started.

起動カウンタ431は,電源起動信号476に応答し,図示しないクロックに同期してカウントを開始し,リソース内電源が基準電位まで昇圧するまでの時間,すなわち電源起動待ち時間をカウントする。起動カウンタ431は,予め定められたカウント数nまでカウントを完了すると,電源起動待ち信号466を電源ステータス回路432へ出力する。   The activation counter 431 responds to the power activation signal 476, starts counting in synchronization with a clock (not shown), and counts the time until the in-resource power supply is boosted to the reference potential, that is, the power activation waiting time. When the start counter 431 completes the count up to a predetermined count number n, the start counter 431 outputs a power start wait signal 466 to the power status circuit 432.

図16は,第4の実施の形態における電源制御部の動作を示すフローチャート図である。まず,リソース406,410などの電源起動時に動作が不要なリソースは電源遮断状態のままにして,マイクロコンピュータを電源起動する。そして,CPU1などの制御ユニットから電源起動待機フラグ411をHレベルに設定する(S401)。その後,リソース406,410は,CPU1などの制御ユニットからバス401を介してアクセス信号を供給される。   FIG. 16 is a flowchart showing the operation of the power supply control unit in the fourth embodiment. First, the resources such as the resources 406 and 410 that do not need to be operated when the power is turned on remain in the power-off state, and the microcomputer is turned on. Then, the power activation standby flag 411 is set to the H level from the control unit such as the CPU 1 (S401). Thereafter, the resources 406 and 410 are supplied with an access signal via a bus 401 from a control unit such as the CPU 1.

最初にリソース406のアドレスデコード回路420が,アクセス信号がリソース406宛であることを検知すると(S402),アドレスデコード回路420はPMU403と起動カウンタ421と電源ステータス回路422へ電源起動信号446を出力する。   First, when the address decoding circuit 420 of the resource 406 detects that the access signal is addressed to the resource 406 (S402), the address decoding circuit 420 outputs the power activation signal 446 to the PMU 403, the activation counter 421, and the power status circuit 422. .

PMU403は,電源起動信号446に応答して,スイッチ信号PSW1,PSW2を出力して,スイッチ404,405を順にオンさせて,リソース406へ供給するリソース内電源の起動を開始する(S410)。そして,電源制御部402は,第2の実施の形態における電源制御部202と同様に,リソース406に対して電源供給動作を行う(S411〜S415)。ただし,第4の実施の形態では,リソース406内の電源が基準電位まで昇圧して起動が完了したら(S412),起動カウンタ421は電源起動待ち信号447を電源ステータス回路422だけでなく,ORゲート412へも供給する。   In response to the power activation signal 446, the PMU 403 outputs switch signals PSW1 and PSW2, sequentially turns on the switches 404 and 405, and starts activation of the in-resource power supply supplied to the resource 406 (S410). And the power supply control part 402 performs the power supply operation | movement with respect to the resource 406 similarly to the power supply control part 202 in 2nd Embodiment (S411-S415). However, in the fourth embodiment, when the power supply in the resource 406 is boosted to the reference potential and the start-up is completed (S412), the start-up counter 421 uses not only the power supply status circuit 422 but also the OR gate 412 is also supplied.

一方,リソース406へのアクセスに続いてリソース410へのアクセスが発生すると,リソース410のアドレスデコード回路430は,アクセス信号がリソース410宛であることを検知し(S403),ANDゲート413と電源ステータス回路へ電源起動信号465を出力する。そして,ORゲート412の出力信号がLレベルである間,すなわちリソース406内の電源が基準電位まで昇圧していないために電源起動待ち信号447がHレベルになっていない間は,電源制御部407は,リソース410内の電源起動を待機する(S420)。そして,リソース406内の電源が基準電位まで昇圧完了して,起動カウンタ421が電源起動待ち信号447をHレベルにしたら(S412),電源制御部407はリソース410へ供給するリソース内電源の起動を開始する(S421)。そして,電源制御部407は,第2の実施の形態における電源制御部207と同様に,リソース410に対して電源供給動作を行う(S422〜S426)。   On the other hand, when access to the resource 410 occurs following access to the resource 406, the address decoding circuit 430 of the resource 410 detects that the access signal is addressed to the resource 410 (S403), and the AND gate 413 and the power supply status are detected. A power activation signal 465 is output to the circuit. While the output signal of the OR gate 412 is at the L level, that is, while the power activation waiting signal 447 is not at the H level because the power in the resource 406 is not boosted to the reference potential, the power control unit 407 Waits for power activation in the resource 410 (S420). When the power supply in the resource 406 has been boosted to the reference potential and the activation counter 421 sets the power activation wait signal 447 to the H level (S412), the power control unit 407 activates the in-resource power supply to be supplied to the resource 410. Start (S421). Then, the power supply control unit 407 performs a power supply operation to the resource 410, similarly to the power supply control unit 207 in the second embodiment (S422 to S426).

図17は,第4の実施の形態におけるタイムチャートを示す図である。図16のフローチャートに示された電源制御部402,407での動作について信号波形図が示されている。電源制御部402,407はクロック441に同期して動作する。また,アドレス・データ信号442と,ライト信号444がCPU1などの制御ユニットよりバス401を介してリソース406,410に供給される。以下,クロック441のサイクルT1〜T34に基づいて,電源制御部内の動作について説明する。   FIG. 17 is a diagram illustrating a time chart according to the fourth embodiment. A signal waveform diagram is shown for the operation in the power supply control units 402 and 407 shown in the flowchart of FIG. The power control units 402 and 407 operate in synchronization with the clock 441. An address / data signal 442 and a write signal 444 are supplied to the resources 406 and 410 via the bus 401 from a control unit such as the CPU 1. Hereinafter, based on cycles T1 to T34 of the clock 441, the operation in the power supply control unit will be described.

アドレス・データ信号442として,サイクルT2でアドレスadrA−0が,サイクルT3でデータdataA−0が供給されと,アドレスデコード回路420はアドレスadrA−0がリソース406宛であることを検出し,サイクルT3でHレベルのアドレスデコード信号445を出力する。これに応答して,サイクルT4で電源起動信号446がHレベルになり起動カウンタ421がnからカウントダウンを開始し,起動カウンタ421のカウンタ値である電源起動待ち時間448がnからクロック441に同期してデクリメントする。また,サイクルT4から命令バッファ424内の各バッファ452に,アクセス信号であるアドレスとデータとが順に格納される。その後,リソース406に対応する電源制御部402は,第2の実施の形態における,リソース206に対応する電源制御部202と同様な電源供給動作を行う。   When the address adrA-0 is supplied as the address / data signal 442 in cycle T2 and the data dataA-0 is supplied in cycle T3, the address decoding circuit 420 detects that the address adrA-0 is addressed to the resource 406, and the cycle T3 The H level address decode signal 445 is output. In response to this, the power activation signal 446 becomes H level in cycle T4, the activation counter 421 starts counting down from n, and the power activation delay 448 that is the counter value of the activation counter 421 is synchronized with the clock 441 from n. Decrement. Further, from cycle T4, addresses and data as access signals are sequentially stored in the respective buffers 452 in the instruction buffer 424. Thereafter, the power control unit 402 corresponding to the resource 406 performs the same power supply operation as that of the power control unit 202 corresponding to the resource 206 in the second embodiment.

一方,リソース410に対応する電源制御部407がサイクルT9,T10で1つ目のアドレスadrB−0,データdataB−0を供給されると,アドレスデコード回路430はアクセス信号がリソース410宛であることを検知し,Hレベルのアドレスデコード信号464を出力する。これに応答して,サイクルT11でアドレスデコード回路430は電源起動信号465をHレベルにするが,このときリソース406内の電源は基準電位まで昇圧を完了しておらず,電源起動待ち信号447はLレベルであるため,ANDゲート413の出力である電源起動信号476はLレベルのままである。また,電源制御部407はサイクルT11にアドレスadrB−0,データdataB−0を命令バッファ434内の各バッファ471に格納し,その後サイクルT21,T22で8つ目のアドレスadrB−7,データdataB−7が供給されるまで,2つのクロックサイクルでアドレスとデータを順番に供給され,それらを命令バッファ434に格納する。   On the other hand, when the power control unit 407 corresponding to the resource 410 is supplied with the first address adrB-0 and data dataB-0 in cycles T9 and T10, the address decoding circuit 430 indicates that the access signal is addressed to the resource 410. And an H-level address decode signal 464 is output. In response to this, the address decode circuit 430 sets the power supply activation signal 465 to the H level in cycle T11. At this time, the power supply in the resource 406 has not completed boosting to the reference potential, and the power supply activation wait signal 447 is Since it is at the L level, the power activation signal 476 that is the output of the AND gate 413 remains at the L level. The power supply control unit 407 stores the address adrB-0 and the data dataB-0 in each buffer 471 in the instruction buffer 434 in the cycle T11, and then the eighth address adrB-7 and the data dataB- in the cycles T21 and T22. Until 7 is supplied, addresses and data are sequentially supplied in two clock cycles, and stored in the instruction buffer 434.

サイクルT15で起動カウンタ421によるデクリメント値が「0」に達すると,起動カウンタ421は電源起動待ち信号447をHレベルにする。これに応答して,電源制御部407のANDゲート413はHレベルの電源起動信号476をPMU403と起動カウンタ431に供給し,PMU403がPSW3,4を順にLレベルにし,リソース410は電源昇圧状態になり電源ステータス状態はウェイト状態となる。そして,電源起動信号476に応答して,起動カウンタ431はnからカウントダウンを開始し,起動カウンタのカウンタ値である電源起動待ち時間467がnからクロック441に同期してデクリメントされる。   When the decrement value by the activation counter 421 reaches “0” in cycle T15, the activation counter 421 sets the power activation waiting signal 447 to the H level. In response to this, the AND gate 413 of the power control unit 407 supplies the H level power activation signal 476 to the PMU 403 and the activation counter 431, and the PMU 403 sequentially sets the PSWs 3 and 4 to the L level, and the resource 410 enters the power boosting state. The power status state becomes the wait state. In response to the power activation signal 476, the activation counter 431 starts counting down from n, and the power activation delay 467, which is the counter value of the activation counter, is decremented in synchronization with the clock 441.

サイクルT26でこのデクリメント値が「0」となり,起動カウンタ431は電源起動待ち信号466を電源ステータス回路432に供給する。これにより電源ステータス状態はトランスファ状態となり,命令バッファ434は格納しているアクセス信号をリードカウンタ473のリードアドレスから順にリソース410に転送開始する。このとき,電源ステータス信号468のトランスファ状態「10」により,バス制御回路433は命令バッファ434からリソース410へのバス経路を生成する。その後,リソース410に対応する電源制御部407は,第2の実施の形態における,リソース210に対応する電源制御部207と同様な電源供給動作を行う。   In cycle T26, the decrement value becomes “0”, and the activation counter 431 supplies the power activation wait signal 466 to the power status circuit 432. As a result, the power supply status state becomes the transfer state, and the instruction buffer 434 starts to transfer the stored access signal to the resource 410 in order from the read address of the read counter 473. At this time, the bus control circuit 433 generates a bus path from the instruction buffer 434 to the resource 410 according to the transfer state “10” of the power status signal 468. Thereafter, the power control unit 407 corresponding to the resource 410 performs the same power supply operation as that of the power control unit 207 corresponding to the resource 210 in the second embodiment.

以上のとおり,第4の実施の形態によれば,マイクロコンピュータの電源起動時に電源を遮断したままだったリソースでは,関連するリソース同士で電源起動に優先順位がある場合,各リソースの電源制御部は,電源起動待機フラグを設定することにより,優先度の高いリソースから順に電源起動することが可能となる。したがって,リソース406の処理結果をリソース410の処理で使用するなどリソース間で処理の優先順位がある場合,故障などによりリソース406の電源起動が遅れて,リソース410が先に電源起動してしまうと,リソース410が誤作動する可能性がある。そこで,リソース410の電源制御部407は,電源起動待機フラグによりリソース410の電源起動を待機させて,リソース406の電源起動後にリソース410の電源起動を行うことで,リソース410の誤作動を防止する。   As described above, according to the fourth embodiment, in the resources that remain off when the microcomputer is powered on, if the related resources have priority in power activation, the power control unit of each resource By setting the power activation standby flag, it becomes possible to activate the power sequentially from the resource with the highest priority. Therefore, when there is a priority of processing among resources, such as when the processing result of the resource 406 is used in the processing of the resource 410, if the resource 410 is powered on first due to a delay in the power activation of the resource 406 due to a failure or the like , The resource 410 may malfunction. Therefore, the power control unit 407 of the resource 410 waits for the power activation of the resource 410 by the power activation standby flag, and performs the power activation of the resource 410 after the power activation of the resource 406, thereby preventing a malfunction of the resource 410. .

以上の実施の形態をまとめると,次の付記のとおりである。   The above embodiment is summarized as follows.

(付記1)
外部から電源を供給されるマイクロコンピュータにおいて,
それぞれの所定の機能を有し,外部から供給される前記電源の起動時に電源が供給されない複数のリソースと,
前記複数のリソースにバスを介して接続され,前記リソースに前記バスを介してアクセス信号を供給する制御ユニットと,
前記複数のリソースにそれぞれ設けられ,電源起動信号に応答して外部から供給される前記電源から対応するリソースにリソース内電源を供給する複数のリソース内電源供給部と,
前記複数のリソースにそれぞれ設けられ,前記バスを介して供給されるアクセス信号が対応するリソース宛か否かを検知し,前記アクセス信号が対応するリソース宛の場合に前記電源起動信号を対応するリソース内電源供給部に出力できる電源制御部とを有するマイクロコンピュータ。
(Appendix 1)
In a microcomputer supplied with power from outside,
A plurality of resources each having a predetermined function, to which power is not supplied when the power supplied from outside is activated;
A control unit connected to the plurality of resources via a bus and supplying an access signal to the resources via the bus;
A plurality of in-resource power supply units that are respectively provided in the plurality of resources and that supply in-resource power to the corresponding resources from the power supplied from outside in response to a power activation signal;
A resource provided to each of the plurality of resources, detecting whether or not an access signal supplied via the bus is addressed to a corresponding resource, and when the access signal is addressed to a corresponding resource, the resource corresponding to the power activation signal A microcomputer having a power control unit capable of outputting to an internal power supply unit.

(付記2)
付記1において,
前記リソース内電源供給部は,前記電源起動信号に応答して前記リソース内電源を基準電位まで昇圧し,
前記電源制御部は,前記アクセス信号を一時的に記憶するバッファを有し,前記リソース宛のアクセス信号の検知から前記リソース内電源が前記基準電位まで昇圧する間,前記バスを介して供給されるアクセス信号を前記バッファに記憶し,前記リソース内電源が前記基準電位に昇圧した後,前記バッファに記憶されたアクセス信号を前記リソースに転送するマイクロコンピュータ。
(Appendix 2)
In Appendix 1,
The in-resource power supply unit boosts the in-resource power supply to a reference potential in response to the power activation signal,
The power control unit has a buffer for temporarily storing the access signal, and is supplied via the bus while the power in the resource is boosted to the reference potential from detection of the access signal addressed to the resource. A microcomputer for storing an access signal in the buffer and transferring the access signal stored in the buffer to the resource after the in-resource power source has boosted the reference potential.

(付記3)
付記2において,
前記電源制御部は,前記アクセス信号を前記リソースに供給する伝送路を制御する伝送路制御部を有し,
前記伝送路制御部は,前記リソース宛のアクセス信号を検知したとき前記バスとリソースとを接続する伝送路を遮断し,前記リソース内電源が前記基準電位まで昇圧したとき前記バッファとリソースとを接続する伝送路を生成し,前記バッファのアクセス信号を前記リソースに転送完了したとき前記バスとリソースとを接続する伝送路を開通するマイクロコンピュータ。
(Appendix 3)
In Appendix 2,
The power control unit includes a transmission line control unit that controls a transmission line that supplies the access signal to the resource;
The transmission line control unit cuts off a transmission line connecting the bus and the resource when detecting an access signal addressed to the resource, and connects the buffer and the resource when the power in the resource is boosted to the reference potential. And a microcomputer that opens the transmission line that connects the bus and the resource when the transfer of the access signal of the buffer to the resource is completed.

(付記4)
付記1または2において,
前記複数のリソースは,第1及び第2のリソースを有し,
前記第2のリソースに設けられた第2の電源制御部は,前記第2のリソース宛のアクセス信号を検知したときに加えて,前記第1のリソースへの電源起動信号に応答して前記第2のリソースへの電源起動信号を出力するマイクロコンピュータ。
(Appendix 4)
In Appendix 1 or 2,
The plurality of resources include first and second resources,
The second power control unit provided in the second resource responds to the power activation signal to the first resource in addition to detecting the access signal addressed to the second resource. A microcomputer that outputs a power activation signal to two resources.

(付記5)
付記4において,
前記第2の電源制御部において,前記第1のリソースへの電源起動信号に応答して前記第2のリソースへの電源起動信号を出力するか否かを示す第1のフラグが前記制御ユニットから設定可能であるマイクロコンピュータ。
(Appendix 5)
In Appendix 4,
In the second power control unit, a first flag indicating whether or not to output a power activation signal to the second resource in response to a power activation signal to the first resource is output from the control unit. A microcomputer that is configurable.

(付記6)
付記2において,
前記複数のリソースは,第3及び第4のリソースを有し,
前記第4のリソースに設けられた第4の電源制御部(は,前記第4のリソース宛のアクセス信号を検知したときに,前記第3のリソースのリソース内電源が前記基準電位まで昇圧することを待って,前記第4のリソースへの電源起動信号を出力するマイクロコンピュータ。
(Appendix 6)
In Appendix 2,
The plurality of resources include third and fourth resources,
The fourth power control unit (provided in the fourth resource) boosts the in-resource power source of the third resource to the reference potential when detecting an access signal addressed to the fourth resource. And a microcomputer that outputs a power activation signal to the fourth resource.

(付記7)
付記6において,
前記第4の電源制御部において,前記第4のリソース宛のアクセス信号を検知したときに,前記第3のリソースのリソース内電源が前記基準電位まで昇圧することを待って,前記第4のリソースへの電源起動信号を出力するか否かを示す第2のフラグが前記制御ユニットから設定可能であるマイクロコンピュータ。
(Appendix 7)
In Appendix 6,
When the fourth power supply control unit detects an access signal addressed to the fourth resource, the fourth power supply control unit waits for the in-resource power supply of the third resource to be boosted to the reference potential. A microcomputer in which a second flag indicating whether or not to output a power activation signal to can be set from the control unit.

(付記8)
付記1において
前記電源制御部は,前記リソース宛のアクセス信号を検知し,前記電源起動信号を出力するアクセス検知部を有するマイクロコンピュータ。
(Appendix 8)
The microcomputer according to claim 1, wherein the power control unit includes an access detection unit that detects an access signal addressed to the resource and outputs the power activation signal.

(付記9)
付記3と付記8記載のマイクロコンピュータにおいて
前記電源制御部は,前記電源供給部が前記リソース内電源を昇圧開始してからの経過時間をカウントする起動カウンタと,前記リソース内電源の昇圧状態を検知する電源ステータス検知部とを有し,
前記起動カウンタは,前記電源起動信号に応答してカウントを開始し,所定のカウント値までカウントした後,前記リソース内電源の昇圧が完了したことを示す昇圧完了信号を前記電源ステータス検知部へ出力し,
前記電源ステータス検知部は,前記電源起動信号と前記昇圧完了信号を受信し,電源の昇圧状態を示す電源ステータス信号を,前記バッファと前記伝送路制御部へ出力し,
前記バッファは,前記電源ステータス信号に応答して,前記バッファに記憶されたアクセス信号を前記リソースに転送し,
前記伝送路制御部は,前記電源ステータス信号に応答して,前記バッファとリソースとを接続する伝送路を生成することを特徴とする電源制御部。
(Appendix 9)
In the microcomputers according to appendix 3 and appendix 8, the power control unit detects an activation counter that counts an elapsed time since the power supply unit starts boosting the in-resource power source, and detects a boosting state of the in-resource power source Power status detector
The activation counter starts counting in response to the power activation signal, counts up to a predetermined count value, and then outputs a boost completion signal indicating completion of boosting of the in-resource power source to the power status detector And
The power status detector receives the power activation signal and the boost completion signal, and outputs a power status signal indicating a boost status of the power to the buffer and the transmission path controller.
In response to the power status signal, the buffer transfers the access signal stored in the buffer to the resource,
The transmission line control unit generates a transmission line that connects the buffer and the resource in response to the power status signal.

(付記10)
付記9記載のマイクロコンピュータにおいて
前記バッファは,前記アクセス信号を格納するバッファ部と,前記バッファ部に格納されたデータ量をカウントするバッファカウンタ部とを有し,
前記バッファカウンタ部は,前記データ量のカウントがゼロとなる時,前記バッファから前記リソースに前記アクセス信号の供給が完了したことを示す供給完了信号を,前記電源ステータス検知部に出力し,
前記電源ステータス検知部は,前記供給完了信号に応答して,開通命令信号を前記伝送路制御部へ出力し,
前記伝送路制御部は,前記開通命令信号に応答して,前記バスと前記リソースとを接続する伝送路を開通することを特徴とするマイクロコンピュータ。
(Appendix 10)
The microcomputer according to appendix 9, wherein the buffer includes a buffer unit that stores the access signal, and a buffer counter unit that counts the amount of data stored in the buffer unit,
The buffer counter unit outputs a supply completion signal indicating that the supply of the access signal from the buffer to the resource is completed when the data amount count reaches zero, to the power status detector.
In response to the supply completion signal, the power status detector outputs an opening command signal to the transmission path controller.
The microcomputer is characterized in that the transmission path control unit opens a transmission path connecting the bus and the resource in response to the opening command signal.

OCD:オンチップデバッグ機能を提供するデバッグサポートユニット
FLASH:不揮発性半導体メモリ
XBS:32ビット幅の高速内部バス
AHB:内部バスインターフェース
DMAC:ダイレクトメモリアクセスコントローラ
CAN:カー・エリア・ネットワーク用通信機器ユニット
APB:32ビット幅の周辺バスインターフェース
CGEN:クロック生成回路
MFS:マルチファンクションシリアル
R−BUS:16ビット幅の周辺バスインターフェース
OCU:アウトプットコンペアユニット
FRT:フリーランタイマ
ICU:インプットキャプチャユニット
WD:ウォッチドッグタイマユニット
PPG:波形ジェネレータユニット
RLT:リロードタイマユニット
UDC:アップダウンカウンタ
RTC:リアルタイムクロックユニット
PMU:パワーマネージメントユニット
PSW:パワースイッチ信号
OCD: Debug support unit providing on-chip debugging function FLASH: Non-volatile semiconductor memory XBS: 32-bit wide high-speed internal bus AHB: Internal bus interface DMAC: Direct memory access controller CAN: Communication device unit APB for car area network : 32-bit peripheral bus interface CGEN: Clock generation circuit MFS: Multifunction serial R-BUS: 16-bit peripheral bus interface OCU: Output compare unit FRT: Free-run timer ICU: Input capture unit WD: Watchdog timer Unit PPG: Waveform generator unit RLT: Reload timer unit UDC: Up / down counter RTC: Real time clock Knit PMU: Power Management Unit PSW: power switch signal

Claims (7)

外部から電源を供給されるマイクロコンピュータにおいて,
それぞれの所定の機能を有し,外部から供給される前記電源の起動時に電源が供給されない複数のリソースと,
前記複数のリソースにバスを介して接続され,前記リソースに前記バスを介してアクセス信号を供給する制御ユニットと,
前記複数のリソースにそれぞれ設けられ,電源起動信号に応答して外部から供給される前記電源から対応するリソースにリソース内電源を供給する複数のリソース内電源供給部と,
前記複数のリソースにそれぞれ設けられ,前記バスを介して供給されるアクセス信号が対応するリソース宛か否かを検知し,前記アクセス信号が対応するリソース宛の場合に前記電源起動信号を対応するリソース内電源供給部に出力できる電源制御部とを有するマイクロコンピュータ。
In a microcomputer supplied with power from outside,
A plurality of resources each having a predetermined function, to which power is not supplied when the power supplied from outside is activated;
A control unit connected to the plurality of resources via a bus and supplying an access signal to the resources via the bus;
A plurality of in-resource power supply units that are respectively provided in the plurality of resources and that supply in-resource power to the corresponding resources from the power supplied from outside in response to a power activation signal;
A resource provided to each of the plurality of resources, detecting whether or not an access signal supplied via the bus is addressed to a corresponding resource, and when the access signal is addressed to a corresponding resource, the resource corresponding to the power activation signal A microcomputer having a power control unit capable of outputting to an internal power supply unit.
請求項1において,
前記リソース内電源供給部は,前記電源起動信号に応答して前記リソース内電源を基準電位まで昇圧し,
前記電源制御部は,前記アクセス信号を一時的に記憶するバッファを有し,前記リソース宛のアクセス信号の検知から前記リソース内電源が前記基準電位まで昇圧する間,前記バスを介して供給されるアクセス信号を前記バッファに記憶し,前記リソース内電源が前記基準電位に昇圧した後,前記バッファに記憶されたアクセス信号を前記リソースに転送するマイクロコンピュータ。
In claim 1,
The in-resource power supply unit boosts the in-resource power supply to a reference potential in response to the power activation signal,
The power control unit has a buffer for temporarily storing the access signal, and is supplied via the bus while the power in the resource is boosted to the reference potential from detection of the access signal addressed to the resource. A microcomputer for storing an access signal in the buffer and transferring the access signal stored in the buffer to the resource after the in-resource power source has boosted the reference potential.
請求項2において,
前記電源制御部は,前記アクセス信号を前記リソースに供給する伝送路を制御する伝送路制御部を有し,
前記伝送路制御部は,前記リソース宛のアクセス信号を検知したとき前記バスとリソースとを接続する伝送路を遮断し,前記リソース内電源が前記基準電位まで昇圧したとき前記バッファとリソースとを接続する伝送路を生成し,前記バッファのアクセス信号を前記リソースに転送完了したとき前記バスとリソースとを接続する伝送路を開通するマイクロコンピュータ。
In claim 2,
The power control unit includes a transmission line control unit that controls a transmission line that supplies the access signal to the resource;
The transmission line control unit cuts off a transmission line connecting the bus and the resource when detecting an access signal addressed to the resource, and connects the buffer and the resource when the power in the resource is boosted to the reference potential. And a microcomputer that opens the transmission line that connects the bus and the resource when the transfer of the access signal of the buffer to the resource is completed.
請求項1または2において,
前記複数のリソースは,第1及び第2のリソースを有し,
前記第2のリソースに設けられた第2の電源制御部は,前記第2のリソース宛のアクセス信号を検知したときに加えて,前記第1のリソースへの電源起動信号に応答して前記第2のリソースへの電源起動信号を出力するマイクロコンピュータ。
In claim 1 or 2,
The plurality of resources include first and second resources,
The second power control unit provided in the second resource responds to the power activation signal to the first resource in addition to detecting the access signal addressed to the second resource. A microcomputer that outputs a power activation signal to two resources.
請求項4において,
前記第2の電源制御部において,前記第1のリソースへの電源起動信号に応答して前記第2のリソースへの電源起動信号を出力するか否かを示す第1のフラグが前記制御ユニットから設定可能であるマイクロコンピュータ。
In claim 4,
In the second power control unit, a first flag indicating whether or not to output a power activation signal to the second resource in response to a power activation signal to the first resource is output from the control unit. A microcomputer that is configurable.
請求項2において,
前記複数のリソースは,第3及び第4のリソースを有し,
前記第4のリソースに設けられた第4の電源制御部は,前記第4のリソース宛のアクセス信号を検知したときに,前記第3のリソースのリソース内電源が前記基準電位まで昇圧することを待って,前記第4のリソースへの電源起動信号を出力するマイクロコンピュータ。
In claim 2,
The plurality of resources include third and fourth resources,
When a fourth power control unit provided in the fourth resource detects an access signal addressed to the fourth resource, the fourth resource control unit determines that the in-resource power supply of the third resource is boosted to the reference potential. A microcomputer that waits and outputs a power activation signal to the fourth resource.
請求項6において,
前記第4の電源制御部において,前記第4のリソース宛のアクセス信号を検知したときに,前記第3のリソースのリソース内電源が前記基準電位まで昇圧することを待って,前記第4のリソースへの電源起動信号を出力するか否かを示す第2のフラグが前記制御ユニットから設定可能であるマイクロコンピュータ。
In claim 6,
When the fourth power supply control unit detects an access signal addressed to the fourth resource, the fourth power supply control unit waits for the in-resource power supply of the third resource to be boosted to the reference potential. A microcomputer in which a second flag indicating whether or not to output a power activation signal to can be set from the control unit.
JP2011148214A 2011-07-04 2011-07-04 Microcomputer Active JP5917031B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011148214A JP5917031B2 (en) 2011-07-04 2011-07-04 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011148214A JP5917031B2 (en) 2011-07-04 2011-07-04 Microcomputer

Publications (2)

Publication Number Publication Date
JP2013016012A true JP2013016012A (en) 2013-01-24
JP5917031B2 JP5917031B2 (en) 2016-05-11

Family

ID=47688648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011148214A Active JP5917031B2 (en) 2011-07-04 2011-07-04 Microcomputer

Country Status (1)

Country Link
JP (1) JP5917031B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015011554A (en) * 2013-06-28 2015-01-19 富士通株式会社 Data acquisition apparatus and data acquisition program
WO2018042766A1 (en) * 2016-08-30 2018-03-08 株式会社ソシオネクスト Processing device, semiconductor integrated circuit and method for starting up semiconductor integrated circuit

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63126018A (en) * 1986-11-17 1988-05-30 Hitachi Ltd semiconductor integrated circuit
JPH0934601A (en) * 1995-03-31 1997-02-07 Sun Microsyst Inc Computer system power management method and computer system
US5675814A (en) * 1996-01-26 1997-10-07 Dell Usa, L.P. Apparatus and method for managing power consumption by I/O ports in a computer system
JPH10124201A (en) * 1996-10-22 1998-05-15 Toshiba Corp Power control method for personal computer and sound device
JP2002358142A (en) * 2001-05-31 2002-12-13 Ricoh Co Ltd Control device
JP2011090577A (en) * 2009-10-23 2011-05-06 Fujitsu Ltd Storage device, storage system and storage device starting method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63126018A (en) * 1986-11-17 1988-05-30 Hitachi Ltd semiconductor integrated circuit
JPH0934601A (en) * 1995-03-31 1997-02-07 Sun Microsyst Inc Computer system power management method and computer system
US5675814A (en) * 1996-01-26 1997-10-07 Dell Usa, L.P. Apparatus and method for managing power consumption by I/O ports in a computer system
JPH10124201A (en) * 1996-10-22 1998-05-15 Toshiba Corp Power control method for personal computer and sound device
JP2002358142A (en) * 2001-05-31 2002-12-13 Ricoh Co Ltd Control device
JP2011090577A (en) * 2009-10-23 2011-05-06 Fujitsu Ltd Storage device, storage system and storage device starting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JPN6015029476; 石原丈士,大山裕一郎,村上貴臣,渋谷尚久,鎌形映二: 'ホームネットワークにおける待機電力の削減に向けた遠隔起動技術の提案' マルチメディア,分散,協調とモバイル(DICOMO2010)シンポジウム論文集 , 20100707, Pages:1690〜1698, 社団法人情報処理学会 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015011554A (en) * 2013-06-28 2015-01-19 富士通株式会社 Data acquisition apparatus and data acquisition program
WO2018042766A1 (en) * 2016-08-30 2018-03-08 株式会社ソシオネクスト Processing device, semiconductor integrated circuit and method for starting up semiconductor integrated circuit
JPWO2018042766A1 (en) * 2016-08-30 2019-06-24 株式会社ソシオネクスト PROCESSING APPARATUS, SEMICONDUCTOR INTEGRATED CIRCUIT, AND START-UP METHOD OF SEMICONDUCTOR INTEGRATED CIRCUIT
US10997298B2 (en) 2016-08-30 2021-05-04 Socionext Inc. Processing apparatus, and semiconductor integrated circuit and boot method therefor
JP7014969B2 (en) 2016-08-30 2022-02-02 株式会社ソシオネクスト Processing equipment, semiconductor integrated circuits, and methods for starting semiconductor integrated circuits

Also Published As

Publication number Publication date
JP5917031B2 (en) 2016-05-11

Similar Documents

Publication Publication Date Title
US9785211B2 (en) Independent power collapse methodology
TWI443504B (en) Multi-core processor system, dynamic power management method thereof and control apparatus thereof
US9690353B2 (en) System and method for initiating a reduced power mode for one or more functional blocks of a processor based on various types of mode request
CN106681472B (en) heterogeneous multi-core processor power consumption control device and power consumption control method thereof
JP7493871B2 (en) Electronic device and method for responding to a wake-up trigger - Patents.com
CN114879829B (en) Power consumption management method and device, electronic equipment, graphic processor and storage medium
US20140189401A1 (en) Block-level sleep logic
US20210034442A1 (en) Inter-processor communication
CN102646446A (en) Hardware dynamic cache power management
US20190346908A1 (en) Voltage rail coupling sequencing based on upstream voltage rail coupling status
CN101387896B (en) Method and device for realizing on-chip main system wake-up and sleep functions in SOC
CN106063304B (en) System and method for message-based fine-grained system-on-chip power control
CN110865959A (en) Method and circuit for waking up I2C equipment
JP5917031B2 (en) Microcomputer
CN101303687A (en) A method for implementing on-chip communication in an embedded heterogeneous multi-core system
CN112416677B (en) Server with soft-off function and soft-off method
CN110007739B (en) A kind of noise shielding circuit and chip
US12235708B2 (en) Device and method for two-stage transitioning between reduced power states
US8645602B2 (en) Microcomputer
US20160085292A1 (en) Electronic device
JP5877348B2 (en) Memory control system and power control method
TW201407359A (en) Daisy-chained apparatus and system thereof
JP2007052685A (en) Microcontroller
CN109002159B (en) CPU state control circuit and method
JP4761950B2 (en) Input/Output Processor

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20130822

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140703

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150722

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20160118

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160224

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20160229

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160406

R150 Certificate of patent or registration of utility model

Ref document number: 5917031

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250