JP4792766B2 - Data transfer device and imaging device - Google Patents

Data transfer device and imaging device Download PDF

Info

Publication number
JP4792766B2
JP4792766B2 JP2005050682A JP2005050682A JP4792766B2 JP 4792766 B2 JP4792766 B2 JP 4792766B2 JP 2005050682 A JP2005050682 A JP 2005050682A JP 2005050682 A JP2005050682 A JP 2005050682A JP 4792766 B2 JP4792766 B2 JP 4792766B2
Authority
JP
Japan
Prior art keywords
clock frequency
dma transfer
dma
value
data
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.)
Expired - Fee Related
Application number
JP2005050682A
Other languages
Japanese (ja)
Other versions
JP2006236059A (en
Inventor
一也 川野
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2005050682A priority Critical patent/JP4792766B2/en
Publication of JP2006236059A publication Critical patent/JP2006236059A/en
Application granted granted Critical
Publication of JP4792766B2 publication Critical patent/JP4792766B2/en
Expired - Fee Related 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

  • Information Transfer Systems (AREA)
  • Studio Devices (AREA)
  • Bus Control (AREA)

Description

本発明は、DMA(Direct Memory Access)転送を行うデータ転送装置及び撮像装置に関する。   The present invention relates to a data transfer apparatus and an imaging apparatus that perform DMA (Direct Memory Access) transfer.

デジタルカメラ等の撮像装置においては、共通のデータバスを用いて多くの処理を行う為にDMA転送技術が採用されており、例えば、表示データを表示部に供給して表示を行わせる場合にはDMA転送が用いられている(例えば、特許文献1を参照。)。
また、DMA転送を行う電子機器、特に電池を電源電圧とする電子機器にあっては、消費電力を押さえるために、高速処理を要求されない時にはクロック周波数を低速に切り換えることも行われている(例えば、特許文献2を参照。)。
特開2003−132007号公報 特開2003−242104号公報
In an imaging apparatus such as a digital camera, a DMA transfer technique is adopted to perform a lot of processing using a common data bus. For example, when display data is supplied to a display unit and displayed. DMA transfer is used (see, for example, Patent Document 1).
Further, in an electronic device that performs DMA transfer, particularly an electronic device that uses a battery as a power supply voltage, the clock frequency is switched to a low speed when high-speed processing is not required in order to reduce power consumption (for example, , See Patent Document 2).
JP 2003-132007 A JP 2003-242104 A

しかしながら、従来では、大まかな動作モード別等によってクロック周波数の値を切り換えており、DMA転送を行っている際のバストラフィックの状態に最適なクロック周波数の値に対応していないので無駄な消費電力がなされることがある。また、動作モード等によるクロック周波数の値の切り換えでは、バストラフィック(バスの占有)が集中した時に正常な転送動作が行えなくなる欠点があった。   However, conventionally, the clock frequency value is switched depending on the rough operation mode, etc., and it does not correspond to the optimal clock frequency value for the bus traffic state during DMA transfer, so wasted power consumption. May be made. Further, switching of the clock frequency value depending on the operation mode has a drawback that normal transfer operation cannot be performed when bus traffic (bus occupation) is concentrated.

本発明の課題は、上記課題を解決しようとしてなされたものであり、バストラフィックの状態に応じた最適なクロック周波数の値でDMA転送を行わせることにより無駄な消費電力を防止し得るデータ転送装置及び撮像装置を提供することである。   An object of the present invention is to solve the above-mentioned problem, and is a data transfer apparatus capable of preventing wasteful power consumption by performing DMA transfer with an optimal clock frequency value according to the state of bus traffic. And providing an imaging device.

請求項1に記載のデータ転送装置は、DMA転送部を共有する複数の回路間でのデータのDMA転送制御を行うDMAバス制御手段と、前記DMA転送部におけるデータ転送のクロック周波数を制御するクロック制御手段とを備えるデータ転送装置において、各回路間での前記データ転送に必要な単位時間当たりのクロック数をDMA転送の起動ごとに前記データ転送装置の動作状態に基づいて設定するクロック数設定手段と、
前記クロック数設定手段によって設定された各回路間での前記クロック数の合計値に基づいて前記DMA転送部におけるデータ転送のクロック周波数を設定するクロック周波数設定手段と、
を備えることを特徴とする。
2. The data transfer apparatus according to claim 1, wherein a DMA bus control means for performing DMA transfer control of data among a plurality of circuits sharing the DMA transfer section, and a clock for controlling a clock frequency of data transfer in the DMA transfer section. And a clock number setting means for setting the number of clocks per unit time necessary for the data transfer between the respective circuits based on the operating state of the data transfer apparatus every time DMA transfer is started. When,
A clock frequency setting means for setting the clock frequency of the data transfer in the DMA transfer portion on the basis of the number of clocks sum between each circuit set by the clock count setting means,
It is characterized by providing.

請求項2に記載の発明は、請求項1に記載のデータ転送装置において、さらに、前記クロック周波数設定手段で設定されたクロック周波数の値を記憶する周波数記憶手段を備え、前記DMA転送部におけるデータ転送終了時には、前記周波数記憶手段に記憶されるクロック周波数をシステム全体の動作を継続するために必要とされる低いクロック周波数に設定する低周波数設定手段を備えることを特徴とする。   The invention according to claim 2 is the data transfer device according to claim 1, further comprising frequency storage means for storing a value of the clock frequency set by the clock frequency setting means, and data in the DMA transfer section At the end of the transfer, low frequency setting means for setting the clock frequency stored in the frequency storage means to a low clock frequency required for continuing the operation of the entire system is provided.

請求項3に記載の発明は、請求項1又は請求項2に記載のデータ転送装置において、前記クロック周波数設定手段によって設定されるクロック周波数は、前記クロック数の合計値以上で且つ転送が正常に行われる範囲のクロック周波数であることを特徴とする。   According to a third aspect of the present invention, in the data transfer device according to the first or second aspect, the clock frequency set by the clock frequency setting means is equal to or greater than a total value of the number of clocks and the transfer is normally performed. The clock frequency is within a range to be performed.

請求項4に記載の発明は、請求項1乃至請求項3の何れか一項に記載のデータ転送装置において、更に、各回路間での前記データ転送に必要な単位時間当たりのクロック数データを記憶するクロック数データ記憶手段を備えることを特徴とする。   According to a fourth aspect of the present invention, in the data transfer device according to any one of the first to third aspects, the clock number data per unit time necessary for the data transfer between the circuits is further obtained. It comprises clock number data storage means for storing.

請求項に記載の撮像装置は、請求項1乃至請求項の何れか一項に記載のデータ転送装置を備えることを特徴とする。 An imaging apparatus according to a fifth aspect includes the data transfer apparatus according to any one of the first to fourth aspects.

請求項1から請求項4に記載の発明によれば、ソフトウエア処理により各回路の駆動状態においてDMA転送時に必要とされるクロック周波数の値にDMA転送起動前又はDMA転送終了後に切り換えることができる。   According to the first to fourth aspects of the present invention, it is possible to switch to a clock frequency value required at the time of DMA transfer in the driving state of each circuit by software processing before starting DMA transfer or after completing DMA transfer. .

請求項に記載の発明によれば、撮像装置において、ソフトウエア処理によりバストラフィックの状態に適合するクロック周波数の値に切り換えることができる。 According to the invention described in claim 5 , in the imaging apparatus, it is possible to switch to a clock frequency value suitable for the state of bus traffic by software processing.

本発明によれば、ソフトウエア処理によりバストラフィックの状態に適合するクロック周波数の値への切り換えるが可能となるので、デジタルカメラや携帯電話に搭載したカメラ等の撮像装置の性能を損なうことなく消費電力を低減することが可能となる。   According to the present invention, since it is possible to switch to a clock frequency value suitable for the state of bus traffic by software processing, consumption without impairing the performance of an imaging device such as a digital camera or a camera mounted on a mobile phone. It becomes possible to reduce electric power.

以下に本発明を実施するための最良の形態について図面を用いて説明する。ただし、以下に述べる実施形態には、本発明を実施するために技術的に好ましい種々の限定が付されているが、発明の範囲を以下の実施形態及び図示に限定するものではない。   The best mode for carrying out the present invention will be described below with reference to the drawings. However, the embodiments described below are provided with various technically preferable limitations for carrying out the present invention, but the scope of the invention is not limited to the following embodiments and illustrations.

〔第1実施形態〕
図1は、本発明におけるデータ転送装置を適用した撮像装置の一例であるデジタルカメラの回路構成図である。
[First Embodiment]
FIG. 1 is a circuit configuration diagram of a digital camera which is an example of an imaging apparatus to which a data transfer apparatus according to the present invention is applied.

制御部1は、CPU、ROM、RAM等から構成されている。ROMには、デジタルカメラ全体の動作を制御するため及び後述する各種動作を行うためのプログラムが格納されており、データバスDBを介して後述する各回路に供給される。また、ROMには、詳細を後述する転送パラメータやデジタルカメラの機能情報を記憶しており、機能情報はDMAバス制御部2、DMA転送部(データバス)10、メモリ制御部11介して記録部12に送られて記憶される。   The control unit 1 includes a CPU, a ROM, a RAM, and the like. The ROM stores a program for controlling the operation of the entire digital camera and for performing various operations described later, and is supplied to each circuit described later via the data bus DB. The ROM stores transfer parameters, which will be described in detail later, and function information of the digital camera. The function information is stored in the recording unit via the DMA bus control unit 2, the DMA transfer unit (data bus) 10, and the memory control unit 11. 12 to be stored.

DMA転送部10は、共通のデータバスを有していて各回路間から出力されるデータをDMA転送するもので、DMAバス制御部2によってDMA転送チャンネルや転送用のクロック周波数が制御される。DMAバス制御部2は、制御部1からの指示によりDMA転送部10を共有する複数の回路間でのDMAデータ転送を制御する。   The DMA transfer unit 10 has a common data bus and DMA-transfers data output from each circuit. The DMA bus control unit 2 controls the DMA transfer channel and the transfer clock frequency. The DMA bus control unit 2 controls DMA data transfer between a plurality of circuits sharing the DMA transfer unit 10 according to an instruction from the control unit 1.

入力部3は、複数の操作ボタンを備えている(図示せず)。操作ボタンによって本デジタルカメラの動作モード及び撮影条件等を設定する設定ボタン、撮影を指示するシャッターボタン、記録した画像の再生を指示する再生ボタンなどを備えている。尚、動作モードとしては、記録モードや再生モード、消去モード等が挙げられる。   The input unit 3 includes a plurality of operation buttons (not shown). The operation button includes a setting button for setting the operation mode and shooting conditions of the digital camera, a shutter button for instructing shooting, a playback button for instructing playback of the recorded image, and the like. Note that examples of the operation mode include a recording mode, a reproduction mode, and an erasing mode.

撮像素子であるCCD(Charge Coupled Devices)4には、レンズ等の光学系(図示せず)を介して外部の被写体像が写し込まれ撮像される。CCD4に写し込まれた被写体像のアナログ信号は、各部にタイミングパルス信号を供給するタイミングジェネレータ5から出力されるパルス信号を基にCCD駆動回路6から供給される読み出しパルスによって読み出され、CDS(Correlated Double Sampling)/増幅回路7に送られる。   A CCD (Charge Coupled Devices) 4 that is an imaging element captures and captures an external subject image via an optical system (not shown) such as a lens. The analog signal of the subject image imprinted on the CCD 4 is read out by the readout pulse supplied from the CCD drive circuit 6 based on the pulse signal output from the timing generator 5 that supplies the timing pulse signal to each part, and the CDS ( Correlated Double Sampling) / amplification circuit 7

CDS/増幅回路7では、アナログ信号の相関二重サンプリングが行われて雑音が除去されるとともにゲイン調整が行われる。ゲイン調整された信号は、アナログ/デジタル(A/D)変換回路8でデジタル信号に変換され順次バッファ9に送られるとともにDMA転送部10を介してメモリ制御部11に送られる。メモリ制御部11は、記録部12への情報の書き込み及び読み出しを制御し、DMA転送部10を介して送られてきたデジタル信号を記録部12に記録させる。   The CDS / amplifier circuit 7 performs correlated double sampling of the analog signal to remove noise and perform gain adjustment. The gain-adjusted signal is converted into a digital signal by an analog / digital (A / D) conversion circuit 8 and sequentially sent to a buffer 9 and also sent to a memory control unit 11 via a DMA transfer unit 10. The memory control unit 11 controls writing and reading of information to and from the recording unit 12, and causes the recording unit 12 to record the digital signal transmitted via the DMA transfer unit 10.

記録部12は、大容量のRAM或いはフラッシュメモリ等で構成されている。記録部12は、上述のCCD4から送られていくる画像信号を順次記録してフレーム単位の画像信号を格納する領域や、後述するフレーム単位の画像信号を輝度(Y)、色差(UV)信号に変換した画像情報(以下、YUV画像情報とする。)、このYUV画像情報の解像度を変換したYUV画像情報、及び制御部1から送られてくる機能情報をそれぞれ記録する格納領域を備えている。   The recording unit 12 is composed of a large-capacity RAM or a flash memory. The recording unit 12 sequentially records the image signal sent from the CCD 4 and stores the image signal in frame units, or converts the image signal in frame units, which will be described later, into luminance (Y) and color difference (UV) signals. A storage area is provided for recording converted image information (hereinafter referred to as YUV image information), YUV image information obtained by converting the resolution of the YUV image information, and function information sent from the control unit 1.

ここで、CCD4から送られ記録部12に記録された1フレーム分の画像情報は、メモリ制御部11を介して直ちに読み出され、DMA転送部10及びバッファ13を介してYUV変換回路14に送られ、YUV画像情報に変換される。1フレーム分の画像情報は、YUV画像情報に変換された後、バッファ15及びDMA転送部10を介してメモリ制御部11に送られ、記録部12に記録される。   Here, the image information for one frame sent from the CCD 4 and recorded in the recording unit 12 is immediately read out via the memory control unit 11 and sent to the YUV conversion circuit 14 via the DMA transfer unit 10 and the buffer 13. And converted into YUV image information. The image information for one frame is converted into YUV image information, and then sent to the memory control unit 11 via the buffer 15 and the DMA transfer unit 10 and recorded in the recording unit 12.

さらに、記録部12に記録されたYUV画像情報は、メモリ制御部11を介して読み出されDMA転送部10及びバッファ23を介して解像度変換回路24に送られる。この解像度変換回路24に送られたYUV画像情報は、解像度が後述する表示部22の表示データに適したデータ量に変換され、バッファ25、DMA転送部10及びメモリ制御部11を介して記録部12に記憶される。また、静止画の撮影や動画の撮影が指示された場合には、記録部12に記憶されたYUV画像情報がメモリ制御部11を介して読み出され、読み出されたYUV画像情報は、DMA転送部10及びバッファ16を介して圧縮・伸長回路17に送られる。送られたYUV画像情報は、例えば、静止画の場合にはJPEG規格形式の画像情報等、動画の場合にはモーションJPEG或いはMPEG規格形式の画像情報等に変換された後、バッファ18及びDMA転送部10を介して記録媒体制御部19に送られ、記録媒体20に記録される。
記録媒体20は、本デジタルカメラ本体に脱着可能な不揮発性メモリ或いは光磁気ディスク等から構成されている。これら不揮発性メモリ或いは光磁気ディスクは、多数の静止画或いは動画を記録できる大容量のものが好ましい。
Further, the YUV image information recorded in the recording unit 12 is read out via the memory control unit 11 and sent to the resolution conversion circuit 24 via the DMA transfer unit 10 and the buffer 23. The YUV image information sent to the resolution conversion circuit 24 is converted into a data amount suitable for the display data of the display unit 22 to be described later, and is recorded in the recording unit via the buffer 25, the DMA transfer unit 10 and the memory control unit 11. 12 is stored. In addition, when a still image shooting or a moving image shooting is instructed, the YUV image information stored in the recording unit 12 is read out via the memory control unit 11, and the read YUV image information is stored in the DMA. The data is sent to the compression / decompression circuit 17 via the transfer unit 10 and the buffer 16. The sent YUV image information is converted into, for example, JPEG standard format image information in the case of a still image, or motion JPEG or MPEG standard format image information in the case of a moving image, and then transferred to the buffer 18 and DMA transfer. It is sent to the recording medium control unit 19 via the unit 10 and recorded on the recording medium 20.
The recording medium 20 includes a nonvolatile memory or a magneto-optical disk that can be attached to and detached from the digital camera body. The non-volatile memory or magneto-optical disk preferably has a large capacity capable of recording a large number of still images or moving images.

デジタルカメラの機能情報は、モード名や撮影条件値などの各機能を表す文字、記号或いはアイコン等の情報が予め制御部1のROMに記録されている。デジタルカメラの機能情報は、一旦記録部12に記録された後、メモリ制御部11及びDMA転送部10を介して詳細を後述する表示制御回路21に送られる。表示制御回路21に送られた機能情報と解像度変換回路24で変換された被写体画像とは、合成されて表示部22に表示される。   As for the function information of the digital camera, information such as characters, symbols or icons representing each function such as a mode name and a photographing condition value is recorded in the ROM of the control unit 1 in advance. The function information of the digital camera is once recorded in the recording unit 12 and then sent to the display control circuit 21 described later in detail through the memory control unit 11 and the DMA transfer unit 10. The function information sent to the display control circuit 21 and the subject image converted by the resolution conversion circuit 24 are combined and displayed on the display unit 22.

時計回路26は現在の日付及び時刻を計時するもので、計時されている現在の日付及び時刻は一旦記録部12に記録された後、メモリ制御部11及びDMA転送部10を介して表示制御回路21に送られる。解像度変換回路24で変換された被写体画像と合成されて表示部22に表示される。   The clock circuit 26 measures the current date and time, and the current date and time that has been timed are once recorded in the recording unit 12 and then displayed via the memory control unit 11 and the DMA transfer unit 10. 21. The image is combined with the subject image converted by the resolution conversion circuit 24 and displayed on the display unit 22.

静止画或いは動画の撮影モードにおいては、CCD4に写し込まれている被写体画像は表示制御回路21を介して表示部22に常にスルー表示されている。この表示部22は、カラー液晶或いはカラー有機EL等で構成されている。また、表示部22は、表示画素が水平及び垂直方向にマトリクス上に配置され、被写体画像を表示することにより撮影時における電子ファインダ(モニター表示)の役割を果たす。   In the still image or moving image shooting mode, the subject image captured on the CCD 4 is always displayed on the display unit 22 through the display control circuit 21. The display unit 22 is composed of a color liquid crystal, a color organic EL, or the like. In addition, the display unit 22 has display pixels arranged in a matrix in the horizontal and vertical directions, and serves as an electronic viewfinder (monitor display) at the time of shooting by displaying a subject image.

表示制御回路21は、第1DMAインターフェイス(I/F)制御回路30、第2DMAインターフェイス(I/F)制御回路34、合成回路37、コード変換回路38、バッファ31、32、バッファ35、36及び表示クロック信号発生回路40等を備えている。   The display control circuit 21 includes a first DMA interface (I / F) control circuit 30, a second DMA interface (I / F) control circuit 34, a synthesis circuit 37, a code conversion circuit 38, buffers 31, 32, buffers 35 and 36, and a display. A clock signal generation circuit 40 and the like are provided.

第1DMAインターフェイス制御回路30は、DMA転送部10にDMA転送要求信号を送出し、また、DMA転送部10からDMA応答信号及びデジタルカメラの機能情報を受け取り、バッファ31、32へ送る。第1DMAインターフェイス制御回路30の内部には、表示部22における機能情報の表示位置情報を記録するメモリ30Aが備えられている。   The first DMA interface control circuit 30 sends a DMA transfer request signal to the DMA transfer unit 10, receives a DMA response signal and function information of the digital camera from the DMA transfer unit 10, and sends them to the buffers 31 and 32. Inside the first DMA interface control circuit 30, a memory 30A for recording display position information of function information on the display unit 22 is provided.

第2DMAインターフェイス制御回路34は、DMA転送部10にDMA転送要求信号を送出し、また、解像度変換回路24で解像度が変換され記録部12に記録されたYUV画像情報をDMA転送部10を介して受け取り、バッファ35、36へ送る。第2DMAインターフェイス制御回路34の内部には、画像情報の表示位置情報を記録するメモリ34Aが備えられている。
なお、YUV変換回路14、圧縮・伸長回路17、解像度変換回路24等は、各バッファの他にDMAインターフェイス制御回路(図示せず)を備えている。
The second DMA interface control circuit 34 sends a DMA transfer request signal to the DMA transfer unit 10, and the YUV image information whose resolution is converted by the resolution conversion circuit 24 and recorded in the recording unit 12 via the DMA transfer unit 10. Receive and send to buffers 35 and 36. Inside the second DMA interface control circuit 34, a memory 34A for recording display position information of image information is provided.
The YUV conversion circuit 14, the compression / decompression circuit 17, the resolution conversion circuit 24, and the like include a DMA interface control circuit (not shown) in addition to each buffer.

バッファ35、36の出力(画像情報)は、合成回路37に送られるとともにバッファ31、32の出力もコード変換回路38に送られてYUV画像情報に変換された後、合成回路37に送られ、表示部22に表示する画像情報に合成される。尚、第1DMAインターフェース(I/F)制御回路30に対し2つのバッファ31及び32、第2DMAインターフェース(I/F)制御回路34に対し2つのバッファ35及び36をそれぞれ設けているのは、1回のDMA転送によって送られてきた所定バースト長のデータを一方のバッファに記憶させ、この記憶されたデータを読み出している間に、次に送られてきたデータを他方のバッファに記憶させ、一方のバッファの読み出しが終えた後は直ちに他方のバッファに記憶させたデータを読み出し、その間に一方のバッファに次のデータを記憶させるといった動作を行わせることによって表示情報の転送遅れが生じない様にするためである。   The outputs (image information) of the buffers 35 and 36 are sent to the synthesis circuit 37, and the outputs of the buffers 31 and 32 are also sent to the code conversion circuit 38 and converted into YUV image information, and then sent to the synthesis circuit 37. It is synthesized with the image information displayed on the display unit 22. The two buffers 31 and 32 are provided for the first DMA interface (I / F) control circuit 30, and the two buffers 35 and 36 are provided for the second DMA interface (I / F) control circuit 34, respectively. The data of a predetermined burst length sent by the DMA transfer is stored in one buffer, and while the stored data is being read, the next sent data is stored in the other buffer, Immediately after the reading of one buffer is completed, the data stored in the other buffer is immediately read and the next data is stored in one buffer during that time so that the display information transfer delay is not caused. It is to do.

表示クロック信号発生回路40は、基準クロック信号(φ)をカウントする水平カウンタ41及び垂直カウンタ42、及びこれらから送られたデータを復号するデコーダ43を備えている。このデコーダ43によって取り出された表示用クロック信号は表示制御回路21内各部へ送られる。   The display clock signal generation circuit 40 includes a horizontal counter 41 and a vertical counter 42 that count the reference clock signal (φ), and a decoder 43 that decodes data sent from these. The display clock signal extracted by the decoder 43 is sent to each part in the display control circuit 21.

クロック制御部51は、PLL(Phase Locked Loop)が内蔵されており、発振回路52から入力されるクロック数を分周してDMA転送用及び各部を制御するためのクロックを出力する。この場合、出力されるクロックの周波数(以下、アクティブクロック周波数と称呼する場合もある。)は、制御部1からの制御信号によって切り換えられる。   The clock control unit 51 includes a PLL (Phase Locked Loop), and divides the number of clocks input from the oscillation circuit 52 to output a clock for DMA transfer and for controlling each unit. In this case, the frequency of the output clock (hereinafter sometimes referred to as the active clock frequency) is switched by a control signal from the control unit 1.

次に、第1実施形態のデジタルカメラの動作について説明する。
図2は、DMA転送起動時におけるアクティブクロック周波数の変更制御のフローチャートを示す。
Next, the operation of the digital camera of the first embodiment will be described.
FIG. 2 shows a flowchart of active clock frequency change control when DMA transfer is activated.

この図2の処理がなされる前のDMA転送が起動されていない状態では、制御部1は、クロック周波数S値を制御部1内部の図示しないRAMに登録する。この場合、本デジタルカメラに電源が投入され、システムの初期設定が行われる場合には、初期設定後のクロック周波数S値は予めROMに登録されていてもよい。
ここで、クロック周波数S値は、単位時間あたりのクロック数の値であり、各回路の駆動状態におけるシステム全体の動作を継続するために必要とされる最低限度のクロック周波数の値である。また、アクティブクロック周波数は、クロック制御部51から発振されている現在のクロック周波数である。
In a state where the DMA transfer before the processing of FIG. 2 is not activated, the control unit 1 registers the clock frequency S value in a RAM (not shown) inside the control unit 1. In this case, when the digital camera is turned on and the system is initially set, the clock frequency S value after the initial setting may be registered in the ROM in advance.
Here, the clock frequency S value is a value of the number of clocks per unit time, and is a minimum clock frequency value required to continue the operation of the entire system in the driving state of each circuit. The active clock frequency is the current clock frequency oscillated from the clock control unit 51.

しかして、例えば撮影モードが設定されると、CCD4に写し込まれた被写体像を表示部22に表示させるため、CCD4に写し込まれた被写体像がDMA転送部10を介して記録部12に記憶され、また、記録部12に記憶された画像情報をYUV変換回路14、解像度変換回路24及び表示制御回路21に転送或いは受け取るために、図2のDMA転送起動処理が開始される。
DMA転送起動処理が開始されると、まず、各DMA転送パラメータが選択され、設定される(ステップS111)。ここで、設定されるDMA転送パラメータは、DMA転送部10を介して各回路間のDMA転送時に必要とされる単位時間当たりのクロック数(以下、この値をクロック周波数A1値、A2値、A3値・・・と称呼する)である。例えば、CCD4に写し込まれた画像データを1秒当たり30フレームのフレームレートで表示部22にスルー表示させるのであれば、30フレーム分の画像データ(但し、表示用なので、1フレームはCCD4の全画素のデータではなく、所定量間引いた画像データとなっている)を記録部12に記録させるに必要なクロック周波数はA1、記録部12に記憶された画像データを読み出しYUV変換回路14にDMA転送させるに必要なクロック周波数はA2、YUV変換回路14で変換されたYUV画像データを記録部12に記録させるに必要なクロック周波数はA3、記録部12に記憶されたYUV画像データを解像度変換回路24にDMA転送するのに必要なクロック周波数はA4、というように各回路間をDMA転送させるに必要な周波数値が設定される。
Thus, for example, when the shooting mode is set, the subject image captured on the CCD 4 is displayed on the display unit 22, so that the subject image captured on the CCD 4 is stored in the recording unit 12 via the DMA transfer unit 10. 2 is started in order to transfer or receive the image information stored in the recording unit 12 to the YUV conversion circuit 14, the resolution conversion circuit 24, and the display control circuit 21.
When the DMA transfer activation process is started, first, each DMA transfer parameter is selected and set (step S111). Here, the DMA transfer parameter to be set is the number of clocks per unit time required for DMA transfer between circuits via the DMA transfer unit 10 (hereinafter, this value is referred to as clock frequency A1 value, A2 value, A3 Value). For example, if the image data imprinted on the CCD 4 is to be displayed through on the display unit 22 at a frame rate of 30 frames per second, 30 frames of image data (however, one frame is all for the CCD 4 because it is for display). The clock frequency necessary for recording the recording unit 12 on the recording unit 12 is not the pixel data but the image data thinned out by a predetermined amount, and the image data stored in the recording unit 12 is read out and DMA-transferred to the YUV conversion circuit 14 The clock frequency required for the recording is A2, the clock frequency required for recording the YUV image data converted by the YUV conversion circuit 14 on the recording unit 12 is A3, and the YUV image data stored in the recording unit 12 is the resolution conversion circuit 24. The clock frequency required for DMA transfer is A4, which is necessary for DMA transfer between circuits. Frequency value is set.

尚、上記クロック周波数A1、A2、A3、A4・・・は、制御部1の図示しないROMに予め記憶されているものであり、モードによって、或いは撮影状態などによってそれぞれ異なったパラメータが設定される。例えば、上述したスルー表示では、上述したクロック周波数以外に、更に解像度変換回路24からの画像データを記録部12に転送記録するクロック周波数A5、この転送記録された画像データを表示制御回路21に送るクロック周波数A6、カメラの機能情報を表示制御回路21に送るクロック周波数A7等が設定されるが、このスルー表示状態においてシャッターボタンが操作され静止画の記録が指示されると、CCD4の全画素のデータが1フレームの画像データとして記録部12に送られるので、その1フレーム当たりのデータ量はスルー表示時より大きくなる。しかしながら、静止画の記録は30フレームは必要とせず1もしくは2フレームでよいので、1もしくは2フレーム分のデータをDMA転送させるクロック周波数、例えばA10が設定される。また、スルー表示にはDMA転送されなかった、記録部12から圧縮・伸張回路17へのDMA転送のクロック周波数及び圧縮・伸張回路17から記録媒体20へのDMA転送のクロック周波数A11が記録時には設定されるものである。   The clock frequencies A1, A2, A3, A4,... Are stored in advance in a ROM (not shown) of the control unit 1, and different parameters are set depending on the mode or the shooting state. . For example, in the above-described through display, in addition to the clock frequency described above, the clock frequency A5 for transferring and recording the image data from the resolution conversion circuit 24 to the recording unit 12 and the transferred and recorded image data are sent to the display control circuit 21. The clock frequency A6, the clock frequency A7 for sending camera function information to the display control circuit 21, and the like are set. When the shutter button is operated in this through display state to record a still image, all the pixels of the CCD 4 are instructed. Since the data is sent to the recording unit 12 as one frame of image data, the amount of data per frame is larger than that during through display. However, the recording of still images does not require 30 frames, and may be 1 or 2 frames. Therefore, a clock frequency, for example, A10 for DMA transfer of data for 1 or 2 frames is set. In addition, the clock frequency for DMA transfer from the recording unit 12 to the compression / expansion circuit 17 and the clock frequency A11 for DMA transfer from the compression / expansion circuit 17 to the recording medium 20 that are not DMA-transferred for the through display are set during recording. It is what is done.

制御部1は、DMA転送パラメータ設定に基づき各回路の駆動状態におけるDMA転送時に必要とされるクロック周波数A1値、A2値、A3値・・・のそれぞれを加算し、更に、下記に説明するクロック周波数J値を加算して合計値G値を算出する(ステップS112)。   Based on the DMA transfer parameter setting, the control unit 1 adds each of the clock frequency A1, A2, A3,... Required for DMA transfer in the driving state of each circuit, and further, a clock described below. The total value G value is calculated by adding the frequency J value (step S112).

上記クロック周波数J値は、DMA転送の待ち時間やDMA転送をする変換データ量等の違いによるバストラフィック状態を考慮した、DMA転送を正常に行わせる余剰のクロック周波数の値であり、予めROMに設定されている。
従って、ステップS112では、DMA転送に必要な最低の周波数が合計値Gとして算出される。
The clock frequency J value is a surplus clock frequency value that allows the DMA transfer to be normally performed in consideration of the bus traffic state due to the difference in the DMA transfer waiting time and the amount of converted data to be transferred. Is set.
Accordingly, in step S112, the lowest frequency required for DMA transfer is calculated as the total value G.

次のステップS113では、本フローチャートに入る前に登録されたクロック周波数S値とステップS112で算出された合計値G値とを比較し、アクティブクロック周波数S値が各DMA起動時にシステム全体の動作を継続するために必要とされる必要最小限のクロック周波数Gの値以下か否かを判断する。   In the next step S113, the clock frequency S value registered before entering this flowchart is compared with the total value G value calculated in step S112, and the active clock frequency S value determines the operation of the entire system when each DMA is started. It is determined whether or not the value is equal to or lower than the minimum clock frequency G required for continuing.

アクティブクロック周波数S値が算出されたクロック周波数Gより小さい、即ちアクティブクロック周波数S値が必要最小限のクロック周波数の値でないと判断した場合には(ステップS113;Yes)、アクティブクロック周波数を周波数G値に上げるようにアクティブクロック周波数の値を変更する(ステップS114)。
クロック周波数G値にアクティブクロック周波数の値を変更した後は、制御部1のRAMに記憶されているアクティブクロック周波数Sの値をこのクロック周波数G値に更新する(ステップS115)。クロック周波数S値に更新後、各回路のDMA転送を起動する(ステップS116)。
DMA転送を起動後、DMA転送終了待ち状態となり(ステップS117)、DMA転送終了となる。
When it is determined that the active clock frequency S value is smaller than the calculated clock frequency G, that is, the active clock frequency S value is not the minimum clock frequency value (step S113; Yes), the active clock frequency is set to the frequency G. The value of the active clock frequency is changed so as to increase the value (step S114).
After changing the value of the active clock frequency to the clock frequency G value, the value of the active clock frequency S stored in the RAM of the control unit 1 is updated to this clock frequency G value (step S115). After updating to the clock frequency S value, the DMA transfer of each circuit is started (step S116).
After the DMA transfer is activated, the DMA transfer end wait state is entered (step S117), and the DMA transfer ends.

ステップS113で、クロック周波数S値が必要最小限のクロック周波数G値以上である場合には(ステップS113;No)、アクティブクロック周波数の値はそのままの状態でクロック周波数S値を変更せず、各回路のDMA転送を起動する(ステップS116)。
DMA転送を起動後、DMA転送終了待ち(ステップS117)、DMA転送終了となる。
In step S113, when the clock frequency S value is equal to or higher than the necessary minimum clock frequency G value (step S113; No), the clock frequency S value is not changed without changing the active clock frequency value. The DMA transfer of the circuit is started (step S116).
After starting the DMA transfer, the DMA transfer is waited for (step S117), and the DMA transfer ends.

図3はDMA転送の終了処理のフローチャートであり、特に、DMA転送終了時におけるアクティブクロック周波数の変更のフローを示す。
まず、制御部1は、DMA転送終了処理が開始されると、アクティブクロック周波数の変更以外のDMA転送終了のための各種処理を行い(ステップS121)、図2のステップS111で設定されたDMA転送パラメータであるクロック周波数A1値、A2値、A3値・・・を合計して算出し、現在のアクティブクロック周波数の値S(図2のステップS114及びS115での処理がなされた場合は、アクティブクロック周波数の値Sは周波数Gとなっている)からクロック周波数A1値、A2値、A3値・・・の合計値を減算し、さらに、J値を減算し、合計値Gを算出する(ステップS122)。
FIG. 3 is a flowchart of DMA transfer end processing, and particularly shows a flow of changing the active clock frequency at the end of DMA transfer.
First, when the DMA transfer end process is started, the control unit 1 performs various processes for DMA transfer end other than the change of the active clock frequency (step S121), and the DMA transfer set in step S111 of FIG. The clock frequency A1 value, A2 value, A3 value, etc., which are parameters are summed up and calculated, and the current active clock frequency value S (if the processing in steps S114 and S115 in FIG. The total value of the clock frequency A1, A2, A3,... Is subtracted from the frequency value S), and the J value is subtracted to calculate the total value G (step S122). ).

次のステップS123では、ステップS122で得られた合計値GとDMA転送終了後にシステム全体の動作を継続するために必要とされる必要最小限のクロック周波数とを比較して合計値Gが必要最小限のクロック周波数より大きいか否かを判断する。   In the next step S123, the total value G obtained in step S122 is compared with the minimum clock frequency required to continue the operation of the entire system after the completion of the DMA transfer. It is determined whether or not the clock frequency is greater than the limit.

合計値Gの値が、必要最小限のクロック周波数の値より大きいと判断した場合には(ステップS123;Yes)、アクテイブクロック周波数を必要最小限のクロック周波数に下げ、(ステップS124)、ステップS124後に、この必要最小限のクロック周波数の値を新たなアクテイブクロック周波数S値として更新し(ステップS125)し、終了する。
なお、合計値Gの値が必要最小限のクロック周波数値である場合には(ステップS123;No)、アクティブクロック周波数の値はそのままの状態となり、アクテイブクロック周波数値は更新されず、終了する(ステップS124)。なお、合計値Gの値が必要最小限のクロック周波数以下となることはあり得ないが、何らかのエラーなどによって必要最小限のクロック周波数以下になっている場合には、アクティブクロック周波数を必要最小限のクロック周波数に上げるようにすればよい。
If it is determined that the total value G is larger than the minimum clock frequency (step S123; Yes), the active clock frequency is lowered to the minimum clock frequency (step S124), and step S124. Later, the necessary minimum clock frequency value is updated as a new active clock frequency S value (step S125), and the process ends.
When the total value G is the minimum necessary clock frequency value (step S123; No), the active clock frequency value remains as it is, and the active clock frequency value is not updated and ends ( Step S124). Although the total value G cannot be less than the minimum required clock frequency, the active clock frequency is set to the minimum required if it is below the minimum required clock frequency due to some error. The clock frequency may be increased.

これらの図2及び図3の処理はDMA転動の起動及びDMA転送の停止ごとに繰り返し行われる。   These processes shown in FIGS. 2 and 3 are repeated every time the DMA roll is started and the DMA transfer is stopped.

以上のことより、各回路間のDMA転送を起動前及び/又はDMA転送終了後に転送が正常に行われる範囲のできるだけ低いクロック周波数の値に適宜最適に切り換える処理を行うことができる。さらに、データバスのバストラフィック状態に対応しながら、アクティブクロック周波数の値をシステム全体の動作を継続するのに必要とされるクロック周波数の値に適宜切り換えることができるので、データ転送装置を用いたデジタルカメラ等撮像装置の性能を損なうことなく、消費電力を低減することができる。   From the above, it is possible to optimally switch the DMA transfer between the circuits to the lowest possible clock frequency value within the range in which the transfer is normally performed before starting and / or after the DMA transfer is completed. Furthermore, the data transfer device was used because the value of the active clock frequency can be appropriately switched to the value of the clock frequency required to continue the operation of the entire system while corresponding to the bus traffic state of the data bus. Power consumption can be reduced without impairing the performance of an imaging apparatus such as a digital camera.

なお、バストラフィックが集中する場合には、回路間のDMA転送に優先順位や絞込みを予め設定してもよい。DMA転送の優先順位や絞込みを行うことによって重要な回路間のDMA転送を確保しつつバストラフィックの集中を回避することができるので、システム全体の動作を継続しながら撮像装置の性能を損なうことなく、消費電力を低減することができる。   When bus traffic is concentrated, priorities and narrowing down may be set in advance for DMA transfer between circuits. By prioritizing and narrowing down the DMA transfer, it is possible to avoid the concentration of bus traffic while ensuring DMA transfer between important circuits, so that the performance of the imaging apparatus is not impaired while continuing the operation of the entire system. , Power consumption can be reduced.

〔第2実施形態〕
第2実施形態のデジタルカメラについて説明する。第2実施形態において、第1実施形態と同様の部分については説明を省略する。第1実施形態と異なる部分は、バス占有率計測部がDMAバス制御部2内に備えられている点である。
バス占有率計測部は、カウンタによりアクティブクロック周波数を一定期間計測してDMA転送部10におけるバス占有率を算出する。
なお、バス占有率計測部は、他の回路内に設けてもよく、独立させてDMA転送部10を介して他の回路間との応答を行ってもよい。
[Second Embodiment]
A digital camera according to the second embodiment will be described. In the second embodiment, the description of the same parts as in the first embodiment is omitted. The difference from the first embodiment is that a bus occupancy measuring unit is provided in the DMA bus control unit 2.
The bus occupancy measurement unit measures the active clock frequency for a certain period by a counter and calculates the bus occupancy in the DMA transfer unit 10.
Note that the bus occupancy rate measurement unit may be provided in another circuit, or may independently respond with another circuit via the DMA transfer unit 10.

制御部1は、システム全体のクロック周波数制御を行う。また、制御部1のROMには、第1実施形態のプログラムのほかに更に後述する動作(ステップS201からS207)を行うためのプログラムが格納されている。
また、ROMには、デジタルカメラが起動され、システムの初期設定が行われた後、各回路の起動状態に対応するクロック周波数に基づいてシステム全体の動作を維持し、DMA転送部10が許容することができるバス占有率の上限値(Qmax)及び下限値(Qmin)の所定の閾値が設定されており、所定の閾値は制御部1によって読み出される。
The control unit 1 performs clock frequency control for the entire system. In addition to the program of the first embodiment, the ROM of the control unit 1 stores a program for performing operations (steps S201 to S207) to be described later.
The ROM also maintains the operation of the entire system based on the clock frequency corresponding to the activation state of each circuit after the digital camera is activated and the system is initialized, and is allowed by the DMA transfer unit 10. A predetermined threshold value of an upper limit value (Qmax) and a lower limit value (Qmin) of the bus occupancy that can be set is set, and the predetermined threshold value is read by the control unit 1.

