JPH0568745B2 - - Google Patents

Info

Publication number
JPH0568745B2
JPH0568745B2 JP60274466A JP27446685A JPH0568745B2 JP H0568745 B2 JPH0568745 B2 JP H0568745B2 JP 60274466 A JP60274466 A JP 60274466A JP 27446685 A JP27446685 A JP 27446685A JP H0568745 B2 JPH0568745 B2 JP H0568745B2
Authority
JP
Japan
Prior art keywords
dma
transfer
data
address
microprocessor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP60274466A
Other languages
Japanese (ja)
Other versions
JPS62133580A (en
Inventor
Kazuto Sato
Takao Sasaki
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP27446685A priority Critical patent/JPS62133580A/en
Publication of JPS62133580A publication Critical patent/JPS62133580A/en
Publication of JPH0568745B2 publication Critical patent/JPH0568745B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Bus Control (AREA)
  • Closed-Circuit Television Systems (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は各種センサを用いた画像処理の分野に
属し、主としてテレビジヨンカメラ(以下、テレ
ビカメラという)。による製品の外観検査の自動
化、省力化のための画像計測に利用される。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention belongs to the field of image processing using various sensors, and mainly relates to television cameras (hereinafter referred to as television cameras). It is used for image measurement to automate the appearance inspection of products and save labor.

(従来の技術) 従来から画像メモリとマイクロプロセツサ間の
データ転送方法には2種類あり、その1つがソフ
トウエア処理に重点を置いたプロセツサ・コント
ロール・メモリ・アクセス(以下、PCMAと略
称する。)であり、他の1つがハードウエア処理
により高速化が可能なダイレクト・メモリ・アク
セス(以下、DMAと略称す。)である。前者の
PCMAの場合は第2図に示すようにテレビガメ
ラの走査信号が垂直帰線期間中を示すタイミング
に同期して、マイクロプロセツサ11がROMに
格納されているプログラム手順によりバス切替信
号eを出力し、マルチプレクサ9をB側に切替え
た後画像メモリ10の任意のデータをバスゲート
21を経由してRAM13に転送を行なう。この
場合、画像処理に必要とされるデータ量が膨大に
なるためマイクロプロセツサ11の負荷率が増大
し、かつ、プログラム処理の手順によりバラツキ
があると共にデータ転送に多くの時間を要し、画
像処理のオーバーヘツドが増大する等の欠点を内
在し、後者のDMAの場合は第3図に示すように
マイクロプロセツサ11が画像メモリ内の任意の
先頭アドレスと転送語数をDMA制御部15に初
期設定し、続いてDMA制御部15に対しDMA
スタート信号lを出力してDMA転送を開始す
る。即ち、DMA転送起動後はDMA制御部15
からマイクロプロセツサ11にHLD要求信号
jが出力され、バス制御権を獲得した後画像メモ
リ10にバス切替信号eを出力し、マルチプレク
サ9をB側に切替え、画像メモリ10のデータを
指定された先頭アドレスから指定語数だけ、
DMAバスゲート23を経由してRAM13に転
送を行なう。ここで、DMA制御部15から出力
されるDMAアドレスバスmは、指定された先頭
アドレスからカウンタ式に順次変化する連続した
ものでなければならない。したがつて、従来技術
のPCMAに比べ、連続したアドレス空間におけ
るデータの高速ブロツク転送には有効で、その転
送時間は大幅に短縮される。しかし、画像処理技
術に要求される画像データの取扱いは第4図に示
すように1画面を構成する画像データの中でも必
要なウインドウ24(窓枠)内に存在するデータ
群に対しての処理がほとんどである。このことは
画像メモリのアドレス空間から見た場合、対象と
なる画像データは不連続なアドレス空間に散在す
るのが現状である。従つて、このように不連続な
アドレス空間に存在するデータの一括転送は不可
能で、アドレスが不連続に変化するごとにDMA
制御部15に対し、先頭アドレス及び転送語数の
初期設定が必要となり、ソフトウエア処理手順が
複雑になると共に転送速度が大幅に低下するとい
う欠点を内在している。
(Prior Art) Conventionally, there are two types of data transfer methods between an image memory and a microprocessor, one of which is processor-controlled memory access (hereinafter abbreviated as PCMA), which focuses on software processing. ), and the other is direct memory access (hereinafter abbreviated as DMA), which can be speeded up by hardware processing. the former
In the case of PCMA, as shown in Figure 2, the microprocessor 11 outputs the bus switching signal e according to the program procedure stored in the ROM in synchronization with the timing when the scanning signal of the television camera indicates that the vertical blanking period is in progress. After switching the multiplexer 9 to the B side, arbitrary data in the image memory 10 is transferred to the RAM 13 via the bus gate 21. In this case, since the amount of data required for image processing becomes enormous, the load factor of the microprocessor 11 increases, there are variations depending on the program processing procedure, and it takes a long time to transfer the data. In the case of the latter DMA, the microprocessor 11 initializes the DMA control unit 15 with an arbitrary starting address in the image memory and the number of words to be transferred, as shown in FIG. setting, and then send the DMA to the DMA control unit 15.
Start DMA transfer by outputting start signal l. That is, after starting DMA transfer, the DMA control unit 15
The HLD request signal j is output from the microprocessor 11 to the microprocessor 11, and after acquiring the bus control right, it outputs the bus switching signal e to the image memory 10, switches the multiplexer 9 to the B side, and specifies the data in the image memory 10. For the specified number of words from the first address,
The data is transferred to the RAM 13 via the DMA bus gate 23. Here, the DMA address bus m output from the DMA control unit 15 must be a continuous bus that changes sequentially in a counter manner starting from the designated start address. Therefore, compared to the conventional PCMA, it is effective for high-speed block transfer of data in a continuous address space, and the transfer time is significantly shortened. However, as shown in Fig. 4, the handling of image data required by image processing technology requires processing of a group of data existing within a necessary window 24 (window frame) among the image data constituting one screen. Almost. This means that, when viewed from the address space of the image memory, target image data is currently scattered in discontinuous address spaces. Therefore, it is impossible to transfer data existing in discontinuous address spaces all at once, and the DMA transfer is performed every time the address changes discontinuously.
It is necessary to initialize the start address and the number of words to be transferred in the control unit 15, which has the disadvantage that the software processing procedure becomes complicated and the transfer speed is significantly reduced.

(発明が解決しようとする問題点) 本発明は上記従来技術の欠点を解消すべく、不
連続なアドレス空間に存在する画像データを一括
して高速ブロツク転送し、かつ、マイクロプロセ
ツサの負荷率を大幅に低減するランダムアクセス
データ転送方法を提供しようとするものである。
(Problems to be Solved by the Invention) In order to solve the above-mentioned drawbacks of the prior art, the present invention performs high-speed block transfer of image data existing in discontinuous address spaces at once, and improves the load ratio of the microprocessor. The aim is to provide a random access data transfer method that significantly reduces the

(問題点を解決するための手段) 本発明はマイクロプロセツサ側からのアクセス
とDMA転送時におけるDMA制御部からのアク
セスを切替えるマルチプレクサと、ランダムな順
に並んだアドレスをマイクロプロセツサから任意
に設定可能なアドレスバツフアメモリ及びテレビ
カメラの走査信号とDMA制御部のコントロール
信号間の同期及び順次制御を行なうタイミング補
正部を設けることにより、DMA制御部からのカ
ウンタ式の連続した転送アドレスによつてこのア
ドレスバツフアメモリをアクセスし、生成された
ランダム転送アドレスを画像メモリ側へ送出しな
がら、不連続に存在する画像データ群を一括して
高速ブロツク転送して成るものである。
(Means for Solving the Problems) The present invention provides a multiplexer that switches access from the microprocessor side and access from the DMA control unit during DMA transfer, and a microprocessor that arbitrarily sets addresses arranged in a random order. By providing a possible address buffer memory and a timing correction unit that performs synchronization and sequential control between the scanning signal of the television camera and the control signal of the DMA control unit, it is possible to transfer This address buffer memory is accessed and a generated random transfer address is sent to the image memory side, while discontinuously existing image data groups are collectively transferred at high speed.

(作用) 本発明によれば画像処理に必要とされる画像デ
ータ群のアドレス指定は、マイクロプロセツサに
より任意に設定できる。また、不連続なアドレス
空間に存在する画像データ群をマイクロプロセツ
サから1回DMA制御部へ先頭アドレスと転送語
数を初期設定するだけで、ハードウエアにも一括
して高速ブロツク転送ができる。更に、画像処理
に必要とされるデータ群がテレビカメラの走査と
は独立して制御できる。
(Function) According to the present invention, addressing of an image data group required for image processing can be arbitrarily set by a microprocessor. In addition, by simply initializing the start address and number of transfer words from the microprocessor to the DMA control unit once for a group of image data existing in a discontinuous address space, high-speed block transfer can be performed all at once to the hardware. Furthermore, the data set required for image processing can be controlled independently of the television camera scan.

(実施例) 本発明を実施例により詳細に説明すると、第1
図に示すように該実施例は従来技術のDMAによ
るデータ転送に加えて任意の不連続なアドレスを
生成するアドレスバツフアメモリ18と、このア
ドレスバツフアメモリ18にマイクロプロセツサ
11から任意順序のランダムアドレスを設定する
ためのバスゲート21、DMA転送時における
DMA制御部15からのカウンタ式アクセスとマ
イクロプロセツサ11からのアクセスを切替える
マルチプレクサ17及びテレビカメラの走査信号
とDMA制御部15のコントロール信号間の同期
と順次制御を行なうタイミング補正部19を構成
して成るものである。
(Example) To explain the present invention in detail using an example, the first
As shown in the figure, this embodiment includes an address buffer memory 18 that generates arbitrary discontinuous addresses in addition to data transfer using the prior art DMA, and an address buffer memory 18 that generates arbitrary discontinuous addresses from a microprocessor 11. Bus gate 21 for setting random addresses, during DMA transfer
It constitutes a multiplexer 17 that switches between counter-type access from the DMA control section 15 and access from the microprocessor 11, and a timing correction section 19 that performs synchronization and sequential control between the scanning signal of the television camera and the control signal of the DMA control section 15. It consists of

以下、ランダムアクセスデータ転送方法におけ
るリード動作において詳述すると、最初にマルチ
プレクサ17をB側(マイクロプロセツサ側バ
ス)に切替え、転送したい画像メモリ10のデー
タ群に対応するランダムアドレスを転送語数に相
当する数だけ順に並べて、バスゲート21を経由
してマイクロプロセツサ11からアドレスバツフ
アメモリ18に設定する。次に、DMA制御部1
5に対し先頭アドレスと転送語数を初期設定す
る。ここで、転送先に当るRAM13上の格納場
所は固定する。その後、マイクロプロセツサ11
よりDMA制御部15に対しDMAスタート信号
lが出力され、DMA制御部15はマイクロプロ
セツサ11にHLD要求信号jを出力し、バス
許可信号kを受けた後マルチプレクサ17をA側
(DMA制御部側バス)に切替え、DMAによる高
速ブロツク転送が開始される。ランダムアドレス
の生成はDMA制御部15より出力されるカウン
タ式の連続アドレスによりアドレスバツフアメモ
リ18がアクセスされ、このカウンタ式アドレス
に同期して先に設定されたランダム転送アドレス
がバツフアゲート22を介して画像メモリ10へ
出力される。また、同時に画像メモリ10上の上
記ランダム転送アドレスによりアクセスされた画
像データが、DMAバスゲート23を経由してマ
イクロプロセツサ側のRAM13の指定されたア
ドレス空間上に格納される。また、この時DMA
制御部15より出力される各種制御信号は、タイ
ミング補正部19によりテレビカメラの走査信号
の垂直帰線期間に同期して画像メモリ10及び
RAM13に出力される。
The read operation in the random access data transfer method will be explained in detail below. First, the multiplexer 17 is switched to the B side (microprocessor side bus), and the random address corresponding to the data group of the image memory 10 to be transferred is set to the number of words to be transferred. They are arranged in the number shown in the table and set in the address buffer memory 18 from the microprocessor 11 via the bus gate 21. Next, DMA control unit 1
5, initialize the start address and number of transferred words. Here, the storage location on the RAM 13 corresponding to the transfer destination is fixed. After that, the microprocessor 11
A DMA start signal l is output to the DMA control unit 15, and the DMA control unit 15 outputs an HLD request signal j to the microprocessor 11, and after receiving the bus permission signal k, switches the multiplexer 17 to the A side (DMA control unit side bus), and high-speed block transfer using DMA is started. To generate a random address, the address buffer memory 18 is accessed by a counter-type continuous address output from the DMA control unit 15, and in synchronization with this counter-type address, the previously set random transfer address is transferred via the buffer gate 22. The image is output to the image memory 10. At the same time, the image data accessed by the random transfer address on the image memory 10 is stored in the designated address space of the RAM 13 on the microprocessor side via the DMA bus gate 23. Also, at this time DMA
Various control signals output from the control section 15 are sent to the image memory 10 and the timing correction section 19 in synchronization with the vertical blanking period of the scanning signal of the television camera.
Output to RAM13.

以上のようにして、画像メモリ上の不連続なア
ドレス空間に存在するデータ群に対し一括して高
速DMA転送が実施され、マイクロプロセツサ1
1にはデータ転送のための特別な負荷はかからな
い。
As described above, high-speed DMA transfer is performed all at once for data groups existing in discontinuous address spaces on the image memory, and the microprocessor 1
1 is not subject to any special load for data transfer.

(発明の効果) 以上のように本発明によれば画像メモリ上の不
連続なアドレス空間に存在するデータ群を、1回
の初期設定と転送起動により一括ブロツク転送が
できることによりアイクロプロセツサの負荷率を
低減し、且つマイクロプロセツサのソフトウエア
処理手順の簡略化が図れると共に、データ転送時
間の大幅な短縮が実現できる。
(Effects of the Invention) As described above, according to the present invention, data groups existing in discontinuous address spaces on the image memory can be transferred as a block by a single initial setting and transfer start, thereby reducing the load on the microprocessor. In addition, the software processing procedure of the microprocessor can be simplified, and the data transfer time can be significantly shortened.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係るランダムアクセスデータ
転送方法を施したデータ転送の回路図、第2図は
従来のPCMAによるデータ転送の回路図、第3
図は従来のDMAによるデータ転送の回路図、第
4図はCRT画面と画像メモリの対応関係図であ
る。 図中、1は同期分離、2は映像分離、3はA/
D変換器、4はデータレジスタ、5はバツフアゲ
ート、6はアドレス発生カウンタ、7はデコー
ダ、8はマルチプレクサ、9はマルチプレクサ、
10は画像メモリ、11はマイクロプロセツサ、
12はROM、13はRAM、14はI/Oドラ
イバ、15はDMA制御部、16はアドレスラツ
チレジスタ、17はマルチプレクサ、18はアド
レスバツフアメモリ、19はタイミング補正部、
20はデコーダ、21はバスゲート、22はバツ
フアゲート、23はDMAバスゲート、24はウ
インドウ。aは水平同期信号、bは垂直同期信
号、cは基本クロツク、dはサンプリングクロツ
ク、eはバス切替信号、fはバスゲート信号、g
はMPUアドレス、hはMPUコントロールバス、
iはMPUデータバス、jはHLD要求信号、k
はバス許可信号、lはDMAスタート信号、mは
DMAアドレスバス、nはランダムアドレス&デ
ータバス、oはDMAバスゲート信号、P,Qは
画素の個数。
Fig. 1 is a circuit diagram of data transfer using the random access data transfer method according to the present invention, Fig. 2 is a circuit diagram of data transfer using conventional PCMA, and Fig. 3 is a circuit diagram of data transfer using the conventional PCMA method.
The figure is a circuit diagram of data transfer using conventional DMA, and FIG. 4 is a diagram showing the correspondence between a CRT screen and an image memory. In the figure, 1 is synchronization separation, 2 is video separation, and 3 is A/
D converter, 4 is a data register, 5 is a buffer gate, 6 is an address generation counter, 7 is a decoder, 8 is a multiplexer, 9 is a multiplexer,
10 is an image memory, 11 is a microprocessor,
12 is a ROM, 13 is a RAM, 14 is an I/O driver, 15 is a DMA control section, 16 is an address latch register, 17 is a multiplexer, 18 is an address buffer memory, 19 is a timing correction section,
20 is a decoder, 21 is a bus gate, 22 is a buffer gate, 23 is a DMA bus gate, and 24 is a window. a is a horizontal synchronization signal, b is a vertical synchronization signal, c is a basic clock, d is a sampling clock, e is a bus switching signal, f is a bus gate signal, g
is the MPU address, h is the MPU control bus,
i is MPU data bus, j is HLD request signal, k
is the bus permission signal, l is the DMA start signal, m is the bus permission signal, and m is the DMA start signal.
DMA address bus, n is random address & data bus, o is DMA bus gate signal, P, Q are the number of pixels.

Claims (1)

【特許請求の範囲】[Claims] 1 テレビジヨンカメラからの画像データを格納
する画像メモリとそのデータを基に種々の画像計
測を行なうマイクロプロセツサとの間で、任意に
存在する複数データを一括転送する方法におい
て、マイクロプロセツサ側からバツフアメモリへ
のアクセスとDMA転送時におけるDMA制御部
からバツフアメモリへのアクセスとを切替えるマ
ルチプレクサと、ランダムな順に並んだアトレス
をマイクロプロセツサから任意に設定可能なアド
レスバツフアメモリ及びテレビカメラの走査信号
とDMA制御部のコントロール信号間の同期及び
順次制御を行なうタイミング補正部を設けること
により、DMA制御部からのカウンタ式の連続し
た転送アドレスによつてこのアドレスバツフアメ
モリをアクセスし、生成されたランダム転送アド
レスを画像メモリ側へ送出しながら、不連続に存
在する画像データ群を一括して高速ブロツク転送
して成るランダムアクセスデータ転送方法。
1 In a method of collectively transferring multiple pieces of arbitrary data between an image memory that stores image data from a television camera and a microprocessor that performs various image measurements based on that data, the microprocessor side A multiplexer that switches between access to the buffer memory and access from the DMA control unit to the buffer memory during DMA transfer, an address buffer memory that allows the microprocessor to arbitrarily set addresses arranged in random order, and a scanning signal for the television camera. By providing a timing correction unit that performs synchronization and sequential control between the control signals of the DMA control unit and the DMA control unit, this address buffer memory is accessed by counter-type continuous transfer addresses from the DMA control unit, and the generated A random access data transfer method in which a group of discontinuous image data is collectively transferred at high speed while sending a random transfer address to the image memory side.
JP27446685A 1985-12-05 1985-12-05 Transferring method for random access data Granted JPS62133580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27446685A JPS62133580A (en) 1985-12-05 1985-12-05 Transferring method for random access data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27446685A JPS62133580A (en) 1985-12-05 1985-12-05 Transferring method for random access data

Publications (2)

Publication Number Publication Date
JPS62133580A JPS62133580A (en) 1987-06-16
JPH0568745B2 true JPH0568745B2 (en) 1993-09-29

Family

ID=17542077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27446685A Granted JPS62133580A (en) 1985-12-05 1985-12-05 Transferring method for random access data

Country Status (1)

Country Link
JP (1) JPS62133580A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5967585A (en) * 1982-10-08 1984-04-17 松下電器産業株式会社 Display controller
JPS60126859A (en) * 1983-12-14 1985-07-06 Hitachi Ltd Semiconductor device
JPS60136828A (en) * 1983-12-26 1985-07-20 Mitsubishi Electric Corp Signal processor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60126859U (en) * 1984-01-31 1985-08-26 横河電機株式会社 Image processing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5967585A (en) * 1982-10-08 1984-04-17 松下電器産業株式会社 Display controller
JPS60126859A (en) * 1983-12-14 1985-07-06 Hitachi Ltd Semiconductor device
JPS60136828A (en) * 1983-12-26 1985-07-20 Mitsubishi Electric Corp Signal processor

Also Published As

Publication number Publication date
JPS62133580A (en) 1987-06-16

Similar Documents

Publication Publication Date Title
US4475161A (en) YIQ Computer graphics system
US4668985A (en) Video signal processing apparatus
JP2008506295A (en) Method and system for displaying a series of image frames
GB2137857A (en) Computer Graphics System
EP0466331A2 (en) Motion image difference detecting apparatus
GB2073997A (en) Computer graphics system
JPH0568745B2 (en)
GB2073995A (en) Computer graphic system
JPH05100647A (en) Picture display device
JPS6194479A (en) Display device
JP3382195B2 (en) Image processing device
EP0514926B1 (en) A moving image processor
AU3063792A (en) Method and apparatus for updating a clut during horizontal blanking
JPS63274279A (en) Moving picture processor
SU1536368A1 (en) Information input device
JPH0713507A (en) Image processing device
JP3380706B2 (en) Signal processing device
JP3283281B2 (en) Image input / output device
JPH059832B2 (en)
JPS63671A (en) Image processor
JPS6180468A (en) Image measuring device
JPS61186993A (en) Frame memory
JPH04185087A (en) Scanning line conversion control system
JPS59135982A (en) Video signal processing system
JPH01235487A (en) Picture processing device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees