JP3395762B2 - Data processing system and data transmission method - Google Patents

Data processing system and data transmission method

Info

Publication number
JP3395762B2
JP3395762B2 JP2000150584A JP2000150584A JP3395762B2 JP 3395762 B2 JP3395762 B2 JP 3395762B2 JP 2000150584 A JP2000150584 A JP 2000150584A JP 2000150584 A JP2000150584 A JP 2000150584A JP 3395762 B2 JP3395762 B2 JP 3395762B2
Authority
JP
Japan
Prior art keywords
signal
data
data processing
state
processing device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2000150584A
Other languages
Japanese (ja)
Other versions
JP2001024735A (en
Inventor
光浩 平林
健一 中西
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.)
Sony Corp
Original Assignee
Sony 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
Priority claimed from JP09206929A external-priority patent/JP3134819B2/en
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2000150584A priority Critical patent/JP3395762B2/en
Publication of JP2001024735A publication Critical patent/JP2001024735A/en
Application granted granted Critical
Publication of JP3395762B2 publication Critical patent/JP3395762B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、シリアルインター
フェースを用いて外部記憶装置とデータの伝送を行うデ
ータ処理システム及びデータ伝送方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing system and a data transmission method for transmitting data to and from an external storage device using a serial interface.

【0002】[0002]

【従来の技術】従来、フラッシュメモリ等の記憶媒体を
内蔵するメモリカードが接続されるデータ処理装置が知
られている。この種のデータ処理装置と、このデータ処
理装置に接続されるメモリカードについて図面を用いて
説明する。
2. Description of the Related Art Conventionally, there has been known a data processing device to which a memory card containing a storage medium such as a flash memory is connected. A data processor of this type and a memory card connected to the data processor will be described with reference to the drawings.

【0003】データ処理装置100は、図11に示すよ
うに、データ処理部101と、レジスタ102と、ホス
ト側シリアルインターフェース回路103と、ホスト側
コントローラ104とを備えている。また、メモリカー
ド110は、メモリ111と、レジスタ112と、カー
ド側シリアルインターフェース回路113と、カード側
コントローラ114とを備えている。
As shown in FIG. 11, the data processing apparatus 100 comprises a data processing unit 101, a register 102, a host side serial interface circuit 103, and a host side controller 104. Further, the memory card 110 includes a memory 111, a register 112, a card side serial interface circuit 113, and a card side controller 114.

【0004】データ処理装置100のデータ処理部10
1は、メモリカード110に記憶したデータを読み出し
て各種データ処理を行い、各種データ処理をしてメモリ
カード110に書き込むデータを生成する。すなわち、
データ処理部101は、メモリカード110を用いる各
種装置のデータ処理回路となる。
The data processing unit 10 of the data processing device 100
1 reads the data stored in the memory card 110, performs various data processing, and performs various data processing to generate data to be written in the memory card 110. That is,
The data processing unit 101 is a data processing circuit of various devices using the memory card 110.

【0005】レジスタ102は、データ処理部101と
ホスト側シリアルインターフェース103とのバッファ
である。すなわち、データ処理装置100は、データ処
理部101からホスト側シリアルインターフェース回路
103にデータを供給する場合は、このレジスタ102
に一時データを格納した後にホスト側シリアルインター
フェース回路103に供給する。同様に、データ処理装
置100は、ホスト側シリアルインターフェース回路1
03からデータ処理部101にデータを供給する場合
は、このレジスタ102に一時データを格納した後にデ
ータ処理部101に供給する。
The register 102 is a buffer between the data processing unit 101 and the host side serial interface 103. That is, when the data processing device 100 supplies data from the data processing unit 101 to the host side serial interface circuit 103, this register 102 is used.
The temporary data is stored in and is supplied to the host-side serial interface circuit 103. Similarly, the data processing device 100 includes the host-side serial interface circuit 1
When data is supplied from 03 to the data processing unit 101, temporary data is stored in the register 102 and then supplied to the data processing unit 101.

【0006】ホスト側シリアルインターフェース回路1
03は、データ処理部101からレジスタ102を介し
て供給されるデータ及びカード側コントローラ114か
ら供給されるコマンドをシリアル信号に変換してメモリ
カード110に供給する。また、ホスト側シリアルイン
ターフェース回路103は、メモリカード110から供
給されたシリアル信号のデータ及びコマンドをパラレル
信号に変換して、データ処理部101及びカード側コン
トローラ114に供給する。
Host-side serial interface circuit 1
03 converts the data supplied from the data processing unit 101 via the register 102 and the command supplied from the card-side controller 114 into a serial signal and supplies the serial signal to the memory card 110. Further, the host-side serial interface circuit 103 converts the data and command of the serial signal supplied from the memory card 110 into a parallel signal and supplies the parallel signal to the data processing unit 101 and the card-side controller 114.

【0007】また、ホスト側シリアルインターフェース
回路103は、データ及びコマンドの同期信号(CL
K)及びチップセレクト信号(CS)をメモリカード1
10に供給する。さらに、ホスト側シリアルインターフ
ェース回路103は、メモリカード110から供給され
るビジー信号(BUSY)及びインタラプト信号(IN
TERRUPT)を取得する。
Further, the host-side serial interface circuit 103 has a data and command synchronization signal (CL).
K) and chip select signal (CS) to memory card 1
Supply to 10. Further, the host-side serial interface circuit 103 receives the busy signal (BUSY) and the interrupt signal (IN) supplied from the memory card 110.
TERRUPT) is acquired.

【0008】ホスト側コントローラ104は、データ処
理部101のデータ処理動作、ホスト側シリアルインタ
ーフェース回路103の各データの伝送動作の制御を行
う。また、ホスト側コントローラ104は、メモリカー
ド110への制御命令となるコマンドをレジスタ112
を介してメモリカード110に供給する。
The host side controller 104 controls the data processing operation of the data processing section 101 and the data transmission operation of the host side serial interface circuit 103. The host-side controller 104 also sends a command, which is a control instruction to the memory card 110, to the register 112.
To the memory card 110 via.

【0009】一方、メモリカード110のメモリ111
は、例えば、フラッシュメモリ等からなりデータ処理部
101から供給されたデータを記憶する。
On the other hand, the memory 111 of the memory card 110
Stores, for example, data supplied from the data processing unit 101 such as a flash memory.

【0010】レジスタ112は、メモリ111とカード
側シリアルインターフェース回路113とのバッファで
ある。すなわち、メモリカード110は、メモリ111
がデータ処理装置100からのデータを書き込む場合
は、このレジスタ102に一時データを格納した後に書
き込むデータをメモリ111に供給する。同様に、メモ
リカード110は、データ処理装置100がメモリ11
1からデータを読み出す場合は、このレジスタ102に
一時データを格納した後に読み出すデータをカード側シ
リアルインターフェース回路113に供給する。このレ
ジスタ112は、フラッシュメモリのページバッファの
機能等を果たす回路である。
The register 112 is a buffer between the memory 111 and the card side serial interface circuit 113. That is, the memory card 110 has the memory 111
When writing data from the data processor 100, the temporary data is stored in the register 102 and then the data to be written is supplied to the memory 111. Similarly, in the memory card 110, the data processing device 100 stores the memory 11
When reading the data from 1, the data to be read after the temporary data is stored in the register 102 is supplied to the card side serial interface circuit 113. The register 112 is a circuit that functions as a page buffer of the flash memory.

【0011】カード側シリアルインターフェース回路1
13は、カード側コントローラ114の制御に基づき、
メモリ111から供給されるパラレル信号のデータ及び
カード側コントローラ114から供給されるコマンドを
シリアル信号に変換してデータ処理装置100に供給す
る。また、カード側シリアルインターフェース回路11
3は、データ処理装置100から供給されるシリアル信
号のデータ及びコマンドをパラレル信号に変換して、メ
モリ111及びカード側コントローラ114に供給す
る。
Card-side serial interface circuit 1
13 is based on the control of the card side controller 114,
The data of the parallel signal supplied from the memory 111 and the command supplied from the card-side controller 114 are converted into a serial signal and supplied to the data processing device 100. In addition, the card side serial interface circuit 11
3 converts the data and command of the serial signal supplied from the data processing device 100 into a parallel signal, and supplies the parallel signal to the memory 111 and the card-side controller 114.

【0012】さらに、カード側シリアルインターフェー
ス回路113は、データ及びコマンドの同期信号(CL
K)及びチップセレクト信号(CS)をデータ処理装置
100から取得する。さらにまた、カード側シリアルイ
ンターフェース回路113は、ビジー信号(BUSY)
及びインタラプト信号(INTERRUPT)をデータ
処理装置100に供給する。
Further, the card side serial interface circuit 113 is provided with a synchronizing signal (CL for data and command).
K) and the chip select signal (CS) from the data processing device 100. Furthermore, the card-side serial interface circuit 113 outputs a busy signal (BUSY).
And an interrupt signal (INTERRUPT) to the data processing device 100.

【0013】カード側コントローラ114は、メモリ1
11のデータの記憶動作、読み出し動作及び消去動作等
をデータ処理装置100から供給されるコマンド等に基
づき制御する。また、カード側コントローラ114は、
カード側シリアルインターフェース回路113の各デー
タの伝送動作の制御を行う。また、ホスト側コントロー
ラ104は、メモリカード110のステータス信号とな
るビジー信号やインタラプト信号をメモリカード110
から取得する。
The card-side controller 114 is the memory 1
The data storage operation, the read operation, the erase operation, and the like of 11 are controlled based on the command and the like supplied from the data processing device 100. In addition, the card-side controller 114 is
The transmission operation of each data of the card side serial interface circuit 113 is controlled. The host-side controller 104 also sends a busy signal or an interrupt signal, which is a status signal of the memory card 110, to the memory card 110.
To get from.

【0014】以上のようなデータ処理装置100及びメ
モリカード110の間のデータの伝送は、ホスト側シリ
アルインターフェース回路103とカード側シリアルイ
ンターフェース回路113との間に設けられた伝送ライ
ンを介して行われる。
Data transmission between the data processing device 100 and the memory card 110 as described above is performed via a transmission line provided between the host side serial interface circuit 103 and the card side serial interface circuit 113. .

【0015】データ処理装置100のカード側シリアル
インターフェース回路113と、メモリカード110の
カード側シリアルインターフェース回路113の間に
は、CLKラインとCSラインとDTラインとBUSY
ラインとINTラインとの5本の信号ラインが設けられ
ている。
Between the card side serial interface circuit 113 of the data processing device 100 and the card side serial interface circuit 113 of the memory card 110, there are a CLK line, a CS line, a DT line and a BUSY.
Five signal lines, a line and an INT line, are provided.

【0016】DTラインには、主データであるデータ処
理部101によりデータ処理をしてメモリ111に書き
込むデータ及びメモリ111からデータ処理部101に
読み出すデータが伝送される。また、DTラインには、
データ処理装置100からメモリカード110に供給す
る制御命令となるコマンドと、メモリカード110から
データ処理装置100に供給されるコマンドが伝送され
る。すなわち、DTラインには、主データ及びコマンド
がシリアル信号で双方向伝送される。
Data to be processed by the data processing unit 101, which is main data, and data to be written to the memory 111 and data to be read from the memory 111 to the data processing unit 101 are transmitted to the DT line. Also, on the DT line,
A command that is a control command supplied from the data processing device 100 to the memory card 110 and a command supplied from the memory card 110 to the data processing device 100 are transmitted. That is, main data and commands are bidirectionally transmitted as serial signals to the DT line.

【0017】CLKラインには、上述したDTラインに
伝送される主データ及びコマンドの同期信号がデータ処
理装置100からメモリカード110に供給される。
On the CLK line, the synchronization signal of the main data and the command transmitted to the above-mentioned DT line is supplied from the data processing device 100 to the memory card 110.

【0018】CSラインには、いわゆるチップセレクト
信号がデータ処理装置100からメモリカード110に
供給される。このチップセレクト信号は、例えばハイと
なっている期間、上述した主データ、コマンド及び同期
信号が有効であることを示している。
A so-called chip select signal is supplied from the data processing device 100 to the memory card 110 on the CS line. This chip select signal indicates that the above-mentioned main data, command, and sync signal are valid during, for example, a high period.

【0019】BUSYラインには、メモリカード110
が処理を行っていることを示すビジー信号が伝送され
る。例えば、メモリカード110が書き込み処理を行っ
ている場合であって、データ処理装置100からのアク
セスを禁止するときには、このビジー信号がメモリカー
ド110からデータ処理装置100に供給される。
In the BUSY line, the memory card 110
A busy signal is transmitted indicating that is processing. For example, when the memory card 110 is performing a writing process and the access from the data processing device 100 is prohibited, the busy signal is supplied from the memory card 110 to the data processing device 100.

【0020】INTラインには、メモリカード110か
らデータ処理装置100に対しての割り込みを示すイン
タラプト信号がメモリカード110からデータ処理装置
100に供給される。
On the INT line, an interrupt signal indicating an interrupt from the memory card 110 to the data processing device 100 is supplied from the memory card 110 to the data processing device 100.

【0021】このような伝送ラインに伝送される各種信
号のタイムチャートは、図12に示すようになる。この
図12に示すタイムチャートを用いて、メモリカード1
10に記憶するデータを読み出す場合について説明す
る。
A time chart of various signals transmitted through such a transmission line is as shown in FIG. Using the time chart shown in FIG. 12, the memory card 1
The case of reading the data stored in 10 will be described.

【0022】まず、時刻t11において、データ処理装置
100は、CSラインを介してチップセレクト信号をメ
モリカード110に供給する。データ処理装置100
は、このチップセレクト信号とともに同期信号をCLK
ラインを介して供給する。メモリカード110は、この
チップセレクト信号を取得することにより、データ処理
装置100から供給されるコマンドを取得する準備をす
る。そして、データ処理装置100は、このチップセレ
クト信号を供給すると、DTラインを介して読み出し命
令を示すコマンドとそのアドレスをメモリカード110
に供給する。
First, at time t 11 , the data processing device 100 supplies a chip select signal to the memory card 110 via the CS line. Data processing device 100
Synchronizes the chip select signal with the sync signal
Supply through the line. The memory card 110 prepares to acquire the command supplied from the data processing device 100 by acquiring this chip select signal. Then, when the data processing device 100 supplies this chip select signal, the data processing device 100 sends a command indicating a read command and its address via the DT line to the memory card 110.
Supply to.

【0023】データ処理装置100は、この読み出しコ
マンド等を供給し終えると、時刻t 12において、このコ
マンドと同期信号の供給を停止する。メモリカード11
0は、コマンドの取得をし終えると、この供給されたコ
マンドに基づく制御を行うため、ビジー信号をデータ処
理装置100に供給する。すなわち、メモリカード11
0は、指定されたアドレスの主データをメモリ111か
らレジスタ112に読み出す制御を行う。なお、このと
き、データ処理装置100は、チップセレクト信号の供
給は停止しない。
The data processing device 100 uses this read code.
After the supply of mand, etc. is completed, time t 12In this
Supply of command and sync signal is stopped. Memory card 11
0 receives this command when it finishes acquiring the command.
The busy signal is processed by the data in order to perform command-based control.
It is supplied to the processing device 100. That is, the memory card 11
0 indicates whether the main data at the specified address is stored in the memory 111.
Control to read from the register 112. In addition, with this
Then, the data processing device 100 supplies the chip select signal.
Salary does not stop.

【0024】メモリカード110は、レジスタ112に
主データを読み出すと、時刻t13においてビジー信号の
供給を停止する。すなわち、データ処理装置100に対
して主データを伝送する準備ができたことを示すレディ
ー状態を知らせる。
When the memory card 110 reads out the main data from the register 112, the supply of the busy signal is stopped at time t 13 . That is, the data processing apparatus 100 is notified of the ready state indicating that the main data is ready to be transmitted.

【0025】データ処理装置100は、ビジー信号の供
給が停止したことを知ると、メモリカード110が供給
したコマンドに基づく制御が終了したと判断して、時刻
14において同期信号をメモリカード110に供給す
る。そして、メモリカード110は、主データをDTラ
インを介してデータ処理装置100に伝送する。
When the data processing device 100 learns that the supply of the busy signal has stopped, it determines that the control based on the command supplied by the memory card 110 has ended, and at time t 14 , the synchronization signal is sent to the memory card 110. Supply. Then, the memory card 110 transmits the main data to the data processing device 100 via the DT line.

【0026】そして、メモリカード110が主データの
伝送を終了すると、データ処理装置100は、時刻t15
において同期信号とチップセレクト信号の供給を停止す
る。
Then, when the memory card 110 finishes the transmission of the main data, the data processing device 100 causes the time t 15
At, the supply of the synchronization signal and the chip select signal is stopped.

【0027】なお、メモリカード110は、この読み出
し処理をした結果等により、メモリカード110の内部
状態に変化が生じた場合、時刻t16に示すように、IN
Tラインを介して割り込みを示すインタラプト信号をデ
ータ処理装置100に供給する。データ処理装置100
は、このインタラプト信号が供給されると、この割り込
み要因をメモリカード110から取得するため、チップ
セレクト信号とともに所定のコマンドをメモリカード1
10に供給する。
[0027] Incidentally, the memory card 110, the result or the like of the read processing, if the change in the internal state of the memory card 110 has occurred, as shown at time t 16, IN
An interrupt signal indicating an interrupt is supplied to the data processing device 100 via the T line. Data processing device 100
When this interrupt signal is supplied, the memory card 1 acquires a predetermined command together with the chip select signal in order to acquire the interrupt factor from the memory card 110.
Supply to 10.