次に、第2実施形態のデジタルカメラの動作について説明する。
第4図は、第2実施形態の制御のフローチャートを示す。
バス占有率計測部は、各回路の駆動状態におけるDMA転送時のクロック周波数の値に基づき単位時間当たりのDMA転送部10全体のバス占有率計測カウンタの起動を開始する。(ステップS201)。各回路の駆動状態としては、動作モード別に基となるCCD駆動回路6や表示部22の動作サイクル等が挙げられる。
Next, the operation of the digital camera of the second embodiment will be described.
FIG. 4 shows a flowchart of control of the second embodiment.
The bus occupancy rate measurement unit starts activation of the bus occupancy rate measurement counter of the entire DMA transfer unit 10 per unit time based on the clock frequency value during DMA transfer in the driving state of each circuit. (Step S201). Examples of the driving state of each circuit include the operating cycle of the CCD driving circuit 6 and the display unit 22 as a basis for each operation mode.

バス占有率計測部は、バス占有率の計測し、バス占有率結果を算出し、備えられているRAMに書き込む(ステップS202)。バス占有率計測部のバス占有率の計測が終了しない場合には(ステップS202;N)、そのまま計測を継続し、計測が終了した場合には(ステップS203;Y)、制御部1に終了を通知する。
通知後、制御部1は、バス占有率計測部からバス占有率計測結果(Qrst)を読み出すとともに(ステップS203)、バス占有率の上限値(Qmax)及び下限値(Qmin)の所定の閾値を制御部1のROM等から読み出す。所定の閾値は、予めROMに設定されていることが好ましい。
The bus occupancy rate measuring unit measures the bus occupancy rate, calculates the bus occupancy rate result, and writes it in the provided RAM (step S202). If the measurement of the bus occupancy rate of the bus occupancy rate measuring unit does not end (step S202; N), the measurement is continued as it is, and if the measurement is completed (step S203; Y), the control unit 1 ends. Notice.
After the notification, the control unit 1 reads the bus occupancy rate measurement result (Qrst) from the bus occupancy rate measurement unit (step S203), and sets predetermined threshold values for the upper limit value (Qmax) and lower limit value (Qmin) of the bus occupancy rate. Read from the ROM of the control unit 1 or the like. The predetermined threshold is preferably set in the ROM in advance.

