JPH09297728A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPH09297728A
JPH09297728A JP13416396A JP13416396A JPH09297728A JP H09297728 A JPH09297728 A JP H09297728A JP 13416396 A JP13416396 A JP 13416396A JP 13416396 A JP13416396 A JP 13416396A JP H09297728 A JPH09297728 A JP H09297728A
Authority
JP
Japan
Prior art keywords
value
transfer
counter
addition value
addition
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
JP13416396A
Other languages
Japanese (ja)
Other versions
JP3522047B2 (en
Inventor
Takao Suzuki
孝夫 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP13416396A priority Critical patent/JP3522047B2/en
Publication of JPH09297728A publication Critical patent/JPH09297728A/en
Application granted granted Critical
Publication of JP3522047B2 publication Critical patent/JP3522047B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

PROBLEM TO BE SOLVED: To set the exact number of subscanning lines by providing a counter addition value setting means for setting an addition value to a transfer count value and a counter adding/subtracting means. SOLUTION: A subtraction transfer counter holding part 175 holds a counter value selected by a transfer counter selector 174, through a subtraction transfer counter value latch signal. A counter addition value setting part 176 outputs any arbitrary counter addition setting value, through a counter addition value latch signal. Based on an addition/subtraction switch signal and the counter addition value latch signal, a counter addition/subtraction part 117 subtracts a fixed subtraction value '1' from the count value outputted from the subtraction transfer counter holding part 175 or adds the arbitrary addition value set by the counter addition value setting part 176 to that count value, so that the added/subtracted count value are outputted to a count value selector 170.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、周辺機器と記憶装
置間のデータ転送を中央処理装置を介さずに行うDMA
(ダイレクト・メモリ・アクセス)転送を制御するDM
Aコントローラに係り、特に、ファクシミリ装置に用い
て好適なDMAコントローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA for transferring data between a peripheral device and a storage device without going through a central processing unit.
(Direct memory access) DM for controlling transfer
The present invention relates to an A controller, and particularly to a DMA controller suitable for use in a facsimile machine.

【0002】[0002]

【従来の技術】DMA転送は、中央処理装置(以下、C
PUと記す)の介在なしに、1ブロックのデータ転送を
高速に行うものである。ファクシミリ装置の場合、この
1ブロックが特開平2−270077号公報のように画
情報の主走査方向1ライン分であったり、1Kバイト等
のブロックであったりする。また、最近では、高速動作
が要求され、CPUの負荷を軽減するために、1ページ
の転送を行うことも必要になってきた。
2. Description of the Related Art DMA transfer is performed by a central processing unit (hereinafter referred to as C
The data transfer of one block is performed at high speed without the intervention of (PU). In the case of a facsimile machine, this one block may be one line of image information in the main scanning direction as disclosed in JP-A-2-270077 or a block of 1 Kbyte or the like. Further, recently, high-speed operation has been required, and it has become necessary to transfer one page in order to reduce the load on the CPU.

【0003】すなわち、最近のファクシミリ装置は、高
速読み取り、高速書き込み等の高速動作を必要としてき
ているため、画データ等のデータ転送を、CPUの介在
なしに行うDMA転送が一般的に使われている。また、
DMA転送の再起動を行う処理は、CPUの負荷となる
ため、ライン単位の処理から、ページ単位の処理を行う
ようになってきている。
That is, since recent facsimile apparatuses require high-speed operations such as high-speed reading and high-speed writing, DMA transfer is generally used for transferring data such as image data without CPU intervention. ing. Also,
Since the process of restarting the DMA transfer puts a load on the CPU, the process has been performed from the line unit to the page unit.

【0004】また、DRAM等の記憶装置は低価格にな
ってきているが、必要最小限を効率的に使用することも
必要であるため、読み取りや書き込みの最大定型サイズ
の処理に必要なだけの記憶装置しかない場合が多い。
Further, although storage devices such as DRAMs have become low in price, it is necessary to efficiently use the minimum necessary amount, and therefore, it is necessary only to process the maximum fixed size of reading and writing. Often there is only a storage device.

【0005】ところが、最大定型サイズよりも圧倒的に
長い長尺原稿の送信や、これを定型のカット紙ではな
く、ロール紙によって長尺記録する要求も出てきた。こ
のため、副走査ライン数が分からない場合や、最大カウ
ント値以上の場合が発生する。
However, there has been a demand for transmitting a long original document which is overwhelmingly longer than the maximum standard size, and for recording the long original by roll paper instead of standard cut paper. For this reason, there are cases where the number of sub-scanning lines is unknown, or where the number is greater than or equal to the maximum count value.

【0006】[0006]

【発明が解決しようとする課題】すなわち、DMA転送
とは、CPUが設定した転送数をカウントし、設定数分
の転送を行い終了するものであるので、主走査ワード
(バイト)数、副走査ライン数とも分かっている場合の
1ページの転送は設定可能である。しかしながら、長尺
原稿の読み取りや、ロール紙への長尺記録等において
は、記録装置の容量制限等もあって、副走査ライン数が
分からない場合や、最大カウント値以上の場合が発生
し、DMA転送開始時に、転送数の正確な設定ができな
いという不都合が生じていた。
That is, since the DMA transfer is to count the number of transfers set by the CPU, and transfer the set number of transfers to finish, the number of main scanning words (bytes) and the sub-scanning are performed. The transfer of one page when the number of lines is also known can be set. However, when reading a long original, long printing on roll paper, etc., there are cases where the number of sub-scanning lines cannot be known, or there is a case where the number of sub-scanning lines is greater than or equal to the maximum count value, due to capacity limitations of the printing device, At the start of the DMA transfer, there is a disadvantage that the transfer number cannot be set accurately.

【0007】そこで、本発明はこのような問題点を解決
するためになされたものであり、副走査ライン数が分か
らない場合や、最大カウント値以上の場合でも、DMA
転送をスタートさせることができるDMAコントローラ
を提供することを目的とするものである。
Therefore, the present invention has been made in order to solve such a problem, and DMA is performed even when the number of sub-scanning lines is unknown or when the number of sub-scanning lines is greater than the maximum count value.
An object of the present invention is to provide a DMA controller capable of starting transfer.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、本願の請求項1に記載の発明は、周辺機器と記憶装
置間のデータ転送をCPUを介さずに直接行うDMA転
送を制御し、CPUから設定された転送カウント値を転
送毎に所定の固定値だけ減算して、設定値分の転送を行
うDMAコントローラにおいて、DMA転送の途中で転
送カウント値に加算する任意の加算値を設定可能なカウ
ンタ加算値設定手段と、転送カウント値から転送毎に所
定の固定値を減算するとともに、前記カウンタ加算値設
定手段に設定されたカウンタ加算値を加算するカウンタ
加減算手段とを備えたものである。
In order to achieve the above object, the invention according to claim 1 of the present application controls a DMA transfer for directly performing data transfer between a peripheral device and a storage device without passing through a CPU. , In the DMA controller that subtracts the transfer count value set from the CPU by a predetermined fixed value for each transfer and transfers the set value, an arbitrary addition value to be added to the transfer count value during the DMA transfer is set. And a counter addition / subtraction means for subtracting a predetermined fixed value for each transfer from the transfer count value and for adding the counter addition value set in the counter addition value setting means. is there.

【0009】さらに、請求項2に記載の発明は、前記請
求項1記載のDMAコントローラにおいて、前記カウン
タ加算値設定手段に設定された任意の加算値と予め固定
的に設定された固定加算値とを切り替えてカウンタ加算
値とする加算値切替手段を備えたものである。
Further, in the invention described in claim 2, in the DMA controller according to claim 1, an arbitrary added value set in the counter added value setting means and a fixed added value fixedly set in advance. It is provided with an addition value switching means for switching to the counter addition value.

【0010】また、請求項3に記載の発明は、前記請求
項1記載のDMAコントローラにおいて、前記カウンタ
加算値設定手段を複数備えるとともに、各カウンタ加算
値設定手段に設定された加算値を切り替えてカウンタ加
算値とする加算値切替手段を備えたものである。
According to a third aspect of the present invention, in the DMA controller according to the first aspect, a plurality of the counter addition value setting means are provided and the addition value set in each counter addition value setting means is switched. An addition value switching means for setting the counter addition value is provided.

【0011】一方、請求項4に記載の発明は、前記請求
項2又は請求項3記載のDMAコントローラにおいて、
前記加算値切替手段は、動作DMAチャネルに応じてカ
ウンタ加算値を切り替えるようにしたものである。
On the other hand, the invention according to claim 4 is the DMA controller according to claim 2 or 3,
The addition value switching means switches the counter addition value according to the operating DMA channel.

【0012】[0012]

【発明の実施の形態】以下、添付図面を参照しながら本
願の各発明の実施形態を詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0013】図1は、本願の各発明によるDMAコント
ローラが適用されるファクシミリ装置のブロック図であ
る。
FIG. 1 is a block diagram of a facsimile apparatus to which a DMA controller according to each invention of the present application is applied.

【0014】図において、1は装置各部の制御処理、及
びファクシミリ伝送制御手順の処理を行うCPU、2は
CPU1が実行する制御処理プログラム及び当該制御処
理プログラムを実行するときに必要な各種データなどを
記憶するとともに、CPU1のワークエリアを構成する
システムメモリ、3はG3ファクシミリ装置等に固有な
各種の情報を記憶するためのパラメータメモリ、4は所
定の解像度で原稿を走査して画像を読み取り、この読取
画像に所定の各種画像処理を施す画像読取装置としての
スキャナ、5は前記画像処理された画像データまたは他
のファクシミリ装置から受信した画像データを所定の解
像度で記録する画像記録装置としてのプロッタ、6は本
装置を操作するための操作パネルで、各種操作キーや各
種表示器から成る。
In the figure, reference numeral 1 is a CPU for performing control processing of each part of the apparatus and processing of a facsimile transmission control procedure, and 2 is a control processing program executed by the CPU 1 and various data necessary for executing the control processing program. A system memory that stores the work area of the CPU 1 and 3 is a parameter memory for storing various kinds of information unique to the G3 facsimile apparatus and the like. 4 is a document scanned at a predetermined resolution to read an image. A scanner 5 as an image reading device for performing various kinds of predetermined image processing on a read image, a plotter 5 as an image recording device for recording the image-processed image data or image data received from another facsimile device at a predetermined resolution, Reference numeral 6 denotes an operation panel for operating this device, which is composed of various operation keys and various display devices.

【0015】7は送信する画像データを符号化圧縮する
とともに、符号化圧縮されて受信された画像データを元
の画像データに復号化する符号化復号化部、8はスキャ
ナ4によって読み込まれた画像データや符号化圧縮され
た状態の画像データやプロッタ5に出力する画像データ
を記憶するための画像記憶装置、9はG3ファクシミリ
装置のモデム機能を実現するためのものであり、伝送手
順信号をやり取りするための低速モデム機能(V.21
モデム)、および主に画像データをやり取りするための
高速モデム機能(V.29モデム、V.27terモデ
ム)を備えたモデム、10は本ファクシミリ装置を公衆
回線に接続するためのもので、自動発着信機能を備えた
網制御装置(NCU)、11はCPU1を介さずに上記
スキャナ4やプロッタ5等の周辺機器と画像記憶装置8
間で高速にデータをやり取りするためのDMAコントロ
ーラである。
Reference numeral 7 is an encoding / decoding unit that encodes and compresses the image data to be transmitted, and also decodes the image data that has been encoded and compressed and received to the original image data, and 8 indicates the image read by the scanner 4. An image storage device for storing data, image data in a coded and compressed state and image data to be output to the plotter 5, and 9 is a device for realizing a modem function of the G3 facsimile device, and exchanges transmission procedure signals. Low-speed modem function (V.21
Modem) and a modem equipped with a high-speed modem function (V.29 modem, V.27ter modem) for mainly exchanging image data, 10 is for connecting the facsimile apparatus to a public line, and is automatically generated. A network control unit (NCU) having an incoming call function, 11 is a peripheral device such as the scanner 4 or the plotter 5 and the image storage device 8 without going through the CPU 1.
It is a DMA controller for exchanging data at high speed.

【0016】これらのCPU1、システムメモリ2、パ
ラメータメモリ3、スキャナ4、プロッタ5、操作パネ
ル6、符号化復号化部7、画像記憶装置8、モデム9、
網制御装置10、及びDMAコントローラ11は、シス
テムバス12に接続されており、これらの各要素間での
データのやり取りは主として当該システムバス12を介
して行われるが、モデム9と網制御装置10との間のデ
ータのやり取りは直接行われている。
The CPU 1, system memory 2, parameter memory 3, scanner 4, plotter 5, operation panel 6, encoding / decoding unit 7, image storage device 8, modem 9,
The network control device 10 and the DMA controller 11 are connected to the system bus 12, and data exchange between these elements is mainly performed via the system bus 12, but the modem 9 and the network control device 10 are connected. Data is exchanged directly with.

【0017】図2は上記DMAコントローラ11の内部
構成を示すブロック図である。図において、13はスキ
ャナ4やプロッタ5等の周辺機器からのDMA転送要求
を示す各チャネルのリクエスト信号を受け付けるリクエ
ストサンプリング部、14は受け付けられたリクエスト
信号に基づき、予め定められた優先順位等に従ってDM
A転送のための動作チャネルを決定する動作チャネル決
定部であり、この動作チャネル決定部14で決定された
DMAチャネルに対応して、アドレス生成部15、コン
トロール信号生成部16及び転送カウント部17が起動
される。
FIG. 2 is a block diagram showing the internal structure of the DMA controller 11. In the figure, 13 is a request sampling unit that receives a request signal of each channel indicating a DMA transfer request from a peripheral device such as a scanner 4 or a plotter 5, and 14 is based on the received request signal and in accordance with a predetermined priority order or the like. DM
The operation channel determining unit determines the operation channel for A transfer, and the address generating unit 15, the control signal generating unit 16, and the transfer counting unit 17 correspond to the DMA channel determined by the operation channel determining unit 14. Is activated.

【0018】アドレス生成部15は、上記動作チャネル
決定部14で決定された動作チャネル情報に基づき、D
MA転送のためアドレスを生成し、画像記憶装置8等へ
出力する。コントロール信号発生部16は、リクエスト
信号が受け付けられ、動作チャネルが決定した周辺機器
に出力するDMA転送許可信号DACKや、メモリリー
ドライト(R/W)信号やI/Oリードライト(R/
W)信号等のDMA転送に際して必要なコントロール信
号を生成する。転送カウント部17は、DMA転送のブ
ロック単位の転送数をカウントして、転送終了信号をC
PU1に出力するもので、本願発明の特徴部分であり、
以下に詳述する。
The address generation unit 15 determines D based on the operation channel information determined by the operation channel determination unit 14.
An address is generated for MA transfer and output to the image storage device 8 or the like. The control signal generator 16 receives the request signal and outputs the DMA transfer permission signal DACK to the peripheral device whose operation channel is determined, the memory read / write (R / W) signal, and the I / O read / write (R / W) signal.
W) A control signal necessary for DMA transfer of a signal or the like is generated. The transfer counting unit 17 counts the number of transfers of the DMA transfer in block units, and outputs a transfer end signal as C.
It is output to PU1 and is a characteristic part of the present invention.
Details will be described below.

【0019】図3は上記転送カウント部17の実施形態
を示すブロック図である。本実施形態に係る転送カウン
ト部17は、カウント値セレクタ170と、CH1転送
カウンタ保持部171〜CHN転送カウンタ保持部17
3と、転送カウンタセレクタ174と、減算転送カウン
タ保持部175と、カウンタ加算値設定部176と、カ
ウンタ加減算部177とから構成されている。
FIG. 3 is a block diagram showing an embodiment of the transfer counting section 17. The transfer counting unit 17 according to the present embodiment includes a count value selector 170 and CH1 transfer counter holding units 171 to CHN transfer counter holding unit 17.
3, a transfer counter selector 174, a subtraction transfer counter holding unit 175, a counter addition value setting unit 176, and a counter addition / subtraction unit 177.

【0020】上記カウント値セレクタ170は、DMA
転送を開始する際にCPU1により設定される転送カウ
ント設定値か、DMA転送を行うことにより1ずつ減算
されてカウンタ加減算部177より出力されるカウント
値のいずれかを入力カウント値切り替え信号に基づき選
択出力する。CH1転送カウンタ保持部171〜CHN
転送カウンタ保持部173は、DMAチャネルCH1〜
CHN毎に前記カウント値セレクタ170から出力され
るカウント値を、それぞれ対応するCH1〜CHN転送
カウント値ラッチ信号によって保持する。転送カウンタ
セレクタ174は、前記CH1〜CHN転送カウンタ保
持部171〜173の各出力から減算転送カウンタ切り
替え信号に基づき動作DMAチャネルのカウント値を選
択出力する。減算転送カウンタ保持部175は、前記転
送カウンタセレクタ174で選択出力されたカウント値
を減算転送カウント値ラッチ信号によって保持する。カ
ウンタ加算値設定部176は、任意のカウンタ加算設定
値をカウンタ加算値ラッチ信号によって設定出力する。
カウンタ加減算部177は、前記減算転送カウンタ保持
部18から出力されたカウント値から、加減算値切り替
え信号とカウンタ加算値ラッチ信号とに基づき、固定減
算値である1を減算したり、カウンタ加算値設定部17
6に設定された任意の加算値を加算したりして、加減算
後のカウント値をカウント値セレクタ170に出力す
る。
The count value selector 170 is a DMA.
Either the transfer count set value set by the CPU 1 at the start of transfer or the count value subtracted by 1 by DMA transfer and output from the counter addition / subtraction unit 177 is selected based on the input count value switching signal. Output. CH1 transfer counter holding units 171 to CHN
The transfer counter holding unit 173 has DMA channels CH1 to CH1.
The count value output from the count value selector 170 for each CHN is held by the corresponding CH1 to CHN transfer count value latch signals. The transfer counter selector 174 selects and outputs the count value of the operating DMA channel from each output of the CH1 to CHN transfer counter holding units 171 to 173 based on the subtraction transfer counter switching signal. The subtraction transfer counter holding unit 175 holds the count value selected and output by the transfer counter selector 174 by a subtraction transfer count value latch signal. The counter addition value setting unit 176 sets and outputs an arbitrary counter addition setting value by a counter addition value latch signal.
The counter addition / subtraction unit 177 subtracts 1 which is a fixed subtraction value or sets the counter addition value from the count value output from the subtraction transfer counter holding unit 18 based on the addition / subtraction value switching signal and the counter addition value latch signal. Part 17
The addition value set to 6 is added, and the count value after addition and subtraction is output to the count value selector 170.

【0021】上記カウンタ加減算部177の第1の実施
形態(請求項1に対応)を図4に示す。このカウンタ加
減算部177は、加減算器177aとセレクタ177b
とから構成され、減算転送カウンタ保持部出力に、カウ
ンタ加算値設定部出力を加算するのか、−1,すなわち
1を減算するのかを、セレクタ177bにより選択し、
加減算器177aにより加減算を行う。
FIG. 4 shows a first embodiment (corresponding to claim 1) of the counter addition / subtraction unit 177. The counter adder / subtractor 177 includes an adder / subtractor 177a and a selector 177b.
The selector 177b selects whether to add the counter addition value setting unit output to the subtraction transfer counter holding unit output or to subtract -1, that is, 1
Addition / subtraction is performed by the adder / subtractor 177a.

【0022】以上の構成における動作タイミング例を図
5、図6、図7に示す。図5は転送カウント値の初期設
定時の動作タイミングを示し、図6は通常のDMA動作
時のタイミングを示し、図7は本発明で特徴的なDMA
動作時のタイミングを示している。
Examples of operation timings in the above configuration are shown in FIGS. 5, 6 and 7. FIG. 5 shows the operation timing when the transfer count value is initially set, FIG. 6 shows the timing when the normal DMA operation is performed, and FIG. 7 is the DMA characteristic of the present invention.
The timing at the time of operation is shown.

【0023】まず、通常の転送カウント値の初期設定で
あるが、図5に示すように、CPU1が各動作DMAチ
ャネル毎の転送カウント設定値(初期設定値)をカウン
ト値セレクタ170に与え、入力カウント値切り替え信
号を“L”レベルにすることにより選択されて各転送カ
ウンタ保持部171〜173に与えられる。これらの転
送カウント設定値は、対応するCH1〜CHN転送カウ
ント値ラッチ信号の立上りエッジによって対応するCH
1〜CHN転送カウンタ保持部171〜173にラッチ
される。
First, as for the initial setting of the normal transfer count value, as shown in FIG. 5, the CPU 1 gives the transfer count setting value (initial setting value) for each operating DMA channel to the count value selector 170 and inputs it. It is selected by setting the count value switching signal to the “L” level and given to each of the transfer counter holding units 171 to 173. These transfer count set values correspond to the corresponding CH1 to CHN corresponding to the rising edge of the transfer count value latch signal.
1 to CHN transfer counter holding units 171 to 173.

【0024】この後、各DMAチャネルCH1〜CHN
のDMA転送が開始されると、図6に示すように、各チ
ャネルCH1〜CHNのDMA転送が行われる毎に、そ
のチャネルの転送カウント値が1ずつ減算されていく。
例えば、チャネルCH1のDMA転送が動作するときに
は、減算転送カウンタ切り替え信号によって転送カウン
タセレクタ174でCH1転送カウンタ保持部171の
出力(Aとする)が選択され、減算転送カウント値ラッ
チ信号の立上りエッジで減算転送カウンタ保持部175
にラッチされる。この減算転送カウンタ保持部175の
出力(A)はカウンタ加減算部177に入力され、当該
カウンタ加減算部177は加減算値切り替え信号が
“H”レベルのときセレクタ177bによりー1を選択
して、減算転送カウンタ保持部出力(A)から1減算す
る。1減算されたカウンタ加減算部出力(A−1)はカ
ウント値セレクタ170に入力され、当該カウント値セ
レクタ170は入力カウント値切り替え信号が“H”レ
ベルのときカウンタ加減算部出力を選択するので、1減
算されたカウント値(A−1)がCH1転送カウント値
ラッチ信号の立上りエッジでCH1転送カウンタ保持部
171に再び保持される。同様に、チャネルCH2で
は、CH2転送カウンタ保持部172から出力されたカ
ウント値(B)が転送カウンタセレクタ174、減算転
送カウンタ175を介してカウンタ加減算部177で1
減算され(B−1)、カウント値セレクタ170を介し
て再びCH2転送カウンタ保持部13に保持されるとい
う動作を行う。
Thereafter, each DMA channel CH1 to CHN
6, the transfer count value of each channel CH1 to CHN is decremented by 1 every time the DMA transfer of each channel CH1 to CHN is performed.
For example, when the DMA transfer of the channel CH1 operates, the output of the CH1 transfer counter holding unit 171 (denoted as A) is selected by the transfer counter selector 174 by the subtraction transfer counter switching signal, and the rising edge of the subtraction transfer count value latch signal is generated. Subtraction transfer counter holding unit 175
Latched on. The output (A) of the subtraction transfer counter holding unit 175 is input to the counter addition / subtraction unit 177, and when the addition / subtraction value switching signal is at the “H” level, the counter addition / subtraction unit 177 selects −1 by the selector 177b to perform subtraction. Subtract 1 from the output (A) of the transfer counter holding unit. The counter addition / subtraction unit output (A-1) obtained by subtracting 1 is input to the count value selector 170, and the count value selector 170 selects the counter addition / subtraction unit output when the input count value switching signal is at the “H” level. The subtracted count value (A-1) is held in the CH1 transfer counter holding unit 171 again at the rising edge of the CH1 transfer count value latch signal. Similarly, in the channel CH2, the count value (B) output from the CH2 transfer counter holding unit 172 is set to 1 by the counter addition / subtraction unit 177 via the transfer counter selector 174 and the subtraction transfer counter 175.
The subtraction is performed (B-1), and the operation is performed such that the value is again held in the CH2 transfer counter holding unit 13 via the count value selector 170.

【0025】ところが、転送カウント設定値(A)でD
MA動作が開始した後に、受信の終了や原稿読み取り時
の原稿終端検出によって、あと+Dの転送を行わなけれ
ばならない事が分かった場合には、図7に示すように、
A回の転送中に、カウンタ加算値設定部176にCPU
1よりカウンタ加算設定値(D)を書き込む。このカウ
ンタ加算設定値(D)はカウンタ加算値ラッチ信号の立
上りエッジによりカウンタ加算値設定部176に設定さ
れる。カウンタ加算値設定部176に書き込みがあった
ことをカウンタ加算値ラッチ信号により認識したカウン
タ加減算部177は、次のチャネルCH1のDMA転送
時に、カウンタ加算値設定部176の出力(D)を加減
算器177aにより加算すれば、全体の転送回数として
は、A+Dのカウント値がセットされたことになり、図
8に示すような転送回数(A+D)のDMA転送を行う
ことが可能となる。
However, when the transfer count setting value (A) is set to D
When it is found that the transfer of + D must be performed after the MA operation is started and the end of the reception or the detection of the end of the original at the time of reading the original is performed, as shown in FIG.
The CPU is set in the counter addition value setting unit 176 during the transfer A times.
The counter addition setting value (D) is written from 1. This counter addition set value (D) is set in the counter addition value setting unit 176 at the rising edge of the counter addition value latch signal. The counter addition / subtraction unit 177, which has recognized that the counter addition value setting unit 176 has been written by the counter addition value latch signal, adds and subtracts the output (D) of the counter addition value setting unit 176 during the DMA transfer of the next channel CH1. If it is added by 177a, the count value of A + D is set as the total number of transfers, and it is possible to perform the DMA transfer of the number of transfers (A + D) as shown in FIG.

【0026】従って、本実施形態によれば、ファクシミ
リ装置で、副走査ライン数が分からない場合や、最大カ
ウント値以上の場合の長尺原稿読み取りや書き込みにお
いても、DMA転送をスタートさせることができ、受信
終了や読み取り時の原稿終端検出によって正確な副走査
ライン数が分かった時点で、正確な副走査ライン数をセ
ットすることが可能となる。
Therefore, according to the present embodiment, the facsimile apparatus can start the DMA transfer even when the number of sub-scanning lines is unknown or when the long original is read or written when the number of sub-scanning lines is greater than the maximum count value. It is possible to set the correct number of sub-scanning lines when the correct number of sub-scanning lines is known by the end of reception or the detection of the document end at the time of reading.

【0027】図9は、カウンタ加減算部177の第2の
実施形態(請求項2に対応)を示すブロック図である。
本実施形態では、前記実施形態に加えて、セレクタ17
7cに固定加算値が入力されている。タイミングに関し
ては、前記実施形態で示したものと同様である。ここ
で、固定加算値としては、1Kバイト分とか、B5サイ
ズ横の副走査ライン数分とか、1ブロック16ラインで
制御しているならば16ライン分といった値を、複数ビ
ットの各ビット線の接地、非接地で設定される固定値と
いう形で実現できる。
FIG. 9 is a block diagram showing a second embodiment (corresponding to claim 2) of the counter addition / subtraction unit 177.
In the present embodiment, in addition to the above-described embodiment, the selector 17
The fixed addition value is input to 7c. The timing is the same as that shown in the above embodiment. Here, as the fixed addition value, a value such as 1 Kbyte, the number of sub-scanning lines in the horizontal direction of B5 size, or 16 lines if one block is controlled by 16 lines is used for each bit line of a plurality of bits. It can be realized in the form of a fixed value set by grounding or non-grounding.

【0028】本実施形態によれば、前記実施形態の効果
に加えて、定型サイズの倍数、例えば、B5サイズ横に
セットしたが、その2倍のB4サイズ縦だった場合に
も、容易に再セットすることができる。
According to the present embodiment, in addition to the effects of the above-described embodiment, even when the size is set to a multiple of the standard size, for example, B5 size is set horizontally, even if it is twice the B4 size length, it can be easily re-set. Can be set.

【0029】図10は、カウンタ加減算部177の第2
の実施形態(請求項3に対応)を示すブロック図であ
る。本実施形態においては、図3に示したカウンタ加算
値設定部176を複数(ここでは2つ)有するととも
に、図10に示すように、カウンタ加減算部177のセ
レクタ177dに複数(ここでは第1、第2)のカウン
タ加算値設定部出力が入力されている。タイミングに関
しては、上記同様、前記第1の実施形態で示したものと
同様である。複数のカウンタ加算値設定部176の使い
方としては、主走査幅によりA4幅やB4幅やA3幅を
用意するとか、線密度の違いにより、複数使い分ける等
がある。
FIG. 10 shows a second addition / subtraction unit 177 of the counter addition / subtraction unit 177.
4 is a block diagram showing an embodiment (corresponding to claim 3) of FIG. In the present embodiment, a plurality (here, two) of the counter addition value setting units 176 shown in FIG. 3 are provided, and as shown in FIG. 10, a plurality of counter addition / subtraction units 177d (here, first, The second) counter addition value setting section output is input. Regarding the timing, similar to the above, it is the same as that shown in the first embodiment. As a method of using the plurality of counter addition value setting units 176, A4 width, B4 width, and A3 width are prepared depending on the main scanning width, and a plurality of counter addition value setting sections 176 are used depending on the difference in linear density.

【0030】本実施形態によれば、前記第1の実施形態
の効果に加えて、複数の定型サイズの倍数、例えば、A
4サイズ横やB5サイズ横にセットしたが、その2倍の
A3サイズ縦やB4サイズ縦だった場合にも、容易に再
セットすることができる。
According to this embodiment, in addition to the effects of the first embodiment, a multiple of a plurality of standard sizes, for example, A
Although it was set to 4 size horizontal or B5 size horizontal, it can be easily reset even if it is twice the A3 size vertical or B4 size vertical.

【0031】ところで、第4の実施形態(請求項4に対
応)として、図9あるいは図10のセレクタの切り替え
条件に、DMA転送動作チャネルの違いを入れることに
より、チャネル専用の加算が可能となる。
By the way, as a fourth embodiment (corresponding to claim 4), by adding the difference of the DMA transfer operation channel to the selector switching condition of FIG. 9 or 10, it becomes possible to perform channel-specific addition. .

【0032】これにより、前記第2又は第3の実施形態
の効果に加えて、読み取りチャネルや書き込みチャネ
ル、その他のチャネルで、別の加算値を設定できる。
Thus, in addition to the effect of the second or third embodiment, another addition value can be set in the read channel, the write channel, and other channels.

【0033】なお、上記各実施形態では、カウンタ加減
算部177を設けたが、減算部と加算部を別々に設けて
も良い。
Although the counter addition / subtraction unit 177 is provided in each of the above embodiments, the subtraction unit and the addition unit may be provided separately.

【0034】また、上記各実施形態においては、本発明
によるDMAコントローラをファクシミリ装置に適用し
た場合について説明したが、一般的な画像データを扱う
画像処理装置やデジタル複写機等にも適用可能である。
Further, in each of the above embodiments, the case where the DMA controller according to the present invention is applied to the facsimile apparatus has been described, but it is also applicable to an image processing apparatus which handles general image data, a digital copying machine and the like. .

【0035】[0035]

【発明の効果】以上のように、本願の請求項1記載の発
明によれば、周辺機器と記憶装置間のデータ転送をCP
Uを介さずに直接行うDMA転送を制御し、CPUから
設定された転送カウント値を転送毎に所定の固定値だけ
減算して、設定値分の転送を行うDMAコントローラに
おいて、DMA転送の途中で転送カウント値に加算する
任意の加算値を設定可能なカウンタ加算値設定手段と、
転送カウント値から転送毎に所定の固定値を減算すると
ともに、前記カウンタ加算値設定手段に設定されたカウ
ンタ加算値を加算するカウンタ加減算手段とを備えたの
で、例えば、ファクシミリ装置などで、副走査ライン数
が分からない場合や、最大カウント値以上の場合の長尺
原稿読み取りや書き込みにおいても、DMA転送をスタ
ートさせることができ、受信終了や読み取り時の原稿終
端検出によって正確な副走査ライン数が分かった時点
で、正確な副走査ライン数をセットすることが可能とな
る効果がある。
As described above, according to the invention of claim 1 of the present application, the data transfer between the peripheral device and the storage device is performed by the CP.
In a DMA controller that controls DMA transfer performed directly without U, subtracts a transfer count value set by the CPU by a predetermined fixed value for each transfer, and transfers the set value during DMA transfer. Counter addition value setting means capable of setting an arbitrary addition value to be added to the transfer count value,
Since a predetermined fixed value is subtracted from the transfer count value for each transfer and a counter addition / subtraction unit for adding the counter addition value set in the counter addition value setting unit is provided, for example, in a facsimile device or the like, sub-scanning is performed. When the number of lines is unknown, or when reading or writing a long original when the count value is greater than or equal to the maximum count value, DMA transfer can be started. There is an effect that it is possible to set the correct number of sub-scanning lines at the time when it is found.

【0036】さらに、請求項2記載の発明によれば、前
記請求項1に記載のDMAコントローラにおいて、前記
カウンタ加算値設定手段に設定された任意の加算値と予
め固定的に設定された固定加算値とを切り替えてカウン
タ加算値とする加算値切替手段を備えたので、前記請求
項1と同様な効果が得られるとともに、定型サイズの倍
数、例えば、B5サイズ横にセットしたが、その2倍の
B4サイズ縦だった場合にも、容易に再セットすること
ができる効果がある。
Further, according to the invention of claim 2, in the DMA controller according to claim 1, an arbitrary addition value set in the counter addition value setting means and a fixed addition set in advance in a fixed manner. Since the addition value switching means for switching the value and the counter addition value is provided, the same effect as that of claim 1 can be obtained, and it is set to a multiple of the standard size, for example, B5 size, but twice that. Even in the case of B4 size portrait, there is an effect that it can be easily reset.

【0037】また、請求項3記載の発明によれば、前記
請求項1に記載のDMAコントローラにおいて、前記カ
ウンタ加算値設定手段を複数備えるとともに、各カウン
タ加算値設定手段に設定された加算値を切り替えてカウ
ンタ加算値とする加算値切替手段を備えたので、請求項
1と同様な効果が得られるとともに、複数の定型サイズ
の倍数、例えば、A4サイズ横やB5サイズ横にセット
したが、その2倍のA3サイズ縦やB4サイズ縦だった
場合にも、容易に再セットすることができる効果があ
る。
According to a third aspect of the invention, in the DMA controller according to the first aspect, a plurality of the counter addition value setting means are provided and the addition values set in the respective counter addition value setting means are provided. Since the addition value switching means for switching to the counter addition value is provided, the same effect as in claim 1 can be obtained, and a plurality of standard sizes, for example, A4 size horizontal and B5 size horizontal are set. Even in the case of a double A3 size portrait or B4 size portrait, there is an effect that it can be easily reset.

【0038】一方、請求項4記載の発明によれば、前記
請求項2又は請求項3に記載のDMAコントローラにお
いて、前記加算値切替手段は、動作DMAチャネルに応
じてカウンタ加算値を切り替えるようにしたので、請求
項2又は請求項3と同様の効果が得られるとともに、読
み取りチャネルや書き込みチャネル、その他のチャネル
で、別の加算値を設定できる効果がある。
On the other hand, according to the invention of claim 4, in the DMA controller of claim 2 or 3, the addition value switching means switches the counter addition value according to the operating DMA channel. Therefore, the same effects as those of claim 2 or claim 3 can be obtained, and another addition value can be set in the read channel, the write channel, and other channels.

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

【図1】本願の各発明の実施形態におけるDMAコント
ローラが適用されるファクシミリ装置のブロック図。
FIG. 1 is a block diagram of a facsimile apparatus to which a DMA controller according to each embodiment of the present invention is applied.

【図2】上記ファクシミリ装置におけるDMAコントロ
ーラの内部構成を示すブロック図。
FIG. 2 is a block diagram showing an internal configuration of a DMA controller in the facsimile device.

【図3】上記DMAコントローラにおける転送カウント
部の実施形態を示すブロック図。
FIG. 3 is a block diagram showing an embodiment of a transfer counting unit in the DMA controller.

【図4】上記転送カウント部におけるカウンタ加減算部
の第1の実施形態を示すブロック図。
FIG. 4 is a block diagram showing a first embodiment of a counter addition / subtraction unit in the transfer counting unit.

【図5】転送カウント値の初期設定タイミングを示す
図。
FIG. 5 is a diagram showing an initial setting timing of a transfer count value.

【図6】転送カウント値を1ずつ減算するタイミングを
示す図。
FIG. 6 is a diagram showing the timing of subtracting the transfer count value by one.

【図7】転送カウント値の加算を行うタイミングを示す
図。
FIG. 7 is a diagram showing a timing at which a transfer count value is added.

【図8】上記転送カウント値の加算によって変わるDM
A転送数の説明図。
FIG. 8 is a DM that changes depending on the addition of the transfer count values.
Explanatory drawing of A transfer number.

【図9】上記転送カウント部におけるカウンタ加減算部
の第2の実施形態を示すブロック図。
FIG. 9 is a block diagram showing a second embodiment of a counter addition / subtraction unit in the transfer counting unit.

【図10】同じく、上記転送カウント部におけるカウン
タ加減算部の第3の実施形態を示すブロック図。
FIG. 10 is a block diagram showing a third embodiment of a counter addition / subtraction unit in the transfer count unit.

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

1 CPU 2 システムメモリ 3 パラメータメモリ 4 スキャナ 5 プロッタ 6 操作パネル 7 符号化復号化部 8 画像記憶装置 9 モデム 10 網制御装置 11 DMAコントローラ 12 システムバス 13 リクエストサンプリング部 14 動作チャネル決定部 15 アドレス生成部 16 コントロール信号生成部 17 転送カウント部 170 カウント値セレクタ 171〜173 CH1〜CHN転送カウンタ保持部 174 転送カウンタセレクタ 175 減算転送カウンタ保持部 176 カウンタ加算値設定部 177 カウンタ加減算部 177a 加減算器 177b〜177d セレクタ 1 CPU 2 system memory 3 parameter memory 4 scanner 5 plotter 6 operation panel 7 encoding / decoding unit 8 image storage device 9 modem 10 network control device 11 DMA controller 12 system bus 13 request sampling unit 14 operation channel determination unit 15 address generation unit 16 Control Signal Generation Unit 17 Transfer Count Unit 170 Count Value Selector 171 to 173 CH1 to CHN Transfer Counter Holding Unit 174 Transfer Counter Selector 175 Subtraction Transfer Counter Holding Unit 176 Counter Addition Value Setting Unit 177 Counter Addition / Subtraction Unit 177a Adder / Subtractor 177b to 177d Selector

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 周辺機器と記憶装置間のデータ転送を中
央処理装置を介さずに直接行うDMA転送を制御し、中
央処理装置から設定された転送カウント値を転送毎に所
定の固定値だけ減算して、設定値分の転送を行うDMA
コントローラにおいて、 DMA転送の途中で転送カウント値に加算する任意の加
算値を設定可能なカウンタ加算値設定手段と、 転送カウント値から転送毎に所定の固定値を減算すると
ともに、前記カウンタ加算値設定手段に設定されたカウ
ンタ加算値を加算するカウンタ加減算手段とを備えたこ
とを特徴とするDMAコントローラ。
1. A DMA transfer which directly transfers data between a peripheral device and a storage device without passing through a central processing unit is controlled, and a transfer count value set by the central processing unit is subtracted by a predetermined fixed value for each transfer. Then, DMA for transferring the set value
In the controller, counter addition value setting means capable of setting an arbitrary addition value to be added to the transfer count value during the DMA transfer, and subtracting a predetermined fixed value for each transfer from the transfer count value and setting the counter addition value. And a counter addition / subtraction means for adding the counter addition value set in the means.
【請求項2】 前記カウンタ加算値設定手段に設定され
た任意の加算値と予め固定的に設定された固定加算値と
を切り替えてカウンタ加算値とする加算値切替手段を備
えたことを特徴とする請求項1記載のDMAコントロー
ラ。
2. An addition value switching means for switching between an arbitrary addition value set in the counter addition value setting means and a fixed addition value fixedly set in advance to be a counter addition value. The DMA controller according to claim 1, wherein
【請求項3】 前記カウンタ加算値設定手段を複数備え
るとともに、各カウンタ加算値設定手段に設定された加
算値を切り替えてカウンタ加算値とする加算値切替手段
を備えたことを特徴とする請求項1記載のDMAコント
ローラ。
3. A plurality of counter addition value setting means, and addition value switching means for switching the addition value set in each counter addition value setting means to be a counter addition value. 1. The DMA controller according to 1.
【請求項4】 前記加算値切替手段は、動作DMAチャ
ネルに応じてカウンタ加算値を切り替えることを特徴と
する請求項2又は請求項3記載のDMAコントローラ。
4. The DMA controller according to claim 2, wherein the addition value switching means switches the counter addition value according to the operating DMA channel.
JP13416396A 1996-05-02 1996-05-02 DMA controller Expired - Lifetime JP3522047B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13416396A JP3522047B2 (en) 1996-05-02 1996-05-02 DMA controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13416396A JP3522047B2 (en) 1996-05-02 1996-05-02 DMA controller

Publications (2)

Publication Number Publication Date
JPH09297728A true JPH09297728A (en) 1997-11-18
JP3522047B2 JP3522047B2 (en) 2004-04-26

Family

ID=15121936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13416396A Expired - Lifetime JP3522047B2 (en) 1996-05-02 1996-05-02 DMA controller

Country Status (1)

Country Link
JP (1) JP3522047B2 (en)

Also Published As

Publication number Publication date
JP3522047B2 (en) 2004-04-26

Similar Documents

Publication Publication Date Title
JPH08110886A (en) Dma controller and facsimile equipment
JP3522047B2 (en) DMA controller
JPH05899B2 (en)
JP5326882B2 (en) Image processing device
JP2701152B2 (en) Control method for facsimile machine
JPH09307725A (en) Dma transfer method
JPH07298016A (en) Image forming device
JP4197097B2 (en) Image processing device
JP2693543B2 (en) Facsimile machine
JP2000059625A (en) Image processor
JPH02238771A (en) Facsimile equipment
JP2000307834A (en) Image forming device
JP2006121438A (en) Compound machine
JPH07203070A (en) Image processor
JP2005094643A (en) Image processing apparatus
JPH04265069A (en) Picture processing method
JP2000295387A (en) Communication terminal device
JPH0884229A (en) Image forming device
JPH07123227A (en) Method and device for processing picture
JP2004179692A (en) Image processor, image processing method and program for executing the method by computer
JPH04188945A (en) Facsimile equipment
JP2003072167A (en) Imaging apparatus
JP2003023511A (en) Communications equipment and control method thereof
JPH06245036A (en) Facsimile equipment
JP2004159000A (en) Color image reading and recording apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040122

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040203

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

Free format text: PAYMENT UNTIL: 20080220

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090220

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100220

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110220

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140220

Year of fee payment: 10

EXPY Cancellation because of completion of term