JPH0628312A - Serial data transfer system - Google Patents

Serial data transfer system

Info

Publication number
JPH0628312A
JPH0628312A JP18141892A JP18141892A JPH0628312A JP H0628312 A JPH0628312 A JP H0628312A JP 18141892 A JP18141892 A JP 18141892A JP 18141892 A JP18141892 A JP 18141892A JP H0628312 A JPH0628312 A JP H0628312A
Authority
JP
Japan
Prior art keywords
data
transfer
peripheral device
access
control signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP18141892A
Other languages
Japanese (ja)
Inventor
Hidetoshi Nakahara
英利 中原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP18141892A priority Critical patent/JPH0628312A/en
Publication of JPH0628312A publication Critical patent/JPH0628312A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To increase the data transfer speed without reqiring any operation to the transmitted data in a data transfer system where the data are transferred between a control part consisting of a microcomputer and a peripheral device working under the control of the control part via a serial port. CONSTITUTION:A control part keeps the non-active state of a transfer control signal CNT for a period longer than the access cancel informing time T1 to inform all peripheral devices of the access cancel state. Then, the signal CNT is kept active for a prescribed access request informing time T2 so that an access request is reported. The signal CNT is set in a non-active state again with the access request. This non-active state is kept for a period shorter than the time T1 and equal to a period of duration that is set in response to the address of the peripheral device to which the data are transferred. Thus, this peripheral device, i.e., the data transfer destination is esignated. Then, the data are transferred to the designated peripheral device via a serial data line.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロコンピュータ
からなる制御部と、該制御部に制御されて動作する周辺
デバイスとの間でのシリアルポートを介したデータ転送
方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system via a serial port between a control unit composed of a microcomputer and peripheral devices controlled by the control unit to operate.

【0002】[0002]

【従来の技術】デジタル通信装置等では、制御部として
4ビット〜16ビット程度のマイクロコンピュータを用
い、PLLやD/Aコンバータ等からなる多数の周辺デ
バイスの動作を制御している。この制御を行うために、
制御部は随時、設定データ等の制御データを周辺デバイ
スに転送してデバイス内のレジスタに数値を書き込む。
例えば、PLL回路に分周比を設定したり、D/Aコン
バータに基準電圧を設定したりする。
2. Description of the Related Art In a digital communication device or the like, a microcomputer of about 4 bits to 16 bits is used as a control unit to control the operation of a large number of peripheral devices such as PLLs and D / A converters. To do this control,
The control unit transfers control data such as setting data to the peripheral device at any time and writes a numerical value in a register in the device.
For example, a frequency division ratio is set in the PLL circuit or a reference voltage is set in the D / A converter.

【0003】従来、マイクロコンピュータ等を用いた制
御部から、該制御部に制御される周辺デバイスへのデー
タ転送方式には、 メモリへのデータ転送と同様に、周辺デバイスを装
置内のメインバスに接続し制御部(マイクロコンピュー
タ)からデータを転送する。メインバスは、アドレスバ
スおよびデータバスとの複数のビット線からなり、アド
レスバスにより転送先の周辺デバイスを指定して、デー
タをビットパラレルに転送する。
Conventionally, in a data transfer method from a control unit using a microcomputer or the like to a peripheral device controlled by the control unit, the peripheral device is connected to a main bus in the apparatus in the same manner as data transfer to a memory. Connect and transfer data from the control unit (microcomputer). The main bus is composed of a plurality of bit lines of an address bus and a data bus. The address bus designates a peripheral device as a transfer destination and transfers data in bit parallel.

【0004】 制御デバイスにシリアルインタフェー
スポートを設け、アドレス、データをシリアルに転送す
る。の二つの方式がある。
The control device is provided with a serial interface port to serially transfer addresses and data. There are two methods.

【0005】装置の実装構造上の制約から、制御部と周
辺デバイスとの間にメンイバスを設けることができない
装置や、メモリ装置がDMA転送等でメインバスを使用
中にも並行して周辺デバイスの制御(制御部からのデー
タ転送)が必要とされる装置等では、のパラレル転送
方式を採用できないためのビットシリアル転送方式が
使用される。
Due to the restrictions on the mounting structure of the device, the device in which the main bus cannot be provided between the control unit and the peripheral device, and the peripheral device in parallel while the memory device uses the main bus for DMA transfer or the like. A device that requires control (data transfer from the control unit) or the like uses the bit serial transfer method because the parallel transfer method cannot be adopted.

