JP2003132007A - Method for bus control, apparatus thereof and digital camera - Google Patents

Method for bus control, apparatus thereof and digital camera

Info

Publication number
JP2003132007A
JP2003132007A JP2001323375A JP2001323375A JP2003132007A JP 2003132007 A JP2003132007 A JP 2003132007A JP 2001323375 A JP2001323375 A JP 2001323375A JP 2001323375 A JP2001323375 A JP 2001323375A JP 2003132007 A JP2003132007 A JP 2003132007A
Authority
JP
Japan
Prior art keywords
request
module
dma
image
permission period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001323375A
Other languages
Japanese (ja)
Other versions
JP4328906B2 (en
Inventor
Masakatsu Itsukaichi
正勝 五日市
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2001323375A priority Critical patent/JP4328906B2/en
Publication of JP2003132007A publication Critical patent/JP2003132007A/en
Application granted granted Critical
Publication of JP4328906B2 publication Critical patent/JP4328906B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable each module to surely execute DMA (Direct Memory Access) at fixed timings and to improve the functions of a system as a whole, in which a plurality of modules share a data bus. SOLUTION: Periods, allowing each modules 1, 2, ...n, 20, 30 to make DMA requests (request permissive periods), are respectively preset and the time spans for the request permitting periods and periods giving the request permitting periods (or timings) are managed by a sequencer 40 not to enable the modules to make the DMA requests, except in the request permitting periods. If the request permitting periods, given to the modules do not overlap, since the DMA requests are not of competitive nature, each module can execute the DMA requests at fixed cycles. When the request permissive periods are given to more than two modules, at the same timing, control is performed in the order of the precedence of the DMA.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はバス制御方法及び装
置並びにデジタルカメラに係り、特に複数のモジュール
が同じデータバスを共有するシステムにおいて、該デー
タバスを有効に使用するためのバス制御技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus control method and apparatus and a digital camera, and more particularly to a bus control technique for effectively using a data bus in a system in which a plurality of modules share the same data bus.

【0002】[0002]

【従来の技術】特開平7−141287号公報は、DM
A転送によって発生する資源の占有を回避するため、C
PUがデータ転送に直接的に関与するアクセス方式を採
用しており、CPUの転送動作にスレーブ同期するスレ
ーブコントローラによってI/OからメモリへのDMA
転送を行うように構成されている。
2. Description of the Related Art Japanese Unexamined Patent Publication No. 7-141287 discloses DM.
In order to avoid the occupation of resources caused by A transfer, C
An access method in which a PU is directly involved in data transfer is adopted, and DMA from I / O to memory is performed by a slave controller which is slave-synchronized with a CPU transfer operation.
It is configured to do the transfer.

【0003】特開平10−27155号公報に開示され
たデータ転送制御装置は、並列動作する複数のデータ処
理ユニットが単一のデータバスに接続されており、デー
タ転送制御ユニットが各データ処理ユニットへのデータ
の入出力を基本動作クロックに同期して実行するように
構成される。
In the data transfer control device disclosed in Japanese Unexamined Patent Publication No. 10-27155, a plurality of data processing units operating in parallel are connected to a single data bus, and the data transfer control unit is connected to each data processing unit. It is configured to execute the input / output of the data of (1) in synchronization with the basic operation clock.

【0004】特開平11−272606号公報に開示さ
れたバス制御装置は、プロセッサ、DMAコントローラ
(DMAC)等の複数のバスマスタを有し、プロセッサ
がメモリ又はI/Oとの間でデータ転送をするときは、
それぞれのシステムバス制御部がアクセス可能な最小限
の時間幅でシステムバスにアクセスするように構成され
るとともに、DMACがメモリとI/Oとの間でデータ
転送するときは、それぞれのシステムバス制御部がアク
セス可能な最小限の時間幅でシステムバスにアクセスす
るように構成されている。
The bus control device disclosed in Japanese Patent Laid-Open No. 11-272606 has a plurality of bus masters such as a processor and a DMA controller (DMAC), and the processor transfers data to and from a memory or I / O. when,
Each system bus control unit is configured to access the system bus within the minimum accessible time width, and when the DMAC transfers data between the memory and the I / O, each system bus control unit is controlled. The unit is configured to access the system bus in the minimum time period accessible.

【0005】[0005]

【発明が解決しようとする課題】上述した公報にも示さ
れている通り、複数のモジュールが共通のデータバスに
接続されているシステムにおいて、DMA転送を行う場
合は、DMACが各モジュールからのDMA要求の調停
を行い、DMA転送が可能なモジュールに対してバスの
使用許可(バス権)を与えてDMA転送を行っている。
この場合、早くDMA要求を出したモジュール又は優先
順位の高いモジュールがデータバスを連続で占有し、他
のモジュールのDMA転送が不可能となる場合があっ
た。
As described in the above publication, in a system in which a plurality of modules are connected to a common data bus, when DMA transfer is performed, the DMAC has a DMA from each module. The request is arbitrated, the bus use permission (bus right) is given to the module capable of DMA transfer, and the DMA transfer is performed.
In this case, a module that has issued a DMA request early or a module having a high priority may continuously occupy the data bus, making it impossible to perform DMA transfer for other modules.

【0006】本発明はこのような事情に鑑みてなされた
もので、複数のモジュールがデータバスを共有し、かつ
効率よくDMA転送を行うことを可能にし、特定のモジ
ュールがデータバスを占有することによって起こるシス
テムの不整合を回避し得るバス制御方法及び装置並びに
これを適用したデジタルカメラを提供することを目的と
する。
The present invention has been made in view of the above circumstances, and enables a plurality of modules to share a data bus and efficiently perform DMA transfer, and a specific module occupies the data bus. It is an object of the present invention to provide a bus control method and apparatus capable of avoiding system inconsistency caused by the above, and a digital camera to which the same is applied.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するため
に、請求項1に記載の発明は、DMA要求を行う複数の
モジュールが同じデータバスを使用してDMA転送を行
うデータ転送システムのバス制御方法であって、該方法
は、各モジュールについてDMA要求を出せる要求許可
期間のタイムスパンを設定するとともに、各モジュール
に対して所定の周期で要求許可期間が与えられるように
要求許可期間の付与タイミングを設定し、前記設定され
たタイムスパン及び付与タイミングに従って各モジュー
ルの要求許可期間を管理し、前記管理の下で各モジュー
ルが要求許可期間内にDMA要求を出すようにしたこと
を特徴としている。
In order to achieve the above object, the invention according to claim 1 is a bus of a data transfer system in which a plurality of modules that make a DMA request use the same data bus to make a DMA transfer. A control method, wherein the method sets a time span of a request permission period during which a DMA request can be issued for each module, and assigns the request permission period to each module in a predetermined cycle. The timing is set, and the request permission period of each module is managed in accordance with the set time span and grant timing, and each module issues a DMA request within the request permission period under the management. .

【0008】本発明によれば、各モジュールについてD
MA要求を出してよい期間(要求許可期間)を予め設定
し、この要求許可期間以外の期間はそのモジュールから
DMA要求を出すことができないようになっている。要
求許可期間の長さ(タイムスパン)及び要求許可期間を
与える周期(又はタイミング)については設計者が適宜
設定することができる。システムの構成や処理の内容等
を考慮して適切なタイムスパン及び要求許可期間の付与
周期が設定される。各モジュールに与える要求許可期間
が重複しなければDMA要求も競合しないため、各モジ
ュールは一定のサイクルでDMA転送を実行できる。2
つ以上のモジュールに対して同じタイミングで要求許可
期間を与える場合は、DMA要求の競合が起こり得る
が、その場合は予め定められているDMAの優先順位に
従って制御する。
According to the invention, D for each module
A period during which an MA request may be issued (request permission period) is set in advance, and a DMA request cannot be issued from the module during a period other than this request permission period. The designer can appropriately set the length (time span) of the request permission period and the cycle (or timing) of giving the request permission period. An appropriate time span and request grant period granting cycle are set in consideration of the system configuration and processing contents. If the request grant periods given to the respective modules do not overlap, the DMA requests do not compete with each other, so that each module can execute the DMA transfer in a constant cycle. Two
When request permission periods are given to one or more modules at the same timing, DMA request contention may occur. In that case, control is performed according to a predetermined DMA priority order.

【0009】このように、本発明はDMA要求を行う各
モジュールについてDMA要求を行うタイムスパンを設
定し、各モジュールが予め定められたタイミングでDM
A要求を出すようにしたので、それぞれのモジュールが
一定のタイミングで必ずDMA転送を行うことが可能に
なり、システム全体の性能を向上することが可能とな
る。
As described above, according to the present invention, a time span for making a DMA request is set for each module that makes a DMA request, and each module DMs at a predetermined timing.
Since the A request is issued, each module can always perform the DMA transfer at a constant timing, and the performance of the entire system can be improved.

【0010】上述の方法発明を具現化する装置を提供す
るため、請求項2に記載の発明に係るバス制御装置は、
DMA要求を行う複数のモジュールと、前記複数のモジ
ュールが接続されている共通のデータバスと、各モジュ
ールから出されるDMA要求を調停し、DMA転送可能
なモジュールに対して前記データバスの使用許可を与
え、当該モジュールによるDMA転送の実施を制御する
DMAコントローラと、各モジュールについてDMA要
求を出すことができる要求許可期間のタイムスパンを設
定するタイムスパン設定手段と、各モジュールに対して
所定の周期で要求許可期間が与えられるように要求許可
期間の付与タイミングを設定するタイミング設定手段
と、前記設定されたタイムスパン及び付与タイミングに
従って各モジュールの要求許可期間を管理し、各モジュ
ールに対して要求許可期間を示す信号を与える要求許可
期間管理手段と、を備えたことを特徴としている。
In order to provide a device embodying the above method invention, a bus control device according to the invention as claimed in claim 2
A plurality of modules that make a DMA request, a common data bus to which the plurality of modules are connected, a DMA request issued from each module are arbitrated, and a permission to use the data bus is given to a module capable of DMA transfer. A DMA controller for controlling the execution of the DMA transfer by the module, a time span setting means for setting a time span of a request permission period in which a DMA request can be issued for each module, and a predetermined cycle for each module. Timing setting means for setting the grant timing of the request grant period so that the request grant period is given, and managing the request grant period of each module according to the set time span and grant timing, and request grant period for each module Request permission period management means for giving a signal indicating It is characterized in that was.

【0011】請求項3に示したように、前記タイムスパ
ン設定手段と前記タイミング設定手段及び前記要求許可
期間管理手段の役割を兼ね備えた手段としてシーケンサ
を用いることができる。
As described in claim 3, a sequencer can be used as a unit having the functions of the time span setting unit, the timing setting unit and the request permission period management unit.

【0012】請求項4に記載の発明は、上述したバス制
御装置をデジタルカメラに適用したものであり、該デジ
タルカメラは、光学像を電気信号に変換する撮像手段
と、前記撮像手段から得られた画像信号をデジタル信号
に変換するA/D変換手段と、前記A/D変換手段から
出力された画像信号を基に所定の信号形式に変換する信
号処理手段と、前記DMAコントローラの制御に従って
画像信号を一時的に記憶するメモリと、前記信号処理手
段で得た画像信号を圧縮する圧縮処理手段と、前記圧縮
された画像信号を記録媒体に記録する記録手段と、カメ
ラ本体の動作を制御する制御手段としての演算処理装置
と、を備え、前記A/D変換手段を介して取得される画
像信号の取り込み処理、前記信号処理手段における信号
処理、前記圧縮処理手段における圧縮処理、前記記録手
段による記録処理及び前記演算処理装置の処理に関し
て、それぞれ前記要求許可期間管理手段の管理の下でD
MA転送が実施されることを特徴としている。
According to a fourth aspect of the present invention, the above-mentioned bus control device is applied to a digital camera, and the digital camera is obtained from an image pickup means for converting an optical image into an electric signal, and the image pickup means. A / D converting means for converting the image signal into a digital signal, a signal processing means for converting the image signal output from the A / D converting means into a predetermined signal format, and an image under the control of the DMA controller. A memory for temporarily storing signals, a compression processing unit for compressing the image signal obtained by the signal processing unit, a recording unit for recording the compressed image signal on a recording medium, and an operation of the camera body. An arithmetic processing unit as a control unit, and a process of capturing an image signal acquired through the A / D conversion unit, a signal process in the signal processing unit, and a compression process. Compression process in the stage, in relation to the processing of the recording processing and the processing unit by the recording means, D under the control of each of the requests permission period management unit
It is characterized in that MA transfer is performed.

【0013】請求項5に係るデジタルカメラは、上述の
構成に加えて、前記記録媒体に格納されている圧縮画像
信号を伸長する伸長処理手段と、前記撮像手段を介して
取得した画像及び前記記録媒体に格納されている画像を
表示可能な画像表示手段と、前記画像表示手段に対して
表示用の信号を出力する表示制御手段と、を備え、前記
伸長処理手段における伸長処理並びに前記画像表示手段
への画像表示処理に関して、それぞれ前記要求許可期間
管理手段の管理の下でDMA転送が実施されることを特
徴としている。
According to a fifth aspect of the present invention, in addition to the above configuration, the digital camera according to the fifth aspect further includes a decompression processing means for decompressing a compressed image signal stored in the recording medium, an image acquired through the image pickup means, and the recording. An image display means capable of displaying an image stored in a medium and a display control means for outputting a display signal to the image display means are provided, and the decompression processing in the decompression processing means and the image display means are provided. With respect to the image display processing for the above, the DMA transfer is performed under the control of the request permission period management means.

【0014】請求項6に記載の態様は、請求項5に係る
デジタルカメラにおいて、前記撮像手段を介して記録用
の画像を取り込む撮影モードと、前記記録媒体に格納さ
れている画像を前記画像表示手段に表示させる再生モー
ドとが選択的に切り替え可能であり、選択されるモード
に応じて前記タイムスパン及び前記付与タイミングのう
ち少なくとも一方の設定内容が変更されることを特徴と
している。
According to a sixth aspect of the present invention, in the digital camera according to the fifth aspect, a photographing mode in which an image for recording is captured via the image pickup means, and an image stored in the recording medium is displayed as the image. It is characterized in that the reproduction mode displayed on the means can be selectively switched, and the setting content of at least one of the time span and the giving timing is changed according to the selected mode.

【0015】[0015]

【発明の実施の形態】以下添付図面に従って本発明に係
るバス制御方法及び装置並びにデジタルカメラの好まし
い実施の形態について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a bus control method and device and a digital camera according to the present invention will be described below with reference to the accompanying drawings.

【0016】図1は本発明の実施形態に係るデータバス
接続例を示すブロック図である。このシステムは、複数
のモジュール1、モジュール2、…モジュールnが共通
のデータバス10に接続された構造を有し、データバス
10には当該データバス10を介したデータ送受信を制
御するバスインターフェースとしてのDMA(DirectMe
mory Access)コントローラ12の他、CPU(中央演
算処理装置)20、メモリコントローラ24及び外部デ
バイスコントローラ30が接続されている。なお、モジ
ュール1〜nのみならず、CPU20及び外部デバイス
コントローラ30もDMA要求を行う「モジュール」と
して扱うことができる。
FIG. 1 is a block diagram showing an example of a data bus connection according to the embodiment of the present invention. This system has a structure in which a plurality of modules 1, modules 2, ..., Module n are connected to a common data bus 10, and the data bus 10 serves as a bus interface for controlling data transmission / reception via the data bus 10. DMA (DirectMe
In addition to the mory access) controller 12, a CPU (central processing unit) 20, a memory controller 24, and an external device controller 30 are connected. Note that not only the modules 1 to n but also the CPU 20 and the external device controller 30 can be treated as “modules” that make DMA requests.

【0017】メモリコントローラ24はメモリ34に対
するデータの読み書き動作を制御する。外部デバイスコ
ントローラ30は、例えば、メモリカード、液晶ディス
プレイなどの外部デバイス(図1中不図示)と接続さ
れ、外部デバイスへのデータ出力又は外部デバイスから
のデータの読み込み制御等を行う。
The memory controller 24 controls a data read / write operation with respect to the memory 34. The external device controller 30 is connected to an external device (not shown in FIG. 1) such as a memory card or a liquid crystal display, and outputs data to the external device or controls reading of data from the external device.

【0018】DMA要求を行うモジュール(1,2,…
n,20,30)は、優先順位が定められており、DM
Aコントローラ12は、複数のモジュールからのDMA
要求が競合した場合に、優先順位の最も高いモジュール
のDMA要求に対して許可を与える。DMA要求に対す
る許可が与えられたモジュールは、データバス10を独
占的に使用してメモリ34にアクセスし、データの読み
書きを行う。
Modules (1, 2, ...) Making DMA requests
n, 20, 30) has a predetermined priority, and DM
The A controller 12 uses DMA from multiple modules.
If the requests conflict, grant the DMA request of the module with the highest priority. The module given the permission for the DMA request exclusively uses the data bus 10 to access the memory 34 to read / write data.