制御部1は、算出されたバス占有率結果(Qrst)に基づき所定の閾値に対応してクロック周波数の値を制御する(ステップS204からS207)。即ち、制御部1は、バス占有率計測部から読み出したバス占有率計測結果(Qrst)に基づきクロック周波数の値を切り換える。   The control unit 1 controls the clock frequency value corresponding to a predetermined threshold based on the calculated bus occupancy rate result (Qrst) (steps S204 to S207). That is, the control unit 1 switches the value of the clock frequency based on the bus occupancy measurement result (Qrst) read from the bus occupancy measurement unit.

制御部1は、バス占有率計測結果(Qrst)が閾値の上限値(Qmax)より大きい場合(Qrst>Qmax)には(ステップS204;Y)、アクティブクロック周波数の値を上げるように変更し(ステップS205)、次のステップ206に移行する。また、制御部1は、バス占有率計測結果(Qrst)が閾値の上限値(Qmax)より小さい場合(Qrst<Qmax)には(ステップS204;N)、アクティブクロック周波数の値はそのままとし、次のステップ206に移行する。   When the bus occupancy rate measurement result (Qrst) is larger than the upper limit value (Qmax) of the threshold (Qrst> Qmax) (step S204; Y), the control unit 1 changes the value to increase the active clock frequency ( Step S205), the process proceeds to the next step 206. When the bus occupancy rate measurement result (Qrst) is smaller than the upper limit value (Qmax) of the threshold (Qrst <Qmax) (step S204; N), the control unit 1 keeps the value of the active clock frequency as it is, The process proceeds to step 206.

制御部1は、さらに、バス占有率計測結果(Qrst)が下限値(Qmin)より小さい場合(Qrst<Qmin)には(ステップS206;Y)、アクティブクロック周波数の値を下げるように変更し(ステップS207)、次のステップ208に移行し、終了する。バス占有率計測結果(Qrst)が下限値(Qmin)より大きい場合(Qrst>Qmin)には(ステップS206;N)、アクティブクロック周波数の値はそのままとし、終了する。このとき、アクティブクロック周波数の値は、所定の閾値内となる。   Further, when the bus occupancy rate measurement result (Qrst) is smaller than the lower limit value (Qmin) (Qrst <Qmin) (step S206; Y), the control unit 1 changes the active clock frequency value so as to decrease ( Step S207), the process proceeds to the next step 208 and ends. When the bus occupancy rate measurement result (Qrst) is larger than the lower limit value (Qmin) (Qrst> Qmin) (step S206; N), the value of the active clock frequency is left as it is, and the processing ends. At this time, the value of the active clock frequency is within a predetermined threshold.

制御部1は、これらの処理を一定間隔ごとに繰り返し行ってアクティブクロック周波数の値を制御する(ステップS201からS207)。   The control unit 1 repeats these processes at regular intervals to control the value of the active clock frequency (steps S201 to S207).

以上のことより、実際のバストラフィック状態をバス占有率計測結果として計測し、このバス占有率結果に基づきアクティブクロック周波数の値を定期的に最適なクロック周波数の値に切り換えることができるため、デジタルカメラ等の撮像装置のシステム全体の動作を安定的に継続することができる。また、さらにクロック周波数の値を実際のバストラフィック状態におけるDMA転送時に必要とされる閾値内に低減することができるので、消費電力を低減することができる。
〔第3実施形態〕
Based on the above, the actual bus traffic state is measured as the bus occupancy rate measurement result, and the active clock frequency value can be periodically switched to the optimal clock frequency value based on the bus occupancy rate result. The operation of the entire system of the imaging apparatus such as a camera can be stably continued. Further, since the value of the clock frequency can be reduced within a threshold required at the time of DMA transfer in an actual bus traffic state, power consumption can be reduced.
[Third Embodiment]

第3実施形態のデジタルカメラについて説明する。第2実施形態において、第1実施形態と同様の部分については説明を省略する。第1実施形態と異なる部分は、さらに、アクティブクロック周波数のクロック回数を測定し、その結果を制御部1に送るクロック制御部51aが備えられている点である。
制御部1のROMには、第1実施形態のプログラムのほかに更に後述する動作、特にクロック回数に基づきDMA応答がない場合にアクティブクロック周波数の値を上げるためのプログラムが格納されている。
A digital camera according to the third embodiment will be described. In the second embodiment, the description of the same parts as in the first embodiment is omitted. The difference from the first embodiment is that a clock control unit 51a that further measures the number of clocks of the active clock frequency and sends the result to the control unit 1 is provided.
In addition to the program of the first embodiment, the ROM of the control unit 1 stores a program for raising the value of the active clock frequency when there is no DMA response based on the operation described later, particularly based on the number of clocks.

第3実施形態では、例えば、表示制御回路21の第2DMAインターフェイス制御回路34を例に説明する。第2DMAインターフェイス制御回路34は、例えば8ワードからなる画像情報B1、B2・・・をバッファ35、36に順次送る。
クロック制御部51aには、クロック回数をカウントするカウンタが備えられている。このクロック制御部51aは、クロック回数を制御部1にDMA転送部10を介して送る。また、動作プログラムには、DMA転送要求開始後、バッファ35、36に画像情報の書き込みが開始されるまでの許容時間として、各回路間のクロック周波数の値に対応するクロック回数が設定されている。
In the third embodiment, for example, the second DMA interface control circuit 34 of the display control circuit 21 will be described as an example. The second DMA interface control circuit 34 sequentially sends image information B1, B2,... Consisting of, for example, 8 words to the buffers 35, 36.
The clock controller 51a includes a counter that counts the number of clocks. The clock control unit 51 a sends the number of clocks to the control unit 1 via the DMA transfer unit 10. In the operation program, the number of clocks corresponding to the value of the clock frequency between the circuits is set as the allowable time until the writing of image information to the buffers 35 and 36 is started after the DMA transfer request is started. .

次に、第3実施形態のデジタルカメラの動作について説明する。
図5に、第3実施形態の一例である表示部22の動作のタイミングチャートを示す。
制御部1は、所定量ごとの画像情報B1、B2・・・をDMA転送部10及び第2DMAインターフェイス制御回路34を介してバッファ35、36に送る。表示タイミング以前に画像情報B1がバッファ35に記録される。
Next, the operation of the digital camera of the third embodiment will be described.
FIG. 5 shows a timing chart of the operation of the display unit 22 which is an example of the third embodiment.
The control unit 1 sends image information B1, B2,... For each predetermined amount to the buffers 35 and 36 via the DMA transfer unit 10 and the second DMA interface control circuit 34. The image information B1 is recorded in the buffer 35 before the display timing.

バッファ35に記録された画像情報B1を読み出し(動作時間A)、合成回路37を介して表示部22に送り、表示する。同時に、画像情報B2を送るようにDMA転送要求し(動作時間B)、このDMA転送要求に対応してDMA応答信号(動作時間C)及び画像情報B2を送る。この画像情報B2は、バッファ36に書き込まれる(動作時間D)。   The image information B1 recorded in the buffer 35 is read (operation time A), sent to the display unit 22 via the synthesis circuit 37, and displayed. At the same time, a DMA transfer request is made to send image information B2 (operation time B), and a DMA response signal (operation time C) and image information B2 are sent in response to this DMA transfer request. This image information B2 is written in the buffer 36 (operation time D).

次のタイミングt1では、バッファ36に書き込まれていた画像情報B2を読み出し、合成回路37を介して表示部22に送る(動作時間E)とともに次の画像情報B3送るようにDMA転送要求をする(動作時間F)。このDMA転送要求に対応してDMA応答信号(動作時間G)及び画像情報B3を送り、バッファ35に書き込む(動作時間H)。
次のタイミングt2では、バッファ35に書き込まれている画像情報B3を読み出し、表示部22に送るとともに次の画像情報B4をバッファ36に書き込む。
At the next timing t1, the image information B2 written in the buffer 36 is read out and sent to the display unit 22 via the synthesis circuit 37 (operation time E) and a DMA transfer request is sent to send the next image information B3 ( Operating time F). In response to this DMA transfer request, a DMA response signal (operation time G) and image information B3 are sent and written to the buffer 35 (operation time H).
At the next timing t2, the image information B3 written in the buffer 35 is read out, sent to the display unit 22, and the next image information B4 is written in the buffer 36.

このようにして、2つのバッファ35及び36で交互に表示データの書き込み及び/又は読み出し、合成回路37を介して表示部22に画像情報B1、B2・・・を送り、表示部22に画像を表示させる。   In this way, the display data is alternately written and / or read by the two buffers 35 and 36, the image information B1, B2,... Is sent to the display unit 22 via the synthesis circuit 37, and the image is displayed on the display unit 22. Display.

ここで、DMA転送要求をアサートすると同時にクロック制御部51は、アクティブクロック周波数のアクティブクロック回数のカウントを開始し、アクティブクロック回数を制御部1に送る。
制御部1は、受け取ったアクティブクロック回数が各回路間に対応して設定されているクロック回数X値を超えた(許容時間経過)後、画像情報B1及び/又はDMA応答が送られていない場合には、アクティブクロック周波数の値を予め設定されているクロック周波数の値に上げる。さらに、制御部1は、アクティブクロック周波数の値を上げた後、一定カウント回数Y(許容時間)経過後になっても画像情報B1が送られていない場合には、さらにアクティブクロック周波数の値を予め設定されているクロック周波数の値に上げる。
Here, simultaneously with asserting the DMA transfer request, the clock control unit 51 starts counting the number of active clocks of the active clock frequency and sends the number of active clocks to the control unit 1.
When the control unit 1 has not received the image information B1 and / or the DMA response after the received active clock count exceeds the clock count X value set correspondingly between the circuits (allowable time elapses) The active clock frequency is increased to a preset clock frequency. Further, after the value of the active clock frequency is increased, the control unit 1 further sets the value of the active clock frequency in advance if the image information B1 has not been sent even after the fixed count number Y (allowable time) has elapsed. Increase the clock frequency to the set value.

例えば、図6のクロック周波数f0における所定のクロック回数X値(例えば、X=3)経過後、画像情報A1及び/又はDMA応答が制御部1に送られていない場合には、制御部1は、クロック制御部51を制御して、クロック周波数f0をクロック周波数f1に直ちに上げるように変更する。さらに、クロック周波数f1における所定のクロック回数Y値(例えば、Y=3)経過後、さらに画像情報A1及び/又はDMA応答が制御部1に送られていない場合には、更にクロック周波数f2にアクティブクロック周波数の値を上げるようにする。この場合、クロック周波数の値はf0<f1<f2・・・となる。
クロック周波数の値を順次f0、f1、f2・・・に上げることによって、タイミングt0における書き込み動作時間Bよりもタイミングt2における書き込み動作時間Iを短くすることができる。このとき、システム全体の動作を継続することができる、DMA転送時に必要とされる各回路間のクロック周波数の値が設定されている。
For example, if the image information A1 and / or the DMA response is not sent to the control unit 1 after a predetermined number of clocks X value (for example, X = 3) at the clock frequency f0 in FIG. Then, the clock control unit 51 is controlled so that the clock frequency f0 is immediately increased to the clock frequency f1. Further, after a predetermined clock count Y value (for example, Y = 3) has elapsed at the clock frequency f1, if the image information A1 and / or the DMA response is not sent to the control unit 1, the clock frequency f2 is further activated. Increase the clock frequency. In this case, the value of the clock frequency is f0 <f1 <f2.
By sequentially increasing the clock frequency value to f0, f1, f2,..., The write operation time I at timing t2 can be made shorter than the write operation time B at timing t0. At this time, the value of the clock frequency between the circuits required at the time of DMA transfer that can continue the operation of the entire system is set.

以上のことより、タイミングt0、t1、t2・・・の周期は表示タイミングと同期しており、固定であるため、これらのタイミングにあわせて画像情報の書き込み及び/又は読み出しができるので、表示部に正常な表示をすることができる。
また、DMA転送時に必要とされるクロック周波の値を予め低く設定しておき、クロック回数によって直ちにクロック周波数の値を上げて、バッファへのデータの書き込み及びバッファからのデータの読み出しを遅延なくすることができるので、デジタルカメラ等の撮像装置のシステム全体の動作を安定的に継続することができるとともに消費電力を低減することができる。
As described above, the period of the timings t0, t1, t2,... Is synchronized with the display timing and is fixed, so that the image information can be written and / or read in accordance with these timings. Can be displayed normally.
In addition, the clock frequency value required at the time of DMA transfer is set to a low value in advance, and the clock frequency value is immediately increased according to the number of clocks so that there is no delay in writing data to the buffer and reading data from the buffer. Therefore, the operation of the entire system of the imaging apparatus such as a digital camera can be stably continued and the power consumption can be reduced.

