JP2006023829A - Data fetching device and data fetching method - Google Patents
Data fetching device and data fetching method Download PDFInfo
- Publication number
- JP2006023829A JP2006023829A JP2004199386A JP2004199386A JP2006023829A JP 2006023829 A JP2006023829 A JP 2006023829A JP 2004199386 A JP2004199386 A JP 2004199386A JP 2004199386 A JP2004199386 A JP 2004199386A JP 2006023829 A JP2006023829 A JP 2006023829A
- Authority
- JP
- Japan
- Prior art keywords
- data
- fifo memory
- supplied
- cpu
- state changes
- 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
Links
Images
Landscapes
- Information Transfer Systems (AREA)
- Studio Devices (AREA)
Abstract
Description
この発明は、FIFOメモリのデータをCPUに取込むデータ取込装置とデータ取込方法に関する。 The present invention relates to a data capturing device and a data capturing method for capturing data in a FIFO memory into a CPU.
従来、FIFO(ファースト イン ファースト アウト)メモリのデータをCPUに取り込むデータ取込装置において、CPUはFIFOメモリからの制御信号により状態監視を行っている。この制御信号としては、満杯(FULL)、空(EMPTY)、半分(HALF FULL)が有り、それぞれ別々の信号線によりFIFOメモリとCPUとが直接接続されるようになっている。 2. Description of the Related Art Conventionally, in a data fetching device that fetches data from a FIFO (First In First Out) memory into a CPU, the CPU monitors the state by a control signal from the FIFO memory. These control signals include full (FULL), empty (EMPTY), and half (HALF FULL), and the FIFO memory and the CPU are directly connected to each other by separate signal lines.
また、FIFOメモリのデータをCPUに取り込む際に、高速転送のために、DMA転送がよく使用されるが、固定サイズ転送となる。(特許文献1)
したがって、FIFOメモリ状態監視に複数の制御信号線をCPUに接続が必要となるため、CPUによってはI/O数の制限、割込み数の制限があるため問題となる。
Also, when fetching data from the FIFO memory into the CPU, DMA transfer is often used for high-speed transfer, but it is fixed size transfer. (Patent Document 1)
Therefore, since it is necessary to connect a plurality of control signal lines to the CPU for monitoring the FIFO memory state, there is a problem because there are restrictions on the number of I / O and the number of interrupts depending on the CPU.
DMA転送は固定長となると、可変長のデータ取得には足りないところにダミーデータで埋めるなどの工夫が必要となり、非効率となる。
この発明は、FIFOメモリからCPUへのデータの転送時、FIFOメモリとレジスタを切り替えることで、制御信号線の削減、処理の効率化を図ることができる。 According to the present invention, when the data is transferred from the FIFO memory to the CPU, the control signal line can be reduced and the processing efficiency can be improved by switching the FIFO memory and the register.
この発明のデータ取込装置は、FIFOメモリのデータを複数ビットのデータバスを介してCPUに取込むものにおいて、上記FIFOメモリの種々の状態変化を示す情報を記憶するレジスタと、上記FIFOメモリの種々の状態変化が発生した際に、上記CPUに割込信号を供給するとともに、上記レジスタの記憶内容を上記データバスを介して上記CPUに供給する供給手段と、この供給手段により供給される割込信号とデータバスを介して供給される上記FIFOメモリの種々の状態変化を示す情報とに基づいて、上記FIFOメモリの種々の状態変化を判断する判断手段と、この判断手段により判断した上記FIFOメモリの種々の状態変化に基づいて、上記FIFOメモリからデータバスを介して供給されるデータを上記CPUへ取込む取込手段とを有する。 The data fetching apparatus according to the present invention fetches data from a FIFO memory into a CPU via a multi-bit data bus. A register for storing information indicating various state changes of the FIFO memory; When various state changes occur, the CPU supplies an interrupt signal to the CPU, supplies the stored contents of the register to the CPU via the data bus, and an interrupt supplied by the supply means. A determination means for determining various state changes of the FIFO memory based on the data signal and information indicating various state changes of the FIFO memory supplied via the data bus, and the FIFO determined by the determination means Data supplied from the FIFO memory via the data bus to the CPU based on various state changes of the memory And a writing capturing means.
この発明のデータ取込装置は、FIFOメモリからのデータあるいはコマンドを複数ビットのデータバスを介してCPUに取込むものにおいて、外部機器から供給される、データ種別とデータ長とデータ列により構成されるデータ、あるいはデータ種別とデータ長とコマンド列により構成されるコマンドを受入れる受入手段と、この受入手段により受入れたデータ列あるいはコマンド列をFIFOメモリに順次記憶し、FIFOメモリから先に入力されたデータあるいはコマンドから順に出力するとともに、種々の状態変化を示す信号を出力する出力手段と、この出力手段による種々の状態変化を示す信号によりその情報を記憶するとともに、上記受入手段により受入れたデータ種別とデータ長とを記憶するレジスタと、外部機器から供給されるデータ又はコマンドの供給状態を表す信号が供給された際、又は上記FIFOメモリの種々の状態変化が発生した際に、上記CPUに割込信号を供給するとともに、上記レジスタの記憶内容を上記データバスを介して供給する供給手段と、この供給手段により供給される割込信号とデータバスを介して供給される上記レジスタの記憶内容とに基づいて、上記FIFOメモリの種々の状態変化を判断する判断手段と、この判断手段により判断した上記FIFOメモリの種々の状態変化に基づいて、上記FIFOメモリからデータバスを介して供給されるデータあるいはコマンドを上記CPUへ取込む取込手段と、この取込手段により上記CPUへ取り込んだデータあるいはコマンドを上記供給手段により供給されるデータ種別とデータ長に基づいてメモリに記憶する記憶手段とを有する。 The data capturing device of the present invention is configured by data type, data length, and data string supplied from an external device when data or commands from a FIFO memory are captured by a CPU via a multi-bit data bus. Or a receiving means for receiving a command composed of data type, data type, data length, and command string, and a data string or a command string accepted by the receiving means are sequentially stored in the FIFO memory, and input from the FIFO memory first. Output means for outputting data or commands in order, and outputting signals indicating various state changes, and storing the information by signals indicating various state changes by the output means, and the data type received by the receiving means And a register that stores the data length, and supplied from an external device When a signal indicating the data or command supply status is supplied, or when various status changes of the FIFO memory occur, an interrupt signal is supplied to the CPU, and the stored contents of the register are changed to the data Based on the supply means supplied via the bus, the interrupt signal supplied by the supply means, and the stored contents of the register supplied via the data bus, various state changes of the FIFO memory are determined. Based on various state changes of the FIFO memory determined by the determination means, a determination means for acquiring data or commands supplied from the FIFO memory via the data bus to the CPU, and the acquisition The data or command fetched into the CPU by the fetching means is changed to the data type and data length supplied by the feeding means. And a storage means for storing in memory Zui.
この発明は、FIFOメモリからのデータをデータバスを介してCPUに取込むものにおいて、FIFOメモリとCPU間の制御信号線を削減でき、処理の効率化を図ることができる。 According to the present invention, when the data from the FIFO memory is taken into the CPU via the data bus, the control signal line between the FIFO memory and the CPU can be reduced, and the processing efficiency can be improved.
以下、この発明の一実施形態について図面を参照して説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
図1は、この発明のデータ取込装置とその周辺回路構成を示すブロック図である。 FIG. 1 is a block diagram showing a data fetching apparatus and its peripheral circuit configuration according to the present invention.
すなわち、CCDセンサにより構成される撮像部1は読取りデータとしての画素単位のアナログデータをA/D変換器2に供給する。A/D変換器2は供給されるアナログデータをデジタルのシリアルデータに変換し、後述するFIFOメモリを有するデータ取込装置3に供給する。
That is, the imaging unit 1 configured by a CCD sensor supplies analog data in pixel units as read data to the A /
データ取込装置3は供給されるデジタルのシリアルデータを取り込みCPU4に転送する。また、A/D変換器2の出力によりセンサ異常を監視するCPU5が設けられている。
The
これにより、CPU4には、撮像部1による撮像内容が供給されるようになっている。
As a result, the
上記データ取込装置3は、図2に示すように、FIFOメモリ101、レジスタ102、オア回路103、セレクタ104、バッファ105、106によって構成されている。
As shown in FIG. 2, the
上記、FIFO(ファースト イン ファースト アウト)メモリ101は、先入れ先出し方式により、先に記憶したものから順に出力するものである。
The FIFO (first-in first-out)
次に、上記のような構成において、図3に示すフローチャートを参照しつつ、データの取込み動作を説明する。 Next, in the configuration as described above, the data fetching operation will be described with reference to the flowchart shown in FIG.
たとえば今、上記A/D変換器2からのシリアルデータがFIFOメモリ101のデータ入力端DIに供給されている。
For example, now serial data from the A /
これにより、FIFOメモリ101は供給されるデータを順次記憶し、HF(half full)状態となった際、HF状態信号を出力する。このHF状態信号はレジスタ102に供給されるとともに、オア回路103を介して割込み信号としてセレクタ104とCPU4のINT端子に供給される(ST201)。セレクタ104はこの割込み信号が供給された際に、バッファ105にイネーブル信号を出力する。この結果、レジスタ102に記憶されているHF状態信号(HF状態を示す情報)がバッファ105を介してCPU4のDB端子に供給される(ST202)。
As a result, the
この際、上記CPU4はINT端子への割込み信号により、DB端子に供給されているレジスタ102の情報としてのHF状態信号(HF状態を示す情報)を1度だけ読込む(ST203)。
At this time, the
上記CPU4はこの読み込みが終了した際、OE端子からのリード信号がセレクタ104に供給されるとともに、FIFOメモリ101のOE端子に供給される。セレクタ104はこのリード信号が供給された際に(セレクタ104がCPUリード有りを確認)(ST204)、バッファ106にイネーブル信号を出力する。この結果、セレクタ104がデータバスをFIFOメモリ101側に切り替え、FIFOメモリ101のデータ出力端DOからのデータがバッファ106を介してCPU4のDB端子に供給される(ST205)。
When the reading is completed, the
つまり、セレクタ104はリード(OE)信号を監視し、CPU4がレジスタ102を読み込んだことを確認すると(ST204)、FIFOメモリ101へデータバスを切り替える(ST205)。
That is, the
上記CPU4は、レジスタ102の情報としてHF状態を示す情報によりHF信号が発生したことを確認し(ST206)、OE端子に供給されるデータの取込みを開始する(ST209、ST211)。
The
また、CPU4は、上記ステップ206のレジスタ情報としてフル(full)状態を示す情報を確認した際に、OE端子に供給されるデータの取込みを開始する(ST209、ST211)。
Further, when the
また、CPU4は、上記ステップ206のレジスタ情報としてエンプティ(空)を確認した際に、データの取込を停止する(ST207、ST210)。
Further, when the
また、CPU4は、上記ステップ206のレジスタ情報として停止信号を確認した際に、データの取込を停止する(ST208、ST210)。
Further, when the
また、CPU4は、上記ステップ206のレジスタ情報として何も確認されなかった際に、割込み条件なしのエラーとなる(ST207からST209、ST212)。
Further, when nothing is confirmed as the register information in step 206, the
次に、この発明をDMA転送へ応用した際の実施形態について説明する。 Next, an embodiment when the present invention is applied to DMA transfer will be described.
すなわち、A/D変換器2からデータ取込装置3に対して、データ長とデータ種別とデータ(コマンド)からなる電文を用いて処理が行われるようになっている。
In other words, processing is performed from the A /
上記電文としては、CCDセンサ1からの読取りデータが記述されている場合と、CPU5により異常が判断された際に、異常を示すコマンドが記述されている場合と、CPU5により停止が判断された際に、停止を示すコマンドが記述されている場合とがある。
As the above-mentioned message, when reading data from the CCD sensor 1 is described, when an abnormality is described by the
上記電文がデータの場合、図4に示すように、スタートコードSTX、データ長N、データ種別DATA、データ0、1、…、エンドコードETXにより構成されている。 When the message is data, as shown in FIG. 4, it is composed of a start code STX, a data length N, a data type DATA, data 0, 1,..., An end code ETX.
上記電文がコマンド(停止あるいは異常情報)の場合、図5に示すように、スタートコードSTX、データ長N、データ種別COM、コマンド0、1、…、エンドコードETXにより構成されている。 When the message is a command (stop or abnormality information), as shown in FIG. 5, it is composed of a start code STX, a data length N, a data type COM, commands 0, 1,.
また、CPU4には、図6に示すように、コマンド領域とデータ領域とを有するDMA用のメモリ6が接続されている。
Also, as shown in FIG. 6, a
さらに、上記データ取込装置3は、図6に示すように、A/D変換器2からの電文を受付け、この電文を解析してデータ種別とデータ長を上記レジスタ102に出力し、データあるいはコマンドをFIFOメモリ101に出力する入力部107が設けられている。
Further, as shown in FIG. 6, the
また、外部から供給される停止信号によりデータの取込、DMA転送を停止するようにしても良い。この場合、停止信号は図6に示すように、レジスタ102、オア回路103に供給されている。
In addition, data capture and DMA transfer may be stopped by a stop signal supplied from the outside. In this case, the stop signal is supplied to the
次に、上記のような構成において、図7に示すフローチャートを参照しつつ、データの取り込み動作を説明する。 Next, with reference to the flowchart shown in FIG. 7 in the configuration as described above, the data fetching operation will be described.
たとえば今、上記A/D変換器2から図4に示すような、電文が入力部107に供給される。入力部107は電文を解析し、スタートコードSTXに続く、データ長N、データ種別DATAがレジスタ102に弁別し、データ種別に続く、データ0、1、…、をエンドコードETXが判断されるまでFIFOメモリ101のデータ入力端DIに供給される。
For example, a message as shown in FIG. 4 is supplied from the A /
これにより、FIFOメモリ101は供給されるデータを順次記憶し、HF(half full)状態となった際、HF状態信号を出力する。このHF状態信号はレジスタ102に供給されるとともに、オア回路103を介して割込み信号としてセレクタ104とCPU4のINT端子に供給される(ST301)。セレクタ104はこの割込み信号が供給された際に、バッファ105にイネーブル信号を出力する。この結果、レジスタ102に記憶されているHF状態信号とデータ種別とデータ長がバッファ105を介してCPU4のDB端子に供給される(ST302)。
As a result, the
この際、上記CPU4はINT端子への割込み信号により、DB端子に供給されているレジスタ102の情報としてのHF状態信号とデータ種別とデータ長を1度だけ読込む(ST303)。
At this time, the
上記CPU4はこの読み込みが終了した際、OE端子からのリード信号がセレクタ104に供給されるとともに、FIFOメモリ101のOE端子に供給される。セレクタ104はこのリード信号が供給された際に(セレクタ104がCPUリード有りを確認)(ST304)、バッファ106にイネーブル信号を出力する。この結果、セレクタ104がデータバスをFIFOメモリ101側に切り替え、FIFOメモリ101のデータ出力端DOからのデータがバッファ106を介してCPU4のDB端子に供給される(ST305)。
When the reading is completed, the
つまり、セレクタ104はリード(OE)信号を監視し、CPU4がレジスタ102を読み込んだことを確認すると(ST304)、FIFOメモリ101へデータバスを切り替える(ST305)。
That is, the
上記CPU4は、レジスタ102の情報としてHF状態信号とデータ種別とデータ長を確認し(ST306)、OE端子に供給されるデータの取込みを開始し、取込んだデータをデータ種別によりセットされているDMA転送先に転送し、データ長によりセットされているDMA転送量分のデータを転送する(ST309〜ST312)。
The
また、CPU4は、上記ステップ306のレジスタ情報としてフル(full)状態を示す情報を確認した際に、OE端子に供給されるデータの取込みとDMA転送を開始する(ST309〜ST312)。
Further, when the
また、CPU4は、上記ステップ306のレジスタ情報としてエンプティ(空)を確認した際に、DMAを停止する(ST307、ST313)。
Further, when the
また、CPU4は、上記ステップ306のレジスタ情報として停止信号を確認した際に、DMAを停止する(ST308、ST313)。
Further, when the
また、CPU4は、上記ステップ306のレジスタ情報として何も確認されなかった際に、割込み条件なしのエラーとなる(ST307からST309、ST314)。
Further, when nothing is confirmed as the register information in step 306, the
これにより、レジスタ情報に、データ種別や、データ長、などを入れることでDMA転送を効率的に行える。 Thus, DMA transfer can be efficiently performed by putting the data type, data length, and the like in the register information.
また、CPU4はレジスタ情報にあるデータ種別から、たとえば、データがコマンドか、データかといった情報から、外部メモリ6の書き込み先を切り替え、メモリ配置を分けることができる。また、CPU4はデータ長情報によりDMAの転送量を決定し、データ長にあった転送が行える。
Further, the
また、外部から強制的に転送を停止したい場合などに使う、DMA転送を停止する情報なども付加することができる。上記したコマンド電文内のCMDとして停止コマンドが記述されることによって、このCMD(停止コマンド)がCPU4により解析された際、DMA転送を停止する。
Also, information for stopping DMA transfer, which is used when the transfer is forcibly stopped from outside, can be added. By describing the stop command as the CMD in the command message, the DMA transfer is stopped when the CMD (stop command) is analyzed by the
上記したように、割込み信号を使用して、データバスをFIFOメモリからレジスタへの切り替え、CPUがレジスタを読んだことを確認後FIFOメモリにもどし、CPUへ制御情報を伝える。 As described above, the interrupt signal is used to switch the data bus from the FIFO memory to the register, and after confirming that the CPU has read the register, the CPU returns to the FIFO memory to transmit control information to the CPU.
また、レジスタ情報にデータ長、データ種別などをあたえることで、DMA転送を制御し、効率的に行う。 Also, by providing the register information with the data length, data type, etc., DMA transfer is controlled and performed efficiently.
これにより、FIFOメモリとCPU間の制御信号線を削減できる。 Thereby, the control signal line between the FIFO memory and the CPU can be reduced.
また、DMA転送に応用した際、高速かつ効率的にデータを取得できる。 In addition, when applied to DMA transfer, data can be acquired quickly and efficiently.
さらに、データの転送先をデータの違いにより変更でき、メモリ管理が容易になる。 Furthermore, the data transfer destination can be changed depending on the data, and the memory management becomes easy.
次に、上記発明を利用した実施形態の一例について、図8に示す構成例を用いて説明する。 Next, an example of an embodiment using the above invention will be described with reference to a configuration example shown in FIG.
この場合、紙葉類Pを撮像することによる撮像内容に基づいて得られる2値化画像に対する画像処理により紙葉類の最端点を検出するものである。 In this case, the extreme end point of the paper sheet is detected by image processing on the binarized image obtained based on the imaging content obtained by imaging the paper sheet P.
たとえば、図1に示す、A/D変換器2とデータ取込装置3との間に、図8に示すように、データ受信部201、データ圧縮部202、選択部203、データ保存部204が設けられている構成となっている。
For example, as shown in FIG. 8, a
データ受信部201は、A/D変換器2から供給されるデジタルのシリアルデータを取り込み、データ圧縮部202、選択部203、データ保存部204に供給する。データ圧縮部202は、供給されるデータを圧縮して選択部203に供給する。選択部203は、データ受信部201からのデータあるいはデータ圧縮部202からのデータを選択的にデータ取込装置7に供給する。データ保存部204は、データ受信部201から供給されるデータを保存するものである。
The
これにより、CPU8には、撮像部1による撮像内容がそのままと圧縮されたものが供給され、この撮像内容に基づいて得られる2値化画像に対する画像処理によりCPU8は紙葉類の最端点を検出するようになっている。 As a result, the CPU 8 is supplied with the compressed image captured by the image capturing unit 1 as it is, and the CPU 8 detects the extreme end of the paper sheet by image processing on the binarized image obtained based on the captured image. It is supposed to be.
1…撮像部 2…A/D変換器 3…データ取込装置 4、5…CPU 101…FIFOメモリ 102…レジスタ 104…セレクタ 105、106…バッファ
DESCRIPTION OF SYMBOLS 1 ...
Claims (5)
上記FIFOメモリの種々の状態変化を示す情報を記憶するレジスタと、
上記FIFOメモリの種々の状態変化が発生した際に、上記CPUに割込信号を供給するとともに、上記レジスタの記憶内容を上記データバスを介して上記CPUに供給する供給手段と、
この供給手段により供給される割込信号とデータバスを介して供給される上記FIFOメモリの種々の状態変化を示す情報とに基づいて、上記FIFOメモリの種々の状態変化を判断する判断手段と、
この判断手段により判断した上記FIFOメモリの種々の状態変化に基づいて、上記FIFOメモリからデータバスを介して供給されるデータを上記CPUへ取込む取込手段と、
を具備したことを特徴とするデータ取込装置。 In a data capturing device that captures data in a FIFO memory into a CPU via a multi-bit data bus,
A register for storing information indicating various state changes of the FIFO memory;
Supply means for supplying an interrupt signal to the CPU when various state changes of the FIFO memory occur, and supplying the stored contents of the register to the CPU via the data bus;
Determining means for determining various state changes of the FIFO memory based on an interrupt signal supplied by the supplying means and information indicating various state changes of the FIFO memory supplied via a data bus;
Fetching means for fetching data supplied from the FIFO memory via the data bus to the CPU based on various state changes of the FIFO memory judged by the judging means;
A data capture device comprising:
上記FIFOメモリの種々の状態変化を示す情報をレジスタに記憶し、
上記FIFOメモリの種々の状態変化が発生した際に、上記CPUに割込信号を供給するとともに、上記レジスタの記憶内容を上記データバスを介して上記CPUに供給し、
この供給される割込信号とデータバスを介して供給される上記FIFOメモリの種々の状態変化を示す情報とに基づいて、上記FIFOメモリの種々の状態変化を判断し、
この判断した上記FIFOメモリの種々の状態変化に基づいて、上記FIFOメモリからデータバスを介して供給されるデータを上記CPUへ取込む、
ことを特徴とするデータ取込方法。 In a data capturing method for capturing data in a FIFO memory into a CPU via a multi-bit data bus,
Information indicating various state changes of the FIFO memory is stored in a register;
When various state changes of the FIFO memory occur, an interrupt signal is supplied to the CPU, and the stored contents of the register are supplied to the CPU via the data bus,
Based on the supplied interrupt signal and information indicating various state changes of the FIFO memory supplied via the data bus, various state changes of the FIFO memory are determined,
Based on the determined various state changes of the FIFO memory, the data supplied from the FIFO memory via the data bus is taken into the CPU.
A data capturing method characterized by that.
外部機器から供給される、データ種別とデータ長とデータ列により構成されるデータ、あるいはデータ種別とデータ長とコマンド列により構成されるコマンドを受入れる受入手段と、
この受入手段により受入れたデータ列あるいはコマンド列をFIFOメモリに順次記憶し、FIFOメモリから先に入力されたデータあるいはコマンドから順に出力するとともに、種々の状態変化を示す信号を出力する出力手段と、
この出力手段による種々の状態変化を示す信号によりその情報を記憶するとともに、上記受入手段により受入れたデータ種別とデータ長とを記憶するレジスタと、
外部機器から供給されるデータ又はコマンドの供給状態を表す信号が供給された際、又は上記FIFOメモリの種々の状態変化が発生した際に、上記CPUに割込信号を供給するとともに、上記レジスタの記憶内容を上記データバスを介して供給する供給手段と、
この供給手段により供給される割込信号とデータバスを介して供給される上記レジスタの記憶内容とに基づいて、上記FIFOメモリの種々の状態変化を判断する判断手段と、
この判断手段により判断した上記FIFOメモリの種々の状態変化に基づいて、上記FIFOメモリからデータバスを介して供給されるデータあるいはコマンドを上記CPUへ取込む取込手段と、
この取込手段により上記CPUへ取り込んだデータあるいはコマンドを上記供給手段により供給されるデータ種別とデータ長に基づいてメモリに記憶する記憶手段と、
を具備したことを特徴とするデータ取込装置。 In a data capture device that captures data or commands from a FIFO memory into a CPU via a multi-bit data bus,
An accepting means for receiving data configured from a data type, a data length, and a data sequence, or a command configured from a data type, a data length, and a command sequence supplied from an external device;
An output means for sequentially storing the data string or command string received by the receiving means in the FIFO memory, outputting the data or command in order from the FIFO memory, and outputting signals indicating various state changes;
A register that stores the information by signals indicating various state changes by the output means, and stores the data type and data length received by the receiving means,
When a signal representing the supply status of data or commands supplied from an external device is supplied, or when various status changes of the FIFO memory occur, an interrupt signal is supplied to the CPU, and Supply means for supplying stored contents via the data bus;
Judging means for judging various state changes of the FIFO memory based on the interrupt signal supplied by the supplying means and the stored contents of the register supplied via the data bus;
Fetching means for fetching data or commands supplied from the FIFO memory via the data bus to the CPU based on various state changes of the FIFO memory judged by the judging means;
Storage means for storing the data or command fetched by the fetch means into the CPU based on the data type and data length supplied by the supply means;
A data capture device comprising:
外部機器から供給される、データ種別とデータ長とデータ列により構成されるデータ、あるいはデータ種別とデータ長とコマンド列により構成されるコマンドを受入れ、
この受入れたデータ列あるいはコマンド列をFIFOメモリに順次記憶し、FIFOメモリから先に入力されたデータあるいはコマンドから順に出力するとともに、種々の状態変化を示す信号を出力し、
この出力による種々の状態変化を示す信号による情報と、上記受入れたデータ種別とデータ長とを上記データバスと同じビット数構成のレジスタに記憶し、
外部機器から供給されるデータ又はコマンドの供給状態を表す信号が供給された際、又は上記FIFOメモリの種々の状態変化が発生した際に、上記CPUに割込信号を供給するとともに、上記レジスタの記憶内容を上記データバスを介して供給し、
この供給される割込信号とデータバスを介して供給される上記レジスタの記憶内容とに基づいて、上記FIFOメモリの種々の状態変化を判断し、
この判断した上記FIFOメモリの種々の状態変化に基づいて、上記FIFOメモリからデータバスを介して供給されるデータあるいはコマンドを上記CPUへ取込み、
このCPUへ取り込んだデータあるいはコマンドを上記供給されるデータ種別とデータ長に基づいてメモリに記憶する、
ことを特徴とするデータ取込方法。 In a data capture method for capturing data or commands from a FIFO memory into a CPU via a multi-bit data bus,
Accepts data supplied from an external device, consisting of data type, data length and data string, or command consisting of data type, data length and command string,
The received data sequence or command sequence is sequentially stored in the FIFO memory, and sequentially output from the data or command previously input from the FIFO memory, and signals indicating various state changes are output,
Information by signals indicating various state changes due to this output, the received data type and data length are stored in a register having the same number of bits as the data bus,
When a signal indicating the supply status of data or commands supplied from an external device is supplied, or when various status changes of the FIFO memory occur, an interrupt signal is supplied to the CPU, and The stored contents are supplied via the data bus,
Based on the supplied interrupt signal and the stored contents of the register supplied via the data bus, various state changes of the FIFO memory are determined,
Based on the determined state changes of the FIFO memory, data or commands supplied from the FIFO memory via the data bus are taken into the CPU.
The data or command taken into the CPU is stored in the memory based on the supplied data type and data length.
A data capturing method characterized by that.
外部機器から供給される、データ種別とデータ長とデータ列により構成されるデータ、あるいはデータ種別とデータ長とコマンド列により構成されるコマンドを受入れる受入手段と、
この受入手段により受入れたデータ列あるいはコマンド列をFIFOメモリに順次記憶し、FIFOメモリから先に入力されたデータあるいはコマンドから順に出力するとともに、種々の状態変化を示す信号を出力する出力手段と、
この出力手段による種々の状態変化を示す信号によりその情報を記憶するとともに、上記受入手段により受入れたデータ種別とデータ長とを記憶するレジスタと、
外部機器から供給されるデータ又はコマンドの供給状態を表す信号が供給された際に、上記CPUに割込信号を供給するとともに、上記レジスタの記憶内容を上記データバスを介して供給する供給手段と、
この供給手段により供給される割込信号とデータバスを介して供給される上記レジスタの記憶内容とに基づいて、上記FIFOメモリの種々の状態変化を判断する判断手段と、
この判断手段により判断した上記FIFOメモリの種々の状態変化に基づいて、上記FIFOメモリからデータバスを介して供給されるデータあるいはコマンドを上記CPUへ取込む取込手段と、
この取込手段により上記CPUへ取り込んだデータあるいはコマンドを上記供給手段により供給されるデータ種別とデータ長に基づいてメモリに記憶する記憶手段と、
を具備したことを特徴とするデータ取込装置。 In a data capture device that captures data or commands from a FIFO memory into a CPU via a multi-bit data bus,
An accepting means for receiving data configured from a data type, a data length, and a data sequence, or a command configured from a data type, a data length, and a command sequence supplied from an external device;
An output means for sequentially storing the data string or command string received by the receiving means in the FIFO memory, outputting the data or command in order from the FIFO memory, and outputting signals indicating various state changes;
A register that stores the information by signals indicating various state changes by the output means, and stores the data type and data length received by the receiving means,
Supply means for supplying an interrupt signal to the CPU and supplying the stored contents of the register via the data bus when a signal representing a supply state of data or a command supplied from an external device is supplied; ,
Determination means for determining various state changes of the FIFO memory based on the interrupt signal supplied by the supply means and the stored contents of the register supplied via the data bus;
Fetching means for fetching data or commands supplied from the FIFO memory via the data bus to the CPU based on various state changes of the FIFO memory judged by the judging means;
Storage means for storing the data or command fetched by the fetch means into the CPU based on the data type and data length supplied by the supply means;
A data capture device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004199386A JP4498038B2 (en) | 2004-07-06 | 2004-07-06 | Data acquisition device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004199386A JP4498038B2 (en) | 2004-07-06 | 2004-07-06 | Data acquisition device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006023829A true JP2006023829A (en) | 2006-01-26 |
JP4498038B2 JP4498038B2 (en) | 2010-07-07 |
Family
ID=35797083
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004199386A Expired - Lifetime JP4498038B2 (en) | 2004-07-06 | 2004-07-06 | Data acquisition device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4498038B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8411156B2 (en) | 2009-12-25 | 2013-04-02 | Kabushiki Kaisha Toshiba | Signal processing apparatus and method for suppressing a delay in imaging data |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04270441A (en) * | 1991-02-26 | 1992-09-25 | Toshiba Corp | Data processor |
JPH04290150A (en) * | 1990-11-30 | 1992-10-14 | Internatl Business Mach Corp <Ibm> | Device and method for controlling bidirectional fifo as interface between two buses in multi-task system |
JPH05298066A (en) * | 1992-04-16 | 1993-11-12 | Matsushita Electric Ind Co Ltd | Fifo buffer device |
JPH06325565A (en) * | 1993-05-14 | 1994-11-25 | Nec Corp | Fifo memory having count function |
JPH08110871A (en) * | 1994-10-07 | 1996-04-30 | Fuji Photo Film Co Ltd | Method and device for reading memory |
JPH10126536A (en) * | 1996-10-22 | 1998-05-15 | Canon Inc | Image forming device and its control method |
JP2002073537A (en) * | 2000-08-30 | 2002-03-12 | Matsushita Electric Ind Co Ltd | Buffer controller |
JP2002342266A (en) * | 2001-05-14 | 2002-11-29 | Hitachi Ltd | Data processor |
-
2004
- 2004-07-06 JP JP2004199386A patent/JP4498038B2/en not_active Expired - Lifetime
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04290150A (en) * | 1990-11-30 | 1992-10-14 | Internatl Business Mach Corp <Ibm> | Device and method for controlling bidirectional fifo as interface between two buses in multi-task system |
JPH04270441A (en) * | 1991-02-26 | 1992-09-25 | Toshiba Corp | Data processor |
JPH05298066A (en) * | 1992-04-16 | 1993-11-12 | Matsushita Electric Ind Co Ltd | Fifo buffer device |
JPH06325565A (en) * | 1993-05-14 | 1994-11-25 | Nec Corp | Fifo memory having count function |
JPH08110871A (en) * | 1994-10-07 | 1996-04-30 | Fuji Photo Film Co Ltd | Method and device for reading memory |
JPH10126536A (en) * | 1996-10-22 | 1998-05-15 | Canon Inc | Image forming device and its control method |
JP2002073537A (en) * | 2000-08-30 | 2002-03-12 | Matsushita Electric Ind Co Ltd | Buffer controller |
JP2002342266A (en) * | 2001-05-14 | 2002-11-29 | Hitachi Ltd | Data processor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8411156B2 (en) | 2009-12-25 | 2013-04-02 | Kabushiki Kaisha Toshiba | Signal processing apparatus and method for suppressing a delay in imaging data |
Also Published As
Publication number | Publication date |
---|---|
JP4498038B2 (en) | 2010-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7739428B2 (en) | Memory control apparatus and memory control method | |
JP4498038B2 (en) | Data acquisition device | |
US7215367B2 (en) | Image data control system and method for capturing and displaying an original image of an object | |
US8436915B2 (en) | Image processing apparatus | |
JP2007274449A (en) | Double-sided image scanner | |
US6215558B1 (en) | Data processing apparatus and method | |
US6473527B1 (en) | Module and method for interfacing analog/digital converting means and JPEG compression means | |
EP1890475A1 (en) | Video frame buffer | |
US20060158677A1 (en) | Enhanced image data processing method and apparatus | |
JP2001184302A (en) | Buffer control circuit | |
EP1710707A1 (en) | Memory interface device, memory interface method, and modem device | |
JP7419773B2 (en) | Image processing device | |
US20050078675A1 (en) | Method and device for processing DTV data | |
JP2575036B2 (en) | Incoming call transfer data processing device | |
JP3949012B2 (en) | Data transmission / reception method, transmitter, receiver, and transmitter / receiver | |
JP4837361B2 (en) | Transmission system, data transmission device, data reception device | |
JP2005050153A (en) | Method of clock synchronized serial data transfer | |
KR100406936B1 (en) | Data relay apparatus and method thereof | |
JP4387488B2 (en) | Overflow protection circuit and image transmission apparatus using the same | |
US20060066630A1 (en) | Apparatus and method for transmitting data between graphics controller and external storage | |
JP4314460B2 (en) | Data transfer method, data transfer device, and data transfer system | |
JP2759984B2 (en) | Signal transfer device | |
JP3264770B2 (en) | Facsimile machine | |
JP2007251983A (en) | Image data output apparatus | |
JP4465538B2 (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070702 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091116 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091124 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100108 |
|
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: 20100323 |
|
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: 20100413 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130423 Year of fee payment: 3 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4498038 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140423 Year of fee payment: 4 |