【0019】本システムでは、各モジュール(1,2,
…n,20,30)がDMA要求を出すことができるタ
イムスパン(要求許可期間)を管理するための手段とし
てシーケンサ40が設けられている。シーケンサ40に
は、各モジュール(1,2,…n,20,30)につい
てDMA要求を行うことができる期間が予め設定されて
いる。それぞれのモジュールに与えられる要求許可期間
は互いに重複しないタイミングで設定してもよいし、同
じタイミングで複数のモジュールに要求許可期間を設定
してもよい。
In this system, each module (1, 2,
A sequencer 40 is provided as a means for managing the time span (request permission period) in which (n, 20, 30) can issue a DMA request. The sequencer 40 is preset with a period during which a DMA request can be issued for each module (1, 2, ... N, 20, 30). The request permission periods given to the respective modules may be set at timings that do not overlap each other, or the request permission periods may be set for a plurality of modules at the same timing.

【0020】要求許可期間が重複する設定においてDM
A要求が競合した場合はDMAの優先順位に従って制御
される。DMA要求許可期間の長さや許可を与える順序
などの設定は適宜変更可能であり、各モジュールの処理
内容や処理速度・優先順位等を考慮して適切な値に設定
される。シーケンサ40は、その設定内容に従って各モ
ジュール(1,2,…n,20,30)に対してDMA
要求の出力を許可する信号を与える。
DM in a setting where request permission periods overlap
When the A requests conflict, control is performed according to the DMA priority. The settings such as the length of the DMA request permission period and the order of granting can be changed as appropriate, and are set to appropriate values in consideration of the processing content of each module, the processing speed, the priority order, and the like. The sequencer 40 DMAs each module (1, 2, ... N, 20, 30) according to the setting contents.
Give a signal that allows the output of the request.

【0021】各モジュール(1,2,…n,20,3
0)は、シーケンサ40から通告される要求許可期間内
にDMA要求を出すことにより、必ずデータバス10を
使用する機会が与えられる。したがって、優先順位が低
いモジュールに対しても要求許可期間を適切に配分する
ことによって、これら低順位モジュールも一定のタイミ
ングでDMA転送を行うことが可能となり、システム全
体の性能を向上させることができる。
Each module (1, 2, ... N, 20, 3)
0) gives a chance to use the data bus 10 by issuing a DMA request within the request permission period notified from the sequencer 40. Therefore, by appropriately allocating the request permission period even to the module having a low priority, these low-order modules can also perform the DMA transfer at a constant timing, and the performance of the entire system can be improved. .