また、制御部によってバストラフィックを管理することができるため、より正確に予期し得ないアクセス集中による動作破綻を未然に防ぐことができ、かつ、十分な動作マージンを確保し、安定して操作システムを構築することができる。   In addition, since the bus traffic can be managed by the control unit, it is possible to prevent an operation failure due to concentration of access that cannot be predicted more accurately and to ensure a sufficient operation margin, and a stable operation system. Can be built.

本発明における撮像装置の一例であるデジタルカメラの回路構成図である。1 is a circuit configuration diagram of a digital camera that is an example of an imaging apparatus according to the present invention. 第1実施形態におけるDMA転送起動前のアクティブクロック周波数の制御フロー図である。FIG. 6 is a control flow diagram of an active clock frequency before starting DMA transfer in the first embodiment. 第1実施形態におけるDMA転送終了後のアクティブクロック周波数の制御フロー図である。FIG. 6 is a control flow diagram of an active clock frequency after completion of DMA transfer in the first embodiment. 第2実施形態におけるDMA転送時のアクティブクロック周波数の制御フロー図である。FIG. 10 is a control flow diagram of an active clock frequency during DMA transfer in the second embodiment. 第3実施形態におけるDMA転送のタイムチャート図である。It is a time chart figure of the DMA transfer in 3rd Embodiment.

符号の説明Explanation of symbols

1 制御部
2 DMAバス制御部
10 DMA転送部
34 第2DMAインターフェイス制御回路
51 クロック制御部
DESCRIPTION OF SYMBOLS 1 Control part 2 DMA bus control part 10 DMA transfer part 34 2nd DMA interface control circuit 51 Clock control part

Claims (5)

DMA転送部を共有する複数の回路間でのデータのDMA転送制御を行うDMAバス制御手段と、
前記DMA転送部におけるデータ転送のクロック周波数を制御するクロック制御手段とを備えるデータ転送装置において、
各回路間での前記データ転送に必要な単位時間当たりのクロック数をDMA転送の起動ごとに前記データ転送装置の動作状態に基づいて設定するクロック数設定手段と、
前記クロック数設定手段によって設定された各回路間での前記クロック数の合計値に基づいて前記DMA転送部におけるデータ転送のクロック周波数を設定するクロック周波数設定手段と、
を備えることを特徴とするデータ転送装置。
DMA bus control means for performing DMA transfer control of data between a plurality of circuits sharing a DMA transfer unit;
A data transfer device comprising clock control means for controlling a clock frequency of data transfer in the DMA transfer unit;
A clock number setting means for setting the number of clocks per unit time required for the data transfer between the respective circuits based on the operating state of the data transfer device every time DMA transfer is started ;
A clock frequency setting means for setting the clock frequency of the data transfer in the DMA transfer portion on the basis of the number of clocks sum between each circuit set by the clock count setting means,
A data transfer device comprising:
さらに、前記クロック周波数設定手段で設定されたクロック周波数の値を記憶する周波数記憶手段を備え、前記DMA転送部におけるデータ転送終了時には、前記周波数記憶手段に記憶されるクロック周波数をシステム全体の動作を継続するために必要とされる低いクロック周波数に設定する低周波数設定手段を備えることを特徴とする請求項1に記載のデータ転送装置。   Further, it comprises frequency storage means for storing the clock frequency value set by the clock frequency setting means, and at the end of data transfer in the DMA transfer section, the clock frequency stored in the frequency storage means is set to operate the entire system. 2. The data transfer apparatus according to claim 1, further comprising low frequency setting means for setting to a low clock frequency required for continuing. 前記クロック周波数設定手段によって設定されるクロック周波数は、前記クロック数の合計値以上で且つ転送が正常に行われる範囲のクロック周波数であることを特徴とする請求項1又は請求項2に記載のデータ転送装置。   3. The data according to claim 1, wherein the clock frequency set by the clock frequency setting means is a clock frequency that is equal to or greater than a total value of the number of clocks and in a range in which transfer is normally performed. Transfer device. 更に、各回路間での前記データ転送に必要な単位時間当たりのクロック数データを記憶するクロック数データ記憶手段を備えることを特徴とする請求項1乃至請求項3の何れか一項に記載のデータ転送装置。   The clock number data storage means for storing clock number data per unit time necessary for the data transfer between the circuits is further provided. Data transfer device. 請求項1乃至請求項の何れか一項に記載のデータ転送装置を備えることを特徴とする撮像装置。 Imaging apparatus characterized by comprising a data transfer apparatus according to any one of claims 1 to 4.
JP2005050682A 2005-02-25 2005-02-25 Data transfer device and imaging device Expired - Fee Related JP4792766B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005050682A JP4792766B2 (en) 2005-02-25 2005-02-25 Data transfer device and imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005050682A JP4792766B2 (en) 2005-02-25 2005-02-25 Data transfer device and imaging device

Publications (2)

Publication Number Publication Date
JP2006236059A JP2006236059A (en) 2006-09-07
JP4792766B2 true JP4792766B2 (en) 2011-10-12

Family

ID=37043632

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005050682A Expired - Fee Related JP4792766B2 (en) 2005-02-25 2005-02-25 Data transfer device and imaging device

Country Status (1)

Country Link
JP (1) JP4792766B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010097277A (en) * 2008-10-14 2010-04-30 Toshiba Corp Information processing apparatus
JP6263025B2 (en) 2013-12-25 2018-01-17 キヤノン株式会社 Image processing apparatus and control method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11296472A (en) * 1998-04-06 1999-10-29 Casio Comput Co Ltd Display control circuit
JP2002373145A (en) * 2001-06-15 2002-12-26 Matsushita Electric Ind Co Ltd Direct memory access device
JP4328906B2 (en) * 2001-10-22 2009-09-09 富士フイルム株式会社 Bus control method and apparatus, and digital camera
JP3665030B2 (en) * 2002-02-19 2005-06-29 Necマイクロシステム株式会社 Bus control method and information processing apparatus

Also Published As

Publication number Publication date
JP2006236059A (en) 2006-09-07

Similar Documents

Publication Publication Date Title
JP4687322B2 (en) Imaging device
JP4789767B2 (en) Imaging apparatus and control method thereof
WO2009098877A1 (en) Image processing device and image processing method
US9473701B2 (en) Electronic camera
US7697034B2 (en) Moving image playback device with camera-shake correction function
JP4717846B2 (en) Imaging device
JP6006083B2 (en) Imaging apparatus and imaging method
JP4675204B2 (en) Imaging device driving method and imaging apparatus
JP4792766B2 (en) Data transfer device and imaging device
JP3806698B2 (en) Electronic camera
US20190297250A1 (en) Image pickup apparatus of which display start timing and display quality are selectable, method of controlling the same
JP2014007454A (en) Image pickup device and image pickup method
JP4426682B2 (en) Electronic camera
JP2000032332A (en) Electronic camera
JP2014049798A (en) Digital camera
US8687075B2 (en) Imaging apparatus and information display method for imaging apparatus
JP4525382B2 (en) Display device and imaging device
JP5230353B2 (en) Imaging apparatus and control method thereof
JP4122210B2 (en) Digital camera drive control method
JP2006253993A (en) Imaging apparatus
JP3835657B2 (en) Electronic still camera and continuous shot image reproduction method
US20090153719A1 (en) Digital photographing apparatus and method of operating image pickup device
JP2006191729A (en) Charger and charging method
JP4648595B2 (en) Electronic camera and electronic zoom control method
JP4049159B2 (en) Electronic still camera and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101124

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110120

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110120

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: 20110628

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110711

R150 Certificate of patent or registration of utility model

Ref document number: 4792766

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees