JP2006331248A - Data transfer device - Google Patents

Data transfer device Download PDF

Info

Publication number
JP2006331248A
JP2006331248A JP2005156714A JP2005156714A JP2006331248A JP 2006331248 A JP2006331248 A JP 2006331248A JP 2005156714 A JP2005156714 A JP 2005156714A JP 2005156714 A JP2005156714 A JP 2005156714A JP 2006331248 A JP2006331248 A JP 2006331248A
Authority
JP
Japan
Prior art keywords
fifo
storage circuit
circuit
data transfer
internal storage
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.)
Withdrawn
Application number
JP2005156714A
Other languages
Japanese (ja)
Inventor
Shinya Furuhata
信也 降▲旗▼
Kazuyoshi Takeda
和義 武田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005156714A priority Critical patent/JP2006331248A/en
Publication of JP2006331248A publication Critical patent/JP2006331248A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To accelerate the speed of a function for executing data transfer to a FIFO circuit. <P>SOLUTION: A data transfer device has: the FIFO circuit for providing buffering for data transfer; an external storage circuit storing a control program including a FIFO control function for controlling the FIFO circuit; and a microcomputer having an internal storage circuit accelerated in the speed of operation more than the external storage circuit, and a processing circuit for executing the FIFO control function. If the size of the control program is larger than the capacity of the internal storage circuit and the size of the FIFO control function is smaller than the capacity of the internal storage circuit, the FIFO control function is copied into the internal storage circuit and the FIFO control function is executed from the internal storage circuit. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、データ転送のためのFIFO回路と、当該FIFO回路のバッファリング動
作を制御するためのFIFO制御関数を実行するマイクロコンピュータとを有するデータ
転送装置に関する。
The present invention relates to a data transfer apparatus having a FIFO circuit for data transfer and a microcomputer that executes a FIFO control function for controlling the buffering operation of the FIFO circuit.

上記したデータ転送装置は、例えば、携帯電話等の電子機器を開発するための開発用キ
ットに設けられており、当該開発用キットと電子機器との間で、データ転送を行うために
用いられている。データ転送装置は、外部RAMを有しており、開発キットの初期動作時
に、FIFO制御関数を含む制御プログラムを予め記憶しているROMから外部RAMに
ロードし、マイクロコンピュータは、当該外部RAMに記憶されているFIFO制御関数
を実行することにより、前記FIFO回路のバッファリング動作を制御する。FIFO回
路の高速化に関連して、特許文献1は、半導体メモリ(RAM)の内部バスにFIFO回
路を接続し、データ転送を高速化する構成について開示している。
The above-described data transfer device is provided in a development kit for developing an electronic device such as a mobile phone, and is used to transfer data between the development kit and the electronic device. Yes. The data transfer device has an external RAM. At the initial operation of the development kit, the control program including the FIFO control function is loaded from the ROM stored in advance into the external RAM, and the microcomputer stores the program in the external RAM. The buffering operation of the FIFO circuit is controlled by executing the FIFO control function. In relation to speeding up of the FIFO circuit, Patent Document 1 discloses a configuration in which a FIFO circuit is connected to an internal bus of a semiconductor memory (RAM) to speed up data transfer.

特開平7−192454号公報(段落0013および図1)JP 7-192454 A (paragraph 0013 and FIG. 1)

しかしながら、従来のように外部RAMからFIFO制御関数の実行した場合、マイク
ロコンピュータに比べ外部RAMは動作速度が遅いため、FIFO回路を介したデータ転
送を高速化できないという問題があった。
However, when the FIFO control function is executed from the external RAM as in the prior art, the operation speed of the external RAM is slower than that of the microcomputer, so that there is a problem that the data transfer through the FIFO circuit cannot be accelerated.

そこで、本発明は、データ転送装置の構成を変更することなく、FIFO制御関数の動
作の高速化を実現できるデータ転送装置を提供することを目的とする。
Therefore, an object of the present invention is to provide a data transfer apparatus that can realize a high-speed operation of a FIFO control function without changing the configuration of the data transfer apparatus.

上記課題を解決するために、本発明のデータ転送装置では、データ転送のためのバッフ
ァリングを行うFIFO回路と、外部記憶回路と、前記外部記憶回路よりも動作速度が速
く、前記FIFO回路を制御するFIFO制御関数を記憶する内部記憶回路と前記FIF
O制御関数を実行する処理回路とを有するマイクロコンピュータと、を含む、ことを要旨
とする。
In order to solve the above problems, in the data transfer device of the present invention, the FIFO circuit that performs buffering for data transfer, the external storage circuit, and the operation speed of the FIFO circuit are faster than those of the external storage circuit. An internal storage circuit for storing a FIFO control function to perform and the FIFO
And a microcomputer having a processing circuit for executing the O control function.

この構成によれば、外部記憶回路よりも動作速度が速い内部記憶回路にFIFO制御関
数を記憶させ、実行することにより、従来、データ転送装置上にある外部記憶回路にFI
FO制御関数を記憶させ、実行していた場合に比べ、高速にFIFO回路の読み書きを行
うことが可能になる。
According to this configuration, the FIFO control function is stored in the internal storage circuit that is faster in operation speed than the external storage circuit and is executed.
Compared with the case where the FO control function is stored and executed, the FIFO circuit can be read and written at high speed.