【0022】次に、上記の如く構成されたシステムの動
作について説明する。説明を簡単にするために対象を簡
略化し、モジュール1、モジュール2及びCPU20か
らDMA要求があった場合のデータバス10の使用例を
説明する。なお、DMAの優先順位は、モジュール1>
モジュール2>CPU20の順番とする。
Next, the operation of the system configured as described above will be described. For simplification of the description, the target is simplified and an example of using the data bus 10 when there is a DMA request from the module 1, the module 2, and the CPU 20 will be described. The priority of DMA is module 1>
The order is module 2> CPU 20.

【0023】まず、比較のために、図2を用いて従来の
バス制御方式によるデータバスの使用例を説明する。従
来は「要求許可期間」という設定はなされておらず、単
に優先順位に従ってデータバスを使用するモジュールが
決定されていた。図2によれば、[1] のタイミングでモ
ジュール1とCPUが同時にDMA要求を出す。[2]の
タイミングで優先順位の高いモジュール1のDMA要求
に対して許可が下りる。このときCPUは待ち状態とな
る。[3] のタイミングでモジュール2がDMA要求を出
す。このとき、データバスはモジュール1によって使用
中であるため、モジュール2は待ち状態となる。モジュ
ール1がデータバスを使用している期間中に、モジュー
ル1が[4] のタイミングで再度DMA要求を出してい
る。[5] のタイミングでモジュール1のDMA転送(最
初のDMA要求に係る転送処理)を終了するが、この時
点で、モジュール1、モジュール2及びCPUがDMA
要求を出しているので、[6] のタイミングで優先順位の
高いモジュール1のDMA要求に対して再度許可が下
り、モジュール2とCPUは待ち状態となる。
First, for comparison, an example of using the data bus according to the conventional bus control method will be described with reference to FIG. Conventionally, the "request permission period" has not been set, but the module that uses the data bus has been determined simply according to the priority order. According to FIG. 2, the module 1 and the CPU simultaneously issue DMA requests at the timing [1]. At the timing of [2], the permission is given to the DMA request of the module 1 having a high priority. At this time, the CPU is in a waiting state. The module 2 issues a DMA request at the timing of [3]. At this time, since the data bus is being used by module 1, module 2 is in a waiting state. While the module 1 is using the data bus, the module 1 issues the DMA request again at the timing [4]. At the timing of [5], the DMA transfer of the module 1 (transfer processing relating to the first DMA request) is completed, but at this point, the module 1, the module 2 and the CPU execute the DMA transfer.
Since the request has been issued, the permission is again granted to the DMA request of the module 1 having a higher priority at the timing of [6], and the module 2 and the CPU are put in the waiting state.

【0024】[7] のタイミングでモジュール1のDMA
転送が終了する。このとき、モジュール2とCPUがD
MA要求を出しているが、[8] のタイミングで優先順位
の高いモジュール2のDMA要求に対して許可が下り、
CPUは待ち状態となる。モジュール2がデータバスを
使用している期間中に、モジュール2が[9] のタイミン
グで再度DMA要求を出している。[10]のタイミングで
モジュール2のDMA転送(最初のDMA要求に係る転
送処理)を終了するが、この時点でモジュール2及びC
PUがDMA要求を出しているので、[11]のタイミング
で優先順位の高いモジュール2のDMA要求に対して再
度許可が下り、CPUは待ち状態となる。
DMA of module 1 at timing [7]
The transfer ends. At this time, the module 2 and the CPU
Although the MA request is issued, permission is given to the DMA request of the module 2 having a high priority at the timing of [8],
The CPU is in a waiting state. While the module 2 is using the data bus, the module 2 issues the DMA request again at the timing [9]. At the timing of [10], the DMA transfer of the module 2 (transfer processing relating to the first DMA request) ends, but at this point, the modules 2 and C
Since the PU issues the DMA request, the permission is again granted to the DMA request of the module 2 having a higher priority at the timing [11], and the CPU enters the waiting state.

【0025】[12] のタイミングでモジュール2のDM
A転送が終了すると、この時点ではCPUのみがDMA
要求を出している状態になるため、[13]のタイミングで
CPUのDMAに対して許可が下りる。これにより、C
PUがデータバスを使用する機会が与えられる。CPU
がデータバスを使用して必要なデータ転送を実行し、[1
4]のタイミングでCPUのDMA転送が終了する。
DM of module 2 at the timing [12]
When the A transfer is completed, only the CPU at this point DMA
Since the request is being issued, permission is given to the DMA of the CPU at the timing [13]. This gives C
The PU is given the opportunity to use the data bus. CPU
Performs the required data transfer using the data bus, [1
At the timing of 4], the DMA transfer of the CPU is completed.

【0026】上記のように、従来の方式では、各モジュ
ールからのDMA要求に対して、優先順位のみでDMA
の許否が判断されるため、優先順位の低いモジュール
(図2においてCPU)は、他の全ての上位モジュール
がデータバスを使用していない場合にのみ、データバス
の使用が許可されることになる。したがって、DMA転
送を行うモジュールが増加するとシステム全体の性能を
向上するのは困難であった。
As described above, according to the conventional method, the DMA request from each module is DMAed only by the priority order.
Therefore, the module with lower priority (CPU in FIG. 2) is allowed to use the data bus only when all other upper modules are not using the data bus. . Therefore, it has been difficult to improve the performance of the entire system as the number of modules that perform DMA transfer increases.

【0027】このような課題を解決すべく、本実施形態
ではDMA要求を行うそれぞれのモジュールに対してD
MA要求許可期間の設定を行うシーケンサ40を備えて
いる。
In order to solve such a problem, in the present embodiment, D is set for each module that makes a DMA request.
A sequencer 40 for setting the MA request permission period is provided.

