JP2006023829A - Data fetching device and data fetching method - Google Patents

Data fetching device and data fetching method Download PDF

Info

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
Application number
JP2004199386A
Other languages
Japanese (ja)
Other versions
JP4498038B2 (en
Inventor
Kazuhisa Yoshida
和久 吉田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2004199386A priority Critical patent/JP4498038B2/en
Publication of JP2006023829A publication Critical patent/JP2006023829A/en
Application granted granted Critical
Publication of JP4498038B2 publication Critical patent/JP4498038B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To make processing more efficient by reducing a control signal line between a FIFO memory and a CPU. <P>SOLUTION: This data fetching device is configured to fetch the data of a FIFO memory through a data bus in a CPU. Information showing the various status change of the FIFO memory is stored by a register, and when the various status change of the FIFO memory is generated, an interrupting signal is supplied to the CPU, and the storage contents of the register are supplied through the data bus to the CPU, and the various status change of the FIFO memory is judged, and the data to be supplied from the FIFO memory through the data bus are fetched in the CPU based on the judged various status change of the FIFO memory. <P>COPYRIGHT: (C)2006,JPO&NCIPI

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転送は固定長となると、可変長のデータ取得には足りないところにダミーデータで埋めるなどの工夫が必要となり、非効率となる。
特開平5−257867
When the DMA transfer has a fixed length, it becomes inefficient because it is necessary to devise a method such as filling in dummy data where variable length data is insufficient.
JP-A-5-257867

この発明は、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 / D converter 2. The A / D converter 2 converts the supplied analog data into digital serial data, and supplies the digital data to a data capturing device 3 having a FIFO memory described later.

データ取込装置3は供給されるデジタルのシリアルデータを取り込みCPU4に転送する。また、A/D変換器2の出力によりセンサ異常を監視するCPU5が設けられている。   The data capture device 3 captures the supplied digital serial data and transfers it to the CPU 4. In addition, a CPU 5 that monitors sensor abnormality based on the output of the A / D converter 2 is provided.

これにより、CPU4には、撮像部1による撮像内容が供給されるようになっている。   As a result, the CPU 4 is supplied with the content captured by the imaging unit 1.

上記データ取込装置3は、図2に示すように、FIFOメモリ101、レジスタ102、オア回路103、セレクタ104、バッファ105、106によって構成されている。   As shown in FIG. 2, the data fetching apparatus 3 includes a FIFO memory 101, a register 102, an OR circuit 103, a selector 104, and buffers 105 and 106.

上記、FIFO(ファースト イン ファースト アウト)メモリ101は、先入れ先出し方式により、先に記憶したものから順に出力するものである。   The FIFO (first-in first-out) memory 101 outputs data in order from the first stored in the first-in first-out method.

次に、上記のような構成において、図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 / D converter 2 is supplied to the data input terminal DI of the FIFO memory 101.

これにより、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 FIFO memory 101 sequentially stores the supplied data, and outputs an HF state signal when the FIFO memory 101 enters the HF (half full) state. The HF state signal is supplied to the register 102 and also supplied to the selector 104 and the INT terminal of the CPU 4 as an interrupt signal via the OR circuit 103 (ST201). The selector 104 outputs an enable signal to the buffer 105 when this interrupt signal is supplied. As a result, the HF state signal (information indicating the HF state) stored in the register 102 is supplied to the DB terminal of the CPU 4 via the buffer 105 (ST202).

この際、上記CPU4はINT端子への割込み信号により、DB端子に供給されているレジスタ102の情報としてのHF状態信号(HF状態を示す情報)を1度だけ読込む(ST203)。   At this time, the CPU 4 reads the HF state signal (information indicating the HF state) as information of the register 102 supplied to the DB terminal only once by the interrupt signal to the INT terminal (ST203).

上記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 CPU 4 supplies a read signal from the OE terminal to the selector 104 and also to the OE terminal of the FIFO memory 101. When this read signal is supplied (selector 104 confirms that there is a CPU read) (ST204), selector 104 outputs an enable signal to buffer 106. As a result, the selector 104 switches the data bus to the FIFO memory 101 side, and data from the data output terminal DO of the FIFO memory 101 is supplied to the DB terminal of the CPU 4 via the buffer 106 (ST205).

つまり、セレクタ104はリード(OE)信号を監視し、CPU4がレジスタ102を読み込んだことを確認すると(ST204)、FIFOメモリ101へデータバスを切り替える(ST205)。   That is, the selector 104 monitors the read (OE) signal, and when it is confirmed that the CPU 4 has read the register 102 (ST204), the data bus is switched to the FIFO memory 101 (ST205).

上記CPU4は、レジスタ102の情報としてHF状態を示す情報によりHF信号が発生したことを確認し(ST206)、OE端子に供給されるデータの取込みを開始する(ST209、ST211)。   The CPU 4 confirms that an HF signal has been generated based on information indicating the HF state as information in the register 102 (ST206), and starts taking in data supplied to the OE terminal (ST209, ST211).

また、CPU4は、上記ステップ206のレジスタ情報としてフル(full)状態を示す情報を確認した際に、OE端子に供給されるデータの取込みを開始する(ST209、ST211)。   Further, when the CPU 4 confirms the information indicating the full state as the register information in step 206, the CPU 4 starts taking in the data supplied to the OE terminal (ST209, ST211).

また、CPU4は、上記ステップ206のレジスタ情報としてエンプティ(空)を確認した際に、データの取込を停止する(ST207、ST210)。   Further, when the CPU 4 confirms empty (empty) as the register information in step 206, the CPU 4 stops taking in data (ST207, ST210).

また、CPU4は、上記ステップ206のレジスタ情報として停止信号を確認した際に、データの取込を停止する(ST208、ST210)。   Further, when the CPU 4 confirms the stop signal as the register information in step 206, the CPU 4 stops taking in data (ST208, ST210).

また、CPU4は、上記ステップ206のレジスタ情報として何も確認されなかった際に、割込み条件なしのエラーとなる(ST207からST209、ST212)。   Further, when nothing is confirmed as the register information in step 206, the CPU 4 generates an error without an interrupt condition (ST207 to ST209, ST212).

次に、この発明を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 / D converter 2 to the data capturing device 3 using a message including a data length, a data type, and data (command).

上記電文としては、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 CPU 5, a command indicating an abnormality is described, and when a stop is determined by the CPU 5 In some cases, a command indicating a stop is described.

上記電文がデータの場合、図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 DMA memory 6 having a command area and a data area is connected to the CPU 4.

さらに、上記データ取込装置3は、図6に示すように、A/D変換器2からの電文を受付け、この電文を解析してデータ種別とデータ長を上記レジスタ102に出力し、データあるいはコマンドをFIFOメモリ101に出力する入力部107が設けられている。   Further, as shown in FIG. 6, the data fetching device 3 receives a message from the A / D converter 2, analyzes the message, and outputs a data type and a data length to the register 102. An input unit 107 that outputs commands to the FIFO memory 101 is provided.

また、外部から供給される停止信号によりデータの取込、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 register 102 and the OR circuit 103 as shown in FIG.

次に、上記のような構成において、図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 / D converter 2 to the input unit 107. The input unit 107 analyzes the message, discriminates the data length N and the data type DATA following the start code STX into the register 102, and until the end code ETX determines the data 0, 1,... Following the data type. The data is supplied to the data input terminal DI of the FIFO memory 101.

これにより、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 FIFO memory 101 sequentially stores the supplied data, and outputs an HF state signal when the FIFO memory 101 enters the HF (half full) state. This HF state signal is supplied to the register 102 and also supplied to the selector 104 and the INT terminal of the CPU 4 as an interrupt signal via the OR circuit 103 (ST301). The selector 104 outputs an enable signal to the buffer 105 when this interrupt signal is supplied. As a result, the HF status signal, data type, and data length stored in the register 102 are supplied to the DB terminal of the CPU 4 via the buffer 105 (ST302).

この際、上記CPU4はINT端子への割込み信号により、DB端子に供給されているレジスタ102の情報としてのHF状態信号とデータ種別とデータ長を1度だけ読込む(ST303)。   At this time, the CPU 4 reads the HF state signal, the data type, and the data length as information of the register 102 supplied to the DB terminal only once by the interrupt signal to the INT terminal (ST303).

上記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 CPU 4 supplies a read signal from the OE terminal to the selector 104 and also to the OE terminal of the FIFO memory 101. When this read signal is supplied (selector 104 confirms that there is a CPU read) (ST304), selector 104 outputs an enable signal to buffer 106. As a result, the selector 104 switches the data bus to the FIFO memory 101 side, and data from the data output terminal DO of the FIFO memory 101 is supplied to the DB terminal of the CPU 4 via the buffer 106 (ST305).

つまり、セレクタ104はリード(OE)信号を監視し、CPU4がレジスタ102を読み込んだことを確認すると(ST304)、FIFOメモリ101へデータバスを切り替える(ST305)。   That is, the selector 104 monitors the read (OE) signal, and when it is confirmed that the CPU 4 has read the register 102 (ST304), the data bus is switched to the FIFO memory 101 (ST305).

上記CPU4は、レジスタ102の情報としてHF状態信号とデータ種別とデータ長を確認し(ST306)、OE端子に供給されるデータの取込みを開始し、取込んだデータをデータ種別によりセットされているDMA転送先に転送し、データ長によりセットされているDMA転送量分のデータを転送する(ST309〜ST312)。   The CPU 4 confirms the HF state signal, the data type, and the data length as information of the register 102 (ST306), starts taking in the data supplied to the OE terminal, and sets the taken data according to the data type. The data is transferred to the DMA transfer destination, and data corresponding to the DMA transfer amount set according to the data length is transferred (ST309 to ST312).

また、CPU4は、上記ステップ306のレジスタ情報としてフル(full)状態を示す情報を確認した際に、OE端子に供給されるデータの取込みとDMA転送を開始する(ST309〜ST312)。   Further, when the CPU 4 confirms the information indicating the full state as the register information in step 306, the CPU 4 starts taking in data supplied to the OE terminal and DMA transfer (ST309 to ST312).

また、CPU4は、上記ステップ306のレジスタ情報としてエンプティ(空)を確認した際に、DMAを停止する(ST307、ST313)。   Further, when the CPU 4 confirms empty (empty) as the register information in step 306, the CPU 4 stops the DMA (ST307, ST313).

また、CPU4は、上記ステップ306のレジスタ情報として停止信号を確認した際に、DMAを停止する(ST308、ST313)。   Further, when the CPU 4 confirms the stop signal as the register information in step 306, the CPU 4 stops the DMA (ST308, ST313).

また、CPU4は、上記ステップ306のレジスタ情報として何も確認されなかった際に、割込み条件なしのエラーとなる(ST307からST309、ST314)。   Further, when nothing is confirmed as the register information in step 306, the CPU 4 generates an error without an interrupt condition (ST307 to ST309, ST314).

これにより、レジスタ情報に、データ種別や、データ長、などを入れることで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 CPU 4 can switch the write destination of the external memory 6 and divide the memory arrangement from the data type in the register information, for example, from information such as whether the data is a command or data. Further, the CPU 4 determines the DMA transfer amount based on the data length information, and can perform transfer according to the data length.

また、外部から強制的に転送を停止したい場合などに使う、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 CPU 4.

上記したように、割込み信号を使用して、データバスを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 data receiving unit 201, a data compression unit 202, a selection unit 203, and a data storage unit 204 are provided between the A / D converter 2 and the data capturing device 3 shown in FIG. It is the provided configuration.

データ受信部201は、A/D変換器2から供給されるデジタルのシリアルデータを取り込み、データ圧縮部202、選択部203、データ保存部204に供給する。データ圧縮部202は、供給されるデータを圧縮して選択部203に供給する。選択部203は、データ受信部201からのデータあるいはデータ圧縮部202からのデータを選択的にデータ取込装置7に供給する。データ保存部204は、データ受信部201から供給されるデータを保存するものである。   The data receiving unit 201 takes in digital serial data supplied from the A / D converter 2 and supplies the digital serial data to the data compression unit 202, the selection unit 203, and the data storage unit 204. The data compression unit 202 compresses the supplied data and supplies the compressed data to the selection unit 203. The selection unit 203 selectively supplies data from the data reception unit 201 or data from the data compression unit 202 to the data capturing device 7. The data storage unit 204 stores data supplied from the data reception unit 201.

これにより、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.

この発明の一実施形態を説明するためのデータ取込装置とその周辺回路の概略構成を示すブロック図。BRIEF DESCRIPTION OF THE DRAWINGS The block diagram which shows schematic structure of the data acquisition device for describing one Embodiment of this invention, and its peripheral circuit. データ取込装置の概略構成を示すブロック図。The block diagram which shows schematic structure of a data taking-in apparatus. データの取込み動作を説明するためのフローチャート。The flowchart for demonstrating the operation | movement of taking in data. 電文がデータの場合の構成例を説明するための図。The figure for demonstrating the structural example in case a message | telegram is data. 電文がコマンドの場合の構成例を説明するための図。The figure for demonstrating the structural example in case a message is a command. データ取込装置の概略構成を示すブロック図。The block diagram which shows schematic structure of a data taking-in apparatus. データの取込み動作を説明するためのフローチャート。The flowchart for demonstrating the operation | movement of taking in data. データ取込装置とその周辺回路の概略構成を示すブロック図。The block diagram which shows schematic structure of a data capture device and its peripheral circuit.

符号の説明Explanation of symbols

1…撮像部 2…A/D変換器 3…データ取込装置 4、5…CPU 101…FIFOメモリ 102…レジスタ 104…セレクタ 105、106…バッファ   DESCRIPTION OF SYMBOLS 1 ... Imaging part 2 ... A / D converter 3 ... Data capture device 4, 5 ... CPU 101 ... FIFO memory 102 ... Register 104 ... Selector 105, 106 ... Buffer

Claims (5)

FIFOメモリのデータを複数ビットのデータバスを介してCPUに取込むデータ取込装置において、
上記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メモリのデータを複数ビットのデータバスを介してCPUに取込むデータ取込方法において、
上記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メモリからのデータあるいはコマンドを複数ビットのデータバスを介してCPUに取込むデータ取込装置において、
外部機器から供給される、データ種別とデータ長とデータ列により構成されるデータ、あるいはデータ種別とデータ長とコマンド列により構成されるコマンドを受入れる受入手段と、
この受入手段により受入れたデータ列あるいはコマンド列を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メモリからのデータあるいはコマンドを複数ビットのデータバスを介してCPUに取込むデータ取込方法において、
外部機器から供給される、データ種別とデータ長とデータ列により構成されるデータ、あるいはデータ種別とデータ長とコマンド列により構成されるコマンドを受入れ、
この受入れたデータ列あるいはコマンド列を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メモリからのデータあるいはコマンドを複数ビットのデータバスを介してCPUに取込むデータ取込装置において、
外部機器から供給される、データ種別とデータ長とデータ列により構成されるデータ、あるいはデータ種別とデータ長とコマンド列により構成されるコマンドを受入れる受入手段と、
この受入手段により受入れたデータ列あるいはコマンド列を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:
JP2004199386A 2004-07-06 2004-07-06 Data acquisition device Expired - Lifetime JP4498038B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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