JP2010068355A - Electronic apparatus and method of controlling the same - Google Patents

Electronic apparatus and method of controlling the same Download PDF

Info

Publication number
JP2010068355A
JP2010068355A JP2008234032A JP2008234032A JP2010068355A JP 2010068355 A JP2010068355 A JP 2010068355A JP 2008234032 A JP2008234032 A JP 2008234032A JP 2008234032 A JP2008234032 A JP 2008234032A JP 2010068355 A JP2010068355 A JP 2010068355A
Authority
JP
Japan
Prior art keywords
energy saving
saving mode
control unit
register
dma
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.)
Withdrawn
Application number
JP2008234032A
Other languages
Japanese (ja)
Inventor
Tetsumi Nakada
哲美 中田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2008234032A priority Critical patent/JP2010068355A/en
Publication of JP2010068355A publication Critical patent/JP2010068355A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Facsimiles In General (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic apparatus for quickly restoring a normal mode from an energy saving mode, and to provide a method of controlling the same. <P>SOLUTION: Electronic apparatus 100 is configured as electronic apparatus having an energy saving mode, and has: an RAM 109 for storing a register set value managed by an overall control part 106 when a normal mode is shifted to the energy saving mode; and a DMA controller 108 for reading a register set value from the RAM 109 by direct memory access when the normal mode is restored from the energy saving mode. The overall control part 106 is characterized by initialization processing using the read register set value. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、電子機器及びその制御方法に関し、特に、省エネモードからの迅速な復帰を実現する技術に関する。   The present invention relates to an electronic device and a control method thereof, and more particularly, to a technique for realizing a quick return from an energy saving mode.

本発明に関連する技術を記載する文献として、特許文献1,2を挙げる。   Patent Documents 1 and 2 are listed as documents describing technologies related to the present invention.

特許文献1には、省電力モードでの消費電力を低減し、また、省電力モードから通常動作モードへの復帰も短時間で行うことができるようにすることを目的として、通常モードでの動作中にROMから省エネルギーモードからの復帰に必要なデータの少なくとも一部を読み出してメインメモリに記憶させておくというような構成が開示されている。   Patent Document 1 discloses an operation in a normal mode for the purpose of reducing power consumption in the power saving mode and enabling a return from the power saving mode to the normal operation mode in a short time. A configuration is disclosed in which at least a part of data necessary for returning from the energy saving mode is read from the ROM and stored in the main memory.

また、特許文献2には、省エネルギーモード時の消費電力を最小限に抑えると共に、省エネルギーモードと通常モードの切り換え時に通信が途絶えることの内容にすることを目的として、省エネルギーモード時に給電が停止するメインCPUが移行時にサブCPUに省エネルギーモード移行を指示し、サブCPUがデータ転送を停止させることなく送受信制御を自己の管理下に移行させる技術が開示されている。
特許3798353号公報 特開2005−303978号公報
Further, Patent Document 2 discloses a main in which power supply is stopped in the energy saving mode for the purpose of minimizing power consumption in the energy saving mode and that communication is interrupted when switching between the energy saving mode and the normal mode. A technology is disclosed in which a CPU instructs a sub CPU to shift to an energy saving mode when shifting, and the sub CPU shifts transmission / reception control to its own management without stopping data transfer.
Japanese Patent No. 3798353 JP 2005-303978 A

近年、画像形成装置において、消費電力低減の要求が大きく、特に操作や印刷ジョブの実行がない待機時の消費電力の低減が要求されている。そこで、特に消費電力が大きいエンジン部分の給電を停止する省エネルギーモードを設け、待機時には省エネルギーモードに移行することによって消費電力を低減することが行われている。   In recent years, there has been a great demand for power consumption reduction in image forming apparatuses, and in particular, there has been a demand for reduction of power consumption during standby when there is no operation or print job execution. In view of this, an energy saving mode for stopping power supply to an engine portion with particularly large power consumption is provided, and power consumption is reduced by shifting to the energy saving mode during standby.

また、さらに消費電力を低減させるために、CPUへの給電を停止する技術や、制御用ASIC(Aplication Specific IC)若しくはSoC(System on Chip)の給電ラインを複数の系統に分けて省エネルギーモードで不要な機能への給電を停止する技術も、既に知られている。   In addition, in order to further reduce power consumption, technology to stop power supply to the CPU, power supply line for control ASIC (Application Specific IC) or SoC (System on Chip) is divided into multiple systems and is not required in energy saving mode A technique for stopping the power supply to various functions is already known.

しかしながら、今までのCPUへの給電を停止する技術では、通常動作モードへの復帰に、電源投入時と同じようにハードウェア/ソフトウェアの初期化処理を要することになり、復帰に要する時間が長いという問題があった。   However, the conventional technology for stopping power supply to the CPU requires a hardware / software initialization process to return to the normal operation mode in the same manner as when the power is turned on, and the time required for the recovery is long. There was a problem.

そこで本発明は、上記実情に鑑みて、省エネルギーモードから通常モードへの復帰を短時間で行うことを可能にする電子機器及びその制御方法を提供することを目的とする。   Accordingly, in view of the above circumstances, an object of the present invention is to provide an electronic device and a control method therefor that can quickly return from the energy saving mode to the normal mode.

上記目的を達成するために本発明は、以下の構成を備えることとする。   In order to achieve the above object, the present invention comprises the following arrangement.

本発明に係る電子機器は、省エネモードを有する電子機器であって、前記省エネモードへの移行時に、装置全体の制御部が管理するレジスタ設定値を記憶する記憶手段と、前記省エネモードからの復帰時に、ダイレクトメモリアクセスによって前記記憶手段から前記レジスタ設定値を読み出すDMA制御手段と、を有し、前記制御部は、読み出した前記レジスタ設定値を用いて初期化処理を行うことを特徴とする。   An electronic apparatus according to the present invention is an electronic apparatus having an energy saving mode, and stores a register setting value managed by a control unit of the entire apparatus at the time of shifting to the energy saving mode, and returns from the energy saving mode. And a DMA control unit that reads the register setting value from the storage unit by direct memory access, and the control unit performs an initialization process using the read register setting value.

本発明に係る電子機器の制御方法は、省エネモードを有する電子機器の制御方法であって、前記省エネモードへの移行時に、装置全体の制御部が管理するレジスタ設定を記憶する記憶工程と、前記省エネモードからの復帰時に、ダイレクトメモリアクセスによって前記記憶工程で記憶された前記レジスタ設定値を読み出すDMA制御工程と、前記制御部により、読み出した前記レジスタ設定値を用いて初期化処理を行う工程と、を含むことを特徴とする。   An electronic device control method according to the present invention is a method for controlling an electronic device having an energy saving mode, and stores a register setting managed by a control unit of the entire apparatus when shifting to the energy saving mode; A DMA control step of reading the register setting value stored in the storage step by direct memory access when returning from the energy saving mode; and a step of performing an initialization process by using the read register setting value by the control unit; , Including.

本発明によれば、省エネルギーモードから通常モードへの復帰を短時間で行うことを可能にする電子機器及びその制御方法を提供することが可能となる。   ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to provide the electronic device and its control method which enable it to return from energy saving mode to normal mode in a short time.

以下、本発明を実施形態により詳細に説明する。
本実施形態に係る電子機器は、限定するものではないが、例えば、電子写真方式の画像形成装置や、インクジェット方式の画像形成装置であってもよい。画像形成装置は、動作時の消費電力を多く必要とするものの待機時間が長く、省エネルギーモードの制御に関連する本発明の効果を特に有利に発揮することができる。以下、本実施形態に係る電子機器は、インクジェット方式の画像形成装置であることとする。
Hereinafter, embodiments of the present invention will be described in detail.
The electronic apparatus according to the present embodiment is not limited, but may be, for example, an electrophotographic image forming apparatus or an inkjet image forming apparatus. Although the image forming apparatus requires a large amount of power consumption during operation, the standby time is long, and the effects of the present invention relating to the control in the energy saving mode can be exhibited particularly advantageously. Hereinafter, the electronic apparatus according to the present embodiment is an inkjet image forming apparatus.

まず、本実施形態の構成を図1と図2を参照して説明する。
図1は、本実施形態に係る電子機器100の概略構成を示すブロック図である。図示のように、電子機器100は、SoC(System on Chip)101と、RAM109と、クロックジェネレータ110と、ROM111と、を備える。以下、各部について説明する。
First, the configuration of the present embodiment will be described with reference to FIGS.
FIG. 1 is a block diagram illustrating a schematic configuration of an electronic device 100 according to the present embodiment. As illustrated, the electronic device 100 includes a SoC (System on Chip) 101, a RAM 109, a clock generator 110, and a ROM 111. Hereinafter, each part will be described.

SoC101は、装置の全体を制御する全体制御部106と、省エネルギー(以下、「省エネ」と略す)状態における制御を行う省エネ制御部102と、RAM109の制御を行うRAMコントローラ105と、を有する。   The SoC 101 includes an overall control unit 106 that controls the entire apparatus, an energy saving control unit 102 that performs control in an energy saving (hereinafter referred to as “energy saving”) state, and a RAM controller 105 that controls the RAM 109.

クロックジェネレータ110は、システムで必要なクロックを生成する。
RAM109は、画像データや、プログラムで使用するメインメモリである。
RAMコントローラ105は、RAM109へのアクセス制御や、定期的なリフレッシュ動作制御、省エネ状態へ移行時にセルフリフレッシュへ移行するコマンドを制御する。
ROM111は、プログラムや、印字吐出用の波形データ等が格納されており、電源起動時にRAM109に展開し、使用する。FlashROMなどの不揮発性のROMを使用する。
The clock generator 110 generates a clock necessary for the system.
A RAM 109 is a main memory used for image data and programs.
The RAM controller 105 controls access to the RAM 109, periodic refresh operation control, and a command for shifting to self-refresh when shifting to an energy saving state.
The ROM 111 stores a program, waveform data for print ejection, and the like, and is developed and used in the RAM 109 when the power is turned on. A non-volatile ROM such as FlashROM is used.

省エネ制御部102は、省エネ状態から復帰要因を検出する機能を備え、省エネ復帰用のタイマ等を有する。電子機器100の操作/表示部(図示せず)でユーザがキー操作を行うと、この省エネ制御部102が入力信号のエッジを検出し、復帰信号を発生させることで、復帰動作を行う。   The energy saving control unit 102 has a function of detecting a return factor from the energy saving state, and includes a timer for energy saving return. When the user performs a key operation on an operation / display unit (not shown) of the electronic device 100, the energy saving control unit 102 detects the edge of the input signal and generates a return signal to perform a return operation.

全体制御部106は、電子機器100の動作に必要な種々の演算や処理を行う中央演算装置であるCPU107と、CPU107を使用しないでRAM109やROM111へのダイレクトメモリアクセスを行うための制御をするDMAコントローラ108と、を備える。   The overall control unit 106 is a central processing unit (CPU) 107 that performs various calculations and processes necessary for the operation of the electronic device 100, and a DMA that performs control for direct memory access to the RAM 109 and the ROM 111 without using the CPU 107. And a controller 108.

電子機器100は、リセット信号を2系統有し、電源起動時には、両方ともリセット状態となる。省エネ移行時は、RESET_1信号のみリセット状態とすることで、外部端子をHi−Zにし、電源の回り込みを防止する。   The electronic device 100 has two reset signals, and both are in a reset state when the power is activated. At the time of energy saving transition, only the RESET_1 signal is reset so that the external terminal is set to Hi-Z and the power supply is prevented from wrapping around.

電源起動時は、CPU107がリセット解除後、ROM111からプログラムを起動し、各制御部の初期化動作を行う。CPU107は、初期化完了後、ROM111に記憶されているプログラムを、RAM109にコピーし、RAM109上のプログラムで動作する。   At the time of power activation, the CPU 107 activates a program from the ROM 111 after releasing the reset, and initializes each control unit. After the initialization is completed, the CPU 107 copies the program stored in the ROM 111 to the RAM 109 and operates with the program on the RAM 109.

図2は、電子機器100の省エネモード時の給電状態を示すブロック図である。図示のように、SoC101のコア電源は2系統に分かれている。図2の斜線部は、省エネ状態において給電がされていないブロックを示している。   FIG. 2 is a block diagram illustrating a power supply state when the electronic device 100 is in the energy saving mode. As shown in the figure, the core power supply of the SoC 101 is divided into two systems. The hatched portion in FIG. 2 indicates a block that is not supplied with power in the energy saving state.

PWR_CTL信号は、省エネ状態に移行する際に、図2の斜線で示したブロックへの給電を制御する信号である。省エネ状態では、CPU107を含む全体制御部106や外部に接続されたROM111等の電源がOFFとなる。RAM109は、RAMコントローラ105によりセルフリフレッシュ状態になっており、通常時より消費電力が少ない状態である。   The PWR_CTL signal is a signal for controlling power feeding to the block indicated by the oblique lines in FIG. 2 when shifting to the energy saving state. In the energy saving state, the power source of the overall control unit 106 including the CPU 107 and the ROM 111 connected to the outside is turned off. The RAM 109 is in a self-refresh state by the RAM controller 105, and has a lower power consumption than normal.

次に、省エネ状態からの復帰動作について説明する。
省エネ状態から復帰する場合は、図2の斜線部に電源を給電し、リセット信号を解除する。CPU107は、電源起動時と同様にROM111から起動を開始する。
Next, the return operation from the energy saving state will be described.
When returning from the energy saving state, power is supplied to the shaded portion in FIG. 2 to cancel the reset signal. The CPU 107 starts activation from the ROM 111 in the same manner as when the power is activated.

省エネ制御部102には、省エネ復帰フラグ103を有しており、これは、電源起動時と省エネ復帰時の区別をするために使用する。省エネに移行時は、この省エネ復帰フラグ103を有効に設定しておくことで、CPU107が起動を開始したあと、このフラグ103を確認し電源起動時なのか省エネ復帰時なのかを判定することが可能となる。この省エネ復帰フラグ103は、省エネ中に電源がOFFにならない省エネ制御部102にあるため、省エネ状態に移行してもクリアされることがない。   The energy saving control unit 102 has an energy saving return flag 103, which is used for distinguishing between power activation and energy saving return. When shifting to energy saving, this energy saving return flag 103 is set to be effective so that after the CPU 107 starts to start, the flag 103 can be checked to determine whether the power is on or energy saving is returned. It becomes possible. Since the energy saving return flag 103 is in the energy saving control unit 102 in which the power is not turned off during energy saving, it is not cleared even when the energy saving state is entered.

省エネ移行時に、全体制御部106で設定されているハードウェア設定値を、RAM109上にテーブルとして設定しておく。その際、そのテーブルの開始アドレスをDMA_SADRレジスタ104に記録しておく。なお、本実施形態においては、DMA_SADRは、レジスタとして有しているが、RAM109上の領域を使用してもよい。   At the time of energy saving transition, hardware setting values set in the overall control unit 106 are set as a table on the RAM 109. At that time, the start address of the table is recorded in the DMA_SADR register 104. In the present embodiment, DMA_SADR is provided as a register, but an area on the RAM 109 may be used.

CPU107は、ROM111からの起動後、省エネ復帰フラグ103により省エネからの復帰動作と判定した場合、DMA_SADRの値を取得し、DMAコントローラ108に設定する。DMA転送を開始すると、省エネ移行前のレジスタ設定値がDMAにより、全体制御部106の各レジスタに設定される。   After the activation from the ROM 111, the CPU 107 acquires the value of DMA_SADR and sets it in the DMA controller 108 when it is determined that the energy saving return flag 103 is a return operation from energy saving. When the DMA transfer is started, the register setting value before the energy saving transition is set in each register of the overall control unit 106 by DMA.

図3は、レジスタマッピング例を示す図である。
動作開始を指示するための起動レジスタ202と、各種設定用の動作パラメータレジスタ201と、を別アドレスにまとめる。省エネ復帰時は、制御系への設定を行わないように、DMA設定することで、DMA転送サイズを少なくすることができる。また、各レジスタの配置は、DMA転送サイズが小さくなるように、つめてマッピングしてあることが望ましい。そのほうが、より高速に初期設定が可能となる。
FIG. 3 is a diagram illustrating an example of register mapping.
The activation register 202 for instructing the operation start and the operation parameter register 201 for various settings are grouped into different addresses. The DMA transfer size can be reduced by performing the DMA setting so that the setting to the control system is not performed at the time of energy saving return. Also, it is desirable that the arrangement of each register is continuously mapped so as to reduce the DMA transfer size. This makes it possible to perform initial setting at a higher speed.

図4は、本実施形態のライトプロテクト制御を説明するための図である。ライトプロテクト設定レジスタ203からは、起動レジスタ202のみにwrite_protect信号が接続されている。write_protect信号が有効な場合、起動レジスタ202へのライトは無効となる。   FIG. 4 is a diagram for explaining the write protect control of the present embodiment. From the write protect setting register 203, the write_protect signal is connected only to the activation register 202. When the write_protect signal is valid, writing to the activation register 202 is invalid.

省エネ復帰時は、ライトプロテクトを有効に設定しておき、DMAによりレジスタ設定を行う。これにより、省エネ復帰時の初期化動作で、発生させたくない動作を抑制することができる。   At the time of energy saving return, write protect is set to be effective and register setting is performed by DMA. Thereby, it is possible to suppress an operation that is not desired to be generated in the initialization operation at the time of energy saving return.

また、図4の例は、図3の例と比較して、起動レジスタ202と動作パラメータのアドレスを分ける必要がなくなるため、レジスタマッピングをつめることができ、より少ないDMA転送サイズでレジスタ設定が可能となる。   Further, in the example of FIG. 4, compared with the example of FIG. 3, it is not necessary to separate the address of the activation register 202 and the operation parameter, so that register mapping can be packed and register setting can be performed with a smaller DMA transfer size. It becomes.

図5は、DMAで用いられるディスクリプタ形式を示す図である。
・DMAコントローラ108は、最初のディスクリプタアドレスのみ設定する。
・省エネ復帰動作開始後、図5に図示した形式でメモリに置かれたディスクリプタをリードすることで、DMA動作パラメータを取得する。
・転送サイズ分のデータ転送が終了すると、終了フラグから終了かどうかの判定を行う。
・終了ではない場合は、次のディスクリプタアドレスで示されるメモリ領域から次のディスクリプタをリードする。
以上の処理を終了するまで続ける。
FIG. 5 is a diagram showing a descriptor format used in DMA.
The DMA controller 108 sets only the first descriptor address.
After starting the energy saving return operation, the DMA operation parameter is obtained by reading the descriptor placed in the memory in the format shown in FIG.
-When the data transfer for the transfer size is completed, it is determined from the end flag whether the transfer is completed.
If not finished, the next descriptor is read from the memory area indicated by the next descriptor address.
Continue until the above processing is completed.

本実施形態において、ディスクリプタを用いる理由について説明する。
初期化が必要な各レジスタ/SRAMは、メモリマップ上に点在している。ところが、DMAは連続したアドレスには、有効であるが、非連続な場合は、その都度転送先アドレスを設定する必要がある。また、一旦RAM109上にレジスタ設定値を回避する場合も、全レジスタ設定値を連続したメモリ空間に置くと、メモリ管理が難しくなってしまう。
The reason for using the descriptor in this embodiment will be described.
Each register / SRAM that needs to be initialized is dotted on the memory map. However, DMA is effective for continuous addresses, but if it is not continuous, it is necessary to set a transfer destination address each time. Also, even when register setting values are avoided on the RAM 109, memory management becomes difficult if all register setting values are placed in a continuous memory space.

そこで、図5に示したようなディスクリプタを使用することで、点在したレジスタ設定値を、点在したレジスタに対し一連の動作で転送することが可能となる。これにより、CPUの介在が不要となり、より高速に初期化を終えることができる。   Therefore, by using the descriptor as shown in FIG. 5, it is possible to transfer the scattered register setting values to the scattered registers through a series of operations. As a result, no CPU intervention is required, and the initialization can be completed at a higher speed.

図6は、伸張機能を搭載したDMAコントローラ108の機能ブロック図である。
起動制御部301は、図5で示したようなディスクリプタを解釈し、リードDMAコントローラ302/ライトDMAコントローラ303を制御する。伸張器304は、圧縮されたデータを伸張する。
FIG. 6 is a functional block diagram of the DMA controller 108 equipped with the decompression function.
The activation control unit 301 interprets the descriptor as shown in FIG. 5 and controls the read DMA controller 302 / write DMA controller 303. The decompressor 304 decompresses the compressed data.

DMA起動後、起動制御部301は、設定された最初のディスクリプタアドレスに対しリードDMAコントローラ302を起動する。受けとったリードデータ(最初のディスクリプタ)から、転送元/先アドレスを取得し、リードDMAコントローラ302/ライトDMAコントローラ303を起動する。   After the DMA activation, the activation control unit 301 activates the read DMA controller 302 for the set first descriptor address. The transfer source / destination address is acquired from the received read data (first descriptor), and the read DMA controller 302 / write DMA controller 303 is activated.

転送元アドレスからリードしたデータは伸張器304で伸張され、ライトDMAコントローラ303に渡される。ライトDMAコントローラ303は、受けとったデータを転送先アドレスに転送する。このような動作をディスクリプタから取得した転送サイズ分行う。   Data read from the transfer source address is decompressed by the decompressor 304 and transferred to the write DMA controller 303. The write DMA controller 303 transfers the received data to the transfer destination address. Such an operation is performed for the transfer size acquired from the descriptor.

伸張器304は、伸張を行うか否かを設定可能であり、伸張を行わない場合は、伸張器304をスルーすることになる。また、伸張器304は、省エネモードへの移行時に、レジスタ設定値を圧縮する機能も有する。   The decompressor 304 can set whether or not to perform decompression. When the decompression is not performed, the decompressor 304 is passed through. The decompressor 304 also has a function of compressing the register set value when shifting to the energy saving mode.

DMAコントローラ108の構成を、図6に示すような構成のものとすることによって、データを圧縮することで、レジスタ設定値をRAM109にコピーする際に、容量を削減することが可能となる。   By making the configuration of the DMA controller 108 as shown in FIG. 6, by compressing the data, the capacity can be reduced when the register set value is copied to the RAM 109.

図7は、図4のDMAコントローラで使用するディスクリプタ形式のさらに別の一例を示した図である。図5との違いは、ディスクリプタに、伸張可否の設定値を含んでいることである。これにより上述の伸張器304をスルーするかどうかを判定している。   FIG. 7 is a diagram showing still another example of the descriptor format used in the DMA controller of FIG. The difference from FIG. 5 is that the descriptor includes a setting value indicating whether or not expansion is possible. Thus, it is determined whether or not to pass through the expander 304 described above.

図8は、この画像形成装置の省エネ移行時の処理フローを示すフローチャート図である。
最後のプリント動作、コピー動作、スキャナ動作等のどれかが終了した時点から、あらかじめ決められた一定時間が経過すると省エネモードへ移行する。
ステップS101では、省エネモードへの移行可能かどうかを判定する。状態異常等のエラーが発生している場合等は、移行不可とする。
移行可能な場合は、ステップS102でレジスタ値回避処理を行う。このとき、上述の全体制御部106の各レジスタ設定値をRAM109上にコピーする。
このとき、各レジスタテーブルが大きくなる場合は、テーブル自体を圧縮しておく。
また、ここでは、復帰時のDMA処理用に各ディスクリプタテーブルをRAM109上に準備しておく。
FIG. 8 is a flowchart showing a processing flow at the time of energy saving transition of the image forming apparatus.
After any of the last printing operation, copying operation, scanner operation, etc. is completed, the mode shifts to the energy saving mode when a predetermined time has elapsed.
In step S101, it is determined whether or not it is possible to shift to the energy saving mode. If an error such as a status error has occurred, transition is not possible.
If migration is possible, register value avoidance processing is performed in step S102. At this time, each register setting value of the above-described overall control unit 106 is copied onto the RAM 109.
At this time, if each register table becomes large, the table itself is compressed.
Also, here, each descriptor table is prepared on the RAM 109 for DMA processing at the time of return.

ステップS103では、上記ディスクリプタテーブルの最初のディスクリプタの開始アドレスを、省エネ制御部102のDMA_SADRレジスタ104に設定しておく。
ステップS104では、省エネモードへの移行処理を行う。省エネ制御部102の省エネ復帰フラグ103を有効設定にし、CPU107等省エネ時に動作不要なブロックへの電源をOFFにする。ステップS105では、エラー表示等を行う。
In step S 103, the start address of the first descriptor in the descriptor table is set in the DMA_SADR register 104 of the energy saving control unit 102.
In step S104, a transition process to the energy saving mode is performed. The energy saving return flag 103 of the energy saving control unit 102 is set to be effective, and the power to the block that does not require operation when saving energy, such as the CPU 107, is turned off. In step S105, error display or the like is performed.

図9は、本実施形態における、省エネから復帰動作について説明したフローチャート図である。
CPU107は、リセットが解除されると、ブートプログラムを起動する。図9では、ブート動作、特に省エネから復帰時のブート動作について説明する。
FIG. 9 is a flowchart illustrating a return operation from energy saving in the present embodiment.
When the reset is released, the CPU 107 starts a boot program. In FIG. 9, a boot operation, particularly a boot operation when returning from energy saving will be described.

ステップS201では、ブート動作が省エネからの復帰か電源起動時なのかを判定している。図8のステップS104において有効にした省エネ制御部102の復帰フラグ103を確認することで、省エネモードからの復帰動作であることが分かる。省エネモードからの復帰ではない場合は、電源起動時の初期化処理を行う(ステップS205)。   In step S201, it is determined whether the boot operation is a return from energy saving or power-on. By confirming the return flag 103 of the energy saving control unit 102 enabled in step S104 of FIG. 8, it can be seen that the operation is a return operation from the energy saving mode. If it is not a return from the energy saving mode, an initialization process at the time of power activation is performed (step S205).

ステップS202では、初期設定用のDMAの転送開始アドレスを設定する。このとき、図8のステップS103において設定しておいた省エネ制御部102のDMA_SADRレジスタ104から開始アドレスを取得し、DMAの転送開始アドレス設定レジスタに設定する。   In step S202, a DMA transfer start address for initial setting is set. At this time, the start address is acquired from the DMA_SADR register 104 of the energy saving control unit 102 set in step S103 of FIG. 8, and set in the DMA transfer start address setting register.

ステップS203でDMA転送開始設定を行うことで、初期化動作が自動で行われる。DMA転送開始後、ステップS204で、DMAの転送終了確認を行う。   By performing the DMA transfer start setting in step S203, the initialization operation is automatically performed. After starting the DMA transfer, in step S204, the completion of the DMA transfer is confirmed.

ここでは、全ての初期設定をDMAで行っていることになるが、一部のレジスタのみでもよい。また、DMA転送完了までの間、初期化動作の要らない別の動作を行ってもよいし、一部の初期設定のみCPU107で初期設定後、外部デバイスの初期設定等を行っても良い。   Here, all initial settings are performed by DMA, but only some registers may be used. In addition, another operation that does not require an initialization operation may be performed until the DMA transfer is completed, or only a part of the initial settings may be initialized by the CPU 107 and then the external device may be initialized.

以上に説明した実施形態を変形した実施形態について図10を参照して説明する。
図10は、省エネモード及び復帰時の動作に関連する部分の構成を示すブロック図である。図10に示す例では、省エネ復帰時の初期化動作用のDMAコントローラを2つ有している。図10中、DMAコントローラ108は、主にエンジン制御に関するレジスタの初期設定で使用する。DMAコントローラ112は、エンジン制御以外で使用する。DMAコントローラ108,DMAコントローラ112の動作は、図2を参照して説明したものと同じである。
An embodiment obtained by modifying the embodiment described above will be described with reference to FIG.
FIG. 10 is a block diagram illustrating a configuration of a portion related to the energy saving mode and the operation at the time of return. In the example shown in FIG. 10, there are two DMA controllers for initialization operation at the time of energy saving return. In FIG. 10, the DMA controller 108 is mainly used for initial setting of registers relating to engine control. The DMA controller 112 is used for purposes other than engine control. The operations of the DMA controller 108 and the DMA controller 112 are the same as those described with reference to FIG.

省エネからの復帰時は、DMAコントローラ108,DMAコントローラ112を用いて初期化動作を行う。ここで、DMAコントローラ108は、主にエンジン制御に関するレジスタ初期設定で使用するが、一部のレジスタのみでもよい。   When returning from energy saving, initialization operation is performed using the DMA controller 108 and the DMA controller 112. Here, the DMA controller 108 is mainly used for register initialization relating to engine control, but only a part of the registers may be used.

DMAコントローラ108は、レジスタの初期化完了後、初期化済みの制御回路を用いてエンジンの初期動作が必要なものを対象としている。こうすることで、全レジスタの初期設定を完了する前に、時間のかかるエンジンの初期動作を開始することが可能となる。したがって、より高速にシステムを復帰させることができる。   The DMA controller 108 is intended for an engine that requires an initial operation of the engine by using an initialized control circuit after completion of register initialization. By doing this, it is possible to start an initial operation of the engine which takes time before completing the initial setting of all the registers. Therefore, the system can be restored at a higher speed.

以上、本発明の好適な実施の形態について説明したが、本発明はこれに限定されるものではなく、要旨を逸脱しない範囲内で種々の変形実施が可能である。   The preferred embodiment of the present invention has been described above, but the present invention is not limited to this, and various modifications can be made without departing from the scope of the invention.

本発明による実施形態に係る電子機器の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the electronic device which concerns on embodiment by this invention. 本実施形態に係る電子機器の省エネモード時の給電状態を示すブロック図である。It is a block diagram which shows the electric power feeding state at the time of the energy saving mode of the electronic device which concerns on this embodiment. 本実施形態におけるレジスタのレジスタマッピング例を示す図である。It is a figure which shows the register mapping example of the register | resistor in this embodiment. 本実施形態のライトプロテクト制御を説明するための図である。It is a figure for demonstrating the write protection control of this embodiment. 本実施形態におけるDMAで用いられるディスクリプタの形式を示す図である。It is a figure which shows the format of the descriptor used by DMA in this embodiment. 本実施形態のDMAコントローラの構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the DMA controller of this embodiment. 本実施形態におけるDMAで用いられるディスクリプタの形式のさらに別の一例を示す図である。It is a figure which shows another example of the format of the descriptor used by DMA in this embodiment. 本実施形態の省エネ移行時の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence at the time of the energy saving transition of this embodiment. 本実施形態の省エネ復帰時の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence at the time of the energy-saving return of this embodiment. 本発明による別の実施形態の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of another embodiment by this invention.

符号の説明Explanation of symbols

100 電子機器
101 SoC(System on Chip)
102 省エネ制御部
103 省エネ復帰フラグ
104 DMA_SADRレジスタ
105 RAMコントローラ
106 全体制御部
107 CPU
108 DMAコントローラ
109 RAM
110 クロックジェネレータ
111 ROM
201 動作パラメータレジスタ
202 起動レジスタ
203 ライトプロテクト設定レジスタ
301 起動制御部
302 リードDMAコントローラ
303 ライトDMAコントローラ
304 伸張器
100 Electronic Equipment 101 SoC (System on Chip)
102 Energy Saving Control Unit 103 Energy Saving Return Flag 104 DMA_SADR Register 105 RAM Controller 106 Overall Control Unit 107 CPU
108 DMA controller 109 RAM
110 Clock generator 111 ROM
201 Operation Parameter Register 202 Start Register 203 Write Protect Setting Register 301 Start Control Unit 302 Read DMA Controller 303 Write DMA Controller 304 Expander

Claims (5)

省エネモードを有する電子機器であって、
前記省エネモードへの移行時に、装置全体の制御部が管理するレジスタ設定値を記憶する記憶手段と、
前記省エネモードからの復帰時に、ダイレクトメモリアクセスによって前記記憶手段から前記レジスタ設定値を読み出すDMA制御手段と、を有し、
前記制御部は、読み出した前記レジスタ設定値を用いて初期化処理を行うことを特徴とする、電子機器。
An electronic device having an energy saving mode,
Storage means for storing a register setting value managed by the control unit of the entire apparatus at the time of transition to the energy saving mode;
DMA control means for reading the register setting value from the storage means by direct memory access when returning from the energy saving mode,
The electronic device according to claim 1, wherein the control unit performs an initialization process using the read register setting value.
前記レジスタ設定値は、少なくとも1つ以上がライトプロテクトを有効にするか否かに関する設定を含み、
前記制御部は、前記省エネモードからの復帰時に、前記ライトプロテクトを有効にすることを特徴とする、請求項1記載の電子機器。
The register setting value includes a setting regarding whether or not at least one of the write protection is enabled,
The electronic device according to claim 1, wherein the control unit validates the write protection when returning from the energy saving mode.
前記DMA制御手段は、ディスクリプタ方式でダイレクトメモリアクセスを行うことを特徴とする、請求項1又は2記載の電子機器。   The electronic apparatus according to claim 1, wherein the DMA control unit performs direct memory access by a descriptor method. 前記DMA制御手段は、圧縮伸張手段を有し、前記省エネモードへの移行時に、前記圧縮伸張手段を用いて前記レジスタ設定値を圧縮して前記記憶手段に記憶し、前記省エネモードからの復帰時に前記圧縮伸張手段を用いて圧縮された前記レジスタ設定値を伸張して読み出すことを特徴とする、請求項1から3のいずれか1項記載の電子機器。   The DMA control unit includes a compression / expansion unit, and at the time of shifting to the energy saving mode, the register setting value is compressed and stored in the storage unit using the compression / expansion unit, and upon return from the energy saving mode. 4. The electronic apparatus according to claim 1, wherein the register setting value compressed by using the compression / expansion means is expanded and read. 省エネモードを有する電子機器の制御方法であって、
前記省エネモードへの移行時に、装置全体の制御部が管理するレジスタ設定を記憶する記憶工程と、
前記省エネモードからの復帰時に、ダイレクトメモリアクセスによって前記記憶工程で記憶された前記レジスタ設定値を読み出すDMA制御工程と、
前記制御部により、読み出した前記レジスタ設定値を用いて初期化処理を行う工程と、
を含むことを特徴とする、電子機器の制御方法。
A method for controlling an electronic device having an energy saving mode,
A storage step of storing register settings managed by the control unit of the entire apparatus at the time of transition to the energy saving mode;
A DMA control step of reading out the register setting value stored in the storage step by direct memory access when returning from the energy saving mode;
A step of performing an initialization process using the read register setting value by the control unit;
A method for controlling an electronic device, comprising:
JP2008234032A 2008-09-11 2008-09-11 Electronic apparatus and method of controlling the same Withdrawn JP2010068355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008234032A JP2010068355A (en) 2008-09-11 2008-09-11 Electronic apparatus and method of controlling the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008234032A JP2010068355A (en) 2008-09-11 2008-09-11 Electronic apparatus and method of controlling the same

Publications (1)

Publication Number Publication Date
JP2010068355A true JP2010068355A (en) 2010-03-25

Family

ID=42193521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008234032A Withdrawn JP2010068355A (en) 2008-09-11 2008-09-11 Electronic apparatus and method of controlling the same

Country Status (1)

Country Link
JP (1) JP2010068355A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013014082A (en) * 2011-07-05 2013-01-24 Canon Inc Image forming apparatus, method of controlling the image forming apparatus and program
JP2013020445A (en) * 2011-07-11 2013-01-31 Nippon Conlux Co Ltd Vending machine and money processor mounted on vending machine or the like
JP2013049248A (en) * 2011-08-31 2013-03-14 Kyocera Document Solutions Inc Image forming apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013014082A (en) * 2011-07-05 2013-01-24 Canon Inc Image forming apparatus, method of controlling the image forming apparatus and program
JP2013020445A (en) * 2011-07-11 2013-01-31 Nippon Conlux Co Ltd Vending machine and money processor mounted on vending machine or the like
JP2013049248A (en) * 2011-08-31 2013-03-14 Kyocera Document Solutions Inc Image forming apparatus

Similar Documents

Publication Publication Date Title
JP5289153B2 (en) Information processing apparatus, control method therefor, and computer program
JP5780769B2 (en) Data processing apparatus, control method and program thereof, and storage medium
WO2002088935A1 (en) System and method for efficiently performing a data transfer operation
JP2004005029A (en) Device having power saving function and power saving control method
JP2011095916A (en) Electronic apparatus
JP2010194811A (en) Printing device controller and printing device
US9244692B2 (en) Information processing apparatus, control method for information processing apparatus, and program to stop supply of clock to a DSP
JP6270377B2 (en) Image forming apparatus
JP2005157528A (en) Memory device
JP2010068355A (en) Electronic apparatus and method of controlling the same
JP4358041B2 (en) Control device, information processing device, control method, power saving control program, and recording medium
JP2008158991A (en) Control system for nand type flash memory
JP5970867B2 (en) Information processing apparatus, image forming apparatus, and program
JP5747680B2 (en) Information processing apparatus, image forming apparatus, and program
JP2018078485A (en) Information processing apparatus and starting method of information processing apparatus
JP2015215684A (en) Information processing apparatus and information processing program
JP5422687B2 (en) Communication processing apparatus and image forming apparatus
JP5665529B2 (en) Information processing apparatus, control method therefor, and program
JP6703049B2 (en) Information processing apparatus and method of controlling information processing apparatus
JP2006260092A (en) Information processor or data transfer controller
JP2004074621A (en) Image formation apparatus
JP2007105913A (en) Printer and power control method therefor
US20050050360A1 (en) Controller, image processing apparatus, and method of controlling execution of program
JP5321438B2 (en) Electronic device, activation control method, activation control program, and recording medium
JP2013088941A (en) Electronic apparatus

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20111206