【0006】図7は本発明が対象とするシリアルデータ
転送方式を示す図である。図7に示すように、制御部1
と複数の周辺デバイス2-1 〜2-N との間のシリアル転送
は、転送クロックCLK 、転送制御信号CNT 、シリアルデ
ータ信号DATAの3種類の信号を用いたインタフエイスに
より行われ、複数の周辺デバイス2-1〜2-N は制御部1
からの3本の信号線にマルチドロップ方式で接続された
ている。
FIG. 7 is a diagram showing a serial data transfer system targeted by the present invention. As shown in FIG. 7, the control unit 1
The serial transfer between the device and multiple peripheral devices 2-1 to 2-N is performed by an interface that uses three types of signals: transfer clock CLK, transfer control signal CNT, and serial data signal DATA. Devices 2-1 to 2-N are control unit 1
Are connected to the three signal lines from 1 to 3 by the multi-drop method.

【0007】転送制御信号CNT はチップセレクト信号や
イネーブル信号のことであり、この転送制御信号CNT が
アクティブの間は、シリアルデータ線上のデータが有効
であり、周辺デバイスはこの転送制御信号CNT のアクテ
ィブ状態を検出すると転送クロック信号CLK のタイミン
グで内部のレジスタにシリアルデータを取込むことによ
ってデータを受信する。
The transfer control signal CNT is a chip select signal or an enable signal. While the transfer control signal CNT is active, the data on the serial data line is valid, and the peripheral device activates the transfer control signal CNT. When the status is detected, the data is received by loading the serial data into the internal register at the timing of the transfer clock signal CLK.

【0008】この際、複数の周辺デバイスの中からデー
タ転送先の特定の周辺デバイスを指定するために、アド
レスデータを送信する必要がある。しかしアドレスデー
タ線が設けられていないので、従来技術ではシリアルデ
ータ線を用いてアドレスデータを送信し、転送先のデバ
イスを指定していた。
At this time, it is necessary to transmit address data in order to specify a specific peripheral device of a data transfer destination from a plurality of peripheral devices. However, since the address data line is not provided, in the conventional technology, the address data is transmitted using the serial data line to specify the device of the transfer destination.

【0009】[0009]

【発明が解決しようとする課題】図8は従来技術の問題
点を示す図である。上記従来方式では、図8に示すよう
に、例えばインタフェースを1バイト(8ビット)とす
ると、この8ビットのシリアルデータ内でアドレスと送
信データとの2種類のデータを転送する必要があり、1
転送フレーム中の特定ビットはアドレスデータに割り当
てられるので、送信データのビット数が減少する。従っ
て、設定データとして8ビットのデータを転送しようと
すると複数回に分けて転送する必要があり、転送速度が
低下するという問題がある。
FIG. 8 is a diagram showing the problems of the prior art. In the above-mentioned conventional method, as shown in FIG. 8, assuming that the interface is 1 byte (8 bits), it is necessary to transfer two types of data, an address and a transmission data, in this 8-bit serial data.
Since the specific bits in the transfer frame are assigned to the address data, the number of bits of the transmission data is reduced. Therefore, in order to transfer 8-bit data as the setting data, it is necessary to transfer the data in plural times, and there is a problem that the transfer speed decreases.

【0010】即ち、周辺デバイスがN(=2n )個ある
とすると、1アクセス当たりmビットの転送データのう
ちのnビットはアドレス指定に使用されるため、一回の
転送で書き込めるデータはm−nビットとなり、周辺デ
バイスに送信すべきデータをpビットとすると、p/
(m−n)回の転送が必要となる。送信データの種類が
少ない場合には、データをエンコーダによりコード化し
てビット数を短縮して送信することにより、1回の転送
で済ませる方式も考えられるが、この場合送信/受信側
にそれぞれエンコーダ/デコーダが必要になりハードウ
ェア量が増加するという問題がある。
That is, assuming that there are N (= 2 n ) peripheral devices, since n bits of the transfer data of m bits per access are used for addressing, the data that can be written in one transfer is m. -N bits, and if the data to be sent to the peripheral device is p bits, p /
(M−n) times of transfer is required. If the number of types of transmission data is small, a method is conceivable in which the data is encoded by an encoder and the number of bits is shortened before transmission, so that one transfer is sufficient. There is a problem that a decoder is required and the amount of hardware increases.

【0011】本発明は上記問題点に鑑み創出されたもの
で、送信データへの操作を伴うことなく、ビットシリア
ル転送におけるデータ転送速度を高速化することを目的
とする。
The present invention has been made in view of the above problems, and an object of the present invention is to increase the data transfer rate in bit serial transfer without operating the transmission data.

【0012】[0012]

【課題を解決するための手段】図1は、本発明のシリア
ルデータ転送方式におけるインタフエイス信号の動作タ
イミング図であり、制御部から各周辺デバイスに送出さ
れる信号の推移とその機能を示すものである。
FIG. 1 is an operation timing chart of an interface signal in the serial data transfer system of the present invention, showing transition of a signal sent from a control unit to each peripheral device and its function. Is.

【0013】上記問題点を解決するため、本発明のシリ
アルデータ転送方式は、図1に示すように、制御部から
の転送クロックCLK 、転送制御信号CNT 、シリアルデー
タ信号DATAにより、複数の周辺デバイスから一つを選択
してシリアルデータの転送を行う方式において、該制御
部は、転送制御信号CNT のノンアクティブ状態をアクセ
ス解除通知時間T1以上継続させることによって全ての
周辺デバイスにアクセス解除を通知し、アクセス解除状
態にあるとき、転送制御信号CNT を所定のアクセス要求
通知時間T2の間アクティブ状態にすることによってア
クセス要求を通知し、該アクセス要求に引き続いて転送
制御信号をノンアクティブ状態とし、前記アクセス解除
通知時間T1より短くかつデータ転送しようとする宛先
の周辺デバイスのアドレス対応に設定した継続時間の間
該ノンアクティブ状態を継続することによりデータ転送
先の周辺デバイスを指定し、次いで該指定された周辺デ
バイスへシリアルデータ線を介してデータを転送するよ
うに構成し、また、上記においてデータ転送先の周辺デ
バイスの指定を、アクセス要求後の転送制御信号CNT の
ノンアクティブ状態の期間にシリアルデータ線を介して
アドレスデータを送出することによって行うように構成
する。
In order to solve the above-mentioned problems, the serial data transfer system of the present invention, as shown in FIG. 1, uses a transfer clock CLK, a transfer control signal CNT, and a serial data signal DATA from a control unit to control a plurality of peripheral devices. In the method in which one of the above is selected to transfer the serial data, the control unit notifies all peripheral devices of the access release by continuing the non-active state of the transfer control signal CNT for the access release notification time T1 or more. In the access release state, the transfer control signal CNT is made active for a predetermined access request notification time T2 to notify the access request, and the transfer control signal is set to the non-active state subsequently to the access request. It is shorter than the access cancellation notification time T1 and the address of the peripheral device of the destination to which the data is to be transferred is By designating the peripheral device of the data transfer destination by continuing the non-active state for the duration set to correspond, and then transferring the data to the designated peripheral device via the serial data line, Further, in the above description, the peripheral device as the data transfer destination is designated by sending address data through the serial data line during the non-active state of the transfer control signal CNT after the access request.

【0014】[0014]

【作用】図2は、上記転送制御信号による周辺デバイス
の動作状態の遷移を示す図である 。
FIG. 2 is a diagram showing the transition of the operating state of the peripheral device by the transfer control signal.

【0015】周辺デバイスはデータ転送が終了したあ
と、転送制御信号がアクセス解除通知時間T1以上ノン
アクティブが継続すると制御部からアクセス解除の通知
を受けたと認識して非動作状態Aとなる(の遷移)。
周辺デバイスが非動作状態Aにあるとき転送制御信号CN
T がアクティブに変化すると、周辺デバイスは擬似アク
セス状態Bに遷移し、該アクティブ継続時間を計測す
る。擬似アクセス状態Bになってから、転送制御信号CN
T のアクティブが所定のアクセス要求通知時間T2継続す
るとアクセス許可状態Cとなり、該アクティブ継続が
アクセス要求通知時間T2 以外の時は、非動作状態Aに
戻る。アクセス許可状態Cのときに、転送制御信号CN
T が自デバイスのアドレスに対応する時間TAの間ノン
アクティブであることを検出すると、自デバイスが指定
されたことを認識してデータ取込み開始状態Dとなり
、アクセス解除通知時間T1以上ノンアクテブが継続
すると非動作状態Aに戻り、その他のときはアクセス
許可状態Cに留まる。
After the data transfer is completed, the peripheral device recognizes that the control unit has received the access release notification when the transfer control signal remains inactive for the access release notification time T1 or longer, and enters the non-operation state A (transition). ).
Transfer control signal CN when peripheral device is in non-operation state A
When T changes to active, the peripheral device transits to the pseudo access state B and measures the active duration. After entering the pseudo access state B, transfer control signal CN
When the active state of T continues for the predetermined access request notification time T2, the access permission state C is entered, and when the active continuation is outside the access request notification time T2, the non-operating state A is restored. In the access permission state C, the transfer control signal CN
When T is detected to be inactive for the time TA corresponding to the address of the own device, it recognizes that the own device has been designated, enters the data acquisition start state D, and continues non-active for the access release notification time T1 or longer. It returns to the non-operating state A, and remains in the access permission state C at other times.

【0016】データ取込み開始状態Dのときに、転送信
号CNT アクティブで転送データを取り込みデータ取込み
終了状態Eとなる。データ転送終了状態Eのときに、
転送制御信号CNT のノンアクティブがアクセス解除通知
時間T1以上継続すると非動作状態Aになり、自デバ
イスのアドレス対応期間TAだけノンアクティブが継続
すると再度、自デバイスが指定されたと認識してデータ
取込み開始状態Dに戻り' 、その他のときはデータ転
送終了状態Eに留まる。
In the data acquisition start state D, the transfer signal CNT is active and the transfer data is acquired, and the data acquisition end state E is set. In the data transfer end state E,
When the non-active state of the transfer control signal CNT continues for the access release notification time T1 or longer, the state becomes the non-operating state A. When the non-active state continues for the address corresponding period TA of the own device, it is recognized again that the own device is designated and the data acquisition starts. Return to state D ', otherwise remain in data transfer end state E.

【0017】このように転送制御信号CNT の値とその時
間とを組み合わせることにより、制御部から周辺デバイ
スへのシリアルデータ転送時にアドレス指定のためのビ
ットを割り当てる必要がなくなるので、一回のアクセス
当たりの実データ転送量を増加させることができ、転送
速度を向上させることが可能となる。
By combining the value of the transfer control signal CNT and its time in this way, it is not necessary to allocate a bit for addressing at the time of serial data transfer from the control unit to the peripheral device. The actual data transfer amount can be increased, and the transfer speed can be improved.

【0018】[0018]

【実施例】以下添付図面により本発明の実施例を説明す
る。図3は第一発明の実施例の動作タイミング図、図4
は第一発明の方式による周辺デバイスのハードウエアの
構成図、図5は第二発明の実施例の動作タイミング図、
図6は第二発明の方式による周辺デバイスのハードウエ
アの構成図である。なお全図を通じて同一符号は同一対
象物を示す。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 3 is an operation timing chart of the embodiment of the first invention, and FIG.
Is a hardware configuration diagram of the peripheral device according to the method of the first invention, FIG. 5 is an operation timing diagram of the embodiment of the second invention,
FIG. 6 is a hardware configuration diagram of a peripheral device according to the method of the second invention. The same reference numerals denote the same objects throughout the drawings.

【0019】図3は、転送制御信号の非アクティブ状態
継続時間によりアドレスを指定する方式における各種信
号と周辺デバイスの動作のタイミングを示すものであ
る。この図では、制御部とシリアルインタフエイスを介
して接続された3つの周辺デバイスa,b,cのそれぞ
れに順次アクセスして4ビットの送信データを転送する
場合の例である。
FIG. 3 shows the timing of various signals and the operation of peripheral devices in the method of designating an address by the inactive state duration of the transfer control signal. This drawing shows an example in which four peripheral devices a, b, and c connected to the control unit via the serial interface are sequentially accessed to transfer 4-bit transmission data.

【0020】図において、転送クロックCLK 、転送制御
信号CNT 、シリアルデータ信号DATAは制御部からの信号
線にマルチドロップ接続された全ての周辺デバイスへ送
信される。
In the figure, the transfer clock CLK, the transfer control signal CNT, and the serial data signal DATA are transmitted to all peripheral devices which are multi-drop connected to the signal line from the control section.

【0021】図の5行目は 全周辺デバイスにおけるア
クセス可能状態を示すもので“1”がアクセス可能状
態、“0”がアクセス解除状態である。6〜8行目は、
それぞれはアドレスa 、b 、c を有する周辺デバイスの
アクセス許可状態を示し、“1”がアクセス中の状態、
“0”が非アクセスの状態を示す。転送制御信号CNT に
おけるアクセス解除通知時間T1、アクセス要求通知時間
T2、アドレス指定のためのノンアクティブ状態継続時
間は接続される周辺デバイスのアドレス総数によって決
定される。例えば、図3では、アドレスa 、アドレスb,
アドレスcを指定するノンアクティブ継続時間Ta,T
b,Tcを、それぞれ転送クロックCLK の1、2、3周
期の時間とし、かつ他にアクセスするアドレスが無いと
して、アクセス解除通知時間T1をクロック5周期分に
設定している。また全ての周辺デバイスが制御部からの
アクセス要求通知を判定する擬似アクセスは、転送制御
信号のアクティブ継続時間T2を、通常のデータ転送時
のアクティブ時間と同じのクロック5周期分にしてあ
る。このようにすると、高速転送が実現できる。
The fifth line in the figure shows the accessible state in all peripheral devices, where "1" is the accessible state and "0" is the access released state. Lines 6-8 are
Each indicates the access permission state of the peripheral device having the addresses a, b, and c, where "1" is being accessed,
“0” indicates a non-access state. The access release notification time T1, the access request notification time T2, and the non-active state duration for addressing in the transfer control signal CNT are determined by the total number of addresses of connected peripheral devices. For example, in FIG. 3, address a, address b,
Non-active duration Ta, T that specifies address c
Assuming that b and Tc are times of 1, 2, and 3 cycles of the transfer clock CLK, respectively, and that there is no other address to be accessed, the access cancellation notification time T1 is set to 5 clock cycles. Further, in the pseudo access in which all the peripheral devices judge the access request notification from the control unit, the active continuation time T2 of the transfer control signal is set to 5 clock cycles which is the same as the active time at the time of normal data transfer. By doing so, high-speed transfer can be realized.

【0022】次に図4をともに用いて、上記インタフエ
イス信号でアクセスされる周辺デバイスの構成と動作を
説明する。図4において、21はアクセス判定部、22はア
ドレス識別部、23はデバイス機能部、24はデータ取込み
部である。
Next, the configuration and operation of the peripheral device accessed by the interface signal will be described with reference to FIG. In FIG. 4, 21 is an access determination unit, 22 is an address identification unit, 23 is a device function unit, and 24 is a data fetching unit.

【0023】先ず、最初の状態は、転送制御信号が所定
時間以上( 5クロック周期分以上)の期間にわたってノ
ンアクティブ状態(論理“0”)が継続した後の状態に
あり、周辺デバイスが非アクセス状態、即ちデータ転送
しても受け付けない状態にあるものとする。
First, the first state is a state in which the transfer control signal is in the non-active state (logic "0") for a predetermined time or more (5 clock cycles or more), and the peripheral device does not access. It is assumed that it is in a state, that is, in a state in which it is not accepted even if data is transferred.

【0024】データ転送を行おうとする制御部は、転送
制御信号線を所定クロック周期T1(図ではT1=5周期)
の間アクティブ状態(論理“1”)にする。転送クロッ
クCLK と転送制御信号CNT とが常時入力しているアクセ
ス判定部21は、転送制御信号アクティブにより動作を開
始し、転送クロックを時間基準として転送制御信号CNT
のアクティブ継続時間を計測する。そしてT2=4クロッ
ク周期アクティブの転送制御信号CNT を検出すると、そ
れをアクセス要求通知信号と認識して、アドレス判定部
22にアクセス許可信号AEN を出力する。
The control unit that is going to perform data transfer uses the transfer control signal line for a predetermined clock cycle T1 (T1 = 5 cycles in the figure).
During this period, the active state (logic "1") is set. The access determination unit 21 in which the transfer clock CLK and the transfer control signal CNT are constantly input starts operation by the transfer control signal active, and the transfer control signal CNT is set with the transfer clock as a time reference.
Measure the active duration of. When the transfer control signal CNT that is active for T2 = 4 clock cycles is detected, it is recognized as an access request notification signal and the address determination unit
The access permission signal AEN is output to 22.

【0025】制御部は、転送制御信号CNT を最初のデー
タ転送先のアドレスa に対応する1クロック周期分ノン
アクティブ状態にする。各周辺デバイスにおいては、ア
クセス許可信号AEN がアクティブとなったアドレス識別
部22が動作状態となり、その後に引き続く転送制御信号
のノンアクティブ継続時間をクロック周期を基準に測定
する。そして周辺デバイスaでは、計測したノンアクテ
ィブ継続時間が自デバイスアドレスに割り当てられた1
クッロク周期に等しいことを検出し自デバイスがアクセ
スされたものと判定してアドレス一致信号CSをデバイス
機能部23に出力し、データ取込み機能をイネーブルとす
る。
The control section sets the transfer control signal CNT to the non-active state for one clock cycle corresponding to the address a of the first data transfer destination. In each peripheral device, the address identification unit 22 in which the access permission signal AEN has become active enters the operating state, and the non-active duration of the transfer control signal that follows is measured based on the clock cycle. Then, in the peripheral device a, the measured non-active duration is assigned to its own device address 1
It detects that it is equal to the clock cycle, determines that the own device has been accessed, outputs the address match signal CS to the device function unit 23, and enables the data fetch function.

【0026】制御部は引き続いて、転送制御信号CNT を
アクティブにするとともに送りたい転送データDaをシ
リアルデータ線を介してビットシリアルに送出する。デ
ータ取込み部24はmビット長のデータ転送ブロック分
(本実施例では4ビット)のビット幅を有するシリアル
入力/パラレル出力のシフトレジスタからなり、転送制
御信号CNT がアクティブの時には、転送クロックのタイ
ミングで1ビットずつ更新しながらシリアルデータ線上
のデータを常時取り込み、パラレル変換したmビットの
データをデバイス機能部23に常時出力している。デバイ
ス機能部23はアドレス一致信号CSが通知されたタイミン
グからm転送クロック周期後にイネーブルとなり、その
時にデータ取込み部24が出力しているmビットのパラレ
ルデータを一斉に取込み内部のレジスタに書き込む。
The control section subsequently activates the transfer control signal CNT and sends the transfer data Da to be sent bit serially via the serial data line. The data fetch unit 24 is composed of a serial input / parallel output shift register having a bit width corresponding to a data transfer block having an m-bit length (4 bits in this embodiment). When the transfer control signal CNT is active, the transfer clock timing is set. The data on the serial data line is constantly fetched while being updated bit by bit, and the parallel-converted m-bit data is constantly output to the device function unit 23. The device function unit 23 is enabled after m transfer clock cycles from the timing when the address coincidence signal CS is notified, and at that time, the m-bit parallel data output by the data acquisition unit 24 is simultaneously fetched and written in the internal register.

【0027】データ転送先を順次移動して複数のデバイ
スに連続してデータ転送を行う本実施例の場合には、制
御部はデバイスa に対するデータ転送が終了すると、次
の転送先であるアドレスbに対応する期間Ta(2クロ
ック周期)の間、転送制御信号CNT をノンアクティブと
する。このとき、最初のアクセス要求通知により全ての
周辺デバイスはアクセス可能状態にあり、ノンアクティ
ブ継続時間を計測しているので、周辺デバイスbは自デ
バイスのアドレスがデータ転送先として次に指定された
ことを認識し、アクセス許可信号を出して、次の転送デ
ータDbを取り込む。
In the case of this embodiment in which the data transfer destination is sequentially moved to continuously transfer the data to a plurality of devices, when the data transfer to the device a is completed, the control unit will move to the next transfer destination address b. During the period Ta (2 clock cycles) corresponding to, the transfer control signal CNT is made non-active. At this time, all the peripheral devices are in the accessible state by the first access request notification and the non-active duration time is measured. Therefore, the peripheral device b determines that the address of its own device is next designated as the data transfer destination. Is recognized, an access permission signal is issued, and the next transfer data Db is fetched.

【0028】このようにして所定の周辺デバイスへのデ
ータ転送が終了すると、制御部は転送制御信号CNT をノ
ンアクティブとし、シリアルデータ線上の信号は無意味
となる。そして、制御部はこのノンアクティブ状態をT
1(5クロック周期)以上にわたって継続する。これに
よりアクセス判定部21は動作を停止し、全ての制御信号
をノンアクティブとし、非動作状態に戻る。
When the data transfer to the predetermined peripheral device is completed in this way, the control section makes the transfer control signal CNT non-active, and the signal on the serial data line becomes meaningless. Then, the control unit sets this non-active state to T
It continues for 1 (5 clock cycles) or more. As a result, the access determination unit 21 stops its operation, deactivates all control signals, and returns to the non-operation state.

【0029】次に、図5、図6により第二発明の実施例
を説明する。第二発明は転送制御信号CNT の非アクティ
ブ状態の間にシリアルデータ線を介して転送するアドレ
スデータにより転送先を指定する方式である。
Next, an embodiment of the second invention will be described with reference to FIGS. The second invention is a method of designating a transfer destination by address data transferred via a serial data line while the transfer control signal CNT is inactive.

【0030】この実施例では、転送制御信号の最初のア
クティブ期間継続期間T2により、全デバイスをアクセ
ス可能状態にし、その後のノンアクティブ期間にシリア
ルデータ線を介してアドレス情報Aa,Ab,Acを転
送することによって行う点が第一実施例と異なり、他は
第一実施例と同じである。
In this embodiment, all devices are made accessible by the first active period duration T2 of the transfer control signal, and the address information Aa, Ab, Ac is transferred through the serial data line during the subsequent non-active period. This is different from the first embodiment in that it is performed by doing so, and other points are the same as the first embodiment.

【0031】図5に示すように、制御部は転送制御信号
CNT をアクセス要求通知時間T1(=4クロック周期)
の間アクティブ状態にしてアクセス要求通知を出したあ
と、例えば3クロック周期の間ノンアクティブにすると
ともに、転送データ線に転送先を指定する3ビットのア
ドレスデータAa,Ab,Acを送出する。一方、図6
に示すように周辺デバイス側では、アクセス判定部21が
アクセス要求通知を検出して擬似アクセス状態になる
と、アドレス識別部22にアクセス許可信号AEN を出す。
アドレス識別部22' には、シリアルデータ線が入力して
おり、引き続いて該シリアルデータタ線上にビットシリ
アルで転送されてくる3ビットのアドレスデータを取込
み、自デバイスに予め設定されているアドレスコードに
等しい場合には、自アドレスが宛先として指定されたと
判定しデータ取込み信号CSを出して、次の転送制御信号
アクティブ期間にデータ取込み部24で取り込んだ転送デ
ータをデバイス機能部23に書き込む。
As shown in FIG. 5, the control unit controls the transfer control signal.
CNT access request notification time T1 (= 4 clock cycles)
During this period, the active state is maintained and an access request notification is issued, and then, for example, inactive for 3 clock cycles, and 3-bit address data Aa, Ab, Ac for designating the transfer destination is transmitted to the transfer data line. On the other hand, FIG.
On the peripheral device side, when the access determination unit 21 detects the access request notification and enters the pseudo access state, the access identification signal AEN is issued to the address identification unit 22, as shown in FIG.
The serial data line is input to the address identification unit 22 ', and subsequently, the 3-bit address data transferred in bit serial on the serial data line is taken in, and the address code preset in the own device is taken. If it is equal to, it determines that its own address is designated as the destination, issues the data capture signal CS, and writes the transfer data captured by the data capture unit 24 in the next transfer control signal active period to the device function unit 23.

【0032】なお、上記実施例では複数の周辺デバイス
のうちの一つを指定してデータ転送を行う例を述べた
が、複数のデータレジスタを有する1個の周辺デバイス
と制御部とで構成されたシステムにおいて、特定のデー
タレジスタを指定してデータ転送を行う場合にも適用で
きる。この場合には、アドレス識別部は、アドレス指定
情報によりレジスタのアドレスを識別し、データ取込み
部で取り込んだシリアルデータを指定されたアドレスに
書き込むように制御する。
In the above embodiment, an example in which data transfer is performed by designating one of a plurality of peripheral devices has been described, but it is composed of one peripheral device having a plurality of data registers and a control unit. In the system described above, it is also applicable when data is transferred by designating a specific data register. In this case, the address identification unit identifies the address of the register based on the address designation information, and controls the serial data captured by the data capture unit to be written to the designated address.

【0033】上記周辺デバイスのアクセス検出機能は何
れも簡単な論理回路で実現することができる。
Any of the peripheral device access detection functions can be realized by a simple logic circuit.

【0034】[0034]

【発明の効果】以上説明したように、本発明によれば転
送制御信号CNT の値とその継続時間とを組み合わせるこ
とにより、制御部から周辺デバイスへのシリアルデータ
転送時にアドレス指定のためのビットを割り当てる必要
がなくなるので、一回のアクセス当たりの実データ転送
量を増加させることができ、転送速度を向上できるとい
う効果がある。
As described above, according to the present invention, by combining the value of the transfer control signal CNT and the duration thereof, the bit for addressing is specified during serial data transfer from the control unit to the peripheral device. Since there is no need to allocate, the amount of actual data transferred per access can be increased, and the transfer speed can be improved.

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

【図1】 本発明のシリアルデータ転送方式におけるイ
ンタフエイス信号の動作タイミング図
FIG. 1 is an operation timing chart of an interface signal in the serial data transfer system of the present invention.

【図2】 転送制御信号による周辺デバイスの動作状態
の遷移を示す図
FIG. 2 is a diagram showing a transition of operating states of peripheral devices by a transfer control signal.

【図3】 第一発明の実施例の動作タイミング図FIG. 3 is an operation timing chart of the embodiment of the first invention.

【図4】 第一発明の方式による周辺デバイスのハード
ウエアの構成図
FIG. 4 is a hardware configuration diagram of a peripheral device according to the method of the first invention.

【図5】 第二発明の実施例の動作タイミング図FIG. 5 is an operation timing chart of the embodiment of the second invention.

【図6】 第二発明の方式による周辺デバイスのハード
ウエアの構成図
FIG. 6 is a hardware configuration diagram of a peripheral device according to the method of the second invention.

【図7】 本発明が対象とするシリアルデータ転送方式
を示す図
FIG. 7 is a diagram showing a serial data transfer system targeted by the present invention.

【図8】 従来技術の問題点を示す図FIG. 8 is a diagram showing problems of the conventional technology.

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

1…制御部(マイクロコンピュータ)2-1 〜2-n …周辺
デバイス、21…アクセス判定部、22…アドレス識別部、
23…デバイス機能部、24…データ取込み部
DESCRIPTION OF SYMBOLS 1 ... Control part (microcomputer) 2-1 to 2-n ... Peripheral device, 21 ... Access determination part, 22 ... Address identification part,
23 ... Device function section, 24 ... Data acquisition section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 制御部からの転送クロック(CLK) 、転送
制御信号(CNT) 、シリアルデータ信号( DATA) により、
複数の周辺デバイスから一つを選択してシリアルデータ
の転送を行う方式において、 制御部は、 転送制御信号(CNT) のノンアクティブ状態をアクセス解
除通知時間T1以上継続させることによって全ての周辺
デバイスに非アクセス状態であることを通知し、 非アクセス状態後に、転送制御信号(CNT) をアクセス要
求通知時間T2の間アクティブ状態にすることによって
アクセス要求を通知し、 該アクセス要求に引き続いて転送制御信号CNT をノンア
クティブ状態とし、前記アクセス解除通知時間T1より
短くかつデータ転送しようとする宛先の周辺デバイスの
アドレス対応に設定した時間の間該ノンアクティブ状態
を継続することにより、データ転送先の周辺デバイスを
指定し、 次いで該指定された周辺デバイスへシリアルデータ線を
介してデータを転送するようにしたことを特徴とするシ
リアルデータ転送方式。
1. A transfer clock (CLK), a transfer control signal (CNT) and a serial data signal (DATA) from a control unit
In the method of selecting one of a plurality of peripheral devices and transferring serial data, the control unit keeps all peripheral devices in the inactive state of the transfer control signal (CNT) for at least the access release notification time T1. The access request is notified by notifying that it is in the non-access state, and after the non-access state, the transfer control signal (CNT) is activated for the access request notification time T2 to notify the access request, and the transfer control signal is continuously issued after the access request. Peripheral device of the data transfer destination by making CNT non-active state and continuing the non-active state for a time shorter than the access cancellation notification time T1 and set for the address correspondence of the peripheral device of the destination to which the data is to be transferred. And then to the specified peripheral device via the serial data line. Serial data transfer method is characterized in that so as to transfer the data.
【請求項2】 請求項1のシリアルデータ転送方式にお
けるデータ転送先の周辺デバイスの指定を、アクセス要
求後の転送制御信号CNT のノンアクティブ状態の期間に
シリアルデータ線を介してアドレスデータを送出するこ
とによって行うようにしたことを特徴とするシリアルデ
ータ転送方式。
2. The serial data transfer method according to claim 1, wherein the peripheral device of the data transfer destination is designated, and the address data is transmitted through the serial data line during the non-active period of the transfer control signal CNT after the access request. A serial data transfer method characterized in that it is performed by doing so.
JP18141892A 1992-07-09 1992-07-09 Serial data transfer system Withdrawn JPH0628312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18141892A JPH0628312A (en) 1992-07-09 1992-07-09 Serial data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18141892A JPH0628312A (en) 1992-07-09 1992-07-09 Serial data transfer system

Publications (1)

Publication Number Publication Date
JPH0628312A true JPH0628312A (en) 1994-02-04

Family

ID=16100424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18141892A Withdrawn JPH0628312A (en) 1992-07-09 1992-07-09 Serial data transfer system

Country Status (1)

Country Link
JP (1) JPH0628312A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6384417B1 (en) 1998-09-30 2002-05-07 Kabushiki Kaisha Toshiba Ceramic scintillator, method for producing same, and x-ray detector and x-ray CT imaging equipment using same
JP2005166048A (en) * 2003-11-26 2005-06-23 Analog Devices Inc Read-only serial interface provided with other intended use mode programming

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6384417B1 (en) 1998-09-30 2002-05-07 Kabushiki Kaisha Toshiba Ceramic scintillator, method for producing same, and x-ray detector and x-ray CT imaging equipment using same
JP2005166048A (en) * 2003-11-26 2005-06-23 Analog Devices Inc Read-only serial interface provided with other intended use mode programming

Similar Documents

Publication Publication Date Title
AU652707B2 (en) Bus interface logic for computer system having dual bus architecture
US6324597B2 (en) Host controller interface descriptor fetching unit
CA1173564A (en) Multiple mode central processing unit
US5416909A (en) Input/output controller circuit using a single transceiver to serve multiple input/output ports and method therefor
WO2004068279A2 (en) Method and apparatus for controlling a data processing system during debug
JPH05204820A (en) Microcessor, processing system and bus interface
US5313591A (en) Computer bus arbitration for N processors requiring only N unidirectional signal leads
JPS6035696B2 (en) Bus control device in data processing equipment
US5689659A (en) Method and apparatus for bursting operand transfers during dynamic bus sizing
US5649125A (en) Method and apparatus for address extension across a multiplexed communication bus
US5574869A (en) Bus bridge circuit having configuration space enable register for controlling transition between various modes by writing the bridge identifier into CSE register
US5274784A (en) Data transfer using bus address lines
JPH1083303A (en) Electronic circuit and method for using coprocessor
JP2695956B2 (en) Multiplex communication system
US7096307B2 (en) Shared write buffer in a peripheral interface and method of operating
JPH0628312A (en) Serial data transfer system
US6457089B1 (en) Microprocessor bus structure
JPH11232214A (en) Processor for information processor and its controlling method
US5805843A (en) Microprocessor bus interface unit for interfacing an N-bit microprocessor bus to an M-bit memory device
KR920010977B1 (en) Memory bus architecture
US5815673A (en) Method and apparatus for reducing latency time on an interface by overlapping transmitted packets
JP2534321B2 (en) Data transfer control method and apparatus
JPH1063617A (en) Serial communication device
JP2570986B2 (en) Data transfer control device and method
JPH11273380A (en) Lsi operation mode setting signal fetching method and lsi with mode signal fetching function

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991005