JPH05143493A - Serial data transfer device - Google Patents

Serial data transfer device

Info

Publication number
JPH05143493A
JPH05143493A JP3332474A JP33247491A JPH05143493A JP H05143493 A JPH05143493 A JP H05143493A JP 3332474 A JP3332474 A JP 3332474A JP 33247491 A JP33247491 A JP 33247491A JP H05143493 A JPH05143493 A JP H05143493A
Authority
JP
Japan
Prior art keywords
signal
register
serial data
chip select
serial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3332474A
Other languages
Japanese (ja)
Inventor
Akio Kiji
昭雄 木地
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3332474A priority Critical patent/JPH05143493A/en
Publication of JPH05143493A publication Critical patent/JPH05143493A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the overhead of a central processing unit even at the time of complicated communication by easily realizing the chip select required for serial data transfer. CONSTITUTION:A chip select signal CS (inverted) is driven, and a counter 22 starts to count the delay signal obtained based on a clock signal 9 at the time of the start of serial data transfer, and a stop signal 10 is outputted to terminate the transfer when the counted value reaches the set value of a register 23. Since the chip select signal CS (inverted) is driven from the start of transfer to the generation of the stop signal 10 in this manner, a device to which data should be transferred can keep the write operation.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はマイクロコンピュータ
等に用いられ、他のデバイスとのシリアルデータ転送を
行なうシリアルデータ転送装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data transfer device used for a microcomputer or the like and for transferring serial data to another device.

【0002】[0002]

【従来の技術】図3は従来のシリアルデータ転送装置の
構成を示すブロック図である。図3において、1は基本
クロック信号5を入力しクロック信号(シリアル転送用
クロック信号)9を発生するクロック発生回路、2はク
ロック信号9を所定回数カウントするとクロック発生回
路1のクロック動作を停止させるための停止信号10を
出力するカウンタ、3はデータバス7や入力線11から
入力されたシリアルデータをクロック信号9に同期して
格納したり、格納したシリアルデータをクロック信号9
に同期して出力線12に出力したりするシリアルレジス
タ、13は外部出力用シリアルクロック信号を出力する
シリアルクロック線、4はチップセレクト線14より出
力すべきチップセレクト信号のデータを格納するデータ
レジスタである。シリアルレジスタ3は書き込み信号6
によりデータバス7のデータや入力線11からの入力デ
ータを書き込み格納する。データレジスタ4は書き込み
信号8によりデータバス7のデータを書き込み格納す
る。
2. Description of the Related Art FIG. 3 is a block diagram showing the configuration of a conventional serial data transfer device. In FIG. 3, reference numeral 1 denotes a clock generating circuit for inputting a basic clock signal 5 and generating a clock signal (clock signal for serial transfer) 9. Reference numeral 2 denotes a clock generating circuit 1 when the clock signal 9 is counted a predetermined number of times. The counter 3 outputs a stop signal 10 for storing the serial data input from the data bus 7 or the input line 11 in synchronization with the clock signal 9 or stores the stored serial data in the clock signal 9
, A serial register for outputting to the output line 12 in synchronization with a serial clock line 13 for outputting a serial clock signal for external output, and a data register 4 for storing the data of the chip select signal to be output from the chip select line 14. Is. Serial register 3 has write signal 6
Thus, the data of the data bus 7 and the input data from the input line 11 are written and stored. The data register 4 writes and stores the data of the data bus 7 by the write signal 8.

【0003】図4は図3の回路の動作を説明するための
タイミングチャートである。図4において、8はデータ
レジスタ4への書き込み信号、6はシリアルレジスタ3
への書き込み信号、SCLKはシリアルクロック線13
から出力される外部出力用クロック信号(クロック信号
9と同じ)、SINは入力線11に入力されるシリアル
データ(この場合図示せず)、SOUTは出力線12か
ら出力されるシリアルデータ、CS(反転)はチップセ
レクト線14から出力されるチップセレクト信号であ
る。
FIG. 4 is a timing chart for explaining the operation of the circuit of FIG. In FIG. 4, 8 is a write signal to the data register 4, 6 is a serial register 3
Write signal to SCLK is serial clock line 13
External output clock signal (same as clock signal 9), SIN is serial data input to input line 11 (not shown in this case), SOUT is serial data output from output line 12, CS ( Inversion) is a chip select signal output from the chip select line 14.

【0004】次に図3及び図4を参照してこの従来例の
動作について説明する。シリアル転送の場合、シリアル
レジスタ3を中心とするシリアル転送ブロックの他にチ
ップセレクト機能により、被転送対象のデバイス選択を
する必要があり、図3において、データレジスタ4及び
チップセレクト線14で示されるように汎用ポートを用
い、チップセレクト機能を実現する。まずデータレジス
タ4に‘0’を書き込み、図4に示すように、チップセ
レクト信号CS(反転)を‘0’にした後、シリアルレ
ジスタ3に転送データを書き込む。次に書き込み信号6
をトリガにし、シリアル転送ブロックは動作を開始し、
クロック発生回路1からクロック信号9とSCLKを出
力し、それに同期した形で出力線12よりシリアルレジ
スタ3内のシリアルデータを出力する。カウンタ2は例
えば3ビットカウンタとし、クロック信号9(クロック
信号SCLK)を8回計数した後、停止信号10をクロ
ック発生回路1に出力し、クロック信号9およびクロッ
ク信号SCLKを停止させる。その後、データレジスタ
4に‘1’を書き込み、チップセレクト信号CS(反
転)を‘1’にする。ここに、チップセレクト信号CS
(反転)が‘0’の時のみ、被転送対象のデバイス選択
が行なわれ、チップセレクト信号CS(反転)が‘0’
の時のシリアルデータを当該デバイスが受け取る。
Next, the operation of this conventional example will be described with reference to FIGS. In the case of serial transfer, in addition to the serial transfer block centered on the serial register 3, it is necessary to select the device to be transferred by the chip select function. In FIG. 3, this is indicated by the data register 4 and the chip select line 14. The general-purpose port is used to realize the chip select function. First, "0" is written in the data register 4, the chip select signal CS (inversion) is set to "0" as shown in FIG. 4, and then the transfer data is written in the serial register 3. Next, write signal 6
, The serial transfer block starts operation,
The clock signal 9 and SCLK are output from the clock generation circuit 1, and the serial data in the serial register 3 is output from the output line 12 in synchronization with them. The counter 2 is, for example, a 3-bit counter, counts the clock signal 9 (clock signal SCLK) eight times, and then outputs the stop signal 10 to the clock generation circuit 1 to stop the clock signal 9 and the clock signal SCLK. Then, "1" is written in the data register 4 to set the chip select signal CS (inversion) to "1". Here, the chip select signal CS
Only when (inversion) is "0", the device to be transferred is selected, and the chip select signal CS (inversion) is "0".
The device receives the serial data at the time.

【0005】[0005]

【発明が解決しようとする課題】従来のシリアルデータ
転送装置では、被転送対象のデバイス選択の際、チップ
セレクト機能を実現するため、データレジスタ4等の汎
用ポートの制御が必要で、また、シリアルデータ転送終
了後も、ある期間は、チップセレクトをアサート(チッ
プセレクト信号を駆動)し続けなければならないデバイ
スもあり、これらシリアルデータ転送以外のそれに付随
するチップセレクト機能の実現のための中央処理装置等
の制御が繁雑になるという問題点があった。
In the conventional serial data transfer device, it is necessary to control a general-purpose port such as the data register 4 in order to realize a chip select function when selecting a device to be transferred. Some devices must continue to assert chip select (drive chip select signal) for a certain period even after the end of data transfer, and a central processing unit for realizing the chip select function associated with them other than serial data transfer. However, there is a problem that the control of the above becomes complicated.

【0006】この発明は上記のような問題点を解消する
ためになされたものであり、シリアルデータ転送の制御
と同時にチップセレクトを連動して行ない、複数バイト
転送や転送終了後のチップセレクト保持機能を実現でき
るシリアルデータ転送装置を得ることを目的とする。
The present invention has been made in order to solve the above problems, and performs a chip select in conjunction with the control of serial data transfer to transfer a plurality of bytes or hold a chip select after the transfer is completed. It is an object of the present invention to obtain a serial data transfer device capable of realizing the above.

【0007】[0007]

【課題を解決するための手段】請求項1の発明に係るシ
リアルデータ転送装置は、デバイスを動作可能状態にす
るためのチップセレクト信号の駆動期間等に関連して設
定された値を格納するレジスタ23と、上記チップセレ
クト信号が駆動されシリアルレジスタ3からのシリアル
データの転送開始時に、クロック信号に基づいて得られ
た遅延信号をカウントし始め、そのカウント値が上記レ
ジスタ23の設定値に達したとき、上記シリアルレジス
タ3からのシリアルデータの転送を終了させるために上
記クロック信号を停止させるとともに上記チップセレク
ト信号を停止させるための停止信号を出力するカウンタ
22とを備えたものである。
According to another aspect of the present invention, there is provided a serial data transfer device which stores a value set in association with a driving period of a chip select signal for making a device operable. 23, the chip select signal is driven, and when the transfer of the serial data from the serial register 3 is started, the delay signal obtained based on the clock signal is started to be counted, and the count value reaches the set value of the register 23. At this time, a counter 22 that stops the clock signal to end the transfer of the serial data from the serial register 3 and outputs a stop signal to stop the chip select signal is provided.

【0008】請求項2の発明に係るシリアルデータ転送
装置は、デバイスを動作可能状態にするためのチップセ
レクト信号の駆動期間等に関連して設定された値を格納
するレジスタ23と、上記チップセレクト信号が駆動さ
れシリアルレジスタ3からのシリアルデータの転送開始
時に、クロック信号に基づいて得られた遅延信号をカウ
ントし始め、そのカウント値が上記レジスタ23の設定
値に達したとき、上記シリアルレジスタ3からのシリア
ルデータの転送を終了させるために上記クロック信号を
停止させるとともに上記チップセレクト信号を停止させ
るための停止信号を出力するカウンタ22と、このカウ
ンタ22からの停止信号を上記デバイスの書き込み動作
の維持等の時間に関連して設定された時間だけ遅延さ
せ、上記チップセレクト信号の停止させる時間を遅らせ
る遅延回路24とを備えたものである。
According to a second aspect of the present invention, there is provided a serial data transfer device, a register 23 for storing a value set in association with a drive period of a chip select signal for making a device operable, and the chip select. When the signal is driven and the transfer of the serial data from the serial register 3 is started, the delay signal obtained based on the clock signal is started to be counted, and when the count value reaches the set value of the register 23, the serial register 3 A counter 22 that outputs the stop signal for stopping the clock signal and the chip select signal in order to terminate the transfer of the serial data from the device, and the stop signal from the counter 22 for the write operation of the device. Delay the set time in relation to the time of maintenance, etc., and It is obtained by a delay circuit 24 for delaying the time of stopping of the bets signals.

【0009】[0009]

【作用】請求項1の発明において、チップセレクト信号
が駆動されシリアルレジスタ3からのシリアルデータの
転送開始時に、カウンタ22はクロック信号に基づいて
得られた遅延信号をカウントし始め、そのカウント値が
レジスタ23の設定値に達したとき、転送を終了させる
ためクロック信号を停止させるとともにチップセレクト
信号を停止させるための停止信号を出力する。このよう
に転送開始時から停止信号の発生までの間、チップセレ
クト信号は駆動しているので、被転送対象のデバイスは
書き込み動作を維持し、シリアルレジスタ3からのシリ
アルデータを書き込むことができる。
In the invention of claim 1, when the chip select signal is driven and the transfer of the serial data from the serial register 3 is started, the counter 22 starts counting the delay signal obtained based on the clock signal, and the count value is When the set value of the register 23 is reached, the stop signal for stopping the clock signal to stop the transfer and the stop signal for stopping the chip select signal are output. As described above, since the chip select signal is driven from the start of transfer to the generation of the stop signal, the device to be transferred can maintain the write operation and write the serial data from the serial register 3.

【0010】請求項2の発明において、チップセレクト
信号が駆動されシリアルレジスタ3からのシリアルデー
タの転送開始時に、カウンタ22はクロック信号に基づ
いて得られた遅延信号をカウントし始め、そのカウント
値がレジスタ23の設定値に達したとき、転送を終了さ
せるためクロック信号を停止させるとともにチップセレ
クト信号を停止させるための停止信号を出力する。この
停止信号は遅延回路24で設定時間だけ遅延され、チッ
プセレクト信号の停止させる時間を遅らせる。これによ
り転送終了後の被転送対象のデバイスの適切な書き込み
動作が更に維持できる。即ち転送終了後のチップセレク
トの遅延保持が確実に実現される。
In the second aspect of the invention, when the chip select signal is driven and the serial data transfer from the serial register 3 is started, the counter 22 starts counting the delay signal obtained based on the clock signal, and the count value is When the set value of the register 23 is reached, the stop signal for stopping the clock signal to stop the transfer and the stop signal for stopping the chip select signal are output. This stop signal is delayed by the delay circuit 24 for a set time to delay the time for stopping the chip select signal. As a result, it is possible to further maintain the appropriate write operation of the transfer target device after the transfer is completed. That is, the delay holding of the chip select after the transfer is surely realized.

【0011】[0011]

【実施例】図1はこの発明の一実施例に係るシリアルデ
ータ転送装置の構成を示すブロック図である。図1にお
いて、図3に示す構成要素に対応するものには同一の符
号を付し、その説明を省略する。図1において、2はク
ロック発生回路1からのクロック信号9を入力してカウ
ントし、このカウント値が所定値に達するとカウント結
果信号30を出力するカウンタで、図3のカウンタ2と
同じであるが、この出力信号であるカウント結果信号3
0は次段の遅延回路21に入力され所定時間遅延され
る。22はシリアルレジスタ3からのシリアルデータの
転送開始時に、クロック信号9に基づいて得られた遅延
信号(遅延回路21からの遅延カウント結果信号31)
をカウントし始め、そのカウント値がレジスタ23の設
定値に達したとき、転送を終了させるためにクロック発
生回路1からのクロック信号9及びクロック信号SCL
Kを停止させるとともにチップセレクト信号CS(反
転)を停止させるための停止信号10を出力するカウン
タである。上記レジスタ23は、被転送対象のデバイス
(図示せず)を書き込み可能状態(動作可能状態)にす
るためのチップセレクト信号CS(反転)の駆動期間等
に関連して設定された値を格納している。このレジスタ
23の設定値は、カウンタ22で行なわれるカウントの
初期値となり、その設定値は書き込み信号40によりデ
ータバス7からの命令で書き込まれる。24はカウンタ
22からの停止信号10をデバイスの書き込み動作の維
持等の時間に関連して設定された時間だけ遅延させ、チ
ップセレクト信号CS(反転)の停止させる時間を遅ら
せる遅延回路である。34は停止信号10を遅延回路2
4で遅延させた遅延停止信号である。50は遅延停止信
号34又は停止信号10を選択して出力するスイッチ手
段である。35はスイッチ手段50の選択結果のチップ
セレクト停止信号である。51,52はフリップフロッ
プ53を構成するNOR回路で、書き込み信号6を入力
したときチップセレクト線14から‘0’のチップセレ
クト信号CS(反転)を出力し、チップセレクト停止信
号35を入力したときチップセレクト線14から‘1’
のチップセレクト信号CS(反転)を出力する。即ち、
上記フリップフロップ53は、書き込み信号6を入力し
たときチップセレクト信号CS(反転)を駆動させ、停
止信号10又は遅延停止信号34を入力したときチップ
セレクト信号CS(反転)を停止させる。
1 is a block diagram showing the configuration of a serial data transfer apparatus according to an embodiment of the present invention. In FIG. 1, components corresponding to those shown in FIG. 3 are designated by the same reference numerals, and their description will be omitted. In FIG. 1, reference numeral 2 denotes a counter which inputs the clock signal 9 from the clock generation circuit 1 to count, and outputs a count result signal 30 when the count value reaches a predetermined value, which is the same as the counter 2 in FIG. Is the count result signal 3 which is this output signal
0 is input to the delay circuit 21 in the next stage and delayed for a predetermined time. Reference numeral 22 denotes a delay signal (delay count result signal 31 from the delay circuit 21) obtained based on the clock signal 9 at the start of transfer of the serial data from the serial register 3.
When the count value reaches the set value of the register 23, the clock signal 9 and the clock signal SCL from the clock generation circuit 1 are used to terminate the transfer.
The counter outputs a stop signal 10 for stopping K and stopping the chip select signal CS (inversion). The register 23 stores a value set in association with a driving period of the chip select signal CS (inversion) for setting a device (not shown) to be transferred to a writable state (operable state). ing. The set value of the register 23 becomes an initial value of the count performed by the counter 22, and the set value is written by a write signal 40 by an instruction from the data bus 7. Reference numeral 24 is a delay circuit that delays the stop signal 10 from the counter 22 by a time set in relation to the time for maintaining the write operation of the device, and delays the time for stopping the chip select signal CS (inversion). 34 is a delay circuit 2 for the stop signal 10
It is a delay stop signal delayed by 4. Reference numeral 50 is a switch means for selecting and outputting the delay stop signal 34 or the stop signal 10. Reference numeral 35 is a chip select stop signal which is a selection result of the switch means 50. Reference numerals 51 and 52 are NOR circuits that form a flip-flop 53. When a write signal 6 is input, a chip select signal CS (inverted) of "0" is output from the chip select line 14 and a chip select stop signal 35 is input. From chip select line 14 to "1"
The chip select signal CS (inversion) is output. That is,
The flip-flop 53 drives the chip select signal CS (inversion) when the write signal 6 is input, and stops the chip select signal CS (inversion) when the stop signal 10 or the delay stop signal 34 is input.

【0012】図2は図1の回路の動作を説明するための
タイミングチャートである。図2において、6はシリア
ルレジスタ3への書き込み信号、SCLKは外部出力用
のクロック信号(クロック信号9と同じ)、30はカウ
ンタ2のカウント結果信号、31は遅延回路21からの
遅延カウント結果信号、22aはカウンタ22内の値、
40はレジスタ23への書き込み信号、10はカウンタ
22からの停止信号、34は遅延回路24からの遅延停
止信号、CS(反転)はフリップフロップ53からのチ
ップセレクト信号である。
FIG. 2 is a timing chart for explaining the operation of the circuit of FIG. In FIG. 2, 6 is a write signal to the serial register 3, SCLK is a clock signal for external output (same as the clock signal 9), 30 is a count result signal of the counter 2, 31 is a delay count result signal from the delay circuit 21. , 22a is the value in the counter 22,
Reference numeral 40 is a write signal to the register 23, 10 is a stop signal from the counter 22, 34 is a delay stop signal from the delay circuit 24, and CS (inversion) is a chip select signal from the flip-flop 53.

【0013】次に図1及び図2を参照してこの実施例の
動作について説明する。レジスタ23に初期値を書き込
み信号40によりデータバス7を介して書き込む。ここ
では値‘3’を書くものとする。次にシリアルレジスタ
3に書き込み信号6により、データをデータバス7又は
入力線11より書き込むことにより、シリアルレジスタ
3を中心とするシリアル転送ブロックは動作を開始する
が、この時、フリップフロップ53のNOR回路51に
も書き込み信号6が入力されるため、チップセレクト信
号CS(反転)は‘0’になる。カウンタ2は例えば3
ビットカウンタとすると、図2に示すように、カウンタ
2はクロック信号9(SCLK)が8回カウントされる
たびにカウント結果信号30を出力し、遅延回路21を
通して得られる遅延カウント結果信号31をカウンタ2
2のクロックとする。
The operation of this embodiment will be described below with reference to FIGS. An initial value is written to the register 23 by the write signal 40 via the data bus 7. Here, the value '3' is written. Next, by writing data to the serial register 3 by the write signal 6 from the data bus 7 or the input line 11, the serial transfer block centered on the serial register 3 starts operation. At this time, the NOR of the flip-flop 53 is started. Since the write signal 6 is also input to the circuit 51, the chip select signal CS (inversion) becomes “0”. Counter 2 is, for example, 3
Assuming that the counter is a bit counter, as shown in FIG. 2, the counter 2 outputs the count result signal 30 every time the clock signal 9 (SCLK) is counted eight times, and counts the delay count result signal 31 obtained through the delay circuit 21. Two
2 clocks.

【0014】ここでカウンタ22を例えばダウンカウン
タとし、カウンタ22の値が‘0’になるとクロック停
止信号10を発生させ、クロック発生回路1に入力し、
クロック信号9およびクロック信号SCLKを止めると
ともに遅延回路24を介して停止信号10の遅延停止信
号34を生成する。ソフトウェアで設定可能なスイッチ
手段50により停止信号10もしくは遅延停止信号34
のいずれかをチップセレクト停止信号35とし、フリッ
プフロップ53のNOR回路52に入力することによ
り、チップセレクト信号CS(反転)は再び‘1’とな
る。これにより被転送対象のデバイスは書き込み不可能
状態になり、本装置からのデータ転送に対する動作を終
える。
Here, the counter 22 is, for example, a down counter, and when the value of the counter 22 becomes "0", the clock stop signal 10 is generated and input to the clock generation circuit 1.
The clock signal 9 and the clock signal SCLK are stopped, and the delay stop signal 34 of the stop signal 10 is generated via the delay circuit 24. The stop signal 10 or the delayed stop signal 34 is set by the switch means 50 that can be set by software.
By inputting any one of them to the chip select stop signal 35 and inputting it to the NOR circuit 52 of the flip-flop 53, the chip select signal CS (inversion) becomes "1" again. As a result, the device to be transferred becomes the unwritable state, and the operation for data transfer from this apparatus is finished.

【0015】上記実施例によれば、データ転送開始時
(書き込み信号6の発生時)より停止信号10又は遅延
停止信号34の発生時までの間、チップセレクト信号C
S(反転)が‘0’になるので、複数バイトのデータの
転送が可能になるとともに、転送終了後のデバイスのチ
ップセレクトの保持機能がデバイスの性能に適したもの
となる。
According to the above embodiment, the chip select signal C is started from the start of data transfer (when the write signal 6 is generated) to the time when the stop signal 10 or the delay stop signal 34 is generated.
Since S (inversion) becomes “0”, it is possible to transfer a plurality of bytes of data, and the function of holding the chip select of the device after the transfer is completed is suitable for the performance of the device.

【0016】[0016]

【発明の効果】以上のように本発明によれば、チップセ
レクト信号の駆動期間等に関連して設定された値を格納
するレジスタと、チップセレクト信号が駆動され、シリ
アルデータ転送が開始してカウントし上記レジスタの値
に達するとクロック信号及びチップセレクト信号を停止
させるための停止信号を出力するカウンタとを設けて構
成したので、シリアルデータ転送の制御と同時にチップ
セレクト制御とが連動され、複数バイト転送や転送終了
後のチップセレクト保持機能が実現され、これにより被
転送対象のデバイスの性能に応じたチップセレクトを容
易にかつ安価に自動的に制御できるようになり、したが
って繁雑なシリアルデータ転送の際にも中央処理装置の
負荷(オーバーヘッド)を軽減することができるという
効果が得られる。また、本発明によれば、カウンタから
の停止信号をデバイスの書き込み動作の維持等の時間に
関連して設定された時間だけ遅延させ、チップセレクト
信号の停止させる時間を遅らせる遅延回路を更に設けた
ので、転送終了後のチップセレクトの遅延保持がデバイ
スに対して更に有効に働き、上記効果を効率良く達成で
きる。
As described above, according to the present invention, the register for storing the value set in relation to the driving period of the chip select signal and the chip select signal are driven, and the serial data transfer is started. Since it is configured with a counter that outputs a stop signal for counting and stopping the clock signal and the chip select signal when the value of the register is reached, the chip select control is linked with the serial data transfer control at the same time. A byte select and a chip select holding function after the end of the transfer are realized, which makes it possible to automatically and easily control the chip select according to the performance of the device to be transferred, and thus the complicated serial data transfer. Also in this case, the effect that the load (overhead) of the central processing unit can be reduced is obtained. Further, according to the present invention, a delay circuit for delaying the stop signal from the counter by a time set in relation to the time for maintaining the write operation of the device and delaying the time for stopping the chip select signal is further provided. Therefore, the delay holding of the chip select after the end of the transfer works more effectively for the device, and the above effect can be efficiently achieved.

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

【図1】この発明の一実施例に係るシリアルデータ転送
装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a serial data transfer device according to an embodiment of the present invention.

【図2】この実施例の動作を説明するためのタイミング
チャートである。
FIG. 2 is a timing chart for explaining the operation of this embodiment.

【図3】従来のシリアルデータ転送装置の構成を示すブ
ロック図である。
FIG. 3 is a block diagram showing a configuration of a conventional serial data transfer device.

【図4】この従来例の動作を説明するためのタイミング
チャートである。
FIG. 4 is a timing chart for explaining the operation of this conventional example.

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

1 クロック発生回路 3 シリアルレジスタ 22 カウンタ 23 レジスタ 24 遅延回路 1 Clock Generation Circuit 3 Serial Register 22 Counter 23 Register 24 Delay Circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 クロック信号を発生するクロック発生回
路と、格納されたシリアルデータを上記クロック信号に
同期して出力するシリアルレジスタとを備え、このシリ
アルレジスタからのシリアルデータを被転送対象のデバ
イスに転送するシリアルデータ転送装置において、上記
デバイスを動作可能状態にするためのチップセレクト信
号の駆動期間等に関連して設定された値を格納するレジ
スタと、上記チップセレクト信号が駆動され上記シリア
ルレジスタからのシリアルデータの転送開始時に、上記
クロック信号に基づいて得られた遅延信号をカウントし
始め、そのカウント値が上記レジスタの設定値に達した
とき、上記シリアルレジスタからのシリアルデータの転
送を終了させるために上記クロック信号を停止させると
ともに上記チップセレクト信号を停止させるための停止
信号を出力するカウンタとを設けたことを特徴とするシ
リアルデータ転送装置。
1. A clock generation circuit for generating a clock signal, and a serial register for outputting stored serial data in synchronization with the clock signal. Serial data from the serial register is transferred to a device to be transferred. In a serial data transfer device for transferring, a register for storing a value set in relation to a driving period of a chip select signal for making the device operable, and a serial register driven by the chip select signal. When the serial data transfer is started, the delay signal obtained based on the clock signal is started to be counted, and when the count value reaches the set value of the register, the transfer of the serial data from the serial register is ended. In order to stop the clock signal and A serial data transfer device comprising: a counter that outputs a stop signal for stopping the recto signal.
【請求項2】 クロック信号を発生するクロック発生回
路と、格納されたシリアルデータを上記クロック信号に
同期して出力するシリアルレジスタとを備え、このシリ
アルレジスタからのシリアルデータを被転送対象のデバ
イスに転送するシリアルデータ転送装置において、上記
デバイスを動作可能状態にするためのチップセレクト信
号の駆動期間等に関連して設定された値を格納するレジ
スタと、上記チップセレクト信号が駆動され上記シリア
ルレジスタからのシリアルデータの転送開始時に、上記
クロック信号に基づいて得られた遅延信号をカウントし
始め、そのカウント値が上記レジスタの設定値に達した
とき、上記シリアルレジスタからのシリアルデータの転
送を終了させるために上記クロック信号を停止させると
ともに上記チップセレクト信号を停止させるための停止
信号を出力するカウンタと、このカウンタからの停止信
号を上記デバイスの書き込み動作の維持等の時間に関連
して設定された時間だけ遅延させ、上記チップセレクト
信号の停止させる時間を遅らせる遅延回路とを設けたこ
とを特徴とするシリアルデータ転送装置。
2. A clock generation circuit for generating a clock signal, and a serial register for outputting stored serial data in synchronization with the clock signal, wherein serial data from the serial register is transferred to a device to be transferred. In a serial data transfer device for transferring, a register for storing a value set in relation to a driving period of a chip select signal for making the device operable, and a serial register driven by the chip select signal. When the serial data transfer is started, the delay signal obtained based on the clock signal is started to be counted, and when the count value reaches the set value of the register, the transfer of the serial data from the serial register is ended. In order to stop the clock signal and A counter that outputs a stop signal to stop the Rect signal and a stop signal from this counter that is delayed by the time set in relation to the time for maintaining the write operation of the device to stop the chip select signal. A serial data transfer device, comprising: a delay circuit for delaying the time for which the serial data transfer is performed.
JP3332474A 1991-11-21 1991-11-21 Serial data transfer device Pending JPH05143493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3332474A JPH05143493A (en) 1991-11-21 1991-11-21 Serial data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3332474A JPH05143493A (en) 1991-11-21 1991-11-21 Serial data transfer device

Publications (1)

Publication Number Publication Date
JPH05143493A true JPH05143493A (en) 1993-06-11

Family

ID=18255368

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3332474A Pending JPH05143493A (en) 1991-11-21 1991-11-21 Serial data transfer device

Country Status (1)

Country Link
JP (1) JPH05143493A (en)

Similar Documents

Publication Publication Date Title
US5535362A (en) Data transfer control apparatus wherein a time value is compared to a clocked timer value with a comparison of the values causing the transfer of bus use right
JPH01237864A (en) Dma transfer controller
JPH04233059A (en) Information processing apparatus
JPH0792779B2 (en) Data transfer controller
JP2001051744A (en) Clock control circuit
KR20200092146A (en) Host and slave apparatus having cascade connection structure
JPH05143493A (en) Serial data transfer device
JPH06103225A (en) Chain type dma system and dma controller therefor
JPS5952331A (en) Device address setting device
JPS6047612B2 (en) Microinstruction output control method
JP2692469B2 (en) Data controller
JPH0365727A (en) Microprogram storage system
JPH11250008A (en) Serial i/o circuit
KR200256519Y1 (en) System of Operating Asynchronous In/Out Buffer
JPH0683756A (en) Data processor
JPH10171654A (en) Fast data arithmetic processor
JP2004206241A (en) Data transfer control method and its circuit
JPS6160456B2 (en)
JPH0675902A (en) Dma transfer circuit
JPH05108547A (en) Direct memory access system
JPH035788A (en) Display device driving lsi
JPH05268199A (en) Data replacement device
JPS6265082A (en) Multi-stage type led display unit
JPH02280263A (en) Microprocessor
JPS58184188A (en) Reading and writting system of display data