【0028】以上のように、データ処理装置100は、
主データ及びコマンドを伝送するDTライン及び同期信
号を供給するCLKラインとともに、チップセレクト信
号を供給するCSライン、ビジー信号を取得するBUS
Yライン及びインタラプト信号を取得するINTライン
を設けてメモリカード110とのデータの伝送を実現し
ている。
As described above, the data processing device 100 is
DT line for transmitting main data and commands, CLK line for supplying synchronization signal, CS line for supplying chip select signal, BUS for acquiring busy signal
A Y line and an INT line for acquiring an interrupt signal are provided to realize data transmission with the memory card 110.

【0029】[0029]

【発明が解決しようとする課題】ところで、上述した外
部記憶装置であるメモリカード110の小型化等を考え
た場合、データ処理装置100とメモリカード110と
の信号ラインの数を少なくする必要が生じる。
In consideration of downsizing of the memory card 110 which is the external storage device described above, it is necessary to reduce the number of signal lines between the data processing device 100 and the memory card 110. .

【0030】本発明は、このような実情を鑑みてなされ
たものであり、シリアル信号でデータの伝送を行う場合
であって、このシリアルデータを伝送するために用いら
れる信号ラインの数を少なくすることを可能となすデー
タ処理装置に用いられる外部記憶装置を提供することを
目的とする。
The present invention has been made in view of such circumstances, and is a case where data is transmitted by a serial signal, and the number of signal lines used for transmitting this serial data is reduced. It is an object of the present invention to provide an external storage device used in a data processing device that enables the above.

【0031】[0031]

【課題を解決するための手段】本発明に係るデータ処理
システムは、データ処理装置と外部記憶装置との間でデ
ータの処理を行うデータ処理システムである。
A data processing system according to the present invention is a data processing system for processing data between a data processing device and an external storage device.

【0032】このデータ処理システムにおいて、上記デ
ータ処理装置は、上記外部記憶装置との間でデータの送
受信をシリアル信号によって行うホスト側シリアル信号
入出力部と、上記ホスト側シリアル信号入出力部により
送受信されるデータの切り換えのタイミングを管理する
コントロール信号を上記外部記憶装置に供給するコント
ロール信号出力部と、上記ホスト側シリアル信号入出力
部により送受信されるデータの同期信号を上記外部記憶
装置に供給する同期信号出力部とを備える。ここで、上
記ホスト側シリアル信号入出力部は、少なくとも、上記
外部記憶装置の動作を制御する制御命令データの送信、
上記外部記憶装置の動作状態を表すステータス信号の受
信、上記外部記憶装置に書き込むデータの送信及び上記
外部記憶装置から読み出すデータの受信を、シリアル信
号によって行う。
In this data processing system, the data processing device transmits / receives data to / from the external storage device by a host-side serial signal input / output unit and a host-side serial signal input / output unit. A control signal output unit for supplying a control signal for controlling the timing of data switching to the external storage device, and a synchronization signal for data transmitted / received by the host side serial signal input / output unit to the external storage device. And a synchronization signal output section. Here, the host-side serial signal input / output unit transmits at least control command data for controlling the operation of the external storage device,
A serial signal is used to receive a status signal indicating the operation state of the external storage device, transmit data to be written to the external storage device, and receive data to be read from the external storage device.

【0033】一方、上記外部記憶装置は、上記データ処
理装置との間でデータの送受信をシリアル信号によって
行う外部装置側シリアル信号入出力部と、上記外部装置
側シリアル信号入出力部により送受信されるデータの切
り換えのタイミングを管理するコントロール信号を上記
データ処理装置から受信するコントロール信号入力部
と、上記外部装置側シリアル信号入出力部により送受信
されるデータの同期信号を上記データ処理装置から受信
する同期信号入力部とを備える。ここで、上記外部装置
側シリアル信号入出力部は、少なくとも、上記制御命令
データの受信、上記ステータス信号の送信、書き込まれ
るデータの受信及び読み出されるデータの送信をシリア
ル信号によって行う。
On the other hand, the external storage device transmits / receives data to / from the data processing device by a serial signal input / output unit on the external device side for transmitting / receiving data by a serial signal and a serial signal input / output unit on the external device side. A control signal input unit that receives a control signal for controlling the timing of data switching from the data processing device, and a synchronization signal that receives a synchronization signal of data transmitted and received by the external device side serial signal input / output unit from the data processing device. And a signal input section. Here, the external device side serial signal input / output unit performs at least reception of the control command data, transmission of the status signal, reception of written data, and transmission of read data by serial signals.

【0034】そして、このデータ処理システムにおい
て、上記コントロール信号出力部は、上記ホスト側シリ
アル信号入出力部と上記外部装置側シリアル信号入出力
部との間で送受信されるデータに応じてコントロール信
号の信号レベルを所定のレベルとする。また、上記外部
装置側シリアル信号入出力部は、上記データ処理装置か
らの信号入力を受け付けない状態から信号入力待ち状態
に変わったときには、所定の周期にて信号レベルの変化
を繰り返すレディ信号をステータス信号として出力す
る。また、この外部装置側シリアル信号入出力部は、上
記外部記憶装置が制御命令データに基づく処理を行って
おり上記データ処理装置からの信号入力を受け付けない
状態のときには信号レベルが一定のビジー信号をステー
タス信号として出力するかあるいは信号の出力を停止
し、制御命令データの受信時にエラーが生じたときには
信号の出力を停止する。
In this data processing system, the control signal output section outputs a control signal according to data transmitted and received between the host side serial signal input / output section and the external device side serial signal input / output section. The signal level is set to a predetermined level. Further, when the external device side serial signal input / output unit changes from the state of not accepting signal input from the data processing device to the state of waiting for signal input, a ready signal that repeats the change of the signal level at a predetermined cycle is transmitted. Output as a signal. Further, the external device side serial signal input / output unit outputs a busy signal having a constant signal level when the external storage device performs processing based on the control command data and does not accept a signal input from the data processing device. Either output as a status signal or stop the output of the signal, and stop the output of the signal when an error occurs during the reception of the control command data.

【0035】このデータ処理システムでは、ホスト側シ
リアル信号入出力部と外部装置側シリアル信号入出力部
との間で送受信されるデータに応じて、外部記憶装置に
供給されるコントロール信号の信号レベルが所定のレベ
ルとされる。また、外部記憶装置がデータ処理装置から
の信号入力を受け付けない状態から信号入力待ち状態に
変わったとき、所定の周期にて信号レベルの変化を繰り
返すレディ信号が外部記憶装置から出力される。また、
外部記憶装置が制御命令データに基づく処理を行ってお
りデータ処理装置からの信号入力を受け付けない状態の
ときには、外部装置側シリアル信号入出力部から信号レ
ベルが一定のビジー信号がステータス信号として出力さ
れるかあるいは外部装置側シリアル信号入出力部からの
信号の出力が停止される。また、外部記憶装置が制御命
令データを受信したときに、エラーが生じた場合には外
部装置側シリアル信号入出力部からの信号の出力が停止
される。
In this data processing system, the signal level of the control signal supplied to the external storage device depends on the data transmitted and received between the serial signal input / output unit on the host side and the serial signal input / output unit on the external device side. It is set to a predetermined level. Further, when the external storage device changes from the state of not accepting a signal input from the data processing device to the signal input waiting state, a ready signal that repeats the change of the signal level at a predetermined cycle is output from the external storage device. Also,
When the external storage device is performing processing based on control command data and is not accepting signal input from the data processing device, the external device side serial signal input / output unit outputs a busy signal with a constant signal level as a status signal. Or the output of the signal from the serial signal input / output unit on the external device side is stopped. Further, when an error occurs when the external storage device receives the control command data, the output of the signal from the external device side serial signal input / output unit is stopped.

【0036】本発明に係るデータ伝送方法は、データ処
理装置と外部記憶装置との間でデータの伝送を行うデー
タ伝送方法である。
A data transmission method according to the present invention is a data transmission method for transmitting data between a data processing device and an external storage device.

【0037】このデータ伝送方法において使用される上
記データ処理装置は、上記外部記憶装置との間でデータ
の送受信をシリアル信号によって行うホスト側シリアル
信号入出力部と、上記ホスト側シリアル信号入出力部に
より送受信されるデータの切り換えのタイミングを管理
するコントロール信号を上記外部記憶装置に供給するコ
ントロール信号出力部と、上記ホスト側シリアル信号入
出力部により送受信されるデータの同期信号を上記外部
記憶装置に供給する同期信号出力部とを備える。ここ
で、上記ホスト側シリアル信号入出力部は、少なくと
も、上記外部記憶装置の動作を制御する制御命令データ
の送信、上記外部記憶装置の動作状態を表すステータス
信号の受信、上記外部記憶装置に書き込むデータの送信
及び上記外部記憶装置から読み出すデータの受信をシリ
アル信号によって行う。
The data processing device used in this data transmission method includes a host-side serial signal input / output unit for transmitting / receiving data to / from the external storage device by a serial signal, and the host-side serial signal input / output unit. A control signal output section for supplying a control signal for controlling the timing of switching of data transmitted and received by the external storage device, and a synchronization signal for data transmitted and received by the host side serial signal input / output section to the external storage device. And a synchronization signal output unit for supplying the same. Here, the host-side serial signal input / output unit transmits at least control command data for controlling the operation of the external storage device, receives a status signal indicating the operating state of the external storage device, and writes the status signal in the external storage device. Transmission of data and reception of data read from the external storage device are performed by serial signals.

【0038】一方、上記外部記憶装置は、上記データ処
理装置との間でデータの送受信をシリアル信号によって
行う外部装置側シリアル信号入出力部と、上記外部装置
側シリアル信号入出力部により送受信されるデータの切
り換えのタイミングを管理するコントロール信号を上記
データ処理装置から受信するコントロール信号入力部
と、上記外部装置側シリアル信号入出力部により送受信
されるデータの同期信号を上記データ処理装置から受信
する同期信号入力部とを備える。ここで、上記外部装置
側シリアル信号入出力部は、少なくとも、上記制御命令
データの受信、上記ステータス信号の送信、書き込まれ
るデータの受信及び読み出されるデータの送信を、シリ
アル信号によって行う。
On the other hand, the external storage device transmits / receives data to / from the data processing device by a serial signal input / output unit on the external device side for transmitting / receiving data by a serial signal, and a serial signal input / output unit on the external device side. A control signal input unit that receives a control signal for controlling the timing of data switching from the data processing device, and a synchronization signal that receives a synchronization signal of data transmitted and received by the external device side serial signal input / output unit from the data processing device. And a signal input section. Here, the external device side serial signal input / output unit performs at least reception of the control command data, transmission of the status signal, reception of written data, and transmission of read data by serial signals.

【0039】そして、このデータ伝送方法では、上記ホ
スト側シリアル信号入出力部と上記外部装置側シリアル
信号入出力部との間で送受信されるデータに応じて上記
コントロール信号出力部から出力されるコントロール信
号の信号レベルを所定のレベルとする。また、上記外部
記憶装置の状態が上記データ処理装置からの信号入力を
受け付けない状態から信号入力待ち状態に変わったとき
には、上記外部装置側シリアル信号入出力部から所定の
周期にて信号レベルの変化を繰り返すレディ信号をステ
ータス信号として出力する。また、上記外部記憶装置の
状態が、制御命令データに基づく処理を行っており上記
データ処理装置からの信号入力を受け付けない状態のと
きには、上記外部装置側シリアル信号入出力部から信号
レベルが一定のビジー信号をステータス信号として出力
するか、あるいは上記外部装置側シリアル信号入出力部
からの信号の出力を停止する。また、上記外部装置側シ
リアル信号入出力部によって制御命令データを受信する
際にエラーが生じたときには、上記外部装置側シリアル
信号入出力部からの信号の出力を停止する。
Further, in this data transmission method, the control output from the control signal output unit according to the data transmitted and received between the host side serial signal input / output unit and the external device side serial signal input / output unit. The signal level of the signal is set to a predetermined level. Further, when the state of the external storage device changes from the state of not accepting a signal input from the data processing device to the signal input waiting state, the signal level changes from the external device side serial signal input / output unit at a predetermined cycle. The ready signal that repeats is output as a status signal. Further, when the state of the external storage device is in the state of performing the processing based on the control command data and not accepting the signal input from the data processing device, the signal level from the external device side serial signal input / output unit is constant. The busy signal is output as a status signal, or the output of a signal from the external device side serial signal input / output unit is stopped. Further, when an error occurs when the control command data is received by the external device side serial signal input / output unit, the output of the signal from the external device side serial signal input / output unit is stopped.

【0040】このデータ伝送方法では、ホスト側シリア
ル信号入出力部と外部装置側シリアル信号入出力部との
間で送受信されるデータに応じて外部記憶装置に供給さ
れるコントロール信号の信号レベルが所定のレベルとさ
れる。また、外部記憶装置がデータ処理装置からの信号
入力を受け付けない状態から信号入力待ち状態に変わっ
たとき、所定の周期にて信号レベルの変化を繰り返すレ
ディ信号が外部記憶装置から出力される。また、外部記
憶装置の状態が制御命令データに基づく処理を行ってお
り、データ処理装置からの信号入力を受け付けない状態
のときには、外部装置側シリアル信号入出力部から信号
レベルが一定のビジー信号がステータス信号として出力
されるか、あるいは外部装置側シリアル信号入出力部か
らの信号の出力が停止される。また、外部装置側シリア
ル信号入出力部によって制御命令データを受信する際に
エラーが生じたときには、外部装置側シリアル信号入出
力部からの信号の出力が停止される。
In this data transmission method, the signal level of the control signal supplied to the external storage device is predetermined according to the data transmitted and received between the host side serial signal input / output unit and the external device side serial signal input / output unit. Level. Further, when the external storage device changes from the state of not accepting a signal input from the data processing device to the signal input waiting state, a ready signal that repeats the change of the signal level at a predetermined cycle is output from the external storage device. Also, when the external storage device is performing processing based on the control command data and the signal input from the data processing device is not accepted, a busy signal with a constant signal level is output from the external device side serial signal input / output unit. It is output as a status signal or the output of a signal from the external device side serial signal input / output unit is stopped. When an error occurs when the control signal data is received by the external device side serial signal input / output unit, the output of the signal from the external device side serial signal input / output unit is stopped.

【0041】[0041]

【発明の実施の形態】以下、本発明に係るデータ処理装
置及びデータ伝送方法に用いられるデータ処理装置とこ
のデータ処理装置に用いられる外部記憶装置であるメモ
リカードについて、図面を参照しながら説明する。
BEST MODE FOR CARRYING OUT THE INVENTION A data processing device used in a data processing device and a data transmission method according to the present invention and a memory card which is an external storage device used in the data processing device will be described below with reference to the drawings. .

【0042】まず、本発明にデータ処理システムを構成
するデータ処理装置を説明すると、このデータ処理装置
10は、図1に示すように、データ処理部11と、レジ
スタ12と、ホスト側シリアルインターフェース回路1
3と、ホスト側コントローラ14とを備えている。ま
た、メモリカード20は、外観がカード状の記憶媒体で
あり、データ処理装置10に接続されて外部記憶装置と
して用いられる。メモリカード20は、メモリ21とレ
ジスタ22とカード側シリアルインターフェース回路2
3とカード側コントローラ24とを備えている。
First, a data processing device constituting a data processing system according to the present invention will be described. The data processing device 10 includes a data processing unit 11, a register 12, and a host side serial interface circuit as shown in FIG. 1
3 and a host-side controller 14. The memory card 20 is a storage medium having a card-like appearance, and is connected to the data processing device 10 and used as an external storage device. The memory card 20 includes a memory 21, a register 22, and a card-side serial interface circuit 2
3 and a card-side controller 24.

【0043】データ処理装置10のデータ処理部11
は、メモリカード20に記憶したデータを読み出して各
種データ処理を行い、各種データ処理をしてメモリカー
ド20に書き込むデータを生成する。このデータ処理部
11は、メモリカード20を用いる例えばコンピュータ
装置や、デジタルオーディオ信号の記録再生装置、カメ
ラ装置等のオーディオビジュアル機器のデータ処理回路
となる。
The data processing section 11 of the data processing device 10
Reads the data stored in the memory card 20, performs various data processing, and performs various data processing to generate data to be written in the memory card 20. The data processing unit 11 serves as a data processing circuit of an audiovisual device such as a computer device that uses the memory card 20, a recording / reproducing device of a digital audio signal, and a camera device.

【0044】レジスタ12は、データ処理部11とホス
ト側シリアルインターフェース13とのバッファであ
る。すなわち、データ処理装置10は、データ処理部1
1からホスト側シリアルインターフェース回路13にデ
ータを供給する場合は、データをこのレジスタ12に一
時格納した後にホスト側シリアルインターフェース回路
13に供給する。同様に、データ処理装置10は、ホス
ト側シリアルインターフェース回路13からデータ処理
部11にデータを供給する場合は、データをこのレジス
タ12に一時格納した後にデータ処理部11に供給す
る。
The register 12 is a buffer between the data processing unit 11 and the host side serial interface 13. That is, the data processing device 10 includes the data processing unit 1
When data is supplied from 1 to the host-side serial interface circuit 13, the data is temporarily stored in the register 12 and then supplied to the host-side serial interface circuit 13. Similarly, when supplying data from the host-side serial interface circuit 13 to the data processing unit 11, the data processing device 10 temporarily stores the data in the register 12 and then supplies the data to the data processing unit 11.

【0045】ホスト側シリアルインターフェース回路1
3は、データ処理部11からレジスタ12を介して供給
されたデータ及びカード側コントローラ24から供給さ
れるコマンドをシリアル信号に変換してメモリカード2
0に供給する。また、ホスト側シリアルインターフェー
ス回路13は、メモリカード20から供給されたシリア
ル信号のデータ及びコマンドをパラレル信号に変換して
データ処理部11及びカード側コントローラ24に供給
する。
Host-side serial interface circuit 1
The memory card 2 3 converts the data supplied from the data processing unit 11 via the register 12 and the command supplied from the card-side controller 24 into a serial signal.
Supply to 0. Further, the host-side serial interface circuit 13 converts the data and command of the serial signal supplied from the memory card 20 into a parallel signal and supplies the parallel signal to the data processing unit 11 and the card-side controller 24.

【0046】また、ホスト側シリアルインターフェース
回路13は、各種データ及びコマンドの同期信号(CL
K)等をメモリカード20に供給する。さらに、ホスト
側シリアルインターフェース回路13は、メモリカード
20から供給されこのメモリカード20の動作状態を示
すステータス(STATUS)信号を取得する。
Further, the host-side serial interface circuit 13 uses the synchronizing signals (CL
K) etc. are supplied to the memory card 20. Further, the host-side serial interface circuit 13 acquires a status (STATUS) signal supplied from the memory card 20 and indicating the operating state of the memory card 20.

【0047】ホスト側コントローラ14は、データ処理
部11のデータ処理動作、ホスト側シリアルインターフ
ェース回路13の各データの伝送動作の制御を行う。ま
た、ホスト側コントローラ14は、メモリカード20へ
の制御命令となるコマンドをレジスタ22を介してメモ
リカード20に供給する。
The host controller 14 controls the data processing operation of the data processing unit 11 and the data transmission operation of the host serial interface circuit 13. The host-side controller 14 also supplies a command, which is a control command for the memory card 20, to the memory card 20 via the register 22.

【0048】一方、メモリカード20のメモリ21は、
例えば、フラッシュメモリ等からなり、データ処理部1
1から供給されたデータを記憶する。
On the other hand, the memory 21 of the memory card 20 is
For example, the data processing unit 1 includes a flash memory or the like.
The data supplied from 1 is stored.

【0049】レジスタ22は、メモリ21とカード側シ
リアルインターフェース回路23とのバッファであり、
メモリ21がデータ処理装置10からのデータを書き込
む場合は、このレジスタ12に一時データを格納した後
に書き込むデータをメモリ21に供給する。同様に、デ
ータ処理装置10がメモリ21からデータを読み出す場
合は、このレジスタ12に一時データを格納した後に読
み出すデータをカード側シリアルインターフェース回路
23に供給する。すなわち、このレジスタ22は、フラ
ッシュメモリのいわゆるページバッファの機能等を果た
す回路である。
The register 22 is a buffer between the memory 21 and the card side serial interface circuit 23.
When the memory 21 writes the data from the data processing device 10, the temporary data is stored in the register 12 and then the data to be written is supplied to the memory 21. Similarly, when the data processing device 10 reads data from the memory 21, the temporary data is stored in the register 12 and then the read data is supplied to the card side serial interface circuit 23. That is, the register 22 is a circuit that functions as a so-called page buffer of the flash memory.

【0050】カード側シリアルインターフェース回路2
3は、カード側コントローラ24の制御に基づきメモリ
21から供給されるパラレル信号のデータ及びカード側
コントローラ24から供給されるコマンドをシリアル信
号に変換してデータ処理装置10に供給する。また、カ
ード側シリアルインターフェース回路23は、データ処
理装置10から供給されるシリアル信号のデータ及びコ
マンドをパラレル信号に変換してメモリ21及びカード
側コントローラ24に供給する。
Card side serial interface circuit 2
Under the control of the card-side controller 24, 3 converts the parallel signal data supplied from the memory 21 and the command supplied from the card-side controller 24 into a serial signal, and supplies the serial signal to the data processing device 10. Further, the card side serial interface circuit 23 converts the data and command of the serial signal supplied from the data processing device 10 into a parallel signal and supplies the parallel signal to the memory 21 and the card side controller 24.

【0051】また、カード側シリアルインターフェース
回路23は、各種データ及びコマンドの同期信号(CL
K)等をデータ処理装置10から取得する。さらに、カ
ード側シリアルインターフェース回路23は、ステータ
ス信号をデータ処理装置10に供給する。
The card-side serial interface circuit 23 also uses various data and command synchronization signals (CL
K) and the like are acquired from the data processing device 10. Further, the card-side serial interface circuit 23 supplies a status signal to the data processing device 10.

【0052】カード側コントローラ24は、メモリ21
のデータの記憶動作、読み出し動作及び消去動作等をデ
ータ処理装置10から供給されるコマンド等に基づき制
御する。また、カード側コントローラ24は、カード側
シリアルインターフェース回路23の各データの伝送動
作の制御を行う。さらに、ホスト側コントローラ14
は、メモリカード20へのステータス信号をメモリカー
ド20に供給する制御を行う。
The card-side controller 24 has a memory 21.
The data storage operation, the data read operation, the data erase operation, and the like are controlled based on commands and the like supplied from the data processing device 10. The card-side controller 24 also controls the transmission operation of each data of the card-side serial interface circuit 23. Furthermore, the host controller 14
Controls to supply a status signal to the memory card 20 to the memory card 20.

【0053】以上のようなデータ処理装置10及びメモ
リカード20の間のデータの伝送は、ホスト側シリアル
インターフェース回路13とカード側シリアルインター
フェース回路23との間に設けられた伝送ラインを介し
て行われる。
Data transmission between the data processing device 10 and the memory card 20 as described above is performed via a transmission line provided between the host side serial interface circuit 13 and the card side serial interface circuit 23. .

【0054】データ処理装置10のカード側シリアルイ
ンターフェース回路23と、メモリカード20のカード
側シリアルインターフェース回路23の間には、CLK
ライン31とコントロールライン32とDTライン33
との3本の信号ラインが設けられている。
Between the card side serial interface circuit 23 of the data processing device 10 and the card side serial interface circuit 23 of the memory card 20, CLK is provided.
Line 31, control line 32, and DT line 33
And three signal lines are provided.

【0055】DTライン33には、主データであるデー
タ処理部11によりデータ処理をしてメモリ21に書き
込むデータ及びメモリ21からデータ処理部11に読み
出すデータが伝送される。このDTライン33には、デ
ータ処理装置10からメモリカード20に供給する制御
命令となるコマンドと、メモリカード20からデータ処
理装置10に供給されるコマンドが伝送される。すなわ
ち、DTライン33には、主データ及びコマンドがシリ
アル信号で双方向伝送される。
To the DT line 33, main data, that is, data processed by the data processing unit 11 and written in the memory 21, and data read from the memory 21 to the data processing unit 11 are transmitted. A command which is a control command supplied from the data processing device 10 to the memory card 20 and a command supplied from the memory card 20 to the data processing device 10 are transmitted to the DT line 33. That is, main data and commands are bidirectionally transmitted to the DT line 33 as serial signals.

【0056】さらに、DTライン33には、一端が接地
された抵抗33aが取り付けられている。この抵抗33
aは、いわゆるプルダウン抵抗であり、ホスト側シリア
ルインターフェース回路13とカード側シリアルインタ
ーフェース回路23との間でのDTライン33による信
号の送受信がなされていないとき、DTライン33の信
号レベルはローレベルとなる。換言すれば、DTライン
33による信号の送受信がなされていないとき、DTラ
イン33の信号レベルは抵抗33aの抵抗値等によって
定まる一定のレベルとなる。
Further, the DT line 33 is provided with a resistor 33a whose one end is grounded. This resistor 33
Reference numeral a is a so-called pull-down resistor, and when a signal is not transmitted / received by the DT line 33 between the host side serial interface circuit 13 and the card side serial interface circuit 23, the signal level of the DT line 33 is low level. Become. In other words, when the signal is not transmitted / received by the DT line 33, the signal level of the DT line 33 becomes a constant level determined by the resistance value of the resistor 33a and the like.

【0057】なお、ここで、抵抗33aとしていわゆる
プルダウン抵抗を採用し、DTライン33による信号の
送受信がなされていないとき、DTライン33の信号レ
ベルがローレベルとなるようにしたが、抵抗33aとし
ていわゆるプルアップ抵抗を採用し、DTライン33に
よる信号の送受信がなされていないとき、DTライン3
3の信号レベルがハイレベルとなるようにしてもよい。
Here, a so-called pull-down resistor is adopted as the resistor 33a so that the signal level of the DT line 33 becomes low level when a signal is not transmitted and received by the DT line 33. A so-called pull-up resistor is adopted, and when the signal is not transmitted / received by the DT line 33, the DT line 3
The signal level of 3 may be set to a high level.

【0058】CLKライン31には、上述したDTライ
ン33に伝送される主データ及びコマンドの同期信号が
データ処理装置10からメモリカード20に伝送され
る。
On the CLK line 31, the synchronization signal of the main data and the command transmitted to the DT line 33 described above is transmitted from the data processing device 10 to the memory card 20.

【0059】コントロールライン32には、コントロー
ル信号がデータ処理装置10からメモリカード20に伝
送される。このコントロール信号が供給されている期
間、例えばハイとなっている期間上述した主データ及び
コマンドが伝送される。
A control signal is transmitted from the data processing device 10 to the memory card 20 on the control line 32. The main data and commands described above are transmitted during the period when the control signal is supplied, for example, during the high period.

【0060】ここで、上述したDTライン33には、主
データ及びコマンドに加えて、メモリカード20の動作
状態を示すステータス(STATUS)信号がメモリカ
ード20からデータ処理装置10に供給される。このメ
モリカード20からのステータス信号は、DTライン3
3に主データ及びコマンドが伝送されていない期間、す
なわち、コントロール信号が供給されていない期間、例
えばローの期間に供給される。このステータス信号に
は、メモリカード20が処理を行っていることを示すビ
ジー(BUSY)信号がある。例えば、メモリカード2
0が書き込み処理を行っている場合であってデータ処理
装置10からのアクセスを禁止するときには、ビジー信
号がメモリカード20からデータ処理装置10に供給さ
れる。
Here, in addition to the main data and the command, a status (STATUS) signal indicating the operation state of the memory card 20 is supplied from the memory card 20 to the data processing device 10 on the DT line 33 described above. The status signal from the memory card 20 is the DT line 3
3 is supplied in a period in which main data and commands are not transmitted, that is, a period in which a control signal is not supplied, for example, a low period. The status signal includes a busy signal indicating that the memory card 20 is performing processing. For example, memory card 2
When 0 is performing the writing process and the access from the data processing device 10 is prohibited, a busy signal is supplied from the memory card 20 to the data processing device 10.

【0061】また、ステータス信号には、メモリカード
20からデータ処理装置10に対しての割り込みを示す
インタラプト(INTERRPUT)信号がある。例え
ば、メモリカード20からデータ処理装置10に対して
割り込み命令を要求するときには、このインタラプト信
号が供給される。なお、このビジー信号やインタラプト
信号は一例であり、ステータス信号としてメモリカード
20の動作状態を示す信号であればどのような信号であ
ってもよい。
Further, the status signal includes an interrupt signal indicating an interrupt from the memory card 20 to the data processing device 10. For example, when the memory card 20 requests an interrupt command from the data processing device 10, this interrupt signal is supplied. The busy signal and the interrupt signal are examples, and any signal may be used as long as it is a signal indicating the operating state of the memory card 20 as the status signal.

【0062】このように、コントロール信号が供給され
ていない期間にステータス信号を供給するには、図2に
示すような出力回路をメモリカード20に設ければよ
い。
As described above, in order to supply the status signal while the control signal is not supplied, the output circuit as shown in FIG. 2 may be provided in the memory card 20.

【0063】メモリカード20の出力回路25は、カー
ド側シリアルインターフェース回路23とDTライン3
3の入出力端子との間に設けられ、入力バッファ26と
出力バッファ27と切換スイッチ28とオア回路29と
からなる。
The output circuit 25 of the memory card 20 includes the card side serial interface circuit 23 and the DT line 3.
It is provided between the input / output terminal 3 and the input / output terminal 3, and includes an input buffer 26, an output buffer 27, a changeover switch 28, and an OR circuit 29.

【0064】入力バッファ26は、DTライン33と接
続され、データ処理装置10から供給されたシリアル信
号が入力されこのシリアル信号をカード側シリアルイン
ターフェース回路23に供給する。
The input buffer 26 is connected to the DT line 33, receives the serial signal supplied from the data processing device 10, and supplies the serial signal to the card side serial interface circuit 23.

【0065】出力バッファ27は、切換スイッチ28を
介して供給されるシリアル信号、ビジー信号及びインタ
ラプト信号をDTライン33に出力する。
The output buffer 27 outputs the serial signal, the busy signal and the interrupt signal supplied via the changeover switch 28 to the DT line 33.

【0066】また、カード側コントローラ24から供給
されるビジー信号及びインタラプト信号は、オア回路2
3により論理和がとられ、切換スイッチ28の端子28
bに供給される。また、カード側シリアルインターフェ
ース回路23から供給されるシリアル信号は、切換スイ
ッチ28の端子28aに供給される。
The busy signal and interrupt signal supplied from the card-side controller 24 are supplied to the OR circuit 2.
3 is ORed and the terminal 28 of the changeover switch 28 is
b. The serial signal supplied from the card side serial interface circuit 23 is supplied to the terminal 28 a of the changeover switch 28.

【0067】切換スイッチ28は、コントロール信号が
ハイのときは、端子28a側に切り換えられる。切換ス
イッチ28が端子28a側に切り換えられると、カード
側シリアルインターフェース回路23からのシリアル信
号が、出力バッファ27に供給される。また、切換スイ
ッチ28は、コントロール信号がローのときは、端子2
8b側に切り換えられる。切換スイッチ28が端子28
b側に切り換えられると、カード側コントローラ24か
らのビジー信号及びインタラプト信号等のステータス信
号は出力バッファ27に供給される。
The changeover switch 28 is changed over to the terminal 28a side when the control signal is high. When the changeover switch 28 is switched to the terminal 28 a side, the serial signal from the card side serial interface circuit 23 is supplied to the output buffer 27. When the control signal is low, the changeover switch 28 has the terminal 2
It is switched to the 8b side. The changeover switch 28 is the terminal 28
When switched to the b side, status signals such as a busy signal and an interrupt signal from the card side controller 24 are supplied to the output buffer 27.

【0068】このような伝送ラインに伝送される各種信
号のタイムチャートは、図3に示すようになる。この図
3に示すタイムチャートを用いて、メモリカード20に
記憶する主データを読み出す場合について説明する。
A time chart of various signals transmitted on such a transmission line is shown in FIG. A case where the main data stored in the memory card 20 is read will be described with reference to the time chart shown in FIG.

【0069】まず、時刻t21において、データ処理装置
10は、コントロールライン32を介してコントロール
信号をメモリカード20に供給する。メモリカード20
は、このコントロール信号を取得することによりデータ
処理装置10から供給されるコマンドを取得する準備を
する。データ処理装置10は、このコントロール信号を
供給するとともに、DTライン33を介して読み出し命
令を示すコマンド等をメモリカード20に供給する。ま
た、データ処理装置10は、このコマンド等とともにC
LKライン31を介して同期信号をメモリカード20に
供給する。
First, at time t 21 , the data processing device 10 supplies a control signal to the memory card 20 via the control line 32. Memory card 20
Prepares to acquire the command supplied from the data processing device 10 by acquiring this control signal. The data processing device 10 supplies this control signal, and also supplies a command or the like indicating a read command to the memory card 20 via the DT line 33. In addition, the data processing device 10, along with this command, etc.
A synchronization signal is supplied to the memory card 20 via the LK line 31.

【0070】データ処理装置10は、この読み出しコマ
ンド等を供給し終えると、時刻t22において、コマン
ド、コントロール信号及び同期信号の供給を停止する。
なお、同期信号は、この時刻t22において供給を停止し
なくてもよい。
When the data processing apparatus 10 finishes supplying the read command and the like, it stops supplying the command, the control signal and the synchronizing signal at time t 22 .
Note that the synchronization signal does not have to stop the supply at time t 22.

【0071】メモリカード20は、コマンドの取得をし
終えると、この供給されたコマンドに基づく制御を行う
ため、ビジー信号をDTライン33を介してデータ処理
装置10に供給する。データ処理装置10は、この時点
でコントロール信号を供給していないため、メモリカー
ド20から供給された信号がビジー信号であるというこ
とを判断することができる。メモリカード20は、ビジ
ー信号を供給すると、指定されたアドレスの主データを
メモリ21からレジスタ22に読み出す。
When the memory card 20 finishes acquiring the command, it supplies a busy signal to the data processing device 10 through the DT line 33 to perform control based on the supplied command. Since the data processing device 10 does not supply the control signal at this time, the data processing device 10 can determine that the signal supplied from the memory card 20 is a busy signal. When the memory card 20 supplies the busy signal, the memory card 20 reads the main data of the specified address from the memory 21 to the register 22.

【0072】メモリカード20は、レジスタ22に主デ
ータを読み出すと、時刻t23においてDTライン33を
介してビジー信号の供給を停止する。すなわち、データ
処理装置10に対して主データを供給する準備ができた
ことを示すレディー状態を知らせる。
When the memory card 20 reads out the main data from the register 22, the supply of the busy signal via the DT line 33 is stopped at the time t 23 . That is, the data processing device 10 is notified of the ready state indicating that the main data is ready to be supplied.

【0073】データ処理装置10は、時刻t24におい
て、ビジー信号の供給が停止したことを知ると、メモリ
カード20が供給したコマンドに基づく制御が終了した
と判断してコントロール信号と同期信号の供給をする。
メモリカード20は、コントロール信号が供給されたこ
とに基づき主データをDTライン33を介してこの供給
された同期信号に同期させてデータ処理装置10に伝送
する。
When the data processing device 10 finds that the supply of the busy signal is stopped at time t 24 , it determines that the control based on the command supplied by the memory card 20 is completed, and supplies the control signal and the synchronization signal. do.
Based on the supply of the control signal, the memory card 20 synchronizes the main data with the supplied synchronization signal via the DT line 33 and transmits the main data to the data processing device 10.

【0074】メモリカード20が主データの伝送を終了
すると、データ処理装置10は、時刻t25において同期
信号とコントロール信号の供給を停止する。
When the memory card 20 finishes transmitting the main data, the data processing device 10 stops the supply of the synchronizing signal and the control signal at time t 25 .

【0075】なお、メモリカード20は、この読み出し
処理をした結果等により、メモリカード20の内部状態
に変化が生じた場合は、必要に応じて時刻t26に示すよ
うにDTライン33を介して割り込みを示すインタラプ
ト信号をデータ処理装置10に供給する。データ処理装
置10は、コントロール信号を供給していないことから
メモリカード20から供給された信号がインタラプト信
号であると判断でき、このインタラプト信号が供給され
ると、例えば、この割り込み要因をメモリカード20か
ら取得するためコントロール信号を供給して対応したコ
マンドの供給を行う。
When a change occurs in the internal state of the memory card 20 as a result of the reading process or the like, the memory card 20 transmits the data via the DT line 33 at time t 26 as necessary. An interrupt signal indicating an interrupt is supplied to the data processing device 10. Since the data processing device 10 does not supply the control signal, the data processing device 10 can determine that the signal supplied from the memory card 20 is an interrupt signal. When the interrupt signal is supplied, for example, this interrupt factor is detected by the memory card 20. The control signal is supplied to obtain from the command and the corresponding command is supplied.

【0076】以上のように、データ処理装置10及びメ
モリカード20では、メモリカード20からのステータ
ス信号をDTライン33を用いて伝送することにより信
号ラインを少なくすることができる。従って、ビジー信
号やインタラプト信号の為の信号ラインを特別に設ける
必要がなく、簡単な構成で確実なデータの伝送をするこ
とができる。また、インタラプト信号を設けずにデータ
処理装置とメモリカードの間でデータの伝送を行った場
合には、必ず一定時間毎ポーリングを行わなければなら
なかったが、このデータ処理装置10ではポーリングの
必要がない。
As described above, the data processing device 10 and the memory card 20 can reduce the number of signal lines by transmitting the status signal from the memory card 20 using the DT line 33. Therefore, it is not necessary to specially provide a signal line for a busy signal or an interrupt signal, and reliable data transmission can be performed with a simple configuration. Further, when data is transmitted between the data processing device and the memory card without providing an interrupt signal, polling must be performed at regular intervals, but this data processing device 10 requires polling. There is no.

【0077】ところで、以上のようなデータ処理装置1
0とメモリカード20との間のデータ伝送の場合、デー
タ処理装置10からメモリカード20に供給するコマン
ドの内容、又はメモリカード20からデータ処理装置1
0に供給するコマンドの内容は予めホスト側コントロー
ラ14やカード側コントローラ24により定められてい
る。例えば、書き込みコマンド、読み出しコマンド又は
消去コマンド等が予め定められている。これらのコマン
ドがDTライン33を介して伝送された場合、この後に
DTライン33に伝送されるデータやコマンド、あるい
は、ステータス信号の順序は必ず決定される。
By the way, the data processing apparatus 1 as described above
In the case of data transmission between the memory card 20 and the memory card 20, the content of the command supplied from the data processing device 10 to the memory card 20 or the data processing device 1 from the memory card 20.
The contents of the command supplied to 0 are previously determined by the host-side controller 14 and the card-side controller 24. For example, a write command, a read command, an erase command, etc. are predetermined. When these commands are transmitted via the DT line 33, the order of data and commands or status signals to be subsequently transmitted to the DT line 33 is always determined.

【0078】具体的には、データ処理装置10からメモ
リカード20に対して書き込みコマンドが伝送された場
合には、この書き込みコマンドの後にメモリカード20
に書き込もうとする主データがデータ処理装置10から
メモリカード20に伝送される。書き込みコマンド及び
主データが伝送されたメモリカード20は、当該主デー
タの書き込み処理を行っている間、ビジー信号をデータ
処理装置10へ出力し、当該主データの書き込み処理が
完了したらレディ信号をデータ処理装置10へ出力す
る。また、データ処理装置10からメモリカード20に
対して読み出しコマンドが伝送された場合、メモリカー
ド20は、当該読み出しコマンドに応じた主データの読
み出し処理を行う。この読み出し処理を行っている間メ
モリカード20はビジー信号をデータ処理装置10へ出
力し、読み出し処理が完了したらメモリカード20はレ
ディ信号をデータ処理装置10へ出力する。データ処理
装置10がレディ信号を受け取った後、メモリカード2
0からデータ処理装置10に対して主データが伝送さ
れ、これにより主データの読み出しが行われる。
Specifically, when a write command is transmitted from the data processing device 10 to the memory card 20, the memory card 20 is sent after this write command.
Main data to be written into the memory card 20 is transmitted from the data processing device 10 to the memory card 20. The memory card 20 to which the write command and the main data are transmitted outputs a busy signal to the data processing device 10 while performing the write processing of the main data, and outputs a ready signal when the write processing of the main data is completed. Output to the processing device 10. Further, when the read command is transmitted from the data processing device 10 to the memory card 20, the memory card 20 performs the read process of the main data according to the read command. The memory card 20 outputs a busy signal to the data processing device 10 during the reading process, and outputs a ready signal to the data processing device 10 when the reading process is completed. After the data processing device 10 receives the ready signal, the memory card 2
Main data is transmitted from 0 to the data processing device 10, and thereby main data is read.

【0079】そこで、以下に第2のデータ伝送方法とし
て、このようにDTライン33によって伝送されるデー
タの内容やその順序等がコマンドにより予め定められて
いる場合について説明する。
Therefore, as a second data transmission method, a case where the contents of the data transmitted by the DT line 33, the order thereof, and the like are predetermined by a command will be described below.

【0080】この第2のデータ伝送方法では、コントロ
ール信号を切り換えることによって、DTライン33を
伝送するデータの状態を設定する。すなわち、コントロ
ール信号を切り換えることによって、伝送するデータの
状態を確定してデータの伝送を行う。
In this second data transmission method, the state of data transmitted on the DT line 33 is set by switching the control signal. That is, by switching the control signal, the state of the data to be transmitted is determined and the data is transmitted.

【0081】DTライン33によって伝送されるデータ
の状態は、以下のように設定される。まず、データ処理
装置10からメモリカード20に対して何等制御命令す
なわちコマンドを供給せず、また、メモリカード20が
何等処理をしていない状態を初期状態として“状態0”
とする。続いて、データ処理装置10からメモリカード
20に対してコマンドを供給している状態、例えば、書
き込みコマンド、読み出しコマンド又は消去コマンド等
をDTライン33を介して供給している状態を“状態
1”とする。その後、“状態1”で供給したコマンドに
応じた処理が行われる“状態2”“状態3”へと推移
し、“状態3”の後に“状態0”へと戻る。
The state of the data transmitted by the DT line 33 is set as follows. First, the state in which no control command, that is, a command is not supplied from the data processing device 10 to the memory card 20 and the memory card 20 is not performing any process is the "state 0".
And Subsequently, a state in which a command is supplied from the data processing device 10 to the memory card 20, for example, a state in which a write command, a read command, an erase command, or the like is supplied via the DT line 33 is “state 1”. And After that, the state transits to "state 2" and "state 3" in which the processing according to the command supplied in "state 1" is performed, and returns to "state 0" after "state 3".

【0082】そして、コントロール信号は、このような
“状態0”から“状態3”までの状態を切り換える。す
なわち、“状態0”では、このコントロール信号はロー
となっており、この“状態0”の状態からコントロール
信号がハイとなると、“状態1”に切り換わる。続い
て、“状態1”の状態からコントロール信号がローとな
ると“状態2”に切り換わる。続いて、“状態2”の状
態からコントロール信号がハイとなると、“状態3”に
切り換わる。最後に、“状態3”の状態からコントロー
ル信号がローとなると、“状態0”に切り換わる。
Then, the control signal switches such states from "state 0" to "state 3". That is, in "state 0", the control signal is low, and when the control signal goes high from the state of "state 0", the control signal is switched to "state 1". Then, when the control signal goes low from the "state 1", the state is switched to the "state 2". Then, when the control signal goes high from the "state 2", the state is switched to the "state 3". Finally, when the control signal goes low from the "state 3", the state switches to "state 0".

【0083】このように、コントロール信号を切り換え
ることで、DTライン33によって伝送されるデータの
内容を切り換える。そして、データ処理装置10及びメ
モリカード20は、“状態1”において伝送されたコマ
ンドの内容に応じて、次の“状態2”、“状態3”に伝
送するデータの内容を確定しそれぞれの状態に応じた処
理を行う。
In this way, by switching the control signal, the content of the data transmitted by the DT line 33 is switched. Then, the data processing device 10 and the memory card 20 determine the contents of the data to be transmitted to the next “state 2” and “state 3” according to the contents of the command transmitted in the “state 1” and determine the respective states. Perform processing according to.

【0084】具体的には、例えば、メモリカード20か
らの主データの読み出しを行う場合には、まず、“状態
1”とされ、データ処理装置10からメモリカード20
へ読み出しコマンドが伝送される。次に、“状態2”と
なり、読み出しコマンドに応じてメモリカード20によ
って主データの読み出し処理が行われる。この処理を行
っている間、メモリカード20からデータ処理装置10
にビジー信号が伝送され、当該処理が完了したら、メモ
リカード20からデータ処理装置10にレディ信号が伝
送される。そして、データ処理装置10によってレディ
信号が検出されたら“状態3”となり、メモリカード2
0から読み出された主データがDTライン33を介して
メモリカード20からデータ処理装置10へ伝送され
る。そして、主データの伝送が完了したら“状態0”へ
戻る。
Specifically, for example, when the main data is read from the memory card 20, first, the "state 1" is set, and the data processing device 10 causes the memory card 20 to read.
The read command is transmitted to. Next, the state becomes "state 2", and the main data is read by the memory card 20 in response to the read command. While performing this process, the data processing device 10
When the busy signal is transmitted to the data processing device 10 and the processing is completed, a ready signal is transmitted from the memory card 20 to the data processing device 10. When the ready signal is detected by the data processing device 10, the state becomes “state 3”, and the memory card 2
The main data read from 0 is transmitted from the memory card 20 to the data processing device 10 via the DT line 33. When the main data transmission is completed, the state returns to "state 0".

【0085】あるいは、例えば、メモリカード20への
主データの書き込みを行う場合には、まず、“状態1”
とされ、データ処理装置10からメモリカード20へ書
き込みコマンドが伝送される。次に、“状態2”とな
り、メモリカード20へ書き込む主データがDTライン
33を介してデータ処理装置10からメモリカード20
に伝送される。次に、“状態3”となり、書き込みコマ
ンドに応じてメモリカード20によって主データの書き
込み処理が行われる。この処理を行っている間、メモリ
カード20からデータ処理装置10へビジー信号が伝送
され、当該処理が完了したら、メモリカード20からデ
ータ処理装置10へレディ信号が伝送される。そして、
データ処理装置10によってレディ信号が検出されたら
“状態0”へ戻る。
Alternatively, for example, when writing main data to the memory card 20, first, "state 1" is set.
Then, the write command is transmitted from the data processing device 10 to the memory card 20. Next, the state becomes “state 2”, and the main data to be written in the memory card 20 is transferred from the data processing device 10 to the memory card 20 via the DT line 33.
Be transmitted to. Next, the state becomes “state 3”, and the main data write processing is performed by the memory card 20 in response to the write command. During this process, a busy signal is transmitted from the memory card 20 to the data processing device 10, and when the process is completed, a ready signal is transmitted from the memory card 20 to the data processing device 10. And
When the data processing device 10 detects the ready signal, the state returns to "state 0".

【0086】あるいは、例えば、メモリカード20に書
き込まれている主データの消去を行う場合には、まず、
“状態1”のときに、データ処理装置10からメモリカ
ード20へ消去コマンドが伝送される。次に、“状態
2”となり、消去コマンドに応じてメモリカード20に
よって主データの消去処理が行われる。この処理を行っ
ている間、メモリカード20からデータ処理装置10に
ビジー信号が伝送され、当該処理が完了したら、メモリ
カード20からデータ処理装置10にレディ信号が伝送
される。そして、データ処理装置10によってレディ信
号が検出されたら“状態0”へ戻る。
Alternatively, for example, when erasing the main data written in the memory card 20, first,
In the “state 1”, the erase command is transmitted from the data processing device 10 to the memory card 20. Next, the state becomes "state 2", and the main data is erased by the memory card 20 in response to the erase command. During this process, the memory card 20 transmits a busy signal to the data processing device 10. When the process is completed, the memory card 20 transmits a ready signal to the data processing device 10. When the data processing device 10 detects the ready signal, the state returns to "state 0".

【0087】このように、DTライン33に伝送される
データに応じてコントロール信号を切り換えることによ
り、データ伝送の状態を制御する第2のデータ伝送方法
について、図4及び図5のタイムチャートを参照して更
に詳細に説明する。ここで、図4に示すタイムチャート
は、データ処理装置10によってメモリカード20に書
き込まれている主データを読み出すときのタイムチャー
トの一例である。また、図5に示すタイムチャートは、
データ処理装置10によってメモリカード20に主デー
タを書き込むときのタイムチャートの一例である。
As described above, regarding the second data transmission method for controlling the state of data transmission by switching the control signal according to the data transmitted to the DT line 33, refer to the time charts of FIGS. 4 and 5. Then, it will be described in more detail. Here, the time chart shown in FIG. 4 is an example of a time chart when the main data written in the memory card 20 is read by the data processing device 10. In addition, the time chart shown in FIG.
3 is an example of a time chart when the main data is written in the memory card 20 by the data processing device 10.

【0088】まず、図4を参照して主データの読み出し
について説明する。
First, the reading of main data will be described with reference to FIG.

【0089】データ処理装置10とメモリカード20と
の間で何等データの伝送が行われていない状態では、コ
ントロール信号がローとなっており、“状態0”の初期
状態となっている。そして、主データの読み出しに関す
る処理は、この“状態0”の初期状態から開始される。
In the state where no data is transmitted between the data processing device 10 and the memory card 20, the control signal is low, which is the initial state of "state 0". Then, the process for reading the main data is started from the initial state of "state 0".

【0090】主データの読み出しに関する処理を開始す
る時刻t31において、データ処理装置10は、コントロ
ールライン32を介してメモリカード20に供給される
コントロール信号をローからハイに切り換える。従っ
て、DTライン33に伝送されるデータの状態は、“状
態0”から“状態1”に切り換えられる。メモリカード
20は、このコントロール信号を取得することにより、
“状態0”から“状態1”となったことを判断して、デ
ータ処理装置10から供給されるコマンドを取得する準
備をする。そして、データ処理装置10は、この“状態
1”のときに、DTライン33を介して読み出しコマン
ドをメモリカード20に供給するとともに、その同期信
号をCLKライン31を介してメモリカード20に供給
する。ここで、メモリカード20は、この“状態1”の
状態で読み出しコマンドを取得することにより、後の
“状態2”及び“状態3”でDTライン33を介して伝
送されるデータの内容を確定する。
At time t 31 when the processing for reading the main data is started, the data processing device 10 switches the control signal supplied to the memory card 20 via the control line 32 from low to high. Therefore, the state of the data transmitted on the DT line 33 is switched from "state 0" to "state 1". The memory card 20 obtains this control signal,
It is determined that the state is changed from the “state 0” to the “state 1”, and preparations are made to acquire the command supplied from the data processing device 10. Then, in the “state 1”, the data processing device 10 supplies the read command to the memory card 20 via the DT line 33, and supplies the synchronization signal to the memory card 20 via the CLK line 31. . Here, the memory card 20 determines the content of the data transmitted via the DT line 33 in the subsequent “state 2” and “state 3” by acquiring the read command in this “state 1” state. To do.

【0091】データ処理装置10は、読み出しコマンド
の供給が完了した時刻t32においてコントロール信号を
ハイからローに切り換える。すなわち、“状態1”から
“状態2”に切り換える。
The data processing device 10 switches the control signal from high to low at time t 32 when the supply of the read command is completed. That is, the "state 1" is switched to the "state 2".

【0092】“状態2”となったら、メモリカード20
は、“状態1”のときに供給された読み出しコマンドに
基づく処理、具体的には、読み出しコマンドで指定され
たアドレスの主データをメモリ21からレジスタ22に
読み出す処理を行う。この処理を行っている間、メモリ
カード20は、ステータス信号としてビジー信号をDT
ライン33を介してデータ処理装置10に供給する。す
なわち、“状態2”のとき、メモリカード20は、ま
ず、ステータス信号としてビジー信号を出力する。この
とき、データ処理装置10は、メモリカード20に供給
したコマンドが読み出しコマンドであり、且つ現在の状
態が“状態2”であることから、メモリカード20から
出力されている信号がステータス信号であると判断す
る。
When the "state 2" is reached, the memory card 20
Performs a process based on the read command supplied in the "state 1", specifically, a process of reading the main data of the address specified by the read command from the memory 21 to the register 22. During this process, the memory card 20 sends the busy signal DT as the status signal.
It is supplied to the data processing device 10 through the line 33. That is, in the "state 2", the memory card 20 first outputs a busy signal as a status signal. At this time, in the data processing device 10, since the command supplied to the memory card 20 is a read command and the current state is “state 2”, the signal output from the memory card 20 is a status signal. To judge.

【0093】その後、レジスタ22への主データの読み
出しが完了したら、メモリカード20は、レジスタ22
への主データの読み出しが完了した時刻t33において、
DTライン33を介してステータス信号としてビジー信
号の出力を停止してデータ処理装置10に対して主デー
タを供給する準備ができたことを示すレディー信号の出
力を開始する。すなわち、“状態2”のとき、メモリカ
ード20は、レジスタ22への主データの読み出しが完
了したらステータス信号としてレディ信号を出力する。
After that, when the reading of the main data into the register 22 is completed, the memory card 20 is
At time t 33 when the reading of the main data into the
The output of the busy signal as a status signal is stopped through the DT line 33, and the output of the ready signal indicating that the main data is ready to be supplied to the data processing device 10 is started. That is, in the "state 2", the memory card 20 outputs a ready signal as a status signal when the reading of the main data to the register 22 is completed.

【0094】なお、本例では、“状態2”のときに、D
Tライン33を介してメモリカード20から出力される
信号がハイのときをビジー信号として、ローのときをレ
ディ信号としている。この“状態2”のとき、データ処
理装置10は、メモリカード20に供給したコマンドが
読み出しコマンドであり、且つ現在の状態が“状態2”
であることから、メモリカード20から出力されている
信号がステータス信号であると判断することができる。
したがって、メモリカード20からDTライン33を介
して出力される信号をハイからローに切り換えるだけで
も、データ処理装置10は、当該信号がビジー信号から
レディ信号に切り換わったことを検出することができ
る。
In this example, in the "state 2", D
When the signal output from the memory card 20 via the T line 33 is high, the busy signal is used, and when the signal is low, the ready signal is used. In this "state 2", the data processing device 10 reads the command supplied to the memory card 20 and the current state is "state 2".
Therefore, it can be determined that the signal output from the memory card 20 is the status signal.
Therefore, by simply switching the signal output from the memory card 20 through the DT line 33 from high to low, the data processing device 10 can detect that the signal is switched from the busy signal to the ready signal. .

【0095】データ処理装置10は、メモリカード20
からレディ信号を受け取ったら、読み出しコマンドに基
づくメモリカード20の処理が完了したと判断する。そ
して、読み出しコマンドに基づくメモリカード20の処
理が完了したと判断された時刻t34においてコントロー
ル信号をローからハイに切り換える。すなわち、“状態
2”から“状態3”に切り換える。
The data processing device 10 includes a memory card 20.
When the ready signal is received from, it is determined that the processing of the memory card 20 based on the read command is completed. Then, switch the control signal from the low at time t 34 the processing of the memory card 20 is determined to be completed based on the read command high. That is, the "state 2" is switched to the "state 3".

【0096】そして、“状態3”となったら、メモリカ
ード20は、“状態2”のときにレジスタ22へ読み出
した主データをDTライン33を介してデータ処理装置
10に伝送する。その後、メモリカード20からデータ
処理装置10への主データの伝送が完了した時刻t35
おいて、データ処理装置10は、同期信号の供給を止め
るとともにコントロール信号をハイからローに切り換え
る。すなわち、主データの伝送を行う“状態3”から、
初期状態の“状態0”へと状態が戻される。
When the "state 3" is reached, the memory card 20 transmits the main data read to the register 22 in the "state 2" to the data processing device 10 via the DT line 33. Then, at time t 35 the transmission of main data has been completed from the memory card 20 to the data processing apparatus 10, the data processing apparatus 10 switches to the low control signal from high with stopping the supply of the synchronizing signal. That is, from "state 3" in which main data is transmitted,
The state is returned to the initial state “state 0”.

【0097】なお、以上のような読み出し処理の影響等
により、メモリカード20の内部状態に変化が生じて何
らかの割り込み処理を行う必要が生じた場合、メモリカ
ード20は、時刻t36に示すように、“状態0”のとき
に割り込みを示すインタラプト信号をDTライン33を
介してデータ処理装置10に供給する。ここで、データ
処理装置10は、“状態0”のときにメモリカード20
からDTライン33を介して信号が供給されたときには
当該信号がインタラプト信号であると判別するように予
め設定しておく。これにより、この信号は、データ処理
装置10によってインタラプト信号であると判断され
る。このインタラプト信号を受け取ったデータ処理装置
10は、当該インタラプト信号に基づいて必要な処理を
行う。
When the internal state of the memory card 20 changes due to the influence of the read processing as described above and it is necessary to perform some kind of interrupt processing, the memory card 20 displays the time t 36 as shown in FIG. , "State 0", an interrupt signal indicating an interrupt is supplied to the data processing device 10 via the DT line 33. Here, when the data processing device 10 is in the “state 0”, the memory card 20
Is set in advance so that when the signal is supplied via the DT line 33, it is determined that the signal is an interrupt signal. As a result, this signal is judged by the data processing device 10 to be an interrupt signal. The data processing device 10 that has received this interrupt signal performs necessary processing based on the interrupt signal.

【0098】次に、図5を参照して主データの書き込み
について説明する。
Next, writing of main data will be described with reference to FIG.

【0099】データ処理装置10とメモリカード20と
の間で何等データの伝送が行われていない状態では、コ
ントロール信号がローとなっており、“状態0”の初期
状態となっている。主データの書き込みに関する処理
は、この“状態0”の初期状態から開始される。
In the state where no data is transmitted between the data processing device 10 and the memory card 20, the control signal is low, which is the initial state of "state 0". The process for writing the main data is started from the initial state of "state 0".

【0100】主データの書き込みに関する処理を開始す
る時刻t41において、データ処理装置10は、コントロ
ールライン32を介してメモリカード20に供給される
コントロール信号をローからハイに切り換える。従っ
て、DTライン33に伝送されるデータの状態は、“状
態0”から“状態1”に切り換えられる。メモリカード
20は、このコントロール信号を取得することにより、
“状態0”から“状態1”となったことを判断して、デ
ータ処理装置10から供給されるコマンドを取得する準
備をする。そして、データ処理装置10は、この“状態
1”のときに、DTライン33を介して書き込みコマン
ドをメモリカード20に供給するとともに、その同期信
号をCLKライン31を介してメモリカード20に供給
する。ここで、メモリカード20は、この“状態1”の
状態で書き込みコマンドを取得することにより、後の
“状態2”及び“状態3”でDTライン33を介して伝
送されるデータの内容を確定する。
At time t 41 when the processing for writing the main data is started, the data processing device 10 switches the control signal supplied to the memory card 20 via the control line 32 from low to high. Therefore, the state of the data transmitted on the DT line 33 is switched from "state 0" to "state 1". The memory card 20 obtains this control signal,
It is determined that the state is changed from the “state 0” to the “state 1”, and preparations are made to acquire the command supplied from the data processing device 10. Then, in the “state 1”, the data processing device 10 supplies the write command to the memory card 20 via the DT line 33, and supplies the synchronization signal to the memory card 20 via the CLK line 31. . Here, the memory card 20 determines the content of the data transmitted via the DT line 33 in the subsequent “state 2” and “state 3” by acquiring the write command in this “state 1” state. To do.

【0101】データ処理装置10は、書き込みコマンド
の供給が完了した時刻t42において、コントロール信号
をハイからローに切り換える。すなわち、“状態1”か
ら“状態2”に切り換える。
The data processor 10 switches the control signal from high to low at time t 42 when the supply of the write command is completed. That is, the "state 1" is switched to the "state 2".

【0102】“状態2”のとき、データ処理装置10
は、メモリカード20に書き込もうとする主データをD
Tライン33を介してメモリカード20へ伝送し、この
主データのメモリカード20への伝送が完了した時刻t
43においてコントロール信号をローからハイに切り換え
る。すなわち、“状態2”から“状態3”に切り換え
る。
In the "state 2", the data processing device 10
Is the main data to be written to the memory card 20
The time t when the main data is transmitted to the memory card 20 via the T line 33 and the main data is completely transmitted to the memory card 20.
At 43 , switch control signal from low to high. That is, the "state 2" is switched to the "state 3".

【0103】“状態3”となったら、メモリカード20
は、“状態1”のときに供給された書き込みコマンドに
基づく処理、具体的には、“状態2”のときにデータ処
理装置10から伝送された主データをメモリ21に書き
込む処理を行う。この処理を行っている間、メモリカー
ド20は、ステータス信号としてビジー信号をDTライ
ン33を介してデータ処理装置10に供給する。すなわ
ち、“状態3”のとき、メモリカード20は、まず、ス
テータス信号としてビジー信号を出力する。このとき、
データ処理装置10は、メモリカード20に供給したコ
マンドが書き込みコマンドであり、且つ現在の状態が
“状態3”であることから、メモリカード20から出力
されている信号がステータス信号であると判断する。
When the "state 3" is reached, the memory card 20
Performs a process based on the write command supplied in the "state 1", specifically, a process of writing the main data transmitted from the data processing device 10 in the memory 21 in the "state 2". During this process, the memory card 20 supplies a busy signal as a status signal to the data processing device 10 via the DT line 33. That is, in the "state 3", the memory card 20 first outputs a busy signal as a status signal. At this time,
Since the command supplied to the memory card 20 is the write command and the current state is “state 3”, the data processing device 10 determines that the signal output from the memory card 20 is a status signal. .

【0104】その後、レジスタ22への主データの書き
込みが完了したら、メモリカード20は、レジスタ22
への主データの書き込みが完了した時刻t44において、
ステータス信号として、ビジー信号の出力を停止して、
主データの書き込みが完了したことを示すレディー信号
の出力を開始する。すなわち、“状態3”のとき、メモ
リカード20は、レジスタ22への主データの書き込み
が完了したらステータス信号としてレディ信号を出力す
る。
After that, when the writing of the main data to the register 22 is completed, the memory card 20 makes the register 22
At time t 44 when the writing of the main data to the
As a status signal, stop outputting the busy signal,
The output of the ready signal indicating that the writing of the main data is completed is started. That is, in the "state 3", the memory card 20 outputs a ready signal as a status signal when the main data writing to the register 22 is completed.

【0105】なお、本例では、“状態3”のときに、D
Tライン33を介してメモリカード20から出力される
信号がハイのときをビジー信号として、ローのときをレ
ディ信号としている。この“状態3”のとき、データ処
理装置10は、メモリカード20に供給したコマンドが
書き込みコマンドであり、且つ現在の状態が“状態3”
であることからメモリカード20から出力されている信
号がステータス信号であると判断することができる。し
たがって、メモリカード20からDTライン33を介し
て出力される信号をハイからローに切り換えるだけで
も、データ処理装置10は、当該信号がビジー信号から
レディ信号に切り換わったことを検出することができ
る。
In this example, in the "state 3", D
When the signal output from the memory card 20 via the T line 33 is high, the busy signal is used, and when the signal is low, the ready signal is used. In this "state 3", the data processing device 10 has the write command as the command supplied to the memory card 20, and the current state is "state 3".
Therefore, it can be determined that the signal output from the memory card 20 is the status signal. Therefore, by simply switching the signal output from the memory card 20 through the DT line 33 from high to low, the data processing device 10 can detect that the signal is switched from the busy signal to the ready signal. .

【0106】データ処理装置10は、メモリカード20
からレディ信号を受け取ったら書き込みコマンドに基づ
くメモリカード20の処理が完了したと判断する。そし
て、書き込みコマンドに基づくメモリカード20の処理
が完了したと判断された時刻t45において、データ処理
装置10は、同期信号の供給を止めるとともに、コント
ロール信号をハイからローに切り換える。すなわち、主
データの書き込みを行っている状態である“状態3”か
ら、初期状態の“状態0”へと状態が戻される。
The data processing device 10 includes a memory card 20.
When the ready signal is received from, it is determined that the processing of the memory card 20 based on the write command is completed. Then, at time t 45 when it is determined that the processing of the memory card 20 based on the write command is completed, the data processing device 10 stops the supply of the synchronization signal and switches the control signal from high to low. That is, the state is returned from the "state 3" in which the main data is being written to the initial state "state 0".

【0107】なお、以上のような書き込み処理の影響等
により、メモリカード20の内部状態に変化が生じて、
何らかの割り込み処理を行う必要が生じた場合、メモリ
カード20は、時刻t46に示すように、“状態0”のと
きに割り込みを示すインタラプト信号をDTライン33
を介してデータ処理装置10に供給する。ここで、デー
タ処理装置10は、“状態0”のときにメモリカード2
0からDTライン33を介して信号が供給されたときに
は、当該信号がインタラプト信号であると判別するよう
に予め設定しておく。これにより、この信号は、データ
処理装置10によってインタラプト信号であると判断さ
れる。そして、このインタラプト信号を受け取ったデー
タ処理装置10は、当該インタラプト信号に基づいて必
要な処理を行う。
Note that the internal state of the memory card 20 changes due to the influence of the above writing process,
If necessary to do some interrupt processing occurs, the memory card 20, as shown at time t 46, the interrupt signal indicating the interruption when the "state 0" DT line 33
And is supplied to the data processing device 10 via. Here, when the data processing device 10 is in the “state 0”, the memory card 2
When a signal is supplied from 0 through the DT line 33, it is preset so as to determine that the signal is an interrupt signal. As a result, this signal is judged by the data processing device 10 to be an interrupt signal. Then, the data processing device 10 that has received this interrupt signal performs necessary processing based on the interrupt signal.

【0108】以上のように、本発明を適用したデータ処
理装置10及びメモリカード20では、コントロール信
号を切り換えてDTライン33に伝送するデータの内容
を確定するようにしており、これにより、DTライン3
3によってコマンドや主データだけでなくステータス信
号やインタラプト信号も伝送することが可能となってい
る。そのため、データ処理装置10とメモリカード20
との間の信号ラインを少なくすることができる。従っ
て、ビジー信号やインタラプト信号のための信号ライン
を特別に設ける必要がなく、簡単な構成で確実なデータ
の伝送をすることができる。また、DTライン33に伝
送させるデータの切り換えのオーバーヘッドを少なくす
ることもでき、データの伝送の効率が高くなる。
As described above, in the data processing device 10 and the memory card 20 to which the present invention is applied, the control signal is switched to determine the content of the data to be transmitted to the DT line 33. Three
3 enables transmission of not only commands and main data but also status signals and interrupt signals. Therefore, the data processing device 10 and the memory card 20
The number of signal lines between and can be reduced. Therefore, it is not necessary to specially provide a signal line for a busy signal or an interrupt signal, and reliable data transmission can be performed with a simple configuration. Further, the overhead of switching the data to be transmitted on the DT line 33 can be reduced, and the efficiency of data transmission can be improved.

【0109】なお、上述の例ではデータ処理装置10と
メモリカード20の場合を挙げて説明したが、本発明を
メモリカード20ではなく、他のデータ処理装置に適用
することができる。この場合は、予め、伝送されるコマ
ンド等を他のデータ処理装置に設定しておくことが必要
となるが、メモリカード20に対するコマンドのみなら
ず、あらゆるコマンドを伝送することができる。
In the above example, the case of the data processing device 10 and the memory card 20 is described, but the present invention can be applied to another data processing device instead of the memory card 20. In this case, it is necessary to set the command to be transmitted and the like in another data processing device in advance, but not only the command for the memory card 20 but also any command can be transmitted.

【0110】また、データ処理装置10とメモリカード
20との間の第2のデータの伝送方法の説明では、コン
トロール信号で切り換えるDTライン33の伝送データ
の内容を、状態0、状態1、状態2、状態3の4パター
ンについて例示して説明したが、この4パターンに限ら
ず伝送するコマンドの内容に応じてこれ以上のパターン
に切り換えてもよい。
Further, in the description of the second data transmission method between the data processing device 10 and the memory card 20, the contents of the transmission data of the DT line 33 which is switched by the control signal are set to state 0, state 1 and state 2. Although the four patterns of the state 3 have been described as examples, the patterns are not limited to these four patterns and may be switched to more patterns depending on the content of the command to be transmitted.

【0111】さらに、データ処理装置10とメモリカー
ド20との間の第2のデータの伝送方法の説明では、D
Tライン33の伝送データの状態をコントロール信号の
オンオフで切り換える場合について説明したが、図6や
図7に示すように、パルス信号で切り換えるようにして
もよい。なお、図6及び図7は、コントロール信号とし
てパルス信号を用いたときのタイムチャートであり、図
6は、図4と同様にデータ処理装置10によってメモリ
カード20に書き込まれている主データを読み出すとき
のタイムチャート、図7は、図5と同様にデータ処理装
置10によってメモリカード20に主データを書き込む
ときのタイムチャートである。
Furthermore, in the description of the second data transmission method between the data processing device 10 and the memory card 20, D
Although the case of switching the state of the transmission data of the T line 33 by turning on / off the control signal has been described, it may be switched by a pulse signal as shown in FIGS. 6 and 7. 6 and 7 are time charts when a pulse signal is used as a control signal, and FIG. 6 reads the main data written in the memory card 20 by the data processing device 10 as in FIG. 7 is a time chart when the main data is written in the memory card 20 by the data processing device 10 as in FIG.

【0112】さらに、以上説明したメモリカード20に
は、例えば、CLKライン31、コントロールライン3
2及びDTライン33の他に、1本の電源ライン、3本
のグランドライン及び3本のリザーブラインを設けて合
計10本の信号ラインを有する小型のメモリカードとし
てもよい。なお、3本のリザーブラインを設けたときに
は、これら3本のリザーブラインをDTラインとして使
用して先のDTライン33と合わせてDTラインを4本
とし、これら4本のDTラインをパラレルに使用するよ
うにしてもよい。また、3本のリザーブラインを設けた
ときには、これら3本のリザーブラインをそれぞれCL
Kライン、コントロールライン及びDTラインとして使
用して、先のCLKライン31、コントロールライン3
2及びDTライン33と合わせて、CLKライン、コン
トロールライン及びDTラインの組みを2つ設けるよう
にしてもよい。
Further, in the memory card 20 described above, for example, the CLK line 31, the control line 3
In addition to the 2 and DT lines 33, a small-sized memory card having one power supply line, three ground lines, and three reserve lines and a total of ten signal lines may be used. When three reserve lines are provided, these three reserve lines are used as DT lines to make four DT lines in combination with the DT line 33, and these four DT lines are used in parallel. You may do it. Also, when three reserve lines are provided, these three reserve lines are respectively CL
It is used as the K line, control line and DT line, and the CLK line 31 and the control line 3 are used.
Two sets of a CLK line, a control line and a DT line may be provided together with the 2 and the DT line 33.

【0113】ところで、以上の説明で挙げた第2のデー
タ伝送方法において、DTライン33で伝送されるコマ
ンドや主データについては、エラー訂正コード等を一緒
に伝送することで、外部からのノイズ等に対処できる
が、コントロールライン31で伝送されるコントロール
信号については、ハイからローへの切り換え、又はロー
からハイへの切り換えだけで、“状態0”、“状態
1”、“状態2”、“状態3”の推移を示すようにして
いるので外部からのノイズ等の影響を受けるおそれがあ
る。
By the way, in the second data transmission method described above, for the command and the main data transmitted on the DT line 33, by transmitting the error correction code and the like together, noise from the outside, etc. However, regarding the control signal transmitted on the control line 31, only by switching from high to low or from low to high, "state 0", "state 1", "state 2", "state 0" Since the transition of the state 3 "is shown, there is a risk of being affected by noise or the like from the outside.

【0114】例えば、図4及び図5に挙げた例では、
“状態0”及び“状態2”のときにコントロール信号を
ローとして、“状態1”及び“状態3”のときにコント
ロール信号をハイとしている。そして、“状態0”と
“状態2”との判別や、“状態1”と“状態3”との判
別は、それらの状態の推移を追うことにより判別するよ
うにしている。したがって、状態の推移が正しく検出さ
れないと、メモリカード20は、“状態0”と“状態
2”とを間違えて判断してしまったり、“状態1”と
“状態3”とを間違えて判断してしまったりするおそれ
がある。
For example, in the example shown in FIGS. 4 and 5,
The control signal is low in the "state 0" and "state 2", and the control signal is high in the "state 1" and "state 3". The determination of "state 0" and "state 2" and the determination of "state 1" and "state 3" are made by following the transition of those states. Therefore, if the state transition is not correctly detected, the memory card 20 may mistakenly judge "state 0" and "state 2" or may mistakenly judge "state 1" and "state 3". There is a risk that it will be lost.

【0115】例えば、図4に示すように主データの読み
出しを行う際に、コントロール信号にノイズがのり、メ
モリカード20が“状態1”と“状態3”とを間違えて
判断してしまうと、データ処理装置10からメモリカー
ド20に送られるコマンドとメモリカード20から読み
出された主データとがDTライン33上でぶつかってし
まう可能性がある。
For example, when the main data is read as shown in FIG. 4, noise is added to the control signal, and the memory card 20 makes a mistaken determination between "state 1" and "state 3". The command sent from the data processing device 10 to the memory card 20 and the main data read from the memory card 20 may collide on the DT line 33.

【0116】また、図4に示すように主データの読み出
しを行う際に、コントロール信号にノイズがのり、メモ
リカード20が“状態0”と“状態2”とを間違えて判
断してしまうと、“状態2”のときに出力すべきビジー
信号やレディ信号が“状態0”のときに送出されてしま
ったり、“状態0”のときに出力すべきインタラプト信
号が“状態2”のときに送出されてしまったりする可能
性がある。
Further, as shown in FIG. 4, when the main data is read, if the control signal contains noise and the memory card 20 makes a mistaken decision between "state 0" and "state 2", The busy signal or ready signal that should be output in "state 2" is sent when it is "state 0", or it is sent when the interrupt signal that should be output in "state 0" is "state 2". There is a possibility that it will be.

【0117】さらに、図5に示すように主データの書き
込みを行う際に、コントロール信号にノイズがのり、メ
モリカード20が“状態1”と“状態3”とを間違えて
判断してしまうと、データ処理装置10からメモリカー
ド20に送られるコマンドとメモリカード20から出力
されるステータス信号とがDTライン33上でぶつかっ
てしまう可能性がある。あるいは、データ処理装置10
の側はメモリカード20からのレディ信号を待ち、メモ
リカード20の側はデータ処理装置10からのコマンド
を待つような状態となり、DTライン33でのデータの
送受信が止まってしまう可能性もある。
Further, when the main data is written as shown in FIG. 5, if the control signal is noisy and the memory card 20 makes a mistaken decision between "state 1" and "state 3", The command sent from the data processing device 10 to the memory card 20 and the status signal output from the memory card 20 may collide on the DT line 33. Alternatively, the data processing device 10
There is a possibility that the side of (1) waits for a ready signal from the memory card 20 and the side of the memory card 20 waits for a command from the data processing device 10, and data transmission / reception on the DT line 33 is stopped.

【0118】さらにまた、図5に示すように主データの
書き込みを行う際に、コントロール信号にノイズがの
り、メモリカード20が“状態0”と“状態2”とを間
違えて判断してしまうと、データ処理装置10からメモ
リカード20に送られる主データとメモリカード20か
ら出力されたインタラプト信号がDTライン33上でぶ
つかってしまう可能性がある。
Furthermore, as shown in FIG. 5, when the main data is written, the control signal may be noisy, and the memory card 20 may mistakenly judge "state 0" and "state 2". The main data sent from the data processing device 10 to the memory card 20 and the interrupt signal output from the memory card 20 may collide on the DT line 33.

【0119】以上のような問題を回避するには、例え
ば、レディ信号を所定の周期にて信号レベルの変化が繰
り返される信号とし、メモリカード20からの信号出力
がない状態をビジー信号として検出するようにすればよ
い。以下、このようにレディ信号及びビジー信号を検出
するようにした例について具体的に説明する。
In order to avoid the above problems, for example, the ready signal is set to a signal in which the change of the signal level is repeated in a predetermined cycle, and the state where no signal is output from the memory card 20 is detected as the busy signal. You can do it like this. Hereinafter, an example in which the ready signal and the busy signal are detected will be specifically described.

【0120】なお、以下の説明では、メモリカード20
に書き込まれている主データを読み出す場合を例に挙
げ、図8のタイムチャート、図9及び図10のフローチ
ャートを参照して説明する。ここで、図8は、図4と同
様にメモリカード20に書き込まれている主データを読
み出すときのタイムチャートであるが、本例ではビジー
信号やレディ信号の内容が図4の例とは異なる。また、
図9は、メモリカード20に書き込まれている主データ
を読み出す際のデータ処理装置10の側の処理の流れを
示すフローチャートであり、図10は、メモリカード2
0に書き込まれている主データを読み出す際のメモリカ
ード20の側の処理の流れを示すフローチャートであ
る。
In the following description, the memory card 20
An example of reading the main data written in is described with reference to the time chart of FIG. 8 and the flowcharts of FIGS. 9 and 10. Here, FIG. 8 is a time chart at the time of reading the main data written in the memory card 20 similarly to FIG. 4, but in this example, the contents of the busy signal and the ready signal are different from those in the example of FIG. . Also,
FIG. 9 is a flowchart showing the flow of processing on the side of the data processing device 10 when reading out the main data written in the memory card 20, and FIG.
6 is a flowchart showing the flow of processing on the side of the memory card 20 when reading the main data written in 0.

【0121】まず、図8及び図9を参照しながら、デー
タ処理装置10側の処理について説明する。
First, the processing on the data processing apparatus 10 side will be described with reference to FIGS. 8 and 9.

【0122】メモリカード20から主データを読み出す
とき、データ処理装置10は、まず、メモリカード20
からの主データの読み出しを指示するコマンドである読
み出しコマンドをレジスタ12に書き込む。その後、ス
テップS1に示すように、データ処理装置10は、ホス
ト側コントローラ14の制御により、ホスト側シリアル
インターフェース回路13から出力されるコントロール
信号をハイにして“状態1”にする(図8の時刻
51)。また、この“状態1”のとき、データ処理装置
10は、レジスタ12からホスト側シリアルインターフ
ェース回路13へ読み出しコマンドを読み出し、当該読
み出しコマンドにエラー訂正コード等を付けた上で当該
読み出しコマンドをDTライン33を介してメモリカー
ド20へ送出する。
When reading main data from the memory card 20, the data processing device 10 first
A read command, which is a command for instructing the reading of the main data from, is written in the register 12. After that, as shown in step S1, the data processing device 10 sets the control signal output from the host-side serial interface circuit 13 to the high level to set it to "state 1" under the control of the host-side controller 14 (time in FIG. 8). t 51 ). Further, in the "state 1", the data processing device 10 reads a read command from the register 12 to the host-side serial interface circuit 13, attaches an error correction code or the like to the read command, and then adds the read command to the DT line. It is sent to the memory card 20 via 33.

【0123】読み出しコマンドの送出が完了したら、デ
ータ処理装置10は、ホスト側コントローラ14の制御
により、ホスト側シリアルインターフェース回路13か
ら出力されるコントロール信号をローにして“状態2”
にする(図8の時刻t52)。この“状態2”のとき、デ
ータ処理装置10は、メモリカード20から送られてく
るステータス信号の検出を行う。そして、ステップS2
において、データ処理装置10は、ビジー信号が検出さ
れたか否かを判断する。
When the transmission of the read command is completed, the data processing device 10 sets the control signal output from the host side serial interface circuit 13 to low under the control of the host side controller 14 to "state 2".
(Time t 52 in FIG. 8). In this "state 2", the data processing device 10 detects the status signal sent from the memory card 20. And step S2
At, the data processing device 10 determines whether or not a busy signal is detected.

【0124】このとき、ホスト側シリアルインターフェ
ース回路13は、DTライン33を介して送られてくる
信号が信号レベルに特別な変化のないほぼ一定の信号
(以下、DC信号と称する。)の場合には、当該DC信
号がメモリカード20が信号の入力を受け付けない状態
であることを示すビジー信号であると判断する。また、
DTライン33を介して送られてくる信号が所定の周期
にて信号レベルの変化が繰り返される信号(以下、AC
信号と称する。)の場合には、当該信号がメモリカード
20が信号の入力待ち状態であることを示すレディ信号
であると判断する。
At this time, the host-side serial interface circuit 13 operates when the signal sent through the DT line 33 is a substantially constant signal (hereinafter referred to as a DC signal) with no particular change in signal level. Determines that the DC signal is a busy signal indicating that the memory card 20 is in a state in which the signal input is not accepted. Also,
The signal transmitted via the DT line 33 is a signal (hereinafter, referred to as AC
It is called a signal. In the case of), it is determined that the signal is a ready signal indicating that the memory card 20 is in a signal input waiting state.

【0125】このとき、ホスト側シリアルインターフェ
ース回路13は、DTライン33を介して送られてくる
信号がDC信号であるかAC信号であるかを判断するだ
けである。したがって、ホスト側シリアルインターフェ
ース回路13は、メモリカード20から一定のレベルの
信号が送られているときに、当該信号をビジー信号とし
て検出するだけでなく、メモリカード20が信号の出力
を停止しているときもステータス信号がビジー信号にな
っていると判断する。
At this time, the host side serial interface circuit 13 only determines whether the signal sent through the DT line 33 is a DC signal or an AC signal. Therefore, the host-side serial interface circuit 13 not only detects the signal as a busy signal while the memory card 20 sends a signal of a certain level, but also causes the memory card 20 to stop outputting the signal. Even when the status signal is present, it is determined that the status signal is a busy signal.

【0126】そして、ステップS2において、ビジー信
号が検出された場合には、ステップS3へ進む。ステッ
プS3において、データ処理回路10はビジー信号が予
め規定された所定時間以上続いているか否かを判断す
る。ビジー信号が予め規定された所定時間以上続いてい
る場合には、タイムアウトが発生したものとしてステッ
プS1へ戻って処理を繰り返す。すなわち、ビジー信号
が予め規定された所定時間以上続いている場合、データ
処理回路10は、メモリカード20の側で何らかのエラ
ーが発生したものと判断して、もう一度“状態1”に戻
って読み出しコマンドの送出をやり直す。
If a busy signal is detected in step S2, the process proceeds to step S3. In step S3, the data processing circuit 10 determines whether the busy signal continues for a predetermined time or more. If the busy signal continues for a predetermined time or more, it is considered that a time-out has occurred and the process returns to step S1 and is repeated. That is, when the busy signal continues for a predetermined time or more, the data processing circuit 10 determines that some error has occurred on the memory card 20 side, returns to the "state 1" again, and returns to the read command. Send again.

【0127】一方、ビジー信号が予め規定された所定時
間に達していない場合には、ステップS2へ戻って処理
を繰り返す。すなわち、メモリカード20からのステー
タス信号がビジー信号からレディ信号に変わるまで、デ
ータ処理回路10は、ステップS2及びステップS3の
処理を繰り返す。
On the other hand, if the busy signal does not reach the predetermined time, the process returns to step S2 and is repeated. That is, the data processing circuit 10 repeats the processes of steps S2 and S3 until the status signal from the memory card 20 changes from the busy signal to the ready signal.

【0128】なお、後述するように、メモリカード20
は、何らかのエラーが発生したときには信号の出力を止
めるようになっている。このとき、DTライン33の信
号レベルは、いわゆるプルダウン抵抗として作用する抵
抗33aがDTライン33に接続されているので、直前
の状態がローのときにはローの状態が維持され、直前の
状態がハイのときには徐々にローの状態へと変化する。
これらの状態は、いずれの場合も、データ処理装置10
にはDC信号として、すなわちビジー信号として検出さ
れる。すなわち、メモリカード20の側でエラーが発生
した場合には、ビジー信号が継続されることとなる。し
たがって、メモリカード20の側でエラーが発生した場
合には、ステップS2及びステップS3での判断により
当該エラーの発生を検出することができる。
As will be described later, the memory card 20
Is designed to stop the output of signals when some kind of error occurs. At this time, the signal level of the DT line 33 is maintained low when the immediately previous state is low, because the resistor 33a acting as a so-called pull-down resistor is connected to the DT line 33, and the immediately previous state is high. Sometimes it gradually changes to a low state.
In any case, these states are data processing device 10
Is detected as a DC signal, that is, as a busy signal. That is, when an error occurs on the memory card 20 side, the busy signal is continued. Therefore, when an error occurs on the memory card 20 side, it is possible to detect the occurrence of the error by the determination in steps S2 and S3.

【0129】換言すれば、このデータ処理装置10及び
メモリカード20では、メモリカード20にエラーが発
生した場合、エラーの発生を示す特別な信号をメモリカ
ード20からデータ処理装置10に送出することなくデ
ータ処理装置10によってエラーの発生が検出されるよ
うになっている。
In other words, in the data processing device 10 and the memory card 20, when an error occurs in the memory card 20, the memory card 20 does not send a special signal indicating the occurrence of the error to the data processing device 10. The data processing device 10 is adapted to detect the occurrence of an error.

【0130】一方、メモリカード20の処理にエラーが
発生することなく無事に処理が完了して、メモリカード
20が外部からの信号入力を受け付ける状態となると、
メモリカード20から出力されるステータス信号は、ビ
ジー信号からレディ信号に変わる(図8の時刻t53)。
ここで、レディ信号は、上述したように、所定の周期に
て信号レベルの変化が繰り返されるAC信号である。こ
のレディ信号は、データ処理装置10によって速やか且
つ確実に検出されるように同期信号の周波数以下の周波
数で信号レベルが変化するような信号としておくことが
好ましい。具体的には、例えば、同期信号の1/2の周
波数で、信号レベルがハイ、ロー、ハイ、ローと反転を
繰り返すような信号とする。
On the other hand, when the processing of the memory card 20 is completed without any error, and the memory card 20 is ready to receive a signal input from the outside,
The status signal output from the memory card 20 changes from the busy signal to the ready signal (time t 53 in FIG. 8).
Here, the ready signal is an AC signal in which the change in signal level is repeated in a predetermined cycle, as described above. The ready signal is preferably a signal whose signal level changes at a frequency equal to or lower than the frequency of the synchronization signal so that the data processing device 10 can detect it promptly and reliably. Specifically, for example, the signal level is such that the signal level is high, low, high, low and inversion at half the frequency of the synchronization signal.

【0131】そして、ステップS2において、ビジー信
号が検出されなくなったら、すなわちレディ信号が検出
されたらステップS4へ進む。ステップS4において、
データ処理装置10は、ホスト側コントローラ14の制
御によりホスト側シリアルインターフェース回路13か
ら出力されるコントロール信号をハイにして“状態3”
にする(図8の時刻t54)。この“状態3”のとき、デ
ータ処理装置10は、メモリカード20から読み出され
た主データを、ホスト側シリアルインターフェース回路
13によって受信する。ホスト側シリアルインターフェ
ース回路13によって受信された主データは、ホスト側
コントローラ14の制御によりレジスタ12を介してデ
ータ処理部11へ転送される。
When the busy signal is no longer detected in step S2, that is, when the ready signal is detected, the process proceeds to step S4. In step S4,
The data processing device 10 sets the control signal output from the host-side serial interface circuit 13 to high under the control of the host-side controller 14 to "state 3".
(Time t 54 in FIG. 8). In this “state 3”, the data processing device 10 receives the main data read from the memory card 20 by the host side serial interface circuit 13. The main data received by the host-side serial interface circuit 13 is transferred to the data processing unit 11 via the register 12 under the control of the host-side controller 14.

【0132】メモリカード20から読み出された主デー
タの受信が完了したら、データ処理装置10は、ホスト
側コントローラ14の制御によりホスト側シリアルイン
ターフェース回路13から出力されるコントロール信号
をローにして“状態0”にする(図8の時刻t55)。
When the reception of the main data read from the memory card 20 is completed, the data processing device 10 sets the control signal output from the host side serial interface circuit 13 to low under the control of the host side controller 14 to the "state". 0 to "(time t 55 in FIG. 8).

【0133】その後、ステップS5において、データ処
理装置10は、インタラプト信号が検出されたか否かを
判断する。ここで、インタラプト信号は、メモリカード
20が何らかの割り込み処理を要求していることを示す
信号である。インタラプト信号が検出されたら、ステッ
プS6へ進む(図8の時刻t56)。ステップS6におい
て、データ処理装置10は、検出されたインタラプト信
号をデータ処理部11に送り、その後、当該インタラプ
ト信号に応じた割り込み処理を行うためにステップS1
へ戻って処理を繰り返す。
Then, in step S5, the data processing device 10 determines whether or not the interrupt signal is detected. Here, the interrupt signal is a signal indicating that the memory card 20 requests some kind of interrupt processing. When the interrupt signal is detected, the process proceeds to step S6 (time t 56 in FIG. 8). In step S6, the data processing device 10 sends the detected interrupt signal to the data processing unit 11, and then in step S1 in order to perform an interrupt process according to the interrupt signal.
Return to and repeat the process.

【0134】一方、ステップS5でインタラプト信号が
検出されていない場合には、ステップS7へ進む。ステ
ップS7において、データ処理装置10は、メモリカー
ド20に対して行うべき何らかの処理があるか否か、す
なわち、メモリカード20に送出すべきコマンドがある
か否かを判断する。そして、データ処理装置10は、メ
モリカード20に送出すべきコマンドがない場合はステ
ップS5へ戻って処理を繰り返し、メモリカード20に
送出すべきコマンドがある場合はステップS1へ戻って
コマンドの送出から処理を繰り返す。すなわち、インタ
ラプト信号が発生する前にメモリカード20に対する何
らかの処理の要求、例えばメモリカード20の内部のス
テータスを検出する処理の要求等があったらステップS
1へ戻って、当該処理に対応したコマンドの送出を行
う。
On the other hand, if no interrupt signal is detected in step S5, the process proceeds to step S7. In step S7, the data processing device 10 determines whether or not there is any processing to be performed on the memory card 20, that is, whether or not there is a command to be sent to the memory card 20. Then, if there is no command to be sent to the memory card 20, the data processing device 10 returns to step S5 and repeats the processing, and if there is a command to be sent to the memory card 20, returns to step S1 and sends the command. Repeat the process. That is, if there is a request for some processing to the memory card 20 before the interrupt signal is generated, for example, a processing request for detecting the internal status of the memory card 20, etc., step S
Returning to 1, the command corresponding to the process is transmitted.

【0135】次に、図8及び図10を参照しながら、メ
モリカード20の側の処理について説明する。
Next, the processing on the side of the memory card 20 will be described with reference to FIGS.

【0136】データ処理装置10によって主データが読
み出されるとき、メモリカード20は、まず、ステップ
S11において、ホスト側シリアルインターフェース回
路13から出力されるコントロール信号がハイであり、
且つ、現在の状態が“状態1”であるとメモリカード2
0が認識しているときにホスト側シリアルインターフェ
ース回路13からDTライン33を介して送られてきた
データをコマンドとして受け取る(図8の時刻t51)。
なお、データ処理装置10からのデータの送出が完了す
ると、コントロール信号はローからハイに切り換わる。
When the data processor 10 reads the main data, the memory card 20 first determines that the control signal output from the host-side serial interface circuit 13 is high in step S11.
In addition, if the current state is “state 1”, the memory card 2
When 0 is recognized, the data transmitted from the host side serial interface circuit 13 via the DT line 33 is received as a command (time t 51 in FIG. 8).
When the data transmission from the data processing device 10 is completed, the control signal switches from low to high.

【0137】次に、ステップS12において、ステップ
S11におけるコマンドの受信時にエラーが生じたか否
かを判断する。このとき、エラーが生じるのは、例え
ば、メモリカード20の側は“状態1”であると認識し
ていたが、データ処理装置10の側は“状態3”である
と認識しており、送られてきたデータがコマンドではな
かった場合である。
Next, in step S12, it is determined whether or not an error has occurred during the reception of the command in step S11. At this time, the error occurs, for example, when the memory card 20 side recognizes that the state is “state 1”, but the data processing device 10 side recognizes that the state is “state 3”, and the error occurs. This is the case when the received data is not a command.

【0138】コマンドの受信時にエラーが生じた場合に
はステップS13に進み、メモリカード20からの信号
出力を停止した上で、ステップS11へ戻ってデータ処
理装置10からのコマンドの再入力の待ち状態となる。
すなわち、カード側シリアルインターフェース回路23
は、ホスト側シリアルインターフェース回路13からの
コマンドの受信時にエラーが生じたときには信号の出力
を停止して新たなコマンドの入力待ち状態となる。な
お、メモリカード20からの信号出力が停止していると
き、データ処理装置10の側はビジー信号を検出してい
る状態となる。
If an error occurs when the command is received, the process proceeds to step S13, the signal output from the memory card 20 is stopped, and then the process returns to step S11 to wait for the re-input of the command from the data processing device 10. Becomes
That is, the card side serial interface circuit 23
When an error occurs during the reception of a command from the host side serial interface circuit 13, stops the output of the signal and waits for the input of a new command. When the signal output from the memory card 20 is stopped, the data processing device 10 is in the state of detecting the busy signal.

【0139】一方、コマンドの受信時にエラーが生じて
いない場合には、“状態2”に移行する(図8の時刻t
52)。そして、ステップS14へ進んで、メモリカード
20は、ステップS11で受信したコマンドに応じた処
理を行うとともに、データ処理装置10への主データの
送出の準備が完了したか否かを判別する。準備が完了し
ていなければステップS15へ進み、準備が完了したら
ステップS16へ進む。
On the other hand, when no error occurs when the command is received, the state is shifted to "state 2" (time t in FIG. 8).
52 ). Then, proceeding to step S14, the memory card 20 performs processing in accordance with the command received at step S11 and determines whether or not preparation for sending the main data to the data processing device 10 is completed. If the preparation is not completed, the process proceeds to step S15, and if the preparation is completed, the process proceeds to step S16.

【0140】ステップS15において、カード側シリア
ルインターフェース回路23は、信号レベルが一定のビ
ジー信号を出力し、その後、ステップS14に戻ってデ
ータ処理装置10への主データの送出の準備が完了した
か否かの判別を繰り返す。すなわち、カード側シリアル
インターフェース回路23は、データ処理装置10への
主データの送出の準備が完了するまで信号レベルが一定
のビジー信号の出力を継続する。
In step S15, the card side serial interface circuit 23 outputs a busy signal having a constant signal level, and then returns to step S14 to determine whether or not the preparation for sending the main data to the data processing device 10 is completed. Repeat the determination. That is, the card-side serial interface circuit 23 continues to output a busy signal having a constant signal level until the preparation for sending the main data to the data processing device 10 is completed.

【0141】データ処理装置10への主データの送出の
準備が完了したらステップS16へ進み、ステップS1
6において、カード側シリアルインターフェース回路2
3は、ホスト側シリアルインターフェース回路13へレ
ディ信号を送出する(図8の時刻t53)。ここで、レデ
ィ信号は、上述したように、例えば、同期信号の1/2
の周波数の信号である。
When the preparation for sending the main data to the data processing device 10 is completed, the process proceeds to step S16 and step S1.
6, the card side serial interface circuit 2
3 sends a ready signal to the host-side serial interface circuit 13 (time t 53 in FIG. 8). Here, the ready signal is, for example, 1/2 of the synchronization signal as described above.
It is a signal of frequency.

【0142】レディ信号がデータ処理装置10によって
検出されると、コントロール信号がローからハイに切り
換わる。すなわち、“状態2”から“状態3”に切り換
わる(図8の時刻t54)。“状態3”となったら、ステ
ップS17において、カード側コントローラ24は、ス
テップS11で受信したコマンドによって読み出すよう
に指示された主データを、カード側シリアルインターフ
ェース回路23を介してDTライン33によりホスト側
シリアルインターフェース回路13へCLKラインによ
って伝送されている同期信号に同期させて送出する。こ
の主データ全てがデータ処理装置10によって受信され
ると、コントロール信号はハイからローに切り換わる。
すなわち、“状態3”から“状態0”に切り換わる(図
8の時刻t55)。
When the ready signal is detected by the data processing device 10, the control signal switches from low to high. In other words, it switched to "STATUS 3" to "state 2" (at time t 54 in FIG. 8). When the "state 3" is reached, in step S17, the card-side controller 24 uses the DT line 33 via the card-side serial interface circuit 23 to send the main data instructed to be read by the command received in step S11 to the host side. The signal is sent to the serial interface circuit 13 in synchronization with the synchronizing signal transmitted by the CLK line. When all of this main data is received by the data processing device 10, the control signal switches from high to low.
In other words, it switched to "STATUS 0" to "state 3" (at time t 55 in FIG. 8).

【0143】次に、ステップS18において、カード側
コントローラ24は、何らかの割り込み処理の要求があ
るか否かを判断する。割り込み処理の要求がない場合は
ステップS19へ進み、割り込み処理の要求がある場合
はステップS20へ進む。
Next, in step S18, the card-side controller 24 determines whether or not there is any interrupt processing request. If there is no request for interrupt processing, the process proceeds to step S19, and if there is a request for interrupt processing, the process proceeds to step S20.

【0144】ステップS19において、カード側コント
ローラ24は、ホスト側シリアルインターフェース回路
13から供給されるコントロール信号がローからハイに
切り換わったか否か、すなわち、“状態0”から“状態
1”に切り換わったか否かを判断する。そして、“状態
1”に切り換わったならば、ステップS11へ戻って、
コマンドの受信から処理を繰り返す。一方、“状態0”
のままならば、ステップS18へ戻って処理を繰り返
す。すなわち、このメモリカード20は、割り込み処理
が発生するか、あるいは状態が“状態0”から“状態
1”に切り換わるまで、ステップS18及びステップS
19の処理を繰り返す。
In step S19, the card-side controller 24 determines whether or not the control signal supplied from the host-side serial interface circuit 13 has switched from low to high, that is, from "state 0" to "state 1". Determine whether or not. Then, if the state is switched to "state 1", the process returns to step S11,
The process is repeated from the reception of the command. On the other hand, "state 0"
If so, the process returns to step S18 to repeat the process. In other words, this memory card 20 has steps S18 and S until an interrupt process occurs or the state switches from "state 0" to "state 1".
The process of 19 is repeated.

【0145】一方、ステップS18において、割り込み
処理の要求があると判断されたら、ステップS20及び
ステップ21に示すように、カード側シリアルインター
フェース回路は、状態が“状態0”から“状態1”に切
り換わるまでインタラプト信号を出力する。このとき、
データ処理装置20によってインタラプト信号が検出さ
れると、ホスト側シリアルインターフェース回路13か
ら供給されるコントロール信号がローからハイに切り換
わり、状態が“状態0”から“状態1”に切り換わるこ
ととなる。そして、状態が“状態0”から“状態1”に
切り換わったらステップS11へ戻り、メモリカード2
0は、コマンドの受信から処理を繰り返す。なお、この
ときは、ステップS20で送出したインタラプト信号に
応じた処理を行うコマンドを受信することとなる。
On the other hand, if it is determined in step S18 that there is a request for interrupt processing, the card side serial interface circuit switches the state from "state 0" to "state 1", as shown in steps S20 and S21. The interrupt signal is output until it is changed. At this time,
When the data processing device 20 detects an interrupt signal, the control signal supplied from the host-side serial interface circuit 13 switches from low to high, and the state switches from "state 0" to "state 1". . When the state is switched from "state 0" to "state 1", the process returns to step S11 and the memory card 2
0 repeats the process from the reception of the command. At this time, a command for performing processing according to the interrupt signal sent in step S20 is received.

【0146】以上のように、メモリカード20が実際に
処理を行っているときに出力される信号をビジー信号と
するだけでなく、メモリカード20からの信号出力がな
い状態のときもビジー信号として検出するようにするこ
とによりメモリカード20が状態を誤って判断したまま
データ伝送の処理が進むようなことがなくなる。したが
って、メモリカード20から出力されるデータとデータ
処理装置10から出力されるデータとがぶつかってしま
ったり、メモリカード20とデータ処理装置10との間
で誤ったデータのやり取りがなされたり、メモリカード
20とデータ処理装置10とが互いに待ち状態となって
データの伝送がされなくなってしまったりするようなこ
とがなくなる。
As described above, not only the signal output when the memory card 20 is actually performing processing is the busy signal, but also when the signal output from the memory card 20 is not present. By performing the detection, the data transmission process does not proceed while the memory card 20 incorrectly determines the state. Therefore, the data output from the memory card 20 and the data output from the data processing device 10 collide with each other, incorrect data is exchanged between the memory card 20 and the data processing device 10, and the memory card It is possible to prevent the data transmission from being stopped because the data processing device 20 and the data processing device 10 are in a waiting state with each other.

【0147】[0147]

【発明の効果】本発明に係るデータ処理システムは、外
部記憶装置がデータ処理装置からの信号入力を受け付け
ない状態から信号入力待ち状態に変わったとき、所定の
周期にて信号レベルの変化を繰り返すレディ信号が外部
記憶装置から出力され、外部記憶装置が制御命令データ
に基づく処理を行っておりデータ処理装置からの信号入
力を受け付けない状態のときには、外部装置側シリアル
信号入出力部から信号レベルが一定のビジー信号がステ
ータス信号として出力されるか、あるいは外部装置側シ
リアル信号入出力部からの信号の出力が停止され、外部
記憶装置が制御命令データを受信したときにエラーが生
じた場合には外部装置側シリアル信号入出力部からの信
号の出力が停止されるので、外部記憶装置との間でデー
タの伝送を行う際に、外部記憶装置から出力されるデー
タとデータ処理装置から出力されるデータとがぶつかっ
てしまったり、外部記憶装置とデータ処理装置との間で
誤ったデータのやり取りがなされたり、外部記憶装置と
データ処理装置とが互いに待ち状態となってデータの伝
送がされなくなってしまったりするようなことを回避で
きる。
According to the data processing system of the present invention, when the external storage device changes from the state of not accepting signal input from the data processing device to the state of waiting for signal input, the signal level is repeatedly changed at a predetermined cycle. When the ready signal is output from the external storage device and the external storage device is performing processing based on the control command data and is not accepting the signal input from the data processing device, the signal level from the external device side serial signal input / output unit is changed. If a constant busy signal is output as the status signal, or if the output of the signal from the external device side serial signal input / output unit is stopped and an error occurs when the external storage device receives the control command data, Since the output of signals from the serial signal input / output unit on the external device side is stopped, when transmitting data to or from an external storage device. , The data output from the external storage device may collide with the data output from the data processing device, incorrect data may be exchanged between the external storage device and the data processing device, It is possible to avoid a situation in which the processing device and the processing device are in a waiting state with each other and data is not transmitted.

【0148】また、発明に係るデータ伝送方法では、外
部記憶装置がデータ処理装置からの信号入力を受け付け
ない状態から信号入力待ち状態に変わったとき、所定の
周期にて信号レベルの変化を繰り返すレディ信号が外部
記憶装置から出力され、外部記憶装置の状態が、制御命
令データに基づく処理を行っておりデータ処理装置から
の信号入力を受け付けない状態のときには、外部装置側
シリアル信号入出力部から、信号レベルが一定のビジー
信号がステータス信号として出力されるか、あるいは外
部装置側シリアル信号入出力部からの信号の出力が停止
され、外部装置側シリアル信号入出力部によって制御命
令データを受信する際にエラーが生じたときには外部装
置側シリアル信号入出力部からの信号の出力が停止され
るので、外部記憶装置との間でデータの伝送を行う際
に、外部記憶装置から出力されるデータとデータ処理装
置から出力されるデータとがぶつかってしまったり、外
部記憶装置とデータ処理装置との間で誤ったデータのや
り取りがなされたり、外部記憶装置とデータ処理装置と
が互いに待ち状態となってデータの伝送がされなくなっ
てしまったりするようなことを回避できる。
Further, in the data transmission method according to the present invention, when the external storage device changes from the state of not accepting a signal input from the data processing device to the state of waiting for signal input, the ready signal is repeatedly changed at a predetermined cycle. When the signal is output from the external storage device and the state of the external storage device is in the state of performing the processing based on the control command data and not accepting the signal input from the data processing device, the external device side serial signal input / output unit When a busy signal with a constant signal level is output as a status signal, or the output of the signal from the serial signal input / output unit on the external device side is stopped and control command data is received by the serial signal input / output unit on the external device side When an error occurs in the external device, the output of the signal from the external device side serial signal input / output unit is stopped. When transmitting data to and from the storage device, the data output from the external storage device may collide with the data output from the data processing device, or an error may occur between the external storage device and the data processing device. It can be avoided that data is exchanged, or that the external storage device and the data processing device are in a waiting state with each other and data is not transmitted.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係るデータ処理装置及びこのデータ処
理装置に用いられるメモリカードを示すブロック図であ
る。
FIG. 1 is a block diagram showing a data processing device according to the present invention and a memory card used in the data processing device.

【図2】上記メモリカードの出力回路を示す回路図であ
る。
FIG. 2 is a circuit diagram showing an output circuit of the memory card.

【図3】上記データ処理装置とメモリカードの間を伝送
するデータのタイムチャートである。
FIG. 3 is a time chart of data transmitted between the data processing device and the memory card.

【図4】上記データ処理装置とメモリカードの間を伝送
するデータのタイムチャートである。
FIG. 4 is a time chart of data transmitted between the data processing device and the memory card.

【図5】上記データ処理装置とメモリカードの間を伝送
するデータのタイムチャートである。
FIG. 5 is a time chart of data transmitted between the data processing device and the memory card.

【図6】上記データ処理装置とメモリカードの間を伝送
するデータのタイムチャートである。
FIG. 6 is a time chart of data transmitted between the data processing device and the memory card.

【図7】上記データ処理装置とメモリカードの間を伝送
するデータのタイムチャートである。
FIG. 7 is a time chart of data transmitted between the data processing device and the memory card.

【図8】上記データ処理装置とメモリカードの間を伝送
するデータのタイムチャートである。
FIG. 8 is a time chart of data transmitted between the data processing device and the memory card.

【図9】メモリカードからデータを読み出す際のデータ
処理装置側の処理の流れを示すフローチャートである。
FIG. 9 is a flowchart showing the flow of processing on the data processing device side when reading data from a memory card.

【図10】メモリカードからデータを読み出す際のメモ
リカード側の処理の流れを示すフローチャートである。
FIG. 10 is a flowchart showing the flow of processing on the memory card side when reading data from the memory card.

【図11】従来のデータ処理装置とメモリカードを示す
ブロック図である。
FIG. 11 is a block diagram showing a conventional data processing device and a memory card.

【図12】従来のデータ処理装置とメモリカードの間を
伝送するデータのタイムチャートである。
FIG. 12 is a time chart of data transmitted between a conventional data processing device and a memory card.

【符号の説明】[Explanation of symbols]

10 データ処理装置、 11 データ処理部、 12
レジスタ、 13ホスト側シリアルインターフェース
回路、 14 ホスト側コントローラ、 20メモリカ
ード、 21 メモリ、 22 レジスタ、 23 カー
ド側シリアルインターフェース回路、 24 カード側
コントローラ、 31 CLKライン、32 コントロー
ルライン、 33 DTライン
10 data processing device, 11 data processing unit, 12
Register, 13 host side serial interface circuit, 14 host side controller, 20 memory card, 21 memory, 22 register, 23 card side serial interface circuit, 24 card side controller, 31 CLK line, 32 control line, 33 DT line

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 29/08 H04L 29/10 G06F 3/06 301 G06F 3/08 G06K 17/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) H04L 29/08 H04L 29/10 G06F 3/06 301 G06F 3/08 G06K 17/00

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データ処理装置と外部記憶装置との間で
データの処理を行うデータ処理システムにおいて、 上記データ処理装置は、少なくとも、上記外部記憶装置
の動作を制御する制御命令データの送信、上記外部記憶
装置の動作状態を表すステータス信号の受信、上記外部
記憶装置に書き込むデータの送信及び上記外部記憶装置
から読み出すデータの受信を上記外部記憶装置との間で
シリアル信号によって行うホスト側シリアル信号入出力
部と、上記ホスト側シリアル信号入出力部により送受信
されるデータの切り換えのタイミングを管理するコント
ロール信号を上記外部記憶装置に供給するコントロール
信号出力部と、上記ホスト側シリアル信号入出力部によ
り送受信されるデータの同期信号を上記外部記憶装置に
供給する同期信号出力部とを備え、 上記外部記憶装置は、少なくとも、上記制御命令データ
の受信、上記ステータス信号の送信、書き込まれるデー
タの受信及び読み出されるデータの送信を上記データ処
理装置との間でシリアル信号によって行う外部装置側シ
リアル信号入出力部と、上記外部装置側シリアル信号入
出力部により送受信されるデータの切り換えのタイミン
グを管理するコントロール信号を上記データ処理装置か
ら受信するコントロール信号入力部と、上記外部装置側
シリアル信号入出力部により送受信されるデータの同期
信号を上記データ処理装置から受信する同期信号入力部
とを備え、 上記コントロール信号出力部は、上記ホスト側シリアル
信号入出力部と上記外部装置側シリアル信号入出力部と
の間で送受信されるデータに応じてコントロール信号の
信号レベルを所定のレベルとし、 上記外部装置側シリアル信号入出力部は、上記データ処
理装置からの信号入力を受け付けない状態から信号入力
待ち状態に変わったときには所定の周期にて信号レベル
の変化を繰り返すレディ信号をステータス信号として出
力し、上記外部記憶装置が制御命令データに基づく処理
を行っており上記データ処理装置からの信号入力を受け
付けない状態のときには信号レベルが一定のビジー信号
をステータス信号として出力するかあるいは信号の出力
を停止し、制御命令データの受信時にエラーが生じたと
きには信号の出力を停止することを特徴とするデータ処
理システム。
1. A data processing system for processing data between a data processing device and an external storage device, wherein the data processing device transmits at least control command data for controlling the operation of the external storage device, A host-side serial signal input for receiving a status signal indicating the operation state of the external storage device, transmitting data to be written to the external storage device, and receiving data to be read from the external storage device by serial signals with the external storage device. An output unit, a control signal output unit that supplies a control signal for controlling the timing of switching data transmitted and received by the host-side serial signal input / output unit to the external storage device, and transmission / reception by the host-side serial signal input / output unit Signal output to supply the external data storage device with the data synchronization signal And an external storage device that performs at least the reception of the control command data, the transmission of the status signal, the reception of the data to be written, and the transmission of the data to be read by a serial signal with the data processing device. A serial signal input / output unit on the device side, a control signal input unit for receiving a control signal for controlling the switching timing of data transmitted / received by the serial signal input / output unit on the external device side, and the external device side A synchronization signal input unit for receiving a synchronization signal of data transmitted / received by the serial signal input / output unit from the data processing device, wherein the control signal output unit includes the host side serial signal input / output unit and the external device side serial Control according to the data sent to and received from the signal input / output section The signal level of the signal is set to a predetermined level, and when the external device side serial signal input / output unit changes from the state of not accepting signal input from the data processing device to the signal input waiting state, A ready signal that repeats changes is output as a status signal, and when the external storage device is performing processing based on control command data and is not accepting a signal input from the data processing device, a busy signal with a constant signal level is displayed. A data processing system characterized by outputting as a signal or stopping the output of a signal, and stopping the output of the signal when an error occurs during reception of control command data.
【請求項2】 上記ホスト側シリアル信号入出力部は、
ステータス信号を受信しているとき、当該ステータス信
号が所定の周期にて信号レベルの変化が繰り返される信
号の場合には当該ステータス信号が上記外部記憶装置が
信号入力待ち状態であることを示すレディ信号であると
判別し、その他の場合には当該ステータス信号が上記外
部記憶装置が信号の入力を受け付けない状態であること
を示すビジー信号であると判別することを特徴とする請
求項1記載のデータ処理システム。
2. The host-side serial signal input / output unit comprises:
When receiving the status signal, when the status signal is a signal in which the signal level changes repeatedly in a predetermined cycle, the status signal indicates that the external storage device is in a signal input waiting state. 2. The data according to claim 1, wherein the status signal is determined to be a busy signal indicating that the external storage device is in a state in which the input of the signal is not accepted, in other cases. Processing system.
【請求項3】 上記ホスト側シリアル信号入出力部は、
上記ビジー信号を所定時間以上継続して受信したときに
は、上記外部記憶装置での処理にエラーが生じたものと
判別することを特徴とする請求項1記載のデータ処理シ
ステム。
3. The serial signal input / output unit on the host side comprises:
2. The data processing system according to claim 1, wherein when the busy signal is continuously received for a predetermined time or longer, it is determined that an error has occurred in the processing in the external storage device.
【請求項4】 データ処理装置と外部記憶装置との間で
データの伝送を行うデータ伝送方法において、 上記データ処理装置は、少なくとも、上記外部記憶装置
の動作を制御する制御命令データの送信、上記外部記憶
装置の動作状態を表すステータス信号の受信、上記外部
記憶装置に書き込むデータの送信及び上記外部記憶装置
から読み出すデータの受信を上記外部記憶装置との間で
シリアル信号によって行うホスト側シリアル信号入出力
部と、上記ホスト側シリアル信号入出力部により送受信
されるデータの切り換えのタイミングを管理するコント
ロール信号を上記外部記憶装置に供給するコントロール
信号出力部と、上記ホスト側シリアル信号入出力部によ
り送受信されるデータの同期信号を上記外部記憶装置に
供給する同期信号出力部とを備え、 上記外部記憶装置は、少なくとも、上記制御命令データ
の受信、上記ステータス信号の送信、書き込まれるデー
タの受信及び読み出されるデータの送信を上記データ処
理装置との間でシリアル信号によって行う外部装置側シ
リアル信号入出力部と、上記外部装置側シリアル信号入
出力部により送受信されるデータの切り換えのタイミン
グを管理するコントロール信号を上記データ処理装置か
ら受信するコントロール信号入力部と、上記外部装置側
シリアル信号入出力部により送受信されるデータの同期
信号を上記データ処理装置から受信する同期信号入力部
とを備え、 上記ホスト側シリアル信号入出力部と上記外部装置側シ
リアル信号入出力部との間で送受信されるデータに応じ
て、上記コントロール信号出力部から出力されるコント
ロール信号の信号レベルを所定のレベルとし、 上記外部記憶装置の状態が上記データ処理装置からの信
号入力を受け付けない状態から信号入力待ち状態に変わ
ったときには、上記外部装置側シリアル信号入出力部か
ら所定の周期にて信号レベルの変化を繰り返すレディ信
号をステータス信号として出力し、 上記外部記憶装置の状態が、制御命令データに基づく処
理を行っており上記データ処理装置からの信号入力を受
け付けない状態のときには、上記外部装置側シリアル信
号入出力部から信号レベルが一定のビジー信号をステー
タス信号として出力するか、あるいは上記外部装置側シ
リアル信号入出力部からの信号の出力を停止し、 上記外部装置側シリアル信号入出力部によって制御命令
データを受信する際にエラーが生じたときには、上記外
部装置側シリアル信号入出力部からの信号の出力を停止
することを特徴とするデータ伝送方法。
4. A data transmission method for transmitting data between a data processing device and an external storage device, wherein the data processing device transmits at least control command data for controlling the operation of the external storage device, A host-side serial signal input for receiving a status signal indicating the operation state of the external storage device, transmitting data to be written to the external storage device, and receiving data to be read from the external storage device by serial signals with the external storage device. An output unit, a control signal output unit that supplies a control signal for controlling the timing of switching data transmitted and received by the host-side serial signal input / output unit to the external storage device, and transmission / reception by the host-side serial signal input / output unit And a synchronization signal output section for supplying a synchronization signal of data to the external storage device. The external storage device includes at least an external device side that performs reception of the control command data, transmission of the status signal, reception of data to be written, and transmission of data to be read by a serial signal with the data processing device. A serial signal input / output unit, a control signal input unit that receives a control signal for controlling the timing of switching data transmitted / received by the external device side serial signal input / output unit from the data processing device, and the external device side serial signal A synchronization signal input unit for receiving a synchronization signal of data transmitted / received by the input / output unit from the data processing device, and transmitting / receiving between the host-side serial signal input / output unit and the external device-side serial signal input / output unit The control signal output from the control signal output section according to the data When the signal level of the roll signal is set to a predetermined level and the state of the external storage device is changed from the state of not accepting signal input from the data processing device to the signal input waiting state, the serial signal input / output unit of the external device side is operated. A ready signal that repeats a change in signal level at a predetermined cycle is output as a status signal, and the state of the external storage device is performing processing based on control command data and does not accept signal input from the data processing device. In the case of, the external device side serial signal input / output unit outputs a busy signal with a constant signal level as a status signal, or the output of the external device side serial signal input / output unit is stopped, and the external device When an error occurs when receiving the control command data by the side serial signal input / output unit, Data transmission method, characterized in that stops the output of signals from the Kigaibu device side serial signal input-output unit.
【請求項5】 上記ホスト側シリアル信号入出力部は、
ステータス信号を受信しているとき、当該ステータス信
号が所定の周期にて信号レベルの変化が繰り返される信
号の場合には当該ステータス信号が上記外部記憶装置が
信号入力待ち状態であることを示すレディ信号であると
判別し、その他の場合には当該ステータス信号が上記外
部記憶装置が信号の入力を受け付けない状態であること
を示すビジー信号であると判別することを特徴とする請
求項4記載のデータ伝送方法。
5. The host-side serial signal input / output unit comprises:
When receiving the status signal, when the status signal is a signal in which the signal level changes repeatedly in a predetermined cycle, the status signal indicates that the external storage device is in a signal input waiting state. 5. The data according to claim 4, wherein the status signal is determined to be a busy signal indicating that the external storage device is in a state in which the input of the signal is not accepted, in other cases. Transmission method.
【請求項6】 上記ホスト側シリアル信号入出力部によ
って上記ビジー信号が所定時間以上継続して受信された
ときには、上記外部記憶装置での処理にエラーが生じた
ものと判別することを特徴とする請求項4記載のデータ
伝送方法。
6. When the busy signal is continuously received by the host-side serial signal input / output unit for a predetermined time or more, it is determined that an error has occurred in the processing in the external storage device. The data transmission method according to claim 4.
JP2000150584A 1991-07-31 2000-05-22 Data processing system and data transmission method Expired - Lifetime JP3395762B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000150584A JP3395762B2 (en) 1991-07-31 2000-05-22 Data processing system and data transmission method

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP9-146916 1997-06-04
JP14691697 1997-06-04
JP09206929A JP3134819B2 (en) 1997-06-04 1997-07-31 Data processing device
JP2000150584A JP3395762B2 (en) 1991-07-31 2000-05-22 Data processing system and data transmission method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP09206929A Division JP3134819B2 (en) 1991-07-31 1997-07-31 Data processing device

Publications (2)

Publication Number Publication Date
JP2001024735A JP2001024735A (en) 2001-01-26
JP3395762B2 true JP3395762B2 (en) 2003-04-14

Family

ID=27319257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000150584A Expired - Lifetime JP3395762B2 (en) 1991-07-31 2000-05-22 Data processing system and data transmission method

Country Status (1)

Country Link
JP (1) JP3395762B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015170702A1 (en) * 2014-05-09 2015-11-12 日本電気株式会社 Storage device, information processing system, storage control method and program

Also Published As

Publication number Publication date
JP2001024735A (en) 2001-01-26

Similar Documents

Publication Publication Date Title
JP3134819B2 (en) Data processing device
US6226740B1 (en) Information processing apparatus and method that uses first and second power supplies for reducing booting time
US5068785A (en) Bus control for small computer system interface with transfer indication preceding final word transfer and buffer empty indication preceding receipt acknowledgement
US6412023B1 (en) System for communicating status via first signal line in a period of time in which control signal via second line is not transmitted
US6591322B1 (en) Method and apparatus for connecting single master devices to a multimaster wired-and bus environment
US7124235B2 (en) USB apparatus with switchable host/hub functions and control method thereof
JP3395762B2 (en) Data processing system and data transmission method
US5247640A (en) Dual access control system including plural magnetic disk control units and contention control circuitry
JP2002183691A (en) Ic card, ic card system and data processor
JP3241034B2 (en) External storage device
JP2004046891A (en) Data processing system, data processor, external device, and data transmission method
JP2000357062A (en) Device and system for processing data, external storage device and data transmitting method
US5606673A (en) Small computer system interface (SCSI) controller
US6629262B1 (en) Multiplexed storage controlling device
JPH11316735A (en) Data transmitting device/method
KR0184402B1 (en) Interrupt generating apparatus for i bus
JPH10198524A (en) Hard disk controller
JP3300016B2 (en) Communication interface, recording device, and communication control method
JPH05241736A (en) File control method for magnetic tape storage device
JP2000020188A (en) Hot-line insertion/extraction control unit for extended input/output device to computer main body
JP2000293482A (en) Computer system and display control method therefor
JP3423376B2 (en) Information processing apparatus and control method therefor
KR920008604A (en) Interface circuit between PC and peripheral device
JPH05265667A (en) Bidirectional communication method for printer
JPH01175656A (en) High speed data transferring system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030107

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080207

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090207

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100207

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100207

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110207

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110207

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120207

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120207

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130207

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130207

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140207

Year of fee payment: 11

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term