また、本発明のデータ転送装置では、データ転送のためのバッファリングを行うFIF
O回路と、前記FIFO回路を制御するFIFO制御関数を含む制御プログラムを記憶す
る外部記憶回路と、前記外部記憶回路よりも動作速度が速い内部記憶回路と前記FIFO
制御関数を実行する処理回路とを有するマイクロコンピュータと、を有し、前記マイクロ
コンピュータは、前記制御プログラムの容量が前記内部記憶回路の容量よりも大きく、前
記内部記憶回路の容量よりも小さい容量の前記FIFO制御関数を前記内部記憶回路に記
憶させ、前記FIFO制御関数を前記内部記憶回路から実行する。
Further, in the data transfer apparatus of the present invention, the FIFO that performs buffering for data transfer
An O circuit, an external storage circuit that stores a control program including a FIFO control function for controlling the FIFO circuit, an internal storage circuit that operates faster than the external storage circuit, and the FIFO
A microcomputer having a processing circuit for executing a control function, wherein the microcomputer has a capacity of the control program larger than that of the internal storage circuit and smaller than that of the internal storage circuit. The FIFO control function is stored in the internal storage circuit, and the FIFO control function is executed from the internal storage circuit.

この構成によれば、外部記憶回路よりも動作速度が速い内部記憶回路にFIFO制御関
数を記憶させ、実行することにより、従来、データ転送装置上にある外部記憶回路にFI
FO制御関数を記憶させ、実行していた場合に比べ、高速にFIFO回路の読み書きを行
うことが可能になる。
According to this configuration, the FIFO control function is stored in the internal storage circuit that is faster in operation speed than the external storage circuit and is executed.
Compared with the case where the FO control function is stored and executed, the FIFO circuit can be read and written at high speed.

また、本発明のデータ転送装置では、データ転送のためのバッファリングを行うFIF
O回路と、前記FIFO回路を制御するFIFO制御関数を含む制御プログラムを記憶す
る外部記憶回路と、前記外部記憶回路よりも動作速度が速い内部記憶回路と前記FIFO
制御関数を実行する処理回路と前記内部記憶回路を管理する動的メモリ管理機構とを有す
るマイクロコンピュータと、を有し、前記マイクロコンピュータは、前記データ転送を開
始する開始時点で、前記動的メモリ管理機構により前記FIFO制御関数を記憶するのに
必要な前記内部記憶回路の空き領域を探索する探索処理と、前記FIFO制御関数を前記
外部記憶回路から前記内部記憶回路にコピーし記憶させるコピー処理と、前記内部記憶回
路に記憶した前記FIFO制御関数を実行する実行処理と、を実行し、前記データ転送を
終了した終了時点で、前記動的メモリ管理機構により前記内部記憶回路から前記FIFO
制御関数を記憶した領域を開放する開放処理を実行する。
Further, in the data transfer apparatus of the present invention, the FIFO that performs buffering for data transfer
An O circuit, an external storage circuit that stores a control program including a FIFO control function for controlling the FIFO circuit, an internal storage circuit that operates faster than the external storage circuit, and the FIFO
A microcomputer having a processing circuit for executing a control function and a dynamic memory management mechanism for managing the internal storage circuit, and the microcomputer starts the data transfer at the start of the data transfer. A search process for searching for an empty area in the internal storage circuit necessary for storing the FIFO control function by a management mechanism; a copy process for copying and storing the FIFO control function from the external storage circuit to the internal storage circuit; Execution processing for executing the FIFO control function stored in the internal storage circuit, and at the end of the data transfer, the dynamic memory management mechanism removes the FIFO from the internal storage circuit.
A release process for releasing the area storing the control function is executed.

この構成によれば、データ転送を行う期間はFIFO制御関数は内部記憶回路から実行
されるので、高速にFIFO回路の読み書きを行うことが可能になり、さらに、データ転
送以外の期間は内部記憶回路からFIFO制御関数の記憶領域を開放するので、処理回路
は内部記憶回路のすべての領域を使用することが可能になる。
According to this configuration, since the FIFO control function is executed from the internal storage circuit during the data transfer period, the FIFO circuit can be read and written at a high speed. Further, during the period other than the data transfer, the internal storage circuit Since the memory area of the FIFO control function is released from the memory area, the processing circuit can use all areas of the internal memory circuit.

また、本発明のデータ転送装置では、前記データ転送装置は、さらに前記データ転送の
対象である外部機器を装着するインターフェース部と、前記インターフェース部に前記外
部機器が装着または離脱されたことを検出する着脱検出部と、を有し、前記マイクロコン
ピュータは、前記着脱検出部が前記インターフェース部に前記外部機器が装着されたこと
を検出した時点を前記開始時点とし、前記探索処理と、前記コピー処理と、前記実行処理
と、を実行し、前記着脱検出部が前記インターフェース部から前記外部機器が離脱された
ことを検出した時点を前記終了時点とし、前記開放処理を実行する。
In the data transfer device of the present invention, the data transfer device further detects an interface unit for mounting the external device that is the target of the data transfer, and detects that the external device is mounted or removed from the interface unit. An attachment / detachment detection unit, and the microcomputer sets, as the start time, a time point when the attachment / detachment detection unit detects that the external device is attached to the interface unit, and the search process, the copy process, The execution process is executed, and the release process is executed with the point in time when the attachment / detachment detection unit detects that the external device is detached from the interface unit as the end point.