【0028】図3は、本発明の実施形態に係るバス制御
方式によるデータバスの使用例である。同図によれば、
シーケンサ40によって「モジュール1」→「CPU」
→「モジュール2」→「モジュール1」→…という順番
で循環式に要求許可期間が設定されている。モジュール
1の要求許可期間内に[1] のタイミングでモジュール1
がDMA要求を出す。[2] のタイミングでモジュール1
のDMA要求に対して許可が下りる。モジュール1に許
可が下りると、モジュール1がデータバス10を使用す
る。
FIG. 3 shows a usage example of the data bus according to the bus control method according to the embodiment of the present invention. According to the figure,
"Module 1" → "CPU" by the sequencer 40
The request permission period is cyclically set in the order of "module 2" → "module 1" → ... Module 1 at the timing [1] within the request permission period of Module 1
Issues a DMA request. Module 1 at the timing of [2]
Permission is issued to the DMA request. When the module 1 is approved, the module 1 uses the data bus 10.

【0029】モジュール1の要求許可期間が終了し、続
いてCPU20の要求許可期間となる。CPU20の要
求許可期間内に[3] のタイミングでCPU20がDMA
要求を出す。このとき、データバス10はモジュール1
によって使用中であるため、CPU20は待ち状態とな
る。[4] のタイミングでモジュール1のDMA転送が終
了すると、[5] のタイミングでCPU20のDMA要求
に対して許可が下りる。こうして、CPU20によって
データバス10が使用される。
The request permission period of the module 1 ends, and then the request permission period of the CPU 20 comes. The CPU 20 executes the DMA at the timing [3] within the request permission period of the CPU 20.
Make a request. At this time, the data bus 10 is the module 1
Since it is in use, the CPU 20 is in a waiting state. When the DMA transfer of the module 1 is completed at the timing [4], the permission is granted to the DMA request of the CPU 20 at the timing [5]. Thus, the data bus 10 is used by the CPU 20.

【0030】CPU20の要求許可期間が終了するとモ
ジュール2の要求許可期間となる。モジュール2の要求
許可期間内に[6] のタイミングでモジュール2がDMA
要求を出す。このとき、CPU20によってデータバス
10が使用中であるため、モジュール2は待ち状態とな
る。やがて[7] のタイミングでCPU20のDMA転送
が終了する。そして、[8] のタイミングでモジュール2
のDMA要求に対して許可が下りる。これにより、モジ
ュール2がデータバス10を使用する。
When the request permission period of the CPU 20 ends, the request permission period of the module 2 starts. The module 2 DMAs at the timing of [6] within the request permission period of the module 2.
Make a request. At this time, since the data bus 10 is being used by the CPU 20, the module 2 is in a waiting state. Eventually, the DMA transfer of the CPU 20 ends at the timing [7]. Then, at the timing of [8], Module 2
Permission is issued to the DMA request. As a result, the module 2 uses the data bus 10.

【0031】また、モジュール2の要求許可期間終了後
にモジュール1の要求許可期間となるが、当該モジュー
ル1の要求許可期間内における[8] のタイミングでモジ
ュール1がDMA要求を出す。しかし、このときデータ
バス10はモジュール2によって使用中であるため、モ
ジュール1は待ち状態となる。
Further, after the request permission period of the module 2 ends, the request permission period of the module 1 comes, but the module 1 issues a DMA request at the timing of [8] within the request permission period of the module 1. However, since the data bus 10 is being used by the module 2 at this time, the module 1 enters the waiting state.

【0032】[9] のタイミングでモジュール2のDMA
転送が終了すると、[10]のタイミングでモジュール1の
DMA要求に対して許可が下りる。これにより、モジュ
ール1がデータバス10を使用する。
DMA of module 2 at the timing of [9]
When the transfer is completed, permission is given to the DMA request of the module 1 at the timing [10]. As a result, the module 1 uses the data bus 10.

【0033】モジュール1の要求許可期間終了後はCP
U20の要求許可期間となるが、この期間内にCPU2
0がDMA要求を出さなかった場合、[11]のタイミング
でモジュール2の要求許可期間に切り替わる。このモジ
ュール2の要求許可期間中[12]のタイミングでモジュー
ル1のDMA転送が終了すると同時に、モジュール2が
DMA要求を出す。これにより、[13]のタイミングでモ
ジュール2のDMA要求に許可が下り、モジュール2 が
データバス10を使用してデータ転送を実行する。その
後、[14]のタイミングでモジュール2 のDMA転送が終
了する。
After the request permission period of module 1 ends, CP
The request permission period of U20 is reached, but within this period the CPU2
When 0 does not issue the DMA request, the request permission period of the module 2 is switched at the timing [11]. At the same time as the DMA transfer of the module 1 is completed at the timing [12] during the request permission period of the module 2, the module 2 issues a DMA request. As a result, the DMA request of the module 2 is permitted at the timing [13], and the module 2 uses the data bus 10 to execute the data transfer. After that, the DMA transfer of the module 2 ends at the timing [14].

【0034】このように本実施形態によれば、各モジュ
ールについて要求許可期間を設定し、シーケンサ40に
よって要求許可期間のサイクルを管理する構成にしたの
で、DMA要求の集中を回避してバスを効率良く使用で
きる。
As described above, according to this embodiment, the request permission period is set for each module, and the sequence of the request permission period is managed by the sequencer 40. Therefore, concentration of DMA requests is avoided and the bus efficiency is improved. Can be used well.

【0035】次に、本発明をデジタルカメラに適用した
例を説明する。図4はデジタルカメラの構成を示すブロ
ック図である。カメラ50は、撮影レンズ52の後方に
撮像デバイスとしてのCCDイメージセンサ(以下、C
CDという。)54を備えている。撮影レンズ52を介
してCCD54の受光面に結像された被写体像は、CC
D54の各フォトセンサ(感光画素)によって入射光量
に応じた量の信号電荷に変換される。なお、CCD54
は、シャッターゲートパルスのタイミングによって各フ
ォトセンサの電荷蓄積時間(シャッタースピード)を制
御する、いわゆる電子シャッター機能を有している。
Next, an example in which the present invention is applied to a digital camera will be described. FIG. 4 is a block diagram showing the configuration of a digital camera. The camera 50 includes a CCD image sensor (hereinafter, C
Called CD. ) 54. The subject image formed on the light receiving surface of the CCD 54 through the taking lens 52 is CC
Each photosensor (photosensitive pixel) D54 converts the signal charge into an amount corresponding to the amount of incident light. The CCD 54
Has a so-called electronic shutter function of controlling the charge storage time (shutter speed) of each photosensor in accordance with the timing of a shutter gate pulse.

【0036】各フォトセンサに蓄積された信号電荷は、
図示せぬCCDドライバから与えられるパルスに基づい
て信号電荷に応じた電圧信号(画像信号)として順次読
み出される。CCD54から出力された画像信号は、相
関二重サンプリング(CDS)処理、色分離処理及び各
色信号のゲイン調整等の所定のアナログ信号処理が施さ
れた後、A/D変換器56によりデジタル信号に変換さ
れる。デジタル信号に変換された画像信号は、メモリコ
ントローラ58を介してメモリ60に格納される。
The signal charge accumulated in each photosensor is
The voltage signals (image signals) corresponding to the signal charges are sequentially read out based on the pulses given by a CCD driver (not shown). The image signal output from the CCD 54 is subjected to predetermined analog signal processing such as correlated double sampling (CDS) processing, color separation processing, and gain adjustment of each color signal, and then converted into a digital signal by the A / D converter 56. To be converted. The image signal converted into the digital signal is stored in the memory 60 via the memory controller 58.

【0037】メモリ60に格納されたデータは、データ
バス62を介して信号処理部64に送られる。信号処理
部64は、輝度・色差(YC)信号生成回路、ガンマ補
正回路、シャープネス補正回路、コントラスト補正回
路、ホワイトバランス補正回路等を含むデジタルシグナ
ルプロセッサ(DSP)で構成された画像処理手段であ
り、CPU66からのコマンドに従って画像信号を処理
する。
The data stored in the memory 60 is sent to the signal processing section 64 via the data bus 62. The signal processing unit 64 is an image processing unit including a digital signal processor (DSP) including a luminance / color difference (YC) signal generation circuit, a gamma correction circuit, a sharpness correction circuit, a contrast correction circuit, a white balance correction circuit, and the like. , The image signal is processed according to the command from the CPU 66.

【0038】信号処理部64に入力された画像データ
は、輝度信号(Y信号)及び色差信号(Cr,Cb 信号)
に変換されるとともに、ガンマ補正等の所定の処理が施
された後、メモリ60に格納される。撮影画像を表示出
力する場合、メモリ60から画像データが読み出され、
表示用の所定方式の信号(例えば、NTSC方式のカラ
ー複合映像信号)に変換された後、LCDインターフェ
ース68を介して液晶ディスプレイ(LCD)70に出
力される。こうして、当該画像データの画像内容が液晶
ディスプレイ70に表示される。
The image data input to the signal processing unit 64 is a luminance signal (Y signal) and color difference signals (Cr, Cb signals).
Is stored in the memory 60 after being subjected to predetermined processing such as gamma correction. When displaying and outputting the captured image, the image data is read from the memory 60,
After being converted into a signal of a predetermined system for display (for example, an NTSC system color composite video signal), it is output to a liquid crystal display (LCD) 70 via an LCD interface 68. In this way, the image content of the image data is displayed on the liquid crystal display 70.

【0039】CCD54から出力される画像信号によっ
てメモリ60内の画像データが定期的に書き換えられ、
その画像データから生成される映像信号が液晶ディスプ
レイ70に供給されることにより、CCD54が撮像す
るリアルタイム画像(ムービー画像)が液晶ディスプレ
イ70に表示される。
The image data in the memory 60 is periodically rewritten by the image signal output from the CCD 54,
By supplying a video signal generated from the image data to the liquid crystal display 70, a real-time image (movie image) captured by the CCD 54 is displayed on the liquid crystal display 70.

【0040】操作部72は、シャッターボタン、電源ス
イッチ、モード切換スイッチ、十字ボタンその他の各種
操作スイッチを含むブロックである。カメラ50の制御
部としてのCPU66は操作部72から受入する信号に
基づき、対応する回路の動作を制御するとともに、液晶
ディスプレイ70における表示の制御、ストロボ発光制
御、オートフォーカス(AF)制御、自動露出(AE)
制御、データ通信制御、及び記録処理の制御など撮影動
作の制御を行う。すなわち、CPU66はシャッターボ
タンの「半押し」操作に応動して取り込んだ画像データ
から焦点評価演算やAE演算などの各種演算を行い、そ
の演算結果に基づいてレンズ駆動部(不図示)を制御し
て撮影レンズ52を合焦位置に移動させる一方、絞り駆
動部(不図示)を制御するとともに、CCD54の電荷
蓄積時間を制御する。
The operation section 72 is a block including a shutter button, a power switch, a mode changeover switch, a cross button, and various other operation switches. The CPU 66 as the control unit of the camera 50 controls the operation of the corresponding circuit based on the signal received from the operation unit 72, and controls the display on the liquid crystal display 70, the flash emission control, the auto focus (AF) control, and the automatic exposure. (AE)
It controls the shooting operation such as control, data communication control, and recording process control. That is, the CPU 66 performs various calculations such as focus evaluation calculation and AE calculation from the image data captured in response to the “half-press” operation of the shutter button, and controls the lens drive unit (not shown) based on the calculation result. The photographing lens 52 is moved to the in-focus position by controlling the diaphragm driving unit (not shown) and the charge accumulation time of the CCD 54.

【0041】シャッターボタンが「全押し」操作される
と、撮影開始指示(レリーズON)信号が発せられる。
CPU66は、レリーズON信号の受け付けに応動して
記録用の画像データの取り込みを開始するとともに、圧
縮伸長回路74にコマンドを送る。これにより圧縮伸長
回路74は、メモリ60に保持されている画像データを
JPEGその他の所定の形式に従って圧縮する。
When the shutter button is fully pressed, a photographing start instruction (release ON) signal is issued.
The CPU 66 responds to the acceptance of the release ON signal to start taking in the image data for recording and sends a command to the compression / expansion circuit 74. As a result, the compression / expansion circuit 74 compresses the image data held in the memory 60 in accordance with a predetermined format such as JPEG.

【0042】圧縮された画像データは、メモリカードイ
ンターフェース76を介してメモリカード78記録され
る。記録媒体としては、スマートメディア、PCカー
ド、コンパクトフラッシュ(登録商標)、磁気ディス
ク、光ディスク、光磁気ディスク、メモリスティックな
ど種々の形態を適用できる。使用される媒体に応じた信
号処理手段とインターフェースが適用される。異種、同
種の記録メディアを問わず、複数の媒体を装着可能な構
成にしてもよい。また、画像を保存する手段は、リムー
バブルメディアに限らず、カメラ50に内蔵された記録
媒体(内蔵メモリ)であってもよい。内蔵メモリに画像
を保存する態様の場合、データをパソコン等の外部機器
に転送するための通信用インターフェースが設けられ
る。
The compressed image data is recorded in the memory card 78 via the memory card interface 76. As the recording medium, various forms such as smart media, PC card, compact flash (registered trademark), magnetic disk, optical disk, magneto-optical disk, and memory stick can be applied. The signal processing means and interface according to the medium used are applied. Regardless of recording media of different types or the same type, a plurality of media may be mountable. Further, the means for storing the image is not limited to the removable medium, but may be a recording medium (built-in memory) built in the camera 50. In the case of storing images in the built-in memory, a communication interface for transferring data to an external device such as a personal computer is provided.

【0043】再生モード時には、メモリカード78から
画像データが読み出され、読み出された画像データは、
圧縮伸長回路74によって伸長処理された後、LCDイ
ンターフェース68を介して液晶ディスプレイ70に再
生出力される。
In the reproduction mode, the image data is read from the memory card 78, and the read image data is
After being expanded by the compression / expansion circuit 74, it is reproduced and output to the liquid crystal display 70 via the LCD interface 68.

【0044】シーケンサ80は、DMA要求モジュール
としての信号処理部64、圧縮伸長回路74、メモリカ
ードインターフェース76及びLCDインターフェース
68の各回路ブロックの要求許可期間を管理する。
The sequencer 80 manages the request permission period of each circuit block of the signal processing unit 64 as the DMA request module, the compression / expansion circuit 74, the memory card interface 76 and the LCD interface 68.

【0045】次に、上記の如く構成されたカメラ50に
おける動作モード毎のデータの流れを説明する。図5
は、ムービーモード(リアルタイム画像表示モード)に
おけるデータの流れを示している。ムービーモードで
は、CCD54から出力された画像信号はA/D変換器
56によってデジタル信号に変換され、このA/D変換
出力がメモリコントローラ58を介してメモリ60に記
憶される(符号)。
Next, the data flow for each operation mode in the camera 50 configured as described above will be described. Figure 5
Shows a data flow in the movie mode (real-time image display mode). In the movie mode, the image signal output from the CCD 54 is converted into a digital signal by the A / D converter 56, and this A / D converted output is stored in the memory 60 via the memory controller 58 (reference numeral).

【0046】メモリ60に記憶されたデータは、メモリ
コントローラ58を介して読み出され、信号処理部64
へ送られる(符号)。信号処理部64は、読み込んだ
画像データを基にYC変換処理、その他所定の信号処理
を施す。所定の信号処理を経たデータは、メモリコント
ローラ58を介してメモリ60に書き戻される(符号
)。こうして、メモリ60に格納された画像データ
は、メモリコントローラ58を介して読み出され、LC
Dインターフェース68に送られる(符号)。そし
て、表示用の映像信号に変換された後、液晶ディスプレ
イ70に供給される。
The data stored in the memory 60 is read out via the memory controller 58, and the signal processor 64 is read.
Sent to (sign). The signal processing unit 64 performs YC conversion processing and other predetermined signal processing based on the read image data. The data that has undergone the predetermined signal processing is written back to the memory 60 via the memory controller 58 (reference numeral). Thus, the image data stored in the memory 60 is read out via the memory controller 58,
It is sent to the D interface 68 (code). Then, after being converted into a video signal for display, the video signal is supplied to the liquid crystal display 70.

【0047】図5に示した動作においてDMA優先順位
は、A/D変換器56からのデータ取り込み>信号処
理部64へのデータ転送(YC処理のRead),信号処理
部64からメモリ60へのデータ転送(YC処理のWrit
e )>LCDインターフェース68へのデータ転送
の順に設定されている。なお、とは優劣無しとす
る。
In the operation shown in FIG. 5, the DMA priority is as follows: data acquisition from A / D converter 56> data transfer to signal processing unit 64 (Read of YC processing), signal processing unit 64 to memory 60. Data transfer (Writ of YC processing
It is set in the order of e)> data transfer to LCD interface 68. In addition, there is no superiority or inferiority.

