JP2006023986A - Method for copying data and card reader - Google Patents
Method for copying data and card reader Download PDFInfo
- Publication number
- JP2006023986A JP2006023986A JP2004201640A JP2004201640A JP2006023986A JP 2006023986 A JP2006023986 A JP 2006023986A JP 2004201640 A JP2004201640 A JP 2004201640A JP 2004201640 A JP2004201640 A JP 2004201640A JP 2006023986 A JP2006023986 A JP 2006023986A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- card
- card reader
- memory
- memory card
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、複数のメモリカード間のデータを直接コピーする方法と装置に関し、特に、ソフトウェアドライバと連携して内部のダイレクトメモリアクセス(DMA)コントローラーを用いて、メモリまたはシステムバスをコピーすることなく、異なる形式の各種のメモリカード間のデータを転送する方法に関するものである。 The present invention relates to a method and an apparatus for directly copying data between a plurality of memory cards, and in particular, without using an internal direct memory access (DMA) controller in cooperation with a software driver without copying a memory or a system bus. The present invention relates to a method for transferring data between various types of memory cards.
フラッシュメモリカードは、それらの小型サイズによって便利で持ち運びが可能である。しかし、例えば、メモリースティック(MS)、セーフデジタル(SD)、スマートメディア(SM)、xDピクチャー(XD)など、各種のメモリカード間の規格には交換性がない。そのため、利便性の需要からマルチカードリーダーがポピュラーになってきている。従来のマルチカードリーダーは、データ転送に、通常、ユニバーサルシリアルバス(USB)、ローピンカウント(LPC)、または周辺装置相互接続インターフェース(PCI)を用いる。 Flash memory cards are convenient and portable because of their small size. However, for example, standards between various memory cards such as memory stick (MS), safe digital (SD), smart media (SM), and xD picture (XD) are not interchangeable. For this reason, multi-card readers have become popular due to demand for convenience. Conventional multi-card readers typically use Universal Serial Bus (USB), Low Pin Count (LPC), or Peripheral Device Interconnect Interface (PCI) for data transfer.
PCIインターフェースを用いた従来のマルチカードリーダーでは、第一カードリーダーから第二カードリーダーにデータをコピーするために、データを読む時、下記のコンポーネント、すなわち、第一メモリカード、ダイレクトメモリアクセス(DMA)コントローラー、PCIバス、サウスブリッジ、ノースブリッジとメインメモリが順番に占領される。同様に、データがメインメモリから第二メモリカードに書き込まれる時、下記のコンポーネント、すなわち、メインメモリ、ノースブリッジ、サウスブリッジ、PCIバス、DMAコントローラーと最後に、第二メモリカードが順番に占領される。したがって、PCIバスの資源は、二回占領され、中央演算処理装置(CPU)は、二回中断され、メインメモリは二回アクセスされる。 In a conventional multi-card reader using a PCI interface, when data is read in order to copy data from the first card reader to the second card reader, the following components are used: the first memory card, direct memory access (DMA). ) Controller, PCI bus, South Bridge, North Bridge and main memory are occupied in order. Similarly, when data is written from the main memory to the second memory card, the following components are occupied in sequence: main memory, north bridge, south bridge, PCI bus, DMA controller and finally the second memory card. The Therefore, the PCI bus resources are occupied twice, the central processing unit (CPU) is interrupted twice, and the main memory is accessed twice.
図1に見られるように、従来の外部接続のPCI装置20、21および22のデータは、読み込みまたは、書き込みに関わらず、必然的にシステムバス23、ノースおよびサウスブリッジ25とメインメモリ24とを占領する。
As shown in FIG. 1, the data of the conventional externally connected
図2は、マルチカードリーダー27がシステムバス14に差し込まれた時に、メモリカード16からメモリカード17にコピーするプロセスを示している。まず、コピー命令がオペレーティングシステム10からカードリーダードライバ8および9に出される。カードリーダードライバ8は、カードリーダー3に対応し、カードリーダードライバ9は、カードリーダー4に対応する。DMAコントローラー1とカードリーダー3〜4は、続いて、バスコントローラー13の中のバススレーブ7によって受けたコピー命令によって初期化される。オペレーティングシステム10は、続いて、バスマスター6を通して送られた中断要求11によって確認し、コピープロセスの開始を知らせる。
FIG. 2 shows a process of copying from the
初期化の完了後、データは、ノースおよびサウスブリッジ25を通して、バスマスター6によってコントロールされたシステムバス14を経由して、カードリーダー3からDMAコントローラー1に転送され、最後にメインメモリ24に書き込まれる。
After the initialization is completed, the data is transferred from the
したがって、データは、メインメモリ24から読み込まれ、ノースおよびサウスブリッジ25を通して、バスマスター6によってコントロールされたシステムバス14を経由して、再度、DMAコントローラー1に転送される。コピープロセスは、データがDMAコントローラー1によってカードリーダー4のメモリカード17に書き込まれた時、完了する。完了した時、中断要求が同時にバスマスター6によってオペレーティングシステム10に送られ、システムにコピープロセスが完了したことを知らせる。
Therefore, data is read from the
従来の方法では、データは、ダイレクトメモリアクセス技術によって読まれ、書き込まれ、コンポーネントは、下記の順序で占領される。メモリカード16、カードリーダー3、DMAコントローラー1、バスマスター6、システムバス14、ノースおよびサウスブリッジ25、メインメモリ24、ノースおよびサウスブリッジ25、システムバス14、バスマスター6、DMAコントローラー1、カードリーダー4、メモリカード17の全部で13のステップである。よって、システムが二回中断される。従来の方法は、PCIバスにかなりの負担をかけ、バンド幅を浪費し、メインメモリとPCIバスの間の転送隘路を生じさせる。
In conventional methods, data is read and written by direct memory access techniques and components are occupied in the following order:
本発明の目的は、システムバスとメインメモリを占領することなく、複数のメモリカード間のデータをコピーする方法を提供する。
本発明によって提供された方法は、隠しダイレクトメモリアクセス(hidden DMA)転送と言われ、この方法に用いられるマルチカードリーダーも提供される。
An object of the present invention is to provide a method for copying data between a plurality of memory cards without occupying a system bus and a main memory.
The method provided by the present invention is referred to as a hidden direct memory access (hidden DMA) transfer, and a multi-card reader used in this method is also provided.
マルチカードリーダーは、マルチカードインターフェース、バスコントローラー、DMA(ダイレクトメモリアクセス)コントローラーを含む。マルチカードインターフェースは、更に各種の形式の複数のスロットを含み、異なる規格のメモリカードに対応する。バスコントローラーは、バスマスターとバススレーブを含み、それぞれ特定の操作をコントロールする。DMAコントローラーは、データ転送の主要なプロセッサーで、システムドライバの制御の下に、カードリーダーとシステムとの間に流れる全てのデータを操作する。 The multi-card reader includes a multi-card interface, a bus controller, and a DMA (direct memory access) controller. The multi-card interface further includes a plurality of slots of various types, and supports memory cards of different standards. The bus controller includes a bus master and a bus slave, and each controls a specific operation. The DMA controller is the main processor for data transfer and operates all data flowing between the card reader and the system under the control of the system driver.
データが第一メモリカードから第二メモリカードにコピーされる時、下記のステップが求められる。まず、システムバスによってシステムから送られたコピー命令が受けられる。データは、続いてコピー命令を受けた後、第一カードリーダーによって第一メモリカードから読み込まれる。最後にデータは、システムバスを占領することなく第二カードリーダーによって第二メモリカードに書き込まれる。したがって、メモリとシステムバスは、データのコピープロセスによって占領されず、1回の中断だけでコピープロセスが始められたことをシステムに知らせることができる。内部フラグは、システムが中断を確認した時、作動され、コピープロセスは、フラグ値が特定値の時、プロセスが完了していると確定される。 When data is copied from the first memory card to the second memory card, the following steps are required. First, a copy command sent from the system by the system bus is received. The data is subsequently read from the first memory card by the first card reader after receiving a copy command. Finally, the data is written to the second memory card by the second card reader without occupying the system bus. Thus, the memory and system bus are not occupied by the data copying process, and can inform the system that the copying process has begun with only one interruption. The internal flag is activated when the system confirms the interruption, and the copy process is determined to be complete when the flag value is a specific value.
よって、本発明に基づいた隠しダイレクトメモリアクセス転送の方法を用いると、下記のコンポーネントだけが順番に占領される。メモリカード16、カードリーダー3、DMAコントローラー1、カードリーダー4とメモリカード17の全部で5ステップで、1回のシステム中断要求だけが求められる。従来のシステムの13ステップと2回の中断に比べ、本発明の方法は、早く、より効率的である。
Thus, using the hidden direct memory access transfer method according to the present invention, only the following components are occupied in order. The
本発明に基づいた隠しDMA転送の方法を用いると、データは、メインメモリにアクセスすることなく、またはPCIバスを占領することなく、直接、内部DMA(ダイレクトメモリアクセス)コントローラーによってメモリカード間を転送する。コピープロセスの完了を指示する通知だけが中央演算処理装置で待たされる。 With the hidden DMA transfer method according to the present invention, data is transferred between memory cards directly by an internal DMA (direct memory access) controller without accessing the main memory or occupying the PCI bus. To do. Only a notification instructing the completion of the copy process is waited at the central processing unit.
本発明についての目的、特徴、長所が一層明確に理解されるよう、以下に実施形態を例示し、図面を参照にしながら、詳細に説明する。 In order that the objects, features, and advantages of the present invention will be more clearly understood, embodiments will be described below in detail with reference to the drawings.
本発明の詳細な説明が下記に提供される。
図3に示すように、マルチカードリーダー27は、コンピューターシステムのシステムバス14に差し込まれ、オペレーティングシステム10からカードリーダー8と9を通して出された命令によってコントロールされる。マルチカードリーダー27は、バスコントローラー13、DMAコントローラー1を含み、カードリーダー2〜5がそこに設置される。バスコントローラー13は、バスマスター6とバススレーブ7との組合せである。バスマスター6は、データ転送の間、システムバス14を導き、バススレーブ7は、オペレーティングシステム10からシステムバス14を通して出された命令を受け、フラグ値を用いてオペレーティングシステム10に対して応答する。
A detailed description of the present invention is provided below.
As shown in FIG. 3, the
DMAコントローラー1は、マルチカードリーダー27の全てのデータの流れを導き、ドライバ19の指示の下で、どのドライバの間のデータのコピーも可能である。例えば、カードリーダーからカードリーダーへ、カードリーダーからシステムへ、またはシステムからカードリーダーへなどである。
The DMA controller 1 guides all the data flow of the
メモリースティック(MS)、セーフデジタル(SD)、スマートメディア(SM)、xDピクチャー(XD)を含むいずれかの規格のメモリカード15〜18は、対応するカードリーダー2〜5に差し込まれる。システムバス14は、周辺装置相互接続インターフェース(PCI)、ISA(industrial standard architecture:通称、アイサ)、またはローピンカウント(LPC)に適合する。
図3は、データがメモリカード16からメモリカード17にコピーされる状態を図解している。マルチカードリーダー27は、システムバス14と接続されたバスコントローラー13を含む。オペレーティングシステム10は、カードリーダードライバ8または9と連携してマルチカードリーダー27をコントロールする。カードリーダー3は、カードリーダードライバ8を読み、カードリーダー4は、カードリーダードライバ9を読む。コピー命令は、オペレーティングシステム10の指示の下にカードリーダードライバ8から出され、システムバス14を経由して、バスコントローラー13の中に置かれたスレーブ7によって受けられ、DMAコントローラー1、カードリーダー3とカードリーダー4を初期化する。
FIG. 3 illustrates a state where data is copied from the
初期化が完了後、データは、カードリーダー3からDMAコントローラー1によって読み込まれ、中断要求は、同時に、バスコントローラー13の中に置かれたバスマスター6を通してオペレーティングシステム10に送られ、コピープロセスが始められたことをシステムに知らせる。カードリーダードライバ9は、続いて、オペレーティングシステム10によって指示され、DMAコントローラー1の中のフラグ値をモニタする。
After initialization is complete, data is read from the
データは、カードリーダー4を通してDMAコントローラー1によってメモリカード17に書き込まれる。完了した時、フラグは特定値に設定され、コピープロセスが完了したことをシステム10に知らせる。
Data is written to the
もう1つの実施例では、相互接続の機構がカードリーダードライバ8および9に具備され、オペレーティングシステム10を占領することなく、対応するカードリーダーの初期化を自動化するようにしてある。オペレーティングシステム10は、指示を出すことを要求されるのみであり、カードリーダードライバは、残りのタスクを完了させ、オペレーティングシステム10がそれぞれの複雑なコンポーネントの初期化のステップを完了する負担から免れさせる。
In another embodiment, an interconnect mechanism is provided in the
このように、本発明に基づいた隠しDMA転送の方法を用いると、データは、メインメモリにアクセスすることなく、またはPCIバスを占領することなく、直接、内部DMA(ダイレクトメモリアクセス)コントローラーによってメモリカード間を転送する。コピープロセスの完了を指示する通知だけが中央演算処理装置(CPU)で期待される。 Thus, with the hidden DMA transfer method according to the present invention, data is directly stored in the internal DMA (direct memory access) controller without accessing the main memory or occupying the PCI bus. Transfer between cards. Only notifications that direct the completion of the copy process are expected at the central processing unit (CPU).
したがって、データ転送は、下記のコンポーネントを順番に占領する。すなわち、メモリカード16、カードリーダー3、DMAコントローラー1、カードリーダー4およびメモリカード17の全部で5ステップで、システム10には、1回のシステム中断要求だけが求められる。従来では、13ステップと2回の中断に比べ、本発明の方法は、より効率的で早く、システム資源の消費を減少することができる。
Thus, data transfer occupies the following components in order: In other words, the
以上、本発明の好適な実施例を例示したが、これは本発明を限定するものではなく、本発明の精神及び範囲を逸脱しない限りにおいては、当業者であれば行い得る少々の変更や修飾を付加することは可能である。従って、本発明が保護を請求する範囲は、特許請求の範囲を基準とする。 The preferred embodiments of the present invention have been described above, but this does not limit the present invention, and a few changes and modifications that can be made by those skilled in the art without departing from the spirit and scope of the present invention. It is possible to add. Accordingly, the scope of the protection claimed by the present invention is based on the scope of the claims.
1 ダイレクトメモリアクセスコントローラー
2、3、4、5 カードリーダー
6 バスマスター
7 バススレーブ
8、9 カードリーダードライバ
10 オペレーティングシステム
11、12 中断要求
13 バスコントローラー
14 システムバス
15、16、17、18 メモリカード
19 ドライバ
20、22 周辺装置相互接続インターフェース
21 周辺装置相互接続インターフェース(マスター)
23 周辺装置相互接続インターフェースのバス
24 メインメモリ
25 ノースおよびサウスブリッジ
26 中央演算処理装置(CPU)
27 マルチカードリーダー
1 Direct
23 Peripheral Device
27 Multi-card reader
Claims (10)
前記第一メモリカードと前記第二メモリカードに接続し、その中に保存されているデータにアクセスするマルチカードインターフェースと、
システムバスに接続され、前記システムバスによってシステムから送られたコピー命令を受けるバスコントローラーと、
前記システムから送られた前記コピー命令が前記バスコントローラーによって受けられた時、前記システムバスを占領することなく前記第一メモリカードから前記第二メモリカードに直接データをコピーするダイレクトメモリアクセスコントローラーと、
を含むカードリーダー装置。 A card reader device for copying data from a first memory card to a second memory card,
A multi-card interface for connecting to the first memory card and the second memory card and accessing data stored therein;
A bus controller connected to the system bus and receiving a copy command sent from the system by the system bus;
A direct memory access controller for copying data directly from the first memory card to the second memory card without occupying the system bus when the copy command sent from the system is received by the bus controller;
Including card reader device.
前記コピー命令を受けた後、第一カードリーダーを通して第一メモリカードからデータを読み込むステップと、
前記システムバスを占領することなく、直接、第二カードリーダーを通して第二メモリカードに書き込むステップと、
を含むマルチメモリカード間のデータをコピーする方法。 Receiving a copy command sent from the system through the system bus;
After receiving the copy command, reading data from the first memory card through the first card reader;
Writing directly to the second memory card through the second card reader without occupying the system bus;
To copy data between multiple memory cards including
前記コピー命令を受けた後、前記ダイレクトメモリアクセスコントローラーと、前記第一カードリーダーと、前記第二カードリーダーとを初期化するステップと、
前記コピー命令を受けた後、バスコントローラーの中のバスマスターを通して前記システムに中断要求を送り、前記システムに前記コピー命令が実行されたことを知らせるステップと、
前記コピー命令を受けた後、第一カードリーダーを通して第一メモリカードからデータを読み込むステップと、
前記システムバスを占領することなく、直接、第二カードリーダーを通して第二メモリカードに書き込むステップと、
前記第二メモリカードにデータを書き込んだ後、前記ダイレクトメモリアクセスコントローラーの中のフラグを特定値に設定するステップと、
を含むマルチメモリカード間のデータをコピーする方法。 Receiving a copy command sent from the system through the system bus;
After receiving the copy command, initializing the direct memory access controller, the first card reader, and the second card reader;
After receiving the copy command, sending a suspension request to the system through a bus master in a bus controller to inform the system that the copy command has been executed;
After receiving the copy command, reading data from the first memory card through the first card reader;
Writing directly to the second memory card through the second card reader without occupying the system bus;
After writing data to the second memory card, setting a flag in the direct memory access controller to a specific value;
To copy data between multiple memory cards including
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004201640A JP2006023986A (en) | 2004-07-08 | 2004-07-08 | Method for copying data and card reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004201640A JP2006023986A (en) | 2004-07-08 | 2004-07-08 | Method for copying data and card reader |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006023986A true JP2006023986A (en) | 2006-01-26 |
Family
ID=35797216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004201640A Pending JP2006023986A (en) | 2004-07-08 | 2004-07-08 | Method for copying data and card reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006023986A (en) |
-
2004
- 2004-07-08 JP JP2004201640A patent/JP2006023986A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4799417B2 (en) | Host controller | |
US9680972B2 (en) | SD switch box in a cellular handset | |
JP2006209643A (en) | Interface circuit and system device using the same | |
JP2009043256A (en) | Accessing method and arrangement of memory unit | |
US20080005387A1 (en) | Semiconductor device and data transfer method | |
JP2006215873A (en) | Controller, information processor and transfer processing method | |
JP2006113689A (en) | Bus bridge device and data transfer method | |
TW201112131A (en) | Controllers, apparatuses, and methods for transferring data | |
JP2007058786A (en) | Bridge and its control method | |
JP2011090485A (en) | Circuit and method for pipe arbitration | |
US20050144336A1 (en) | Method and apparatus for data sharing | |
JP2009181579A (en) | Method, subsystem and system for invoking function | |
JP2019185544A (en) | Semiconductor apparatus and ufs system | |
JP2006023986A (en) | Method for copying data and card reader | |
JP2002183675A (en) | Control device of data recording medium and method therefor, data recorder and control device | |
JP2002149623A (en) | Microcomputer | |
JP4793798B2 (en) | Microcomputer | |
RU2579949C2 (en) | Computer system | |
JP4452751B2 (en) | Function control apparatus and method | |
CN114281726B (en) | System architecture for soc chip and peripheral communication method | |
JP2001043182A (en) | Parallel bus system | |
RU155208U1 (en) | COMPUTER SYSTEM | |
CN116610601A (en) | Data transmission device, control method and device thereof, and medium | |
JP2020035336A (en) | Bridge device and control method of bridge device, and information processor having the bridge device | |
JP2005518607A (en) | Data transmission method via data bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070221 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070320 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20070911 |