また、本発明のデータ転送装置では、前記FIFO制御関数は、前記FIFO回路から
データを読み出すためのFIFO読出関数と、前記FIFO回路にデータを書き込むため
のFIFO書込関数と、からなり、前記マイクロコンピュータは、前記FIFO回路から
データを読み出す場合は、前記動的メモリ管理機構により前記FIFO読出関数を記憶す
るのに必要な前記内部記憶回路の空き領域を探索し、前記FIFO読出関数を前記外部記
憶回路から前記内部記憶回路にコピーし記憶させ、前記内部記憶回路に記憶した前記FI
FO読出関数を実行し、前記FIFO回路にデータを書き込む場合は、前記動的メモリ管
理機構により前記FIFO書込関数を記憶するのに必要な前記内部記憶回路の空き領域を
探索し、前記FIFO書込関数を前記外部記憶回路から前記内部記憶回路にコピーし記憶
させ、前記内部記憶回路に記憶した前記FIFO書込関数を実行する。
In the data transfer device according to the present invention, the FIFO control function includes a FIFO read function for reading data from the FIFO circuit and a FIFO write function for writing data to the FIFO circuit. When reading data from the FIFO circuit, the computer searches the free space in the internal storage circuit necessary for storing the FIFO read function by the dynamic memory management mechanism, and stores the FIFO read function in the external storage. The FI copied from the circuit to the internal storage circuit and stored in the internal storage circuit
When executing a FO read function and writing data into the FIFO circuit, the dynamic memory management mechanism searches for a free area in the internal storage circuit necessary for storing the FIFO write function, and the FIFO write A copy function is copied from the external storage circuit to the internal storage circuit and stored, and the FIFO write function stored in the internal storage circuit is executed.

この構成によれば、内部記憶回路にFIFO制御関数全体を記憶させる領域が無い場合
でも、FIFO読出関数またはFIFO書込関数を記憶させる領域が確保できれば、高速
にFIFO回路の読み書きを行うことが可能になる。
According to this configuration, even when there is no area for storing the entire FIFO control function in the internal storage circuit, if the area for storing the FIFO read function or the FIFO write function can be secured, the FIFO circuit can be read and written at high speed. become.

以下、本発明に係るデータ転送装置の実施形態について図面に従って説明する。   Embodiments of a data transfer apparatus according to the present invention will be described below with reference to the drawings.

(第1実施形態)
まず、第1実施形態に係るデータ転送装置の概略構成について、図1を参照して説明す
る。
(First embodiment)
First, a schematic configuration of the data transfer apparatus according to the first embodiment will be described with reference to FIG.

<データ転送装置の構成>
図1は、第1実施形態に係るデータ転送装置の構成を示すブロック図である。図1に示
すように、データ転送装置1は、少なくとも、マイクロコンピュータ100と、データ転
送を制御する制御プログラム230を格納する外部ROM210と、外部記憶回路である
外部RAM220と、外部機器(図示しない)を接続するインターフェース部であるイン
ターフェース320を制御するコントローラ300と、これらを相互に接続する外部バス
200と、から構成されている。
<Configuration of data transfer device>
FIG. 1 is a block diagram showing the configuration of the data transfer apparatus according to the first embodiment. As shown in FIG. 1, the data transfer apparatus 1 includes at least a microcomputer 100, an external ROM 210 that stores a control program 230 that controls data transfer, an external RAM 220 that is an external storage circuit, and an external device (not shown). The controller 300 is configured to control an interface 320 that is an interface unit for connecting to the external bus 200, and the external bus 200 connects these components to each other.

さらに、マイクロコンピュータ100は、少なくとも、各装置の制御やプログラムを実
行する処理回路であるCPU110と、内部記憶回路である内蔵RAM120と、から構
成され、相互に内部バス130で接続されている。また、コントローラ300は、少なく
とも、データ転送のためのバッファリングを行うFIFO回路310を有する。制御プロ
グラム230は、FIFO回路310を制御するFIFO制御関数240を含んでいる。
Further, the microcomputer 100 includes at least a CPU 110 that is a processing circuit for executing control of each device and a program, and a built-in RAM 120 that is an internal storage circuit, and is connected to each other via an internal bus 130. Further, the controller 300 includes at least a FIFO circuit 310 that performs buffering for data transfer. The control program 230 includes a FIFO control function 240 that controls the FIFO circuit 310.

<外部RAMと内蔵RAMの構成>
次に、外部RAM220と内蔵RAM120の構成について図2を参照して説明する。
図2は、外部RAMと内蔵RAMの構成を示すブロック図である。
<Configuration of external RAM and internal RAM>
Next, the configuration of the external RAM 220 and the built-in RAM 120 will be described with reference to FIG.
FIG. 2 is a block diagram showing the configuration of the external RAM and the built-in RAM.

外部ROM210に格納されている制御プログラム230は、マイクロコンピュータ1
00により外部RAM220にロードされる。内蔵RAM120は、マイクロコンピュー
タ100のCPU110の他の処理のためすでに使われている使用領域121と、使われ
ていない空き領域122が存在する。図2に示すように、制御プログラム230の容量は
、内蔵RAM120の空き領域122よりも大きい。制御プログラム230に含まれるF
IFO制御関数240は、内蔵RAM120の空き領域122よりも小さい。
The control program 230 stored in the external ROM 210 is stored in the microcomputer 1.
00 is loaded into the external RAM 220. The built-in RAM 120 includes a use area 121 that is already used for other processing of the CPU 110 of the microcomputer 100 and a free area 122 that is not used. As shown in FIG. 2, the capacity of the control program 230 is larger than the free area 122 of the internal RAM 120. F included in the control program 230
The IFO control function 240 is smaller than the free area 122 of the internal RAM 120.

データ転送装置1上の外部RAM220は、基本となる基本クロック信号に基づき動作
する。一方、マイクロコンピュータ100は、基本クロック信号を位相同期回路(図示し
ない)により高速化した高速クロック信号により動作する。例えば、基本クロック信号の
周波数が33MHzであるとすると、高速クロック信号は、位相同期回路により例えば2
倍で出力されると66MHzに設定される。
The external RAM 220 on the data transfer device 1 operates based on a basic basic clock signal. On the other hand, the microcomputer 100 operates with a high-speed clock signal obtained by speeding up the basic clock signal with a phase synchronization circuit (not shown). For example, when the frequency of the basic clock signal is 33 MHz, the high-speed clock signal is generated by the phase synchronization circuit, for example, 2
When the output is doubled, it is set to 66 MHz.

次に、第1実施形態に係るデータ転送装置の処理について図3を参照して説明する。図
3は、第1実施形態に係るデータ転送装置の処理を説明するフローチャートである。
Next, processing of the data transfer apparatus according to the first embodiment will be described with reference to FIG. FIG. 3 is a flowchart for explaining processing of the data transfer apparatus according to the first embodiment.

先ず、ステップS200では、データ転送装置1の電源が投入され、ステップS210
では、外部ROM210に格納された制御プログラム230を外部バス200を介して外
部RAM220にロードする。
First, in step S200, the data transfer apparatus 1 is turned on, and step S210 is performed.
Then, the control program 230 stored in the external ROM 210 is loaded into the external RAM 220 via the external bus 200.

次に、ステップS220では、外部RAM220にロードされた制御プログラム230
から、FIFO制御関数240の部分を内蔵RAM120の空き領域122にコピーする
Next, in step S220, the control program 230 loaded in the external RAM 220.
From this, the FIFO control function 240 is copied to the free area 122 of the internal RAM 120.

次に、ステップS230では、マイクロコンピュータ100のCPU110が、内蔵R
AM120上のFIFO制御関数240を実行し、FIFO回路310のバッファリング
動作を制御し、インターフェース320に接続されている外部機器との間でデータの転送
を行う。
Next, in step S230, the CPU 110 of the microcomputer 100 causes the built-in R
The FIFO control function 240 on the AM 120 is executed, the buffering operation of the FIFO circuit 310 is controlled, and data is transferred to and from an external device connected to the interface 320.

以上に述べた前記実施形態によれば、以下の効果が得られる。   According to the embodiment described above, the following effects can be obtained.

本実施形態では、マイクロコンピュータ100は、高速クロック信号に基づき動作して
おり、さらにFIFO制御関数240を動作させる内蔵RAM120も、高速クロック信
号に基づき動作しているので、外部RAM220上でFIFO制御関数240を実行した
場合に比べ、FIFO回路310のバッファリング動作の高速化を図ることができる。
In this embodiment, the microcomputer 100 operates based on the high-speed clock signal, and the built-in RAM 120 that operates the FIFO control function 240 also operates based on the high-speed clock signal. The buffering operation of the FIFO circuit 310 can be speeded up as compared with the case where 240 is executed.

(第2実施形態)
次に、本発明に係るデータ転送装置の第2実施形態について説明する。第1実施形態に
おいては、データ転送装置1は、電源投入時に制御プログラム230を外部RAM220
にロード後、FIFO制御関数240を内蔵RAM120にコピーする方法を説明したが
、内蔵RAM120は、CPU110のその他の処理のためにすでに使われていることが
あり、FIFO制御関数240をコピーする空き領域122を確保できない場合がある。
(Second Embodiment)
Next, a second embodiment of the data transfer apparatus according to the present invention will be described. In the first embodiment, the data transfer apparatus 1 stores the control program 230 in the external RAM 220 when the power is turned on.
The method of copying the FIFO control function 240 to the built-in RAM 120 has been described, but the built-in RAM 120 may already be used for other processing of the CPU 110, and the free space for copying the FIFO control function 240 122 may not be secured.

本実施形態では、外部機器がインターフェース320に装着されたことを検出し、外部
機器が装着されている期間に動的に内蔵RAM120の空き領域122を確保し、データ
転送を行う方法について説明する。
In the present embodiment, a method will be described in which it is detected that an external device is attached to the interface 320, and a free area 122 of the built-in RAM 120 is dynamically secured and data transfer is performed while the external device is attached.

図4を参照して、第2実施形態のデータ転送装置について説明する。図4は、第2実施
形態に係るデータ転送装置の構成を示すブロック図である。ここでは図1との差分のみを
説明する。
A data transfer apparatus according to the second embodiment will be described with reference to FIG. FIG. 4 is a block diagram showing the configuration of the data transfer apparatus according to the second embodiment. Here, only the difference from FIG. 1 will be described.

マイクロコンピュータ100は、内蔵RAM120の空き領域122を管理し、動的に
必要な領域を割り当て、不要になった時点で使用した領域を開放する作業を行う動的メモ
リ管理機構140をさらに有する。また、コントローラ300は、インターフェース32
0に外部機器が装着または離脱されたことを検出し、外部バス200を介してマイクロコ
ンピュータ100に外部機器が装着または離脱されたことを示す検出信号を送信する着脱
検出部330をさらに有する。
The microcomputer 100 further includes a dynamic memory management mechanism 140 that manages the free area 122 of the internal RAM 120, dynamically allocates a necessary area, and releases the used area when it becomes unnecessary. In addition, the controller 300 includes an interface 32.
0 further includes an attachment / detachment detection unit 330 that detects that an external device is attached or detached and transmits a detection signal indicating that the external device is attached or detached to the microcomputer 100 via the external bus 200.

次に、第2実施形態に係るデータ転送装置の処理について図5を参照して説明する。図
5は、第3実施形態に係るデータ転送装置の処理を説明するフローチャートである。
Next, processing of the data transfer apparatus according to the second embodiment will be described with reference to FIG. FIG. 5 is a flowchart for explaining processing of the data transfer apparatus according to the third embodiment.

先ず、ステップS300では、データ転送装置1の電源が投入され、ステップS310
では、外部ROM210に格納された制御プログラム230を外部バス200を介して外
部RAM220にロードする。
First, in step S300, the data transfer apparatus 1 is turned on, and step S310 is executed.
Then, the control program 230 stored in the external ROM 210 is loaded into the external RAM 220 via the external bus 200.

次に、ステップS320では、内蔵RAM120の使用可能な空き領域122のアドレ
ス情報を動的メモリ管理機構140に登録する。
Next, in step S320, the address information of the available free area 122 of the internal RAM 120 is registered in the dynamic memory management mechanism 140.

次に、ステップS330では、マイクロコンピュータ100は、着脱検出部330から
外部機器がインターフェース320に装着されたことを示す装着検出信号を監視し、装着
検出信号を受信した場合は、ステップS340に移行し、受信していない場合は、装着検
出信号の監視を続ける。
Next, in step S330, the microcomputer 100 monitors an attachment detection signal indicating that an external device is attached to the interface 320 from the attachment / detachment detection unit 330. If the attachment detection signal is received, the microcomputer 100 proceeds to step S340. If not received, the mounting detection signal is continuously monitored.

次に、ステップS340では、動的メモリ管理機構140により、利用可能な内蔵RA
M120の空き領域122があるか探索する探索処理をする。
Next, in step S340, the dynamic memory management mechanism 140 can use the available built-in RA.
A search process is performed to search for a free area 122 of M120.

次に、ステップS350では、動的メモリ管理機構140により、利用可能な内蔵RA
M120の空き領域122が確保できたか否かを判定し、確保できた場合は、ステップS
360に移行し、確保できなかった場合は、ステップS400に移行する。
Next, in step S350, the built-in RA that can be used by the dynamic memory management mechanism 140 is displayed.
It is determined whether or not the free space 122 of M120 has been secured.
If the process proceeds to 360 and cannot be secured, the process proceeds to step S400.

次に、ステップS360では、外部RAM220にロードされた制御プログラム230
から、FIFO制御関数240の部分を内蔵RAM120の空き領域122にコピーする
コピー処理をする。
Next, in step S360, the control program 230 loaded in the external RAM 220.
Then, a copy process for copying the FIFO control function 240 portion to the free area 122 of the internal RAM 120 is performed.

次に、ステップS370では、マイクロコンピュータ100のCPU110が、内蔵R
AM120上のFIFO制御関数240を実行し、FIFO回路310のバッファリング
動作を制御し、インターフェース320に接続されている外部機器との間でデータの転送
を行う実行処理をする。
Next, in step S370, the CPU 110 of the microcomputer 100 causes the built-in R
The FIFO control function 240 on the AM 120 is executed, the buffering operation of the FIFO circuit 310 is controlled, and an execution process for transferring data to and from an external device connected to the interface 320 is performed.

次に、ステップS380では、マイクロコンピュータ100は、着脱検出部330から
外部機器がインターフェース320から離脱されたことを示す離脱検出信号を監視し、離
脱検出信号を受信した場合は、ステップS390に移行し、受信していない場合は、離脱
検出信号の監視を続ける。
Next, in step S380, the microcomputer 100 monitors the detachment detection signal indicating that the external device is detached from the interface 320 from the detachment detection unit 330. If the detachment detection signal is received, the microcomputer 100 proceeds to step S390. If not received, the monitoring of the separation detection signal is continued.

次に、ステップS390では、動的メモリ管理機構140により、内蔵RAM120の
使用した領域を開放する開放処理をする。
Next, in step S390, the dynamic memory management mechanism 140 performs release processing for releasing the used area of the internal RAM 120.

一方、ステップS400では、FIFO制御関数240をコピーするための内蔵RAM
120の空き領域122を確保できなかったので、外部RAM220上のFIFO制御関
数240を実行し、FIFO回路310のバッファリング動作を制御し、インターフェー
ス320に接続されている外部機器との間でデータの転送を行う。
On the other hand, in step S400, a built-in RAM for copying the FIFO control function 240
Since 120 free areas 122 could not be secured, the FIFO control function 240 on the external RAM 220 is executed, the buffering operation of the FIFO circuit 310 is controlled, and data is exchanged with an external device connected to the interface 320. Perform the transfer.

以上に述べた前記実施形態によれば、以下の効果が得られる。   According to the embodiment described above, the following effects can be obtained.