【0048】図6及び図7にはムービーモードにおける
要求許可期間のタイミング(周期)の例が示されてい
る。図6に示した〔例1〕は、各処理モジュールに対す
る要求許可期間を重複させずに順次処理を行う設定例で
ある。すなわち、まずA/D変換器56に対して要求許
可期間が与えられ、A/D変換出力をメモリ60に書き
込む処理を行う。以下順次CPU→YC処理(Read) →
CPU→YC処理(Write)→CPU→LCD→CPUの
順に要求許可期間が切り替わり、再び先頭のA/Dに戻
る。図6に示した通り、重複しない要求許可期間が循環
式に切り替えられることにより、その順序に従って処理
が進行する。
6 and 7 show examples of timings (cycles) of the request permission period in the movie mode. [Example 1] shown in FIG. 6 is a setting example in which the processing is sequentially performed without overlapping the request permission periods for the processing modules. That is, first, the request permission period is given to the A / D converter 56, and the process of writing the A / D conversion output in the memory 60 is performed. Sequentially CPU → YC processing (Read) →
The request permission period switches in the order of CPU → YC processing (Write) → CPU → LCD → CPU, and returns to the first A / D again. As shown in FIG. 6, by switching the request permission periods that do not overlap in a cyclic manner, the processing proceeds in that order.

【0049】図7に示した〔例2〕は、同タイミングで
複数のモジュールに対して要求許可期間を与える例であ
る。同図によれば、YC処理のReadとYC処理のWrite
については重複的に要求許可期間が与えられる。重複タ
イミング時はDMAの優先順位に従って処理されるが、
YC処理のReadとYC処理のWrite については必ず異な
るタイミングで実施されるためDMA要求は競合しな
い。
[Example 2] shown in FIG. 7 is an example in which a request permission period is given to a plurality of modules at the same timing. According to the figure, Read of YC processing and Write of YC processing
For, the request permission period is given redundantly. At the overlap timing, it is processed according to the priority order of DMA,
Since the read of the YC process and the write of the YC process are always executed at different timings, DMA requests do not conflict.

【0050】図8は記録用の静止画取り込みモードにお
けるデータの流れを示している。取り込みモードでは、
CCD54から出力された画像信号はA/D変換器56
によってデジタル信号に変換され、このA/D変換出力
がメモリコントローラ58を介してメモリ60に記憶さ
れる(符号)。メモリ60に記憶されたデータは、メ
モリコントローラ58を介して読み出され、信号処理部
64へ送られる(符号)。信号処理部64は、読み込
んだ画像データを基にYC変換処理その他所定の信号処
理を施す。所定の信号処理を経たデータは、メモリコン
トローラ58を介してメモリ60に書き戻される(符号
)。
FIG. 8 shows the data flow in the still image capture mode for recording. In capture mode,
The image signal output from the CCD 54 is the A / D converter 56.
Is converted into a digital signal by this, and this A / D converted output is stored in the memory 60 via the memory controller 58 (reference numeral). The data stored in the memory 60 is read out via the memory controller 58 and sent to the signal processing unit 64 (code). The signal processing unit 64 performs YC conversion processing and other predetermined signal processing based on the read image data. The data that has undergone the predetermined signal processing is written back to the memory 60 via the memory controller 58 (reference numeral).

【0051】こうして、メモリ60に格納された画像デ
ータは、メモリコントローラ58を介して読み出され、
圧縮伸長回路74へ送られる(符号)。圧縮伸長回路
74において圧縮された画像データは、メモリコントロ
ーラ58を介して再びメモリ60に書き込まれる(符号
)。その後、圧縮データは、メモリコントローラ58
を介してメモリ60から読み出され、メモリカードイン
ターフェース76に送られる(符号)。そして、メモ
リカードインターフェース76を介して圧縮画像データ
がメモリカード78に書き込まれる。
Thus, the image data stored in the memory 60 is read out via the memory controller 58,
It is sent to the compression / expansion circuit 74 (code). The image data compressed in the compression / expansion circuit 74 is written again in the memory 60 via the memory controller 58 (code). Then, the compressed data is stored in the memory controller 58.
It is read from the memory 60 via the and is sent to the memory card interface 76 (reference numeral). Then, the compressed image data is written in the memory card 78 via the memory card interface 76.

【0052】図8に示した動作においてDMA優先順位
は、A/D変換器56からのデータ取り込み>信号処
理部64へのデータ転送(YC処理Read),信号処理
部64からメモリ60へのデータ転送(YC処理Write
)>圧縮伸長回路74へのデータ転送(圧縮Read)
,圧縮伸長回路74からメモリ60へのデータ転送
(圧縮Write )>メモリカードインターフェース76
へのデータ転送の順に設定されている。なお、と
は優劣が無く、とも優劣は無いものとする。
In the operation shown in FIG. 8, the DMA priority is: data acquisition from the A / D converter 56> data transfer to the signal processing unit 64 (YC processing Read), data transfer from the signal processing unit 64 to the memory 60. Transfer (YC processing Write
)> Data transfer to compression / expansion circuit 74 (compression Read)
, Data transfer from compression / expansion circuit 74 to memory 60 (compression Write)> memory card interface 76
Are set in the order of data transfer to. In addition, there is no superiority or inferiority, and neither is superiority or inferiority.

【0053】図9及び図10には取り込みモード(LC
D表示なしの場合)における要求許可期間のタイミング
(周期)の例が示されている。図9に示した〔例1〕
は、各処理モジュールに対する要求許可期間を重複させ
ずに順次処理を行う設定例である。図9に示した順序に
従って要求許可期間が循環式に切り替わり、画像取り込
みの処理が進行する。
9 and 10, the capture mode (LC
An example of the timing (cycle) of the request permission period in the case where D is not displayed is shown. [Example 1] shown in FIG.
Is a setting example in which sequential processing is performed without overlapping request permission periods for each processing module. According to the order shown in FIG. 9, the request permission period is switched to the cyclic type, and the image capturing process proceeds.

【0054】図10に示した〔例2〕は、同タイミング
で複数のモジュールに対して要求許可期間を与える例で
ある。同図によれば、YC処理Readと圧縮Read及びメモ
リカードインターフェースへの転送処理の三工程につい
て同じタイミングで要求許可期間が与えられる。同様
に、YC処理Write 、圧縮Write 及びメモリカードへの
書き込み処理の三工程についても同じタイミングで要求
許可期間が設定されている。DMA要求が競合した場合
はDMAの優先順位に従って制御され、順位の高いモジ
ュールに対して許可が下る。
[Example 2] shown in FIG. 10 is an example in which a request permission period is given to a plurality of modules at the same timing. According to the figure, the request permission period is given at the same timing for the three steps of YC processing Read, compression Read, and transfer processing to the memory card interface. Similarly, the request permission period is set at the same timing for the three processes of YC processing Write, compression Write, and writing processing to the memory card. When the DMA requests compete with each other, the DMA is controlled according to the priority of the DMA, and the module having the higher priority is granted.

【0055】図11は再生モードにおけるデータの流れ
を示している。再生モードでは、メモリカード78に記
録されている画像データがメモリカードインターフェー
ス76を介して読み出される。この読み出されたデータ
(圧縮データ)は、メモリコントローラ58を介してメ
モリ60に格納される(符号)。次いで、メモリコン
トローラ58は、メモリ60内の圧縮データを読み出
し、これを圧縮伸長回路74に転送する(符号)。圧
縮伸長回路74で伸長処理された画像データはメモリコ
ントローラ58を介してメモリ60に送られる(符号
)。
FIG. 11 shows the data flow in the reproduction mode. In the reproduction mode, the image data recorded on the memory card 78 is read out via the memory card interface 76. The read data (compressed data) is stored in the memory 60 via the memory controller 58 (code). Next, the memory controller 58 reads the compressed data in the memory 60 and transfers it to the compression / expansion circuit 74 (code). The image data expanded by the compression / expansion circuit 74 is sent to the memory 60 via the memory controller 58 (code).

【0056】そして、メモリ60に記憶されたデータ
は、メモリコントローラ58を介して読み出され、LC
Dインターフェース68に送られる(符号)。そし
て、表示用の映像信号に変換された後、液晶ディスプレ
イ70に供給される。
Then, the data stored in the memory 60 is read out via the memory controller 58, and LC
It is sent to the D interface 68 (code). Then, after being converted into a video signal for display, the video signal is supplied to the liquid crystal display 70.

【0057】図11に示した動作においてDMA優先順
位は、カードインターフェース取り込み>圧縮伸長回
路74へのデータ転送(伸長Read),圧縮伸長回路7
4からメモリ60へのデータ転送(伸長Write )>L
CDインターフェース68へのデータ転送の順に設定
されている。なお、とは優劣が無いものとする。
In the operation shown in FIG. 11, the DMA priority is: card interface fetch> data transfer to compression / expansion circuit 74 (expansion Read), compression / expansion circuit 7
Data transfer from 4 to memory 60 (expanded Write)> L
It is set in the order of data transfer to the CD interface 68. In addition, there is no superiority or inferiority.

【0058】図12及び図13には再生モード(LCD
表示優先の場合)における要求許可期間のタイミング
(周期)の例が示されている。図12に示した〔例1〕
は、各処理モジュールに対する要求許可期間を重複させ
ずに順次処理を行う設定例である。図12に示した順序
に従って要求許可期間が循環式に切り替わり、画像再生
の処理が進行する。
The reproduction mode (LCD
An example of the timing (cycle) of the request permission period in the case of display priority is shown. [Example 1] shown in FIG.
Is a setting example in which sequential processing is performed without overlapping request permission periods for each processing module. According to the order shown in FIG. 12, the request permission period is switched to the cyclic type, and the image reproduction process proceeds.

【0059】図13に示した〔例2〕は、同タイミング
で複数のモジュールに対して要求許可期間を与える例で
ある。同図によれば、メモリカードインターフェースか
らの取り込みと伸長Read及び伸長Write の各工程につい
て同じタイミングで要求許可期間が与えられる。DMA
要求が競合した場合はDMAの優先順位に基づいて制御
される。
[Example 2] shown in FIG. 13 is an example in which a request permission period is given to a plurality of modules at the same timing. According to the figure, the request permission period is given at the same timing for each process of fetching from the memory card interface and expanding Read and expanding Write. DMA
When the requests conflict with each other, control is performed based on the priority of DMA.

【0060】図5乃至図13で説明したように、カメラ
50の各動作モードに応じてDMA優先順位の設定並び
に各モジュールの要求許可期間の設定が変更される。
As described with reference to FIGS. 5 to 13, the setting of the DMA priority order and the setting of the request permission period of each module are changed according to each operation mode of the camera 50.

【0061】[0061]

【発明の効果】以上説明したように本発明によれば、複
数のモジュールでデータバスを共有するシステムにおい
て、各モジュールがDMA要求を出せるタイムスパン
(要求許可期間)の設定を可能とする手段を設け、各モ
ジュールが予め設定されたタイミングでDMA要求を出
すようにしたので、DMA要求が時間的に分散され、バ
スレートを効率的に使用でき、システム全体の性能向上
を図ることができる。
As described above, according to the present invention, in a system in which a plurality of modules share a data bus, a means for enabling each module to set a time span (request permission period) for issuing a DMA request is provided. Since the modules are provided and the DMA requests are issued at preset timings, the DMA requests are dispersed in time, the bus rate can be used efficiently, and the performance of the entire system can be improved.

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

【図1】本発明の実施形態に係るデータバス接続例を示
すブロック図
FIG. 1 is a block diagram showing a data bus connection example according to an embodiment of the present invention.

【図2】従来のバス制御方式によるデータバスの使用例
を示すタイミングチャート
FIG. 2 is a timing chart showing an example of using a data bus according to a conventional bus control method.

【図3】本発明の実施形態に係るバス制御方式によるデ
ータバスの使用例を示すタイミングチャート
FIG. 3 is a timing chart showing a usage example of a data bus according to a bus control method according to an embodiment of the present invention.

【図4】本発明を適用したデジタルカメラの構成を示す
ブロック図
FIG. 4 is a block diagram showing the configuration of a digital camera to which the present invention has been applied.

【図5】図4に示したカメラのムービーモードにおける
データの流れを示すブロック図
5 is a block diagram showing a data flow in the movie mode of the camera shown in FIG.

【図6】ムービーモードにおける要求許可期間の周期
(例1)を示す図
FIG. 6 is a diagram showing a cycle (example 1) of a request permission period in the movie mode.

【図7】ムービーモードにおける要求許可期間の周期
(例2)を示す図
FIG. 7 is a diagram showing a cycle (example 2) of a request permission period in the movie mode.

【図8】図4に示したカメラの取り込みモードにおける
データの流れを示すブロック図
8 is a block diagram showing a data flow in a capture mode of the camera shown in FIG.

【図9】取り込みモードにおける要求許可期間の周期
(例1)を示す図
FIG. 9 is a diagram showing a cycle (example 1) of a request permission period in a capture mode.

【図10】取り込みモードにおける要求許可期間の周期
(例2)を示す図
FIG. 10 is a diagram showing a cycle (example 2) of a request permission period in a capture mode.

【図11】図4に示したカメラの再生モードにおけるデ
ータの流れを示すブロック図
11 is a block diagram showing a data flow in a reproduction mode of the camera shown in FIG.

【図12】再生モードにおける要求許可期間の周期(例
1)を示す図
FIG. 12 is a diagram showing a cycle (example 1) of a request permission period in the reproduction mode.

【図13】再生モードにおける要求許可期間の周期(例
2)を示す図
FIG. 13 is a diagram showing a cycle (example 2) of a request permission period in the reproduction mode.

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

1…モジュール、2…モジュール、10…データバス、
12…DMAコントローラ、20…CPU、24…メモ
リコントローラ、30…外部デバイスコントローラ、3
4…メモリ、40…シーケンサ、50…カメラ、54…
CCD、56…A/D変換器、58…メモリコントロー
ラ、60…メモリ、62…データバス、64…信号処理
部、66…CPU、70…液晶ディスプレイ、74…圧
縮伸長回路、76…メモリカードインターフェース、7
8…メモリカード、80…シーケンサ
1 ... module, 2 ... module, 10 ... data bus,
12 ... DMA controller, 20 ... CPU, 24 ... Memory controller, 30 ... External device controller, 3
4 ... memory, 40 ... sequencer, 50 ... camera, 54 ...
CCD, 56 ... A / D converter, 58 ... Memory controller, 60 ... Memory, 62 ... Data bus, 64 ... Signal processing unit, 66 ... CPU, 70 ... Liquid crystal display, 74 ... Compression / expansion circuit, 76 ... Memory card interface , 7
8 ... Memory card, 80 ... Sequencer

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 DMA要求を行う複数のモジュールが同
じデータバスを使用してDMA転送を行うデータ転送シ
ステムのバス制御方法であって、該方法は、 各モジュールについてDMA要求を出すことができる要
求許可期間のタイムスパンを設定するとともに、各モジ
ュールに対して所定の周期で要求許可期間が与えられる
ように要求許可期間の付与タイミングを設定し、 前記設定されたタイムスパン及び付与タイミングに従っ
て各モジュールの要求許可期間を管理し、 前記管理の下で各モジュールが要求許可期間内にDMA
要求を出すようにしたことを特徴とするバス制御方法。
1. A bus control method for a data transfer system, wherein a plurality of modules that make a DMA request use the same data bus to make a DMA transfer. The method is a request capable of issuing a DMA request for each module. In addition to setting the time span of the permission period, the request permission period grant timing is set so that the request permission period is given to each module in a predetermined cycle, and each module is assigned according to the set time span and grant timing. It manages the request permission period, and under the management, each module performs DMA within the request permission period.
A bus control method characterized in that a request is issued.
【請求項2】 DMA要求を行う複数のモジュールと、 前記複数のモジュールが接続されている共通のデータバ
スと、 各モジュールから出されるDMA要求を調停し、DMA
転送可能なモジュールに対して前記データバスの使用許
可を与え、当該モジュールによるDMA転送の実施を制
御するDMAコントローラと、 各モジュールについてDMA要求を出すことができる要
求許可期間のタイムスパンを設定するタイムスパン設定
手段と、 各モジュールに対して所定の周期で要求許可期間が与え
られるように要求許可期間の付与タイミングを設定する
タイミング設定手段と、 前記設定されたタイムスパン及び付与タイミングに従っ
て各モジュールの要求許可期間を管理し、各モジュール
に対して要求許可期間を示す信号を与える要求許可期間
管理手段と、 を備えたことを特徴とするバス制御装置。
2. A plurality of modules that make a DMA request, a common data bus to which the plurality of modules are connected, a DMA request issued from each module, and a DMA
A DMA controller that grants permission to use the data bus to a transferable module and controls execution of the DMA transfer by the module, and a time slot that sets a time span of a request permission period for which a DMA request can be issued for each module. Pan setting means, timing setting means for setting a grant timing of a request permission period so that a request permission period is given to each module in a predetermined cycle, and a request of each module according to the set time span and grant timing. A bus control device comprising: a request permission period management means for managing a permission period and giving a signal indicating a request permission period to each module.
【請求項3】 前記タイムスパン設定手段と前記タイミ
ング設定手段及び前記要求許可期間管理手段の役割を兼
ね備えた手段としてシーケンサが用いられることを特徴
とする請求項2に記載のバス制御装置。
3. The bus control device according to claim 2, wherein a sequencer is used as a unit having the functions of the time span setting unit, the timing setting unit, and the request permission period management unit.
【請求項4】 請求項2又は3に記載のバス制御装置を
搭載したデジタルカメラであって、該デジタルカメラ
は、 光学像を電気信号に変換する撮像手段と、 前記撮像手段から得られた画像信号をデジタル信号に変
換するA/D変換手段と、 前記A/D変換手段から出力された画像信号を基に所定
の信号形式に変換する信号処理手段と、 前記DMAコントローラの制御に従って画像信号を一時
的に記憶するメモリと、 前記信号処理手段で得た画像信号を圧縮する圧縮処理手
段と、 前記圧縮された画像信号を記録媒体に記録する記録手段
と、 カメラ本体の動作を制御する制御手段としての演算処理
装置と、 を備え、 前記A/D変換手段を介して取得される画像信号の取り
込み処理、前記信号処理手段における信号処理、前記圧
縮処理手段における圧縮処理、前記記録手段による記録
処理及び前記演算処理装置の処理に関して、それぞれ前
記要求許可期間管理手段の管理の下でDMA転送が実施
されることを特徴とするデジタルカメラ。
4. A digital camera equipped with the bus control device according to claim 2 or 3, wherein the digital camera comprises an image pickup means for converting an optical image into an electric signal, and an image obtained from the image pickup means. A / D conversion means for converting the signal into a digital signal, signal processing means for converting the image signal output from the A / D conversion means into a predetermined signal format, and the image signal under the control of the DMA controller. A memory for temporarily storing, a compression processing means for compressing the image signal obtained by the signal processing means, a recording means for recording the compressed image signal on a recording medium, and a control means for controlling the operation of the camera body. And an arithmetic processing unit as described above. The image processing apparatus according to claim 1, comprising: an image signal acquisition process performed through the A / D conversion unit, a signal processing in the signal processing unit, and a compression processing unit. With respect to the compression processing, the recording processing by the recording means, and the processing by the arithmetic processing device, the DMA transfer is performed under the control of the request permission period management means.
【請求項5】 前記記録媒体に格納されている圧縮画像
信号を伸長する伸長処理手段と、 前記撮像手段を介して取得した画像及び前記記録媒体に
格納されている画像を表示可能な画像表示手段と、 前記画像表示手段に対して表示用の信号を出力する表示
制御手段と、 を備え、 前記伸長処理手段における伸長処理並びに前記画像表示
手段への画像表示処理に関して、それぞれ前記要求許可
期間管理手段の管理の下でDMA転送が実施されること
を特徴とする請求項4に記載のデジタルカメラ。
5. A decompression processing unit for decompressing a compressed image signal stored in the recording medium, and an image display unit capable of displaying the image acquired through the imaging unit and the image stored in the recording medium. And a display control means for outputting a display signal to the image display means, and the request permission period management means for the expansion processing in the expansion processing means and the image display processing for the image display means, respectively. The digital camera according to claim 4, wherein the DMA transfer is performed under the management of the digital camera.
【請求項6】 請求項5に記載のデジタルカメラにおい
て、該カメラは、前記撮像手段を介して記録用の画像を
取り込む撮影モードと、前記記録媒体に格納されている
画像を前記画像表示手段に表示させる再生モードと、を
有し、選択されるモードに応じて前記タイムスパン及び
前記付与タイミングのうち少なくとも一方の設定内容が
変更されることを特徴とするデジタルカメラ。
6. The digital camera according to claim 5, wherein the camera uses a photographing mode for capturing an image for recording via the image pickup means, and an image stored in the recording medium on the image display means. And a reproduction mode to be displayed, wherein the setting content of at least one of the time span and the giving timing is changed according to the selected mode.
JP2001323375A 2001-10-22 2001-10-22 Bus control method and apparatus, and digital camera Expired - Fee Related JP4328906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001323375A JP4328906B2 (en) 2001-10-22 2001-10-22 Bus control method and apparatus, and digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001323375A JP4328906B2 (en) 2001-10-22 2001-10-22 Bus control method and apparatus, and digital camera

Publications (2)

Publication Number Publication Date
JP2003132007A true JP2003132007A (en) 2003-05-09
JP4328906B2 JP4328906B2 (en) 2009-09-09

Family

ID=19140272

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001323375A Expired - Fee Related JP4328906B2 (en) 2001-10-22 2001-10-22 Bus control method and apparatus, and digital camera

Country Status (1)

Country Link
JP (1) JP4328906B2 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005078161A (en) * 2003-08-28 2005-03-24 Canon Inc Recording apparatus
JP2006236059A (en) * 2005-02-25 2006-09-07 Casio Comput Co Ltd Data transfer device and imaging device
JP2007164709A (en) * 2005-12-16 2007-06-28 Casio Comput Co Ltd Image data transfer controller and image data transfer method, and camera having image data transfer device
CN100388762C (en) * 2004-07-22 2008-05-14 奥林巴斯株式会社 Bus request control circuit
JP2010055389A (en) * 2008-08-28 2010-03-11 Fujitsu Microelectronics Ltd Arbitration device, arbitration method and electronic apparatus
CN101673252B (en) * 2008-09-08 2012-05-23 安辰电脑股份有限公司 Dma system
WO2013015052A1 (en) * 2011-07-28 2013-01-31 富士フイルム株式会社 Camera control system and method of controlling operation thereof
JP2013128213A (en) * 2011-12-19 2013-06-27 Ricoh Co Ltd Image forming apparatus and image forming method
JP2016151949A (en) * 2015-02-18 2016-08-22 ファナック株式会社 Dma controller
US10063807B2 (en) 2015-10-30 2018-08-28 Canon Kabushiki Kaisha Image processing apparatus and image processing method with controlling of output rates from encoders to memory

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005078161A (en) * 2003-08-28 2005-03-24 Canon Inc Recording apparatus
CN100388762C (en) * 2004-07-22 2008-05-14 奥林巴斯株式会社 Bus request control circuit
JP2006236059A (en) * 2005-02-25 2006-09-07 Casio Comput Co Ltd Data transfer device and imaging device
JP2007164709A (en) * 2005-12-16 2007-06-28 Casio Comput Co Ltd Image data transfer controller and image data transfer method, and camera having image data transfer device
JP2010055389A (en) * 2008-08-28 2010-03-11 Fujitsu Microelectronics Ltd Arbitration device, arbitration method and electronic apparatus
CN101673252B (en) * 2008-09-08 2012-05-23 安辰电脑股份有限公司 Dma system
WO2013015052A1 (en) * 2011-07-28 2013-01-31 富士フイルム株式会社 Camera control system and method of controlling operation thereof
US9106777B2 (en) 2011-07-28 2015-08-11 Fujifilm Corporation Camera control system and method of controlling operation of same
JP2013128213A (en) * 2011-12-19 2013-06-27 Ricoh Co Ltd Image forming apparatus and image forming method
JP2016151949A (en) * 2015-02-18 2016-08-22 ファナック株式会社 Dma controller
US10063807B2 (en) 2015-10-30 2018-08-28 Canon Kabushiki Kaisha Image processing apparatus and image processing method with controlling of output rates from encoders to memory

Also Published As

Publication number Publication date
JP4328906B2 (en) 2009-09-09

Similar Documents

Publication Publication Date Title
JP3750462B2 (en) Digital camera and recording medium
US7573504B2 (en) Image recording apparatus, image recording method, and image compressing apparatus processing moving or still images
JP3720268B2 (en) Image processing device
CN101841651A (en) Image processing apparatus, camera head and image processing method
US7365777B2 (en) Digital camera
JP4328906B2 (en) Bus control method and apparatus, and digital camera
US20110193988A1 (en) Semiconductor device and semiconductor integrated circuit
JP2002074276A (en) Data recording device and electronic camera and recording medium
JP4284458B2 (en) Digital camera
US7312826B2 (en) Digital camera apparatus with high speed imaging and energy saving features
US20040201693A1 (en) Image processing system
JP2013211724A (en) Imaging apparatus
JP2013211715A (en) Imaging device
JP4487454B2 (en) Electronic camera and control IC for electronic camera
JP3962440B2 (en) Image processing device
JP2003122705A (en) Digital camera
KR20000017456A (en) Video signal processing circuit and image pickup apparatususing the circuit
JP4281161B2 (en) Electronic camera
KR20180025162A (en) Control apparatus for controlling plural process executing apparatuses
JP4069000B2 (en) Digital camera
JP2000316121A (en) Multiple access mode picture buffer
JP4677581B2 (en) Data transfer control device and data transfer method
JP2004179852A (en) Digital camera
JPH10224685A (en) Digital camera and its external device
JP2002191007A (en) Image pickup device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060829

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061030

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061204

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070705

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070903

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080604

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080801

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120626

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120626

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130626

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees