JP2005258991A - Standby control method - Google Patents

Standby control method Download PDF

Info

Publication number
JP2005258991A
JP2005258991A JP2004072263A JP2004072263A JP2005258991A JP 2005258991 A JP2005258991 A JP 2005258991A JP 2004072263 A JP2004072263 A JP 2004072263A JP 2004072263 A JP2004072263 A JP 2004072263A JP 2005258991 A JP2005258991 A JP 2005258991A
Authority
JP
Japan
Prior art keywords
standby state
external rom
ram
processing
built
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004072263A
Other languages
Japanese (ja)
Inventor
Soji Higuchi
壮志 樋口
Masahito Konishi
雅人 小西
Makoto Hirano
誠 平野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004072263A priority Critical patent/JP2005258991A/en
Publication of JP2005258991A publication Critical patent/JP2005258991A/en
Pending legal-status Critical Current

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

  • Power Sources (AREA)
  • Microcomputers (AREA)
  • Memory System (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize low power consumption at standby state of a device using only a main microcomputer and without the need of supplying power to an external ROM at the standby state. <P>SOLUTION: This standby control method, for a system which is composed of the microcomputer B01 having a built-in RAM B04, the external ROM B06, and a power source B07 driving the microcomputer B01 and the external ROM B06, and which has a program for performing processing for entering the standby state and processing recovering from the standby state on the external ROM B06, includes: a process for developing the program on the external ROM B06 to the built-in RAM B04; a process for changing an execution address for entering the standby state from the external ROM B06 to the built-in RAM B04; a process for turning power to the external ROM B06 OFF; a process for changing a program execution address at the time of recovery from the standby from the external ROM B06 to the built-in RAM B04; and a process for stopping a clock and entering the standby state. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、外部ROMにプログラムがありRAMを内蔵したマイコンを有するシステムの待機状態制御方法に関するものである。   The present invention relates to a standby state control method for a system having a program in an external ROM and having a microcomputer with a built-in RAM.

図15は従来システムの構成図であり、図16は従来システムにおける待機状態へ移行する処理および待機状態から復帰する処理のフローチャートである。以下に従来処理を説明する。   FIG. 15 is a configuration diagram of the conventional system, and FIG. 16 is a flowchart of the process for shifting to the standby state and the process for returning from the standby state in the conventional system. The conventional process will be described below.

図15に示すように、外部ROMA06にあるプログラムで実行し、割込み発生時には必ず外部ROMA06上の実行アドレスで処理され、プログラム実行アドレスを変更する機能(ROMコレクションA05)を有するマイコンA01における従来方法の説明をする。   As shown in FIG. 15, the conventional method in the microcomputer A01 is executed by a program in the external ROM A06 and is always processed with an execution address on the external ROM A06 when an interrupt occurs, and has a function (ROM collection A05) for changing the program execution address. Explain.

従来は外部ROMA06にあるプログラムを実行するマイコンA01では、待機状態へ移行する際にも外部ROMA06上で処理の実行を行う。図16に示すように、待機状態への移行中に他の割込み処理が入らないように全割込みの禁止を行い(C01)、待機状態からの復帰に必要な割込みのみを許可し(C02)、クロックを停止させ(C03)待機状態へ移行する(C04)。   Conventionally, the microcomputer A01 that executes a program stored in the external ROM A06 executes processing on the external ROM A06 even when shifting to a standby state. As shown in FIG. 16, all interrupts are prohibited so that other interrupt processing does not enter during the transition to the standby state (C01), only interrupts necessary for returning from the standby state are permitted (C02), The clock is stopped (C03) and a transition is made to a standby state (C04).

このとき待機状態からの復帰の際にも外部ROMA06上のプログラムが実行されるため、たとえ待機状態であっても外部ROMA06に対して電力供給を行う必要がある。   At this time, since the program on the external ROM A06 is also executed when returning from the standby state, it is necessary to supply power to the external ROM A06 even in the standby state.

待機状態から復帰する際には、待機状態復帰の割込みが発生する(C05)と外部ROMA06上の処理が実行され、通常処理に必要な割込みの許可などの初期化処理を行い(C06)通常処理へ移行する。   When returning from the standby state, an interrupt for returning to the standby state occurs (C05), the processing on the external ROMA06 is executed, and initialization processing such as permission of interruption necessary for normal processing is performed (C06) normal processing Migrate to

これに対し従来は待機中における装置全体の低消費電力実現のため、メインマイコンと外部ROMの両デバイスを合わせた電力消費よりも低消費電力な待機中専用のサブマイコンを搭載するなどの対応を行っていた(例えば、特許文献1参照)。
特開2001−145355号公報
On the other hand, in order to realize low power consumption of the entire device during standby, measures such as installing a dedicated sub-microcomputer during standby that consumes less power than the combined power consumption of both the main microcomputer and the external ROM device are available. (For example, refer to Patent Document 1).
JP 2001-145355 A

しかしメインマイコンとは別にサブマイコンを搭載するということは、基板面積、コストの面でリスクが発生する。   However, installing a sub-microcomputer separately from the main microcomputer creates a risk in terms of board area and cost.

したがって、この発明の目的は、メインマイコンのみを使用し且つ待機状態には外部ROMへの電力供給を必要とせず、装置の待機状態における低消費電力を実現することができる待機状態制御方法を提供することである。   Accordingly, an object of the present invention is to provide a standby state control method that uses only the main microcomputer and does not require power supply to the external ROM in the standby state, and can realize low power consumption in the standby state of the apparatus. It is to be.

上記課題を解決するためにこの発明の請求項1記載の待機状態制御方法は、内蔵RAMを有するマイコンと、外部ROMと、前記マイコンと前記外部ROMを駆動させる電源とからなり、前記外部ROM上にプログラムのあるシステムの待機状態制御方法であって、前記外部ROM上の待機状態に入る処理および待機状態から復帰する処理を行うためのプログラムを前記内蔵RAMへ展開する工程と、待機状態に入るためのプログラム実行アドレスを前記外部ROMから前記内蔵RAMへ変更する工程と、前記外部ROMへの電源をOFFにする工程と、待機状態からの復帰時のプログラム実行アドレスを前記外部ROMから前記内蔵RAMへ変更する工程と、クロックを停止し待機状態に入る工程とを含む。   In order to solve the above problems, a standby state control method according to claim 1 of the present invention comprises a microcomputer having an internal RAM, an external ROM, and a power source for driving the microcomputer and the external ROM. And a standby state control method for a system having a program in which a program for executing a process for entering the standby state on the external ROM and a process for returning from the standby state is developed in the built-in RAM, and enters the standby state. A program execution address for changing from the external ROM to the built-in RAM, a step of turning off the power to the external ROM, and a program execution address when returning from a standby state from the external ROM to the built-in RAM And a step of stopping the clock and entering a standby state.

請求項2記載の待機状態制御方法は、請求項1記載の待機状態制御方法において、待機状態にある前記マイコンが復帰し内蔵RAMの処理にてクロック停止を解除する工程と、外部ROMへの電源をONにする工程と、前記内蔵RAMから前記外部ROMの処理へ移行する工程とを含む。   The standby state control method according to claim 2 is the standby state control method according to claim 1, wherein the microcomputer in the standby state is restored and the clock stop is canceled by processing of the built-in RAM, and the power supply to the external ROM And a step of shifting from the built-in RAM to the processing of the external ROM.

請求項3記載の待機状態制御方法は、請求項1記載の待機状態制御方法において、前記内蔵RAMに外部ROMの処理を展開する前に、前記内蔵RAMのサイズと、前記内蔵RAMに展開する処理のサイズを比較し、展開する処理のサイズが大きいとき、前記内蔵RAMに前記外部ROMの処理を展開する工程以降を行わず、前記外部ROMの処理にてクロックの停止、解除を行う。   The standby state control method according to claim 3 is the standby state control method according to claim 1, wherein the size of the internal RAM and the processing to be expanded in the internal RAM are expanded before the processing of the external ROM is expanded in the internal RAM. When the size of the process to be expanded is large, the process of expanding the process of the external ROM in the internal RAM is not performed and the clock is stopped and released by the process of the external ROM.

請求項4記載の待機状態制御方法は、請求項1または2記載の待機状態制御方法において、前記内蔵RAMに外部ROMの処理を展開する前に、前記外部ROMの処理を展開するのに必要な領域を確保するために前記内蔵RAM上に分散したデータのアドレスと値を退避させる工程と、待機状態から復帰する際に、退避していたデータの値を待機前のアドレスに設定することで分散していた内蔵RAMのデータを復元させる工程とを含む。   The standby state control method according to claim 4 is the standby state control method according to claim 1 or 2, which is necessary for developing the processing of the external ROM before developing the processing of the external ROM in the built-in RAM. The process of saving the address and value of the data distributed on the internal RAM to secure the area, and the value of the saved data is set to the address before waiting when returning from the standby state. Restoring the built-in RAM data.

請求項5記載の待機状態制御方法は、請求項1または2記載の待機状態制御方法において、前記内蔵RAMに外部ROMの処理を展開する前に、前記内蔵RAMの未使用サイズと、前記内蔵RAMに展開する処理のサイズを比較し、展開する処理のサイズが大きいとき、待機状態から復帰するのに必要最低限の工程を含む前記内蔵RAMの未使用サイズに納まるサイズの処理を複数ある処理の中から選択して前記内蔵RAMに展開する工程を含む。   The standby state control method according to claim 5 is the standby state control method according to claim 1 or 2, wherein before the processing of the external ROM is expanded in the internal RAM, the unused size of the internal RAM and the internal RAM If the size of the process to be expanded is compared, and if the size of the process to be expanded is large, a plurality of processes having a size that can be accommodated in the unused size of the built-in RAM including the minimum steps necessary for returning from the standby state A step of selecting from among them and expanding the built-in RAM.

この発明の請求項1記載の待機状態制御方法によれば、外部ROM上の待機状態に入る処理および待機状態から復帰する処理を行うためのプログラムを内蔵RAMへ展開する工程と、待機状態に入るためのプログラム実行アドレスを外部ROMから内蔵RAMへ変更する工程と、外部ROMへの電源をOFFにする工程と、待機状態からの復帰時のプログラム実行アドレスを外部ROMから内蔵RAMへ変更する工程と、クロックを停止し待機状態に入る工程とを含むので、待機時における外部ROMへの電力供給をカットすることができ、装置全体として待機状態における低消費電力を実現することができる。   According to the standby state control method of the first aspect of the present invention, a step for developing a program for executing a process for entering the standby state on the external ROM and a process for returning from the standby state into the built-in RAM, and entering the standby state Changing the program execution address for the external ROM from the internal RAM, turning off the power to the external ROM, and changing the program execution address at the time of return from the standby state from the external ROM to the internal RAM And the step of stopping the clock and entering the standby state, the power supply to the external ROM during standby can be cut off, and the entire apparatus can realize low power consumption in the standby state.

請求項2では、待機状態にあるマイコンが復帰し内蔵RAMの処理にてクロック停止を解除する工程と、外部ROMへの電源をONにする工程と、内蔵RAMから外部ROMの処理へ移行する工程とを含むので、待機状態から外部ROMによる通常の処理へと復帰を行うことができる。   According to a second aspect of the present invention, the microcomputer in the standby state is restored, the process of releasing the clock stop by the process of the internal RAM, the process of turning on the power to the external ROM, and the process of shifting from the internal RAM to the process of the external ROM Therefore, it is possible to return from the standby state to normal processing by the external ROM.

請求項3では、内蔵RAMに外部ROMの処理を展開する前に、内蔵RAMのサイズと、内蔵RAMに展開する処理のサイズを比較し、展開する処理のサイズが大きいとき、内蔵RAMに外部ROMの処理を展開する工程以降を行わず、外部ROMの処理にてクロックの停止、解除を行うので、展開する処理のサイズの方が大きい場合は、従来通り待機状態においても外部ROMへの電力供給を行って待機状態へ移行し、待機状態復帰の際も外部ROMにて処理を行う。   According to a third aspect of the present invention, before expanding the processing of the external ROM in the internal RAM, the size of the internal RAM is compared with the size of the processing expanded in the internal RAM. Since the clock is stopped and released in the processing of the external ROM without performing the steps after the processing of expanding the processing, if the size of the processing to be expanded is larger, power is supplied to the external ROM even in the standby state as before. The process shifts to the standby state, and processing is performed in the external ROM even when the standby state is restored.

請求項4では、内蔵RAMに外部ROMの処理を展開する前に、外部ROMの処理を展開するのに必要な領域を確保するために内蔵RAM上に分散したデータのアドレスと値を退避させる工程と、待機状態から復帰する際に、退避していたデータの値を待機前のアドレスに設定することで分散していた内蔵RAMのデータを復元させる工程とを含むので、待機状態からの復帰に必要な内蔵RAMデータがあり、そのままでは外部ROMを展開する連続領域を内蔵RAMに確保できない場合の問題を解決することができる。   According to a fourth aspect of the present invention, before expanding the processing of the external ROM in the internal RAM, the step of saving the addresses and values of the data distributed on the internal RAM in order to secure an area necessary for expanding the processing of the external ROM. And restoring the data stored in the built-in RAM by setting the value of the saved data to the address before the standby when returning from the standby state. It is possible to solve the problem when there is necessary internal RAM data and a continuous area for expanding the external ROM cannot be secured in the internal RAM.

請求項5では、内蔵RAMに外部ROMの処理を展開する前に、内蔵RAMの未使用サイズと、内蔵RAMに展開する処理のサイズを比較し、展開する処理のサイズが大きいとき、待機状態から復帰するのに必要最低限の工程を含む内蔵RAMの未使用サイズに納まるサイズの処理を複数ある処理の中から選択して内蔵RAMに展開する工程を含むので、内蔵RAMが小さい場合でも低消費電力制御を行うことができる。   According to a fifth aspect of the present invention, before the processing of the external ROM is expanded in the internal RAM, the unused size of the internal RAM is compared with the size of the processing expanded in the internal RAM. Low processing consumption even when the built-in RAM is small, because it includes a process of selecting from a plurality of processes the size of a process that fits in the unused size of the built-in RAM, including the minimum process required for recovery. Power control can be performed.

この発明の第1の実施の形態を図1〜図3に基づいて説明する。図1は本発明の第1の実施形態の待機状態制御方法におけるシステム構成図であり、図2は第1の実施形態のフローチャートである。   A first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a system configuration diagram in the standby state control method of the first embodiment of the present invention, and FIG. 2 is a flowchart of the first embodiment.

図1に示すように、マイコンB01は内蔵RAMB04を持ち、外部ROMB06に実行プログラムを持ち、それぞれ電源B07より電力供給を受け動作するシステムである。マイコンB01はプログラム実行アドレスを変更する機能(以降、ROMコレクションB05)を有し、外部割込みB03により待機状態より通常状態へ復帰を行う。   As shown in FIG. 1, the microcomputer B01 has a built-in RAM B04, has an execution program in an external ROM B06, and operates by receiving power supply from a power supply B07. The microcomputer B01 has a function of changing the program execution address (hereinafter referred to as ROM collection B05), and returns from the standby state to the normal state by an external interrupt B03.

図2に示すように、マイコンB01はクロックを停止する待機状態に入る前に、待機状態へ入る処理および待機状態から通常状態への復帰処理を外部ROMB06より内蔵RAMB04へ展開を行い(D01)、展開した内蔵RAMB04上の処理へジャンプを行い(D02)、待機状態へ入る処理を内蔵RAMB04上で行う(D03)。   As shown in FIG. 2, before entering the standby state for stopping the clock, the microcomputer B01 expands the process for entering the standby state and the process for returning from the standby state to the normal state from the external ROM B06 to the built-in RAM B04 (D01). A jump is made to the processing on the expanded internal RAM B04 (D02), and the processing for entering the standby state is performed on the internal RAM B04 (D03).

待機状態へ入る処理としてはまず待機状態への移行中に割込み処理が発生しないように全割込みの禁止を行い(D04)、電源B07から外部ROMB06への電力供給をOFFする(D0/5)。すでに内蔵RAMB04上で動作しているため、外部ROMB06への電力供給がなくとも問題なく動作する。外部ROMB06への電力をカットしているため外部ROMB06へ接続された端子のマイコンB01への誤動作を防ぐために端子の設定を行う(D06)。   As a process for entering the standby state, first, all interrupts are prohibited so that no interrupt process occurs during the transition to the standby state (D04), and the power supply from the power source B07 to the external ROM B06 is turned off (D0 / 5). Since it is already operating on the built-in RAM B04, it operates without any problem even if no power is supplied to the external ROM B06. Since the power to the external ROM B06 is cut, the terminal is set to prevent malfunction of the terminal connected to the external ROM B06 to the microcomputer B01 (D06).

次いで待機状態から復帰した際に内蔵RAMB04上のプログラムが実行されるようにROMコレクションB05の設定をする(D07)。すなわち待機状態からの復帰時のプログラム実行アドレスを外部ROMB06から内蔵RAMB04へ変更する。待機状態から復帰するために必要な割込みの許可を行い(D08)、クロックを停止させ(D09)待機状態へ入る(D10)。電源B07から外部ROMB06への電力供給を絶っているため、待機状態において従来以上の低消費電力を実現できる。   Next, the ROM collection B05 is set so that the program on the internal RAM B04 is executed when returning from the standby state (D07). That is, the program execution address at the return from the standby state is changed from the external ROM B06 to the built-in RAM B04. An interrupt necessary for returning from the standby state is permitted (D08), the clock is stopped (D09), and the standby state is entered (D10). Since power supply from the power supply B07 to the external ROM B06 is cut off, lower power consumption than in the prior art can be realized in the standby state.

また外部ROMB06への電力供給をOFFする工程(D05)からROMコレクションB05を設定する工程(D07)までの工程の順序は入れ替わってもよい。   Further, the order of the steps from the step of turning off the power supply to the external ROM B06 (D05) to the step of setting the ROM collection B05 (D07) may be switched.

ここでROMコレクションについての説明を行う。図3はROMコレクションのブロック図である。CPUP01のインストラクションポインタ(IP)により指定されるROMアドレスP08を常時一致検出回路P02で監視し、訂正アドレスレジスタP05に設定されたアドレスと一致する時、ROMP07からの出力データに替えて先の訂正アドレスと対になった訂正データレジスタP06からの訂正ROMデータをCPUP01に与える。   Here, the ROM collection will be described. FIG. 3 is a block diagram of the ROM collection. The ROM address P08 designated by the instruction pointer (IP) of the CPUP01 is always monitored by the coincidence detection circuit P02, and when it matches the address set in the correction address register P05, the previous correction address is substituted for the output data from the ROMP07. The correction ROM data from the correction data register P06 paired with is supplied to the CPUP01.

この機能を用い、通常は外部割込みB03により外部ROMB06上の実行アドレスにアクセスするのを内蔵RAMB04へのジャンプ処理へ置き換える。これによりプログラム実行アドレスを外部ROMB06ではなく内蔵RAMB04へ変更することができる。   Using this function, the access to the execution address on the external ROM B06 is normally replaced with the jump process to the internal RAM B04 by the external interrupt B03. Thus, the program execution address can be changed to the built-in RAM B04 instead of the external ROM B06.

以上のように本実施形態によれば、マイコンが待機状態に入る前に、内蔵RAMへ待機状態へ入る処理およびメイン電源ONまでに必要な処理を展開し実行アドレスを内蔵RAMに変更する。さらにプログラム実行アドレスを変更する機能を用い、待機状態復帰の外部割込みでアクセスするプログラム実行アドレスを内蔵RAMの領域へ変更し待機状態へ入る。これにより待機時における外部ROMへの電力供給をカットすることができ、装置全体として待機状態における低消費電力を実現する。   As described above, according to the present embodiment, before the microcomputer enters the standby state, the processing for entering the standby state into the internal RAM and the processing necessary until the main power is turned on are expanded and the execution address is changed to the internal RAM. Further, the function for changing the program execution address is used to change the program execution address to be accessed by an external interrupt for returning to the standby state to the area of the built-in RAM and enter the standby state. As a result, power supply to the external ROM during standby can be cut, and low power consumption in the standby state can be realized as the entire apparatus.

この発明の第2の実施の形態を図4に基づいて説明する。図4は本発明の第2の実施形態の待機状態制御方法のフローチャートである。   A second embodiment of the present invention will be described with reference to FIG. FIG. 4 is a flowchart of the standby state control method according to the second embodiment of the present invention.

図4に示すように、第1の実施形態において、待機中に割込みが発生した場合、待機状態に入る前に設定したROMコレクションB05により、内蔵RAMB04上のプログラムを実行し、クロック停止を解除する。   As shown in FIG. 4, in the first embodiment, when an interrupt occurs during standby, the program on the internal RAM B04 is executed by the ROM collection B05 set before entering the standby state, and the clock stop is released. .

外部ROMB06を動作させるために端子設定を行い(E01)、外部ROMB06への電力供給をONとし(E02)、内蔵RAMB04から外部ROMB06上の処理へジャンプを行う(E03)。   Terminal settings are made to operate the external ROM B06 (E01), the power supply to the external ROM B06 is turned on (E02), and a jump is made from the built-in RAM B04 to the processing on the external ROM B06 (E03).

割込みの許可など待機状態から通常状態への初期化処理を行い(E04)、通常の処理へと復帰を行う。   Initialization processing from the standby state to the normal state such as permission of interruption is performed (E04), and the processing returns to the normal processing.

外部ROMB06の端子設定(E01)と電力供給(E02)、外部ROMB06へのジャンプ(E03)と初期化処理(E04)の順序はそれぞれ入れ替わってもよい。初期化処理(E04)は外部ROMでも内蔵RAMでもよい。   The order of terminal setting (E01) and power supply (E02) of the external ROMB06, jump to the external ROMB06 (E03), and initialization processing (E04) may be switched. The initialization process (E04) may be an external ROM or a built-in RAM.

この発明の第3の実施の形態を図5および図6に基づいて説明する。図5は本発明の第3の実施形態を示すイメージ図であり、図6は第3の実施形態の概要を示すフローチャートである。   A third embodiment of the present invention will be described with reference to FIGS. FIG. 5 is an image diagram showing a third embodiment of the present invention, and FIG. 6 is a flowchart showing an outline of the third embodiment.

第1の実施形態において、外部ROM上の処理を内蔵RAMへ展開する際に、外部ROM上の処理のサイズの方が内蔵RAMのサイズよりも大きな場合が問題となる。本実施形態によってこの問題を解決することができる。   In the first embodiment, when the processing on the external ROM is expanded to the built-in RAM, there is a problem when the size of the processing on the external ROM is larger than the size of the built-in RAM. This embodiment can solve this problem.

すなわち、図5および図6に示すように、第1の実施形態において、外部ROM上の処理を内蔵RAMへ展開する前に、展開する工程F03,F06のサイズと内蔵RAMF01,F04のサイズの比較を行う(G01)。   That is, as shown in FIGS. 5 and 6, in the first embodiment, before the processing on the external ROM is expanded to the internal RAM, the size of the expansion processes F03 and F06 and the size of the internal RAM F01 and F04 are compared. Is performed (G01).

内蔵RAMF01のサイズの方が大きな場合は、内蔵RAMF01へ処理工程F03の展開を行い(G04)、内蔵RAMF01上で図2のD03以降の工程を実施する(G06)。   When the size of the built-in RAM F01 is larger, the processing step F03 is expanded to the built-in RAM F01 (G04), and the steps after D03 in FIG. 2 are performed on the built-in RAM F01 (G06).

展開する工程F06のサイズの方が大きな場合は、内蔵RAMF04への展開は行わず(G02)、従来通り待機状態においても外部ROMF05(B06)への電力供給を行い、待機状態復帰後も外部ROMB06にてクロックの停止、解除の処理を行う(G03)。   If the size of the process F06 to be expanded is larger, the expansion to the built-in RAM F04 is not performed (G02), and power is supplied to the external ROM F05 (B06) even in the standby state as before, and the external ROM B06 is restored even after returning to the standby state. The clock is stopped and released at (G03).

この発明の第4の実施の形態を図7〜図10に基づいて説明する。図7および図8は本発明の第4の実施形態を示すイメージ図であり、図9および図10は第4の実施形態の概要を示すフローチャートである。   A fourth embodiment of the present invention will be described with reference to FIGS. 7 and 8 are image diagrams showing a fourth embodiment of the present invention, and FIGS. 9 and 10 are flowcharts showing an outline of the fourth embodiment.

第1の実施形態において外部ROM上の処理を内蔵RAMへ展開する際に待機状態からの復帰に必要な内蔵RAM上のデータを残す場合、データをそのままのアドレスに置いておくと外部ROM上の処理を展開するのに必要な内蔵RAM内の連続した領域が確保できない場合がある。本実施形態によってこの問題を解決することができる。   In the first embodiment, when the processing on the external ROM is expanded to the internal RAM, when the data on the internal RAM necessary for returning from the standby state is left, if the data is left at the address as it is, the data on the external ROM is stored. There may be a case where a continuous area in the built-in RAM necessary for developing the processing cannot be secured. This embodiment can solve this problem.

すなわち、図7に示すように、待機状態に必要なデータとしは例えばTVシステムにおいては、コントラストなどの画質情報データAH07、ボリュームなどの音声情報データBH08がある。通常状態においてはこれらのデータH07,H08は内蔵RAMH02内にあり、これらのデータH07,H08をそのままのアドレスに置いたままでは、待機状態より復帰に必要な外部ROM上の処理H03を展開するのに必要な内蔵RAMH02の連続領域を確保することができないとする(H04,H11)。そのため、第1の実施形態において内蔵RAMH02に外部ROMH01の処理を展開する前に、内蔵RAMH02上に分散したデータのアドレスと値を退避させる工程と、待機状態から復帰する際に、退避していたデータの値を待機前のアドレスに設定することで分散していた内蔵RAMH02のデータを復元させる工程とを含む。   That is, as shown in FIG. 7, as data necessary for the standby state, for example, in a TV system, there are image quality information data AH07 such as contrast and audio information data BH08 such as volume. In the normal state, these data H07 and H08 are in the built-in RAM H02. If these data H07 and H08 are left at the same addresses, the processing H03 on the external ROM required for recovery from the standby state is expanded. It is assumed that a continuous area of the built-in RAM H02 necessary for the above cannot be secured (H04, H11). Therefore, before the processing of the external ROM H01 is expanded in the internal RAM H02 in the first embodiment, the address and value of the data distributed on the internal RAM H02 are saved, and the data is saved when returning from the standby state. Restoring the data stored in the built-in RAM H02 by setting the data value to the address before standby.

具体的には、図7および図9に示すように、待機状態からの復帰に必要なデータのアドレスH09,H10,データ値H07,H08を取得し(J01)、内蔵RAMH02の連続領域の邪魔にならない領域へ退避させる(J02,H05)。復帰に必要なデータH07,H08を退避させることで、待機状態からの復帰に必要な外部ROM上の処理H03を展開するのに必要な内蔵RAMの連続領域を確保することができる(H06)。これにより外部ROMの処理H03を内蔵RAMへ展開し(J03,H12)、図2のD03以降の待機状態への処理を行う。   Specifically, as shown in FIGS. 7 and 9, the data addresses H09 and H10 and the data values H07 and H08 necessary for returning from the standby state are acquired (J01), and the continuous area of the built-in RAM H02 is obstructed. Evacuate to an area that does not become necessary (J02, H05). By saving the data H07 and H08 necessary for the restoration, it is possible to secure a continuous area of the built-in RAM necessary for developing the processing H03 on the external ROM necessary for the restoration from the standby state (H06). As a result, the processing H03 of the external ROM is expanded to the built-in RAM (J03, H12), and processing to a standby state after D03 in FIG. 2 is performed.

図8および図10に示すように、待機状態より復帰するときは、復帰処理の実行アドレスが内蔵RAMB04から外部ROMB06へ変更後(K03)の初期化(K06)において(図4のE03,E04と同様の工程)、待機状態に入る前に退避させていたデータのアドレスI05,I07、データ値I06,I08を取得し(K04)、データI06,I08をアドレスI05,I07へ復元させる(K05)。   As shown in FIGS. 8 and 10, when returning from the standby state, in the initialization (K06) after changing the execution address of the return process from the internal RAMB04 to the external ROMB06 (K03) (E03, E04 in FIG. 4) (Similar process), the addresses I05 and I07 and the data values I06 and I08 saved before entering the standby state are acquired (K04), and the data I06 and I08 are restored to the addresses I05 and I07 (K05).

これにより待機状態からの復帰に必要な内蔵RAMデータがあり、そのままでは外部ROMを展開する連続領域を内蔵RAMに確保できない場合の問題を解決することができる。   As a result, there is a built-in RAM data necessary for returning from the standby state, and it is possible to solve a problem in a case where a continuous area for developing the external ROM cannot be secured in the built-in RAM.

この発明の第5の実施の形態を図11〜図14に基づいて説明する。図11は本発明の第5の実施形態を示すイメージ図であり、図12は第5の実施形態の概要を示すフローチャートである。   A fifth embodiment of the present invention will be described with reference to FIGS. FIG. 11 is an image diagram showing a fifth embodiment of the present invention, and FIG. 12 is a flowchart showing an outline of the fifth embodiment.

第3の実施形態においては待機状態より内蔵RAMで復帰するか、通常通り外部ROMで復帰するかの2択しかないため内蔵RAMが小さな場合、低消費電力制御を実現する可能性が低くなってしまう。本実施形態によって低消費電力制御を行う可能性を上げることができる。   In the third embodiment, since there is only two choices of returning from the standby state with the built-in RAM or returning with the external ROM as usual, if the built-in RAM is small, the possibility of realizing low power consumption control is reduced. End up. With this embodiment, the possibility of performing low power consumption control can be increased.

図11および図12に示すように、第1の実施形態において展開する外部ROML02,L08上の処理を、予め内蔵RAML01,L07からの復帰に必要最低限な工程L03,L09を含めた複数のパターンの工程(L04,L05,L10,L11)を用意しておく。外部ROML02上の処理を内蔵RAML01,L07へ展開する(M04)前に、各展開する工程(L03,L04,L05,L09,L10,L11)のサイズと内蔵RAML01,L07の未使用サイズの比較を行う(M01)。   As shown in FIG. 11 and FIG. 12, the processing on the external ROMs L02 and L08 developed in the first embodiment includes a plurality of patterns including processes L03 and L09 that are necessary for returning from the internal RAMs L01 and L07 in advance. Steps (L04, L05, L10, L11) are prepared. Before the processing on the external ROM L02 is expanded to the internal RAMs L01 and L07 (M04), the size of each expansion process (L03, L04, L05, L09, L10, L11) and the unused size of the internal RAMs L01 and L07 are compared. Perform (M01).

内蔵RAML01,L07の未使用サイズの方が大きな場合は、待機状態から復帰するのに必要最低限の工程を含む内蔵RAMの未使用サイズに納まるサイズの処理を複数ある処理の中から選択して内蔵RAMに展開する。この場合、内蔵RAML01,L07へ最適な処理(L01へはL03+L04+L05、L07へはL09+L10)の展開を行い(M04,L06、L12)、図2のD03以降の待機状態への処理を行う。   If the unused size of the built-in RAMs L01 and L07 is larger, select a process of a size that fits in the unused size of the built-in RAM including the minimum steps necessary to return from the standby state from among a plurality of processes. Expand to built-in RAM. In this case, the optimal processing (L03 + L04 + L05 for L01 and L09 + L10 for L07) is expanded to the built-in RAMs L01 and L07 (M04, L06, L12), and processing in a standby state after D03 in FIG. 2 is performed.

全ての展開する工程のサイズの方が大きな場合は内蔵RAML01,L07への展開は行わず(M02)、従来通りの待機状態においても外部ROML02,L08への電力供給を行い、待機状態復帰後も外部ROML02,L08にて動作を行う(M03)。   If the size of all processes to be expanded is larger, expansion to the internal RAMs L01 and L07 is not performed (M02), and power is supplied to the external ROMs L02 and L08 even in the conventional standby state, and after the standby state is restored. The operation is performed in the external ROMs L02 and L08 (M03).

次に本実施形態において内蔵RAMからの復帰に必要な最低限の工程L03,L09のみのときと、割込み処理も内蔵RAM上にある場合の処理の違いを説明する。   Next, the difference in processing between the case where only the minimum steps L03 and L09 necessary for return from the internal RAM and the interrupt processing are also on the internal RAM in the present embodiment will be described.

図13は本発明の第5の実施形態において内蔵RAMB04からの復帰に必要最低限な工程のみを展開した場合のリモコン割込みによる復帰の例を示す。   FIG. 13 shows an example of return by remote control interrupt when only the minimum steps necessary for return from the built-in RAM B04 are developed in the fifth embodiment of the present invention.

図13に示すように、リモコンの外部割込みN01により待機状態から復帰し内蔵RAMB04上の処理で外部ROMB06の電力供給をONとし(N02)、外部ROMB06の処理へジャンプを行う(N03)。内蔵RAMB04上には待機状態からの復帰に必要最低限な工程しかないため、外部ROMB06にてリモコンのデコードおよびチェックを行う(N04)。   As shown in FIG. 13, the external interrupt N01 of the remote controller returns from the standby state, the power supply to the external ROM B06 is turned on by the processing on the internal RAM B04 (N02), and a jump is made to the processing of the external ROM B06 (N03). Since the internal RAM B04 has only the minimum steps necessary for returning from the standby state, the external ROM B06 decodes and checks the remote controller (N04).

リモコンのコードが電源であればそのまま外部ROMB06上の通常処理となる(N05)。しかしリモコンのコードが電源以外であれば、再び内蔵RAMB04へ外部ROMB06上の処理の展開を行い(N06)、内蔵RAMB04上の処理へジャンプした後(N07)外部ROMB06への電源をOFFし(N08)、内蔵RAMB04上で待機状態への処理を行わなければならない(N09)。つまり待機状態からの復帰ではないリモコンコードを受信した際には、毎回外部ROMB06への電源ON/OFFを行ってしまう。   If the code of the remote control is a power source, the normal processing on the external ROM B06 is performed as it is (N05). However, if the remote control code is other than the power supply, the processing on the external ROMB06 is expanded again to the internal RAMB04 (N06), and after jumping to the processing on the internal RAMB04 (N07), the power supply to the external ROMB06 is turned off (N08). ) The process to the standby state must be performed on the built-in RAM B04 (N09). That is, when a remote control code that is not a return from the standby state is received, the power supply to the external ROM B06 is turned ON / OFF every time.

リモコンのデコード処理も内蔵RAMB04上にあればこのような問題は起こらずにすむ。図14は本発明の第5の実施形態において必要最低限な工程に加えリモコンのデコード処理も内蔵RAMB04へ展開した場合のリモコン割込みによる復帰の例を示す。   If the decoding process of the remote controller is also on the built-in RAM B04, such a problem does not occur. FIG. 14 shows an example of return by remote control interrupt when the decoding process of the remote controller is also expanded to the built-in RAM B04 in addition to the minimum necessary steps in the fifth embodiment of the present invention.

図14に示すように、リモコンの外部割込みO01により待機状態から復帰し、内蔵RAMB04上の処理でリモコンのデコードおよびチェックを行う(O02)。   As shown in FIG. 14, the remote control returns from the standby state by an external interrupt O01, and the remote control is decoded and checked by processing on the built-in RAM B04 (O02).

リモコンのコードが電源であれば外部ROMB06の電力供給をONとし(O03)、外部ROMB06の処理へジャンプを行い(O04)、外部ROMB06上で通常処理となる(O05)。   If the remote control code is a power supply, the power supply of the external ROMB06 is turned ON (O03), a jump is made to the processing of the external ROMB06 (O04), and normal processing is performed on the external ROMB06 (O05).

しかしリモコンのコードが電源以外であれば、再び待機状態となる(O07)。処理は内蔵RAMB04上で実行されているため外部ROMB06の電源を操作することなくクロックを停止し(O06)待機状態となることができる(O07)。   However, if the code of the remote controller is other than the power source, the standby state is again entered (O07). Since the processing is executed on the built-in RAM B04, the clock can be stopped (O06) and a standby state can be entered (O07) without operating the power supply of the external ROM B06.

本発明にかかる待機状態制御方法は、内蔵RAMを搭載し外部ROM上のプログラムで動作するマイコンにおいて、待機状態における外部ROMへの電力供給の必要がなく装置全体の低消費電力を実現できるという効果を有し、テレビやDVDレコーダーなどのAV機器のような大容量ROMを持つ機器において、待機状態に入りリモコンなどの外的要因により通常処理へ復帰する装置として有用である。   The standby state control method according to the present invention has the effect of realizing low power consumption of the entire apparatus without the need to supply power to the external ROM in a standby state in a microcomputer that is equipped with a built-in RAM and operates by a program on an external ROM. In a device having a large-capacity ROM such as an AV device such as a television or a DVD recorder, it is useful as a device that enters a standby state and returns to normal processing due to an external factor such as a remote controller.

本発明の第1の実施形態の待機状態制御方法におけるシステム構成図である。It is a system configuration figure in the standby state control method of a 1st embodiment of the present invention. 本発明の第1の実施形態のフローチャートである。It is a flowchart of the 1st Embodiment of this invention. ROMコレクションのブロック図である。It is a block diagram of ROM collection. 本発明の第2の実施形態の待機状態制御方法のフローチャートである。It is a flowchart of the standby state control method of the 2nd Embodiment of this invention. 本発明の第3の実施形態を示すイメージ図である。It is an image figure which shows the 3rd Embodiment of this invention. 本発明の第3の実施形態の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the 3rd Embodiment of this invention. 本発明の第4の実施形態を示すイメージ図である。It is an image figure which shows the 4th Embodiment of this invention. 本発明の第4の実施形態を示すイメージ図である。It is an image figure which shows the 4th Embodiment of this invention. 本発明の第4の実施形態の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the 4th Embodiment of this invention. 本発明の第4の実施形態の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the 4th Embodiment of this invention. 本発明の第5の実施形態を示すイメージ図である。It is an image figure which shows the 5th Embodiment of this invention. 本発明の第5の実施形態の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the 5th Embodiment of this invention. 本発明の第5の実施形態において内蔵RAMからの復帰に必要最低限な工程のみを展開した場合のリモコン割込みによる復帰の例を示すフローチャートである。It is a flowchart which shows the example of the return by remote control interruption at the time of expand | deploying only the minimum process required for the return from built-in RAM in the 5th Embodiment of this invention. 本発明の第5の実施形態において必要最低限な工程に加えリモコンのデコード処理も内蔵RAMへ展開した場合のリモコン割込みによる復帰の例を示すフローチャートである。It is a flowchart which shows the example of the return by remote control interruption when the decoding process of a remote control is also expand | deployed to built-in RAM in addition to the minimum required process in the 5th Embodiment of this invention. 従来例のシステム構成図である。It is a system configuration diagram of a conventional example. 従来例のフローチャートである。It is a flowchart of a prior art example.

符号の説明Explanation of symbols

B01 マイコン
B02 CPUコア
B04 マイコン内蔵RAM
B05 プログラム実行アドレスを変更する機能
B06 外部ROM
B07 電源
B01 Microcomputer B02 CPU core B04 Microcomputer built-in RAM
B05 Function to change program execution address B06 External ROM
B07 power supply

Claims (5)

内蔵RAMを有するマイコンと、外部ROMと、前記マイコンと前記外部ROMを駆動させる電源とからなり、前記外部ROM上にプログラムのあるシステムの待機状態制御方法であって、前記外部ROM上の待機状態に入る処理および待機状態から復帰する処理を行うためのプログラムを前記内蔵RAMへ展開する工程と、待機状態に入るためのプログラム実行アドレスを前記外部ROMから前記内蔵RAMへ変更する工程と、前記外部ROMへの電源をOFFにする工程と、待機状態からの復帰時のプログラム実行アドレスを前記外部ROMから前記内蔵RAMへ変更する工程と、クロックを停止し待機状態に入る工程とを含む待機状態制御方法。   A standby state control method for a system having a program on the external ROM, comprising a microcomputer having a built-in RAM, an external ROM, and a power source for driving the microcomputer and the external ROM, the standby state on the external ROM A step of developing a program for performing a process for entering and a process for returning from a standby state into the internal RAM, a step for changing a program execution address for entering the standby state from the external ROM to the internal RAM, and the external RAM Standby state control including a step of turning off the power to the ROM, a step of changing the program execution address when returning from the standby state from the external ROM to the built-in RAM, and a step of stopping the clock and entering the standby state Method. 待機状態にある前記マイコンが復帰し内蔵RAMの処理にてクロック停止を解除する工程と、外部ROMへの電源をONにする工程と、前記内蔵RAMから前記外部ROMの処理へ移行する工程とを含む請求項1記載の待機状態制御方法。   A step in which the microcomputer in the standby state is restored and the clock stop is canceled by the processing of the internal RAM; a step of turning on the power to the external ROM; and a step of shifting from the internal RAM to the processing of the external ROM. The standby state control method according to claim 1. 前記内蔵RAMに外部ROMの処理を展開する前に、前記内蔵RAMのサイズと、前記内蔵RAMに展開する処理のサイズを比較し、展開する処理のサイズが大きいとき、前記内蔵RAMに前記外部ROMの処理を展開する工程以降を行わず、前記外部ROMの処理にてクロックの停止、解除を行う請求項1記載の待機状態制御方法。   Before expanding the processing of the external ROM in the internal RAM, the size of the internal RAM is compared with the size of the processing expanded in the internal RAM. When the size of the expansion processing is large, the external ROM is stored in the internal RAM. 2. The standby state control method according to claim 1, wherein the clock is stopped and released by the processing of the external ROM without performing the step of expanding the processing of the above. 前記内蔵RAMに外部ROMの処理を展開する前に、前記外部ROMの処理を展開するのに必要な領域を確保するために前記内蔵RAM上に分散したデータのアドレスと値を退避させる工程と、待機状態から復帰する際に、退避していたデータの値を待機前のアドレスに設定することで分散していた内蔵RAMのデータを復元させる工程とを含む請求項1または2記載の待機状態制御方法。   Before expanding the processing of the external ROM in the internal RAM, the step of saving the addresses and values of the data distributed on the internal RAM in order to secure an area necessary for expanding the processing of the external ROM; 3. The standby state control according to claim 1, further comprising a step of restoring the data stored in the built-in RAM by setting the value of the saved data to an address before standby when returning from the standby state. Method. 前記内蔵RAMに外部ROMの処理を展開する前に、前記内蔵RAMの未使用サイズと、前記内蔵RAMに展開する処理のサイズを比較し、展開する処理のサイズが大きいとき、待機状態から復帰するのに必要最低限の工程を含む前記内蔵RAMの未使用サイズに納まるサイズの処理を複数ある処理の中から選択して前記内蔵RAMに展開する工程を含む請求項1または2記載の待機状態制御方法。   Before expanding the processing of the external ROM in the internal RAM, the unused size of the internal RAM is compared with the size of the processing expanded in the internal RAM. When the size of the expansion processing is large, the process returns from the standby state. 3. The standby state control according to claim 1, further comprising: selecting from among a plurality of processes a process having a size that can be accommodated in an unused size of the built-in RAM, including a minimum necessary process, and expanding the process into the built-in RAM. Method.
JP2004072263A 2004-03-15 2004-03-15 Standby control method Pending JP2005258991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004072263A JP2005258991A (en) 2004-03-15 2004-03-15 Standby control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004072263A JP2005258991A (en) 2004-03-15 2004-03-15 Standby control method

Publications (1)

Publication Number Publication Date
JP2005258991A true JP2005258991A (en) 2005-09-22

Family

ID=35084615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004072263A Pending JP2005258991A (en) 2004-03-15 2004-03-15 Standby control method

Country Status (1)

Country Link
JP (1) JP2005258991A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009230410A (en) * 2008-03-21 2009-10-08 Ntt Electornics Corp Information processor and radio communication equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009230410A (en) * 2008-03-21 2009-10-08 Ntt Electornics Corp Information processor and radio communication equipment

Similar Documents

Publication Publication Date Title
US20020161941A1 (en) System and method for efficiently performing a data transfer operation
JP4724461B2 (en) System LSI
JP3905703B2 (en) Data processor and data processing system
JP2006107127A (en) Semiconductor integrated circuit device
WO2002012988A1 (en) Method and system for providing gated clock signal to a csr block
JP2005339310A (en) Semiconductor device
JP2005157620A (en) Semiconductor integrated circuit
JP2005258991A (en) Standby control method
JP2008152409A (en) Semiconductor integrated circuit
JP2005135269A (en) Electronic equipment
JP5783348B2 (en) Control device, control program, and image forming apparatus
JP5660010B2 (en) Information processing apparatus and data restoration method
JP3459821B2 (en) Microprocessor
JP4647276B2 (en) Semiconductor circuit device
JP4319753B2 (en) Integrated circuit and operation control method thereof
JP5944017B2 (en) Information processing apparatus and program
CN118113137A (en) Standby control method for multi-core SoC chip and multi-core SoC chip
JP2007094528A (en) Method for using memory of multiprocessor system
JP2007018288A (en) Arithmetic processor and power saving mode changeover method therefor
JP2009199421A (en) Interrupt control device
JP2022033968A (en) Processing speed matching circuit and microprocessor
JP2003296131A (en) Firmware rewriting device
JP2006236233A (en) Interrupt level selecting circuit
CN116361079A (en) Stack switching method, stack switching device, processor and storage medium
JP2001084151A (en) Central processing unit

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060608