本実施形態では、マイクロコンピュータ100は、着脱検出部330により外部機器が
インターフェース320に装着されたことを検出した時点で、動的メモリ管理機構140
により内蔵RAM120の空き領域122を確保し、外部機器がインターフェースから離
脱された時点で、動的メモリ管理機構140により内蔵RAM120の使用した領域を開
放する構成となっている。この構成によれば、外部機器がデータ転送装置1に装着されて
いなければ、マイクロコンピュータ100は、内蔵RAM120の全領域を使用すること
ができ、外部機器が装着されている期間だけ内蔵RAM120の空き領域122を使用す
ることができるので、外部RAM220上でFIFO制御関数240を実行した場合に比
べ、FIFO回路310のバッファリング動作の高速化を図ることができ、さらに、デー
タ転送以外の期間は内部記憶回路からFIFO制御関数の記憶領域を開放するので、処理
回路は内部記憶回路のすべての領域を使用することが可能になる。
In the present embodiment, when the microcomputer 100 detects that an external device is attached to the interface 320 by the attachment / detachment detection unit 330, the dynamic memory management mechanism 140.
Thus, the free area 122 of the internal RAM 120 is secured, and when the external device is detached from the interface, the dynamic memory management mechanism 140 releases the area used by the internal RAM 120. According to this configuration, if the external device is not attached to the data transfer apparatus 1, the microcomputer 100 can use the entire area of the internal RAM 120, and the internal RAM 120 is free only during the period in which the external device is attached. Since the area 122 can be used, the buffering operation of the FIFO circuit 310 can be speeded up as compared with the case where the FIFO control function 240 is executed on the external RAM 220. Since the memory area of the FIFO control function is released from the memory circuit, the processing circuit can use all areas of the internal memory circuit.

以上、本発明の実施形態を説明したが、本発明はこうした実施の形態に何ら限定される
ものではなく、本発明の趣旨を逸脱しない範囲内において様々な形態で実施し得ることが
できる。以下、変形例を挙げて説明する。
As mentioned above, although embodiment of this invention was described, this invention is not limited to such embodiment at all, In the range which does not deviate from the meaning of this invention, it can be implemented with various forms. Hereinafter, a modification will be described.

(変形例1)本発明に係るデータ転送装置の第1変形例について説明する。前記第2実
施形態では、内蔵RAM120にFIFO制御関数240をコピーできる空き領域122
が確保できるか判定したが、確保できない場合、さらに少ない空き領域122でも実施で
きるよう以下のように提案する。
(Modification 1) A first modification of the data transfer apparatus according to the present invention will be described. In the second embodiment, the free area 122 in which the FIFO control function 240 can be copied to the built-in RAM 120.
However, if it cannot be ensured, it is proposed as follows so that it can be implemented even with a smaller free space 122.

FIFO制御関数240は、FIFO回路310からデータを読み出すためのFIFO
読出関数と、FIFO回路にデータを書き込むためのFIFO書込関数に分かれている。
内蔵RAM120にFIFO制御関数240をコピーできる空き領域122が確保できな
かった場合、FIFO回路310からデータを読み出す場合には、内蔵RAM120にF
IFO読出関数に必要な空き領域122があるか否かを判定し、FIFO回路310にデ
ータを書き込む場合には、内蔵RAM120にFIFO書込関数に必要な空き領域122
があるか否かを判定する(図5のS340、S350に相当)。空き領域122が確保で
きた場合、図5のステップS360に移行する。
The FIFO control function 240 is a FIFO for reading data from the FIFO circuit 310.
It is divided into a read function and a FIFO write function for writing data to the FIFO circuit.
When the empty area 122 that can copy the FIFO control function 240 cannot be secured in the built-in RAM 120, or when data is read from the FIFO circuit 310, the F
When it is determined whether there is a free area 122 necessary for the IFO read function and data is written to the FIFO circuit 310, the free area 122 necessary for the FIFO write function is stored in the internal RAM 120.
Is determined (corresponding to S340 and S350 in FIG. 5). When the free area 122 can be secured, the process proceeds to step S360 in FIG.

(変形例2)本発明に係るデータ転送装置の第2変形例について説明する。前記第2実
施形態では、着脱検出部330を使用する場合について説明したが、必ずしも着脱検出部
330がなくても構わない。この場合、マイクロコンピュータ100は、コントローラ3
00からデータ転送の要求が来た時点で、動的メモリ管理機構140により内蔵RAM1
20の空き領域を確保し、コントローラ300からデータ転送の要求が所定の時間途絶え
た時点で、動的メモリ管理機構140により内蔵RAM120の使用した領域を開放すれ
ばよい。
(Modification 2) A second modification of the data transfer apparatus according to the present invention will be described. In the second embodiment, the case where the attachment / detachment detection unit 330 is used has been described, but the attachment / detachment detection unit 330 may not necessarily be provided. In this case, the microcomputer 100 includes the controller 3
When a data transfer request is received from 00, the dynamic memory management mechanism 140 uses the built-in RAM 1
20 free areas are secured, and when the data transfer request from the controller 300 is interrupted for a predetermined time, the dynamic memory management mechanism 140 may release the used area of the internal RAM 120.

本発明の第1実施形態に係るデータ転送装置の構成を示すブロック図。1 is a block diagram showing a configuration of a data transfer apparatus according to a first embodiment of the present invention. 外部RAMと内蔵RAMの構成を示すブロック図。The block diagram which shows the structure of external RAM and built-in RAM. 第1実施形態に係るデータ転送装置の処理を説明するフローチャート。6 is a flowchart for explaining processing of the data transfer apparatus according to the first embodiment. 本発明の第2実施形態に係るデータ転送装置の構成を示すブロック図。The block diagram which shows the structure of the data transfer apparatus which concerns on 2nd Embodiment of this invention. 第2実施形態に係るデータ転送装置の処理を説明するフローチャート。The flowchart explaining the process of the data transfer apparatus which concerns on 2nd Embodiment.

符号の説明Explanation of symbols

1…データ転送装置、100…マイクロコンピュータ、110…CPU、120…内蔵
RAM、130…内部バス、140…動的メモリ管理機構、200…外部バス、210…
外部ROM、220…外部RAM、230…制御プログラム、240…FIFO制御関数
、300…コントローラ、310…FIFO回路、320…インターフェース、330…
着脱検出部。
DESCRIPTION OF SYMBOLS 1 ... Data transfer apparatus, 100 ... Microcomputer, 110 ... CPU, 120 ... Built-in RAM, 130 ... Internal bus, 140 ... Dynamic memory management mechanism, 200 ... External bus, 210 ...
External ROM 220 ... External RAM 230 ... Control program 240 ... FIFO control function 300 ... Controller 310 ... FIFO circuit 320 ... Interface 330 ...
Attachment / detachment detection unit.

Claims (5)

データ転送のためのバッファリングを行うFIFO回路と、
外部記憶回路と、
前記外部記憶回路よりも動作速度が速く、前記FIFO回路を制御するFIFO制御関
数を記憶する内部記憶回路と前記FIFO制御関数を実行する処理回路とを有するマイク
ロコンピュータと、
を含む、
ことを特徴とするデータ転送装置。
A FIFO circuit for buffering for data transfer;
An external storage circuit;
A microcomputer having an operation speed higher than that of the external storage circuit, an internal storage circuit for storing a FIFO control function for controlling the FIFO circuit, and a processing circuit for executing the FIFO control function;
including,
A data transfer device.
データ転送のためのバッファリングを行うFIFO回路と、
前記FIFO回路を制御するFIFO制御関数を含む制御プログラムを記憶する外部記
憶回路と、
前記外部記憶回路よりも動作速度が速い内部記憶回路と前記FIFO制御関数を実行す
る処理回路とを有するマイクロコンピュータと、
を有し、
前記マイクロコンピュータは、
前記制御プログラムの容量が前記内部記憶回路の容量よりも大きく、前記内部記憶回路
の容量よりも小さい容量の前記FIFO制御関数を前記内部記憶回路に記憶させ、前記F
IFO制御関数を前記内部記憶回路から実行する、
ことを特徴とするデータ転送装置。
A FIFO circuit for buffering for data transfer;
An external storage circuit for storing a control program including a FIFO control function for controlling the FIFO circuit;
A microcomputer having an internal storage circuit whose operation speed is higher than that of the external storage circuit and a processing circuit for executing the FIFO control function;
Have
The microcomputer is
The FIFO control function having a capacity of the control program larger than the capacity of the internal storage circuit and smaller than the capacity of the internal storage circuit is stored in the internal storage circuit, and the F
Executing an IFO control function from the internal storage circuit;
A data transfer device.
データ転送のためのバッファリングを行うFIFO回路と、
前記FIFO回路を制御するFIFO制御関数を含む制御プログラムを記憶する外部記
憶回路と、
前記外部記憶回路よりも動作速度が速い内部記憶回路と前記FIFO制御関数を実行す
る処理回路と前記内部記憶回路を管理する動的メモリ管理機構とを有するマイクロコンピ
ュータと、
を有し、
前記マイクロコンピュータは、
前記データ転送を開始する開始時点で、前記動的メモリ管理機構により前記FIFO制
御関数を記憶するのに必要な前記内部記憶回路の空き領域を探索する探索処理と、前記F
IFO制御関数を前記外部記憶回路から前記内部記憶回路にコピーし記憶させるコピー処
理と、前記内部記憶回路に記憶した前記FIFO制御関数を実行する実行処理と、を実行
し、
前記データ転送を終了した終了時点で、前記動的メモリ管理機構により前記内部記憶回
路から前記FIFO制御関数を記憶した領域を開放する開放処理を実行する、
ことを特徴とするデータ転送装置。
A FIFO circuit for buffering for data transfer;
An external storage circuit for storing a control program including a FIFO control function for controlling the FIFO circuit;
A microcomputer having an internal storage circuit whose operation speed is faster than that of the external storage circuit, a processing circuit for executing the FIFO control function, and a dynamic memory management mechanism for managing the internal storage circuit;
Have
The microcomputer is
A search process for searching for a free area in the internal storage circuit necessary for storing the FIFO control function by the dynamic memory management mechanism at a start time of starting the data transfer;
A copy process for copying and storing an IFO control function from the external storage circuit to the internal storage circuit, and an execution process for executing the FIFO control function stored in the internal storage circuit;
At the end of the data transfer, the dynamic memory management mechanism executes a release process for releasing the area storing the FIFO control function from the internal storage circuit.
A data transfer device.
請求項3に記載のデータ転送装置において、
前記データ転送装置は、さらに前記データ転送の対象である外部機器を装着するインタ
ーフェース部と、前記インターフェース部に前記外部機器が装着または離脱されたことを
検出する着脱検出部と、を有し、
前記マイクロコンピュータは、
前記着脱検出部が前記インターフェース部に前記外部機器が装着されたことを検出した
時点を前記開始時点とし、前記探索処理と、前記コピー処理と、前記実行処理と、を実行
し、
前記着脱検出部が前記インターフェース部から前記外部機器が離脱されたことを検出し
た時点を前記終了時点とし、前記開放処理を実行する、
ことを特徴とするデータ転送装置。
The data transfer device according to claim 3, wherein
The data transfer device further includes an interface unit for mounting the external device that is the target of the data transfer, and an attachment / detachment detection unit that detects that the external device is mounted or detached from the interface unit,
The microcomputer is
The point in time when the attachment / detachment detection unit detects that the external device is attached to the interface unit is set as the start point, and the search process, the copy process, and the execution process are executed.
The time when the attachment / detachment detection unit detects that the external device has been detached from the interface unit is set as the end time, and the release process is executed.
A data transfer device.
請求項3に記載のデータ転送装置において、
前記FIFO制御関数は、前記FIFO回路からデータを読み出すためのFIFO読出
関数と、前記FIFO回路にデータを書き込むためのFIFO書込関数と、からなり、
前記マイクロコンピュータは、
前記FIFO回路からデータを読み出す場合は、前記動的メモリ管理機構により前記F
IFO読出関数を記憶するのに必要な前記内部記憶回路の空き領域を探索し、前記FIF
O読出関数を前記外部記憶回路から前記内部記憶回路にコピーし記憶させ、前記内部記憶
回路に記憶した前記FIFO読出関数を実行し、
前記FIFO回路にデータを書き込む場合は、前記動的メモリ管理機構により前記FI
FO書込関数を記憶するのに必要な前記内部記憶回路の空き領域を探索し、前記FIFO
書込関数を前記外部記憶回路から前記内部記憶回路にコピーし記憶させ、前記内部記憶回
路に記憶した前記FIFO書込関数を実行する、
ことを特徴とするデータ転送装置。
The data transfer device according to claim 3, wherein
The FIFO control function includes a FIFO read function for reading data from the FIFO circuit and a FIFO write function for writing data to the FIFO circuit.
The microcomputer is
When reading data from the FIFO circuit, the dynamic memory management mechanism causes the F
A search is made for a free area of the internal storage circuit necessary for storing the IFO read function, and the FIFO
O read function is copied from the external storage circuit to the internal storage circuit and stored, and the FIFO read function stored in the internal storage circuit is executed,
When writing data to the FIFO circuit, the dynamic memory management mechanism causes the FI
Searching for a free area of the internal storage circuit necessary for storing the FO write function, and the FIFO
Copying and storing a write function from the external storage circuit to the internal storage circuit, and executing the FIFO write function stored in the internal storage circuit;
A data transfer device.
JP2005156714A 2005-05-30 2005-05-30 Data transfer device Withdrawn JP2006331248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005156714A JP2006331248A (en) 2005-05-30 2005-05-30 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005156714A JP2006331248A (en) 2005-05-30 2005-05-30 Data transfer device

Publications (1)

Publication Number Publication Date
JP2006331248A true JP2006331248A (en) 2006-12-07

Family

ID=37552852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005156714A Withdrawn JP2006331248A (en) 2005-05-30 2005-05-30 Data transfer device

Country Status (1)

Country Link
JP (1) JP2006331248A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021040897A (en) * 2019-09-10 2021-03-18 株式会社藤商事 Game machine
JP2021040895A (en) * 2019-09-10 2021-03-18 株式会社藤商事 Game machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021040897A (en) * 2019-09-10 2021-03-18 株式会社藤商事 Game machine
JP2021040895A (en) * 2019-09-10 2021-03-18 株式会社藤商事 Game machine
JP7112824B2 (en) 2019-09-10 2022-08-04 株式会社藤商事 game machine
JP7112823B2 (en) 2019-09-10 2022-08-04 株式会社藤商事 game machine

Similar Documents

Publication Publication Date Title
US8117474B2 (en) CPU clock control during cache memory stall
JP5610566B2 (en) Semiconductor device and data processing system
JP2007219581A (en) Memory controller, and electronic equipment mounted therewith
CN102646446A (en) Hardware dynamic cache power management
JP2006277332A (en) Integrated circuit device, microcomputer, and electronic device
JP2006351013A (en) Method and system for storing/restoring procedure in electronic equipment
JP2008204257A (en) Memory controller for controlling memory, and memory control method
JP2009217721A (en) Data synchronization method in multiprocessor system and multiprocessor system
JP2006331248A (en) Data transfer device
JP2009037403A (en) Valid activation method for core memory in multi-core processor
JP4693843B2 (en) Memory control device and memory control method
JP2008225608A (en) Memory controller for controlling memory, memory module, and memory control method
JP5783348B2 (en) Control device, control program, and image forming apparatus
JP2005085079A (en) Data transfer controller
JP2015215684A (en) Information processing apparatus and information processing program
JP2011158967A (en) Electronic control device
EP1443412A2 (en) Information processing apparatus and memory access arranging method
JP2005258967A (en) Data processor
JP7302303B2 (en) Image processing device, image processing method, and program
US11606316B2 (en) System and method for modem stabilization when waiting for AP-driven link recovery
JP5231496B2 (en) Information processing apparatus and suspend / resume method thereof
JP2010140440A (en) Bus arbitration device
JP4107278B2 (en) Processor control circuit and information processing apparatus
JP2007265230A (en) Information processor and method for reading file thereof
JP2007185911A (en) Printer controller and printer

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070404

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080805