JPH11194997A - Bidirectional serial interface communication equipment - Google Patents

Bidirectional serial interface communication equipment

Info

Publication number
JPH11194997A
JPH11194997A JP12398A JP12398A JPH11194997A JP H11194997 A JPH11194997 A JP H11194997A JP 12398 A JP12398 A JP 12398A JP 12398 A JP12398 A JP 12398A JP H11194997 A JPH11194997 A JP H11194997A
Authority
JP
Japan
Prior art keywords
data
peripheral
line
communication
lsi
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
JP12398A
Other languages
Japanese (ja)
Inventor
Noritoku Ooshima
昇徳 大嶋
Hiroyuki Noguchi
裕之 野口
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Panasonic System Networks Co 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 Panasonic System Networks Co Ltd filed Critical Panasonic System Networks Co Ltd
Priority to JP12398A priority Critical patent/JPH11194997A/en
Publication of JPH11194997A publication Critical patent/JPH11194997A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform bidirectional serial communication through one communication line and one clock line and to change the setting of a control signal, an address and the number of bits of data. SOLUTION: The data and further the control signal or address in accordance with the necessity of an LSI(large scale integration) to be connected area transmitted through one communication line, and the timing of this transmission is determined by the clock of one clock line 17. A communication format to be transmitted through the communication line is made into bit stream determined for respective peripheral LSI 11, 12 and 13, and this bit stream is transmitted/received at the timing of the clock signal.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はDSP(Digital Si
gnal Processor) やCPUとその周辺LSI(Large Sc
ale Integration)とのデータの送受信を通信線を介して
行う双方向シリアルインターフェイス通信装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DSP (Digital Si
gnal Processor) and CPU and its peripheral LSI (Large Sc
The present invention relates to a bidirectional serial interface communication device that transmits and receives data to and from a communication device through a communication line.

【0002】[0002]

【従来の技術】DSPと周辺LSIでデータを送受信す
る場合、両者共パラレルデータを取り扱っているので制
御線、アドレス線、データ線をパラレルに導設すればよ
い。しかし、このようなパラレルに配線すると各チップ
のピンの数と、このピンを結ぶ接続線の数が極めて多く
なり、チップ自体と、これらのチップを搭載した基板の
寸法が大きくなる。このため、データをシリアルにして
伝送する方法が用いられる。
2. Description of the Related Art When data is transmitted / received between a DSP and a peripheral LSI, both control lines, address lines and data lines may be provided in parallel since both handle parallel data. However, when such parallel wiring is performed, the number of pins of each chip and the number of connection lines connecting the pins are extremely increased, and the size of the chip itself and the size of the substrate on which these chips are mounted are increased. For this reason, a method of transmitting data serially is used.

【0003】図8は従来用いられているDSPとその周
辺LSIとの接続方法の一例を示す図である。DSPと
周辺LSIは1本の通信線と2本のクロック線の合計3
本の接続線で接続されている。周辺LSIの具体例とし
てはA/D変換器、D/A変換器などがある。通信はD
SPから周辺LSIへの一方向シリアル通信である。
FIG. 8 is a diagram showing an example of a conventional method of connecting a DSP and its peripheral LSI. The DSP and peripheral LSI have one communication line and two clock lines for a total of 3
It is connected by a book connection line. Specific examples of the peripheral LSI include an A / D converter and a D / A converter. Communication is D
One-way serial communication from the SP to the peripheral LSI.

【0004】図9は図8に示すDSPと周辺LSIとの
通信シーケンスを示す。なお、周辺LSIは3個の場合
を示すが、個数が変わっても同様の方法で通信が行われ
る。クロック1はDSPがシリアルデータを送るタイミ
ングを示し、1周期で1ビットづつ送る。1つのLSI
には8ビット単位でデータを送るものとし、各周辺LS
Iに順番に伝送される。クロック2は各周辺LSIへの
切り替えのタイミングを示し、1周期はクロック1の8
周期の長さとなっている。クロック2の立ち上がりで、
各周辺LSIへの切り替えが行われ、LSI−1,LS
I−2,LSI−3,LSI−1……の順でデータが伝
送される。
FIG. 9 shows a communication sequence between the DSP shown in FIG. 8 and a peripheral LSI. It should be noted that although the case where the number of peripheral LSIs is three is shown, communication is performed in the same manner even when the number changes. Clock 1 indicates the timing at which the DSP transmits serial data, and is transmitted one bit at a time in one cycle. One LSI
, Data is transmitted in units of 8 bits, and each peripheral LS
I. Clock 2 indicates the timing of switching to each peripheral LSI, and one cycle is 8
It is the length of the cycle. At the rising edge of clock 2,
Switching to each peripheral LSI is performed, and LSI-1, LS
Data is transmitted in the order of I-2, LSI-3, LSI-1,....

【0005】[0005]

【発明が解決しようとする課題】しかし、上述の従来技
術の構成では、通信はDSPより周辺LSIへの一方向
のシリアル通信であり、周辺LSIからDSPへのデー
タの転送はできない。また、周辺LSIを増加する場
合、データを伝送する際の周辺LSIの優先順位または
順番が固定しているため、インターフェイス回路を再設
計しなければならないという問題が発生していた。さら
に通信方式が固定のため、通信相手の周辺LSIを交換
する場合、今までと同じ通信方式のLSIを選ぶか、通
信相手の周辺LSIに対応した回路にインターフェイス
部を改造しなければならないという問題も発生してい
た。
However, in the above-mentioned prior art configuration, communication is one-way serial communication from the DSP to the peripheral LSI, and data cannot be transferred from the peripheral LSI to the DSP. In addition, when the number of peripheral LSIs is increased, the priority order or the order of the peripheral LSIs when transmitting data is fixed, so that there has been a problem that the interface circuit must be redesigned. Furthermore, since the communication system is fixed, when exchanging the peripheral LSI of the communication partner, it is necessary to select an LSI of the same communication system as before, or to modify the interface unit to a circuit corresponding to the peripheral LSI of the communication partner. Had also occurred.

【0006】本発明は上述の問題点に鑑みてなされたも
ので、1本の通信線と1本のクロック線を用い、双方向
のシリアル通信が可能な双方向シリアルインターフェー
ス通信装置を提供することを目的とする。また、制御信
号、アドレス、データのビット数の設定が変更可能な通
信装置を提供することを目的とする。
The present invention has been made in view of the above problems, and provides a bidirectional serial interface communication device capable of performing bidirectional serial communication using one communication line and one clock line. With the goal. It is another object of the present invention to provide a communication device capable of changing the setting of the number of bits of a control signal, an address, and data.

【0007】[0007]

【課題を解決するための手段】本発明の双方向シリアル
インターフェース通信装置においては、データおよび周
辺LSIの必要に応じて制御信号やアドレスを1本の通
信線で伝送し、この伝送のタイミングを1本のクロック
線により伝送されるクロックで行う。
In the bidirectional serial interface communication device according to the present invention, a control signal and an address are transmitted over one communication line as necessary for data and peripheral LSI, and the timing of this transmission is set to one. This is performed using a clock transmitted through the clock line.

【0008】本発明によれば、2本の線でDSPまたは
CPUとこれらの周辺LSIとの双方向シリアル通信が
可能になる。
According to the present invention, bidirectional serial communication between a DSP or CPU and these peripheral LSIs can be performed using two lines.

【0009】[0009]

【発明の実施の形態】請求項1の発明では、データおよ
び接続される周辺LSIの必要に応じて制御信号やアド
レスを伝送する1本の通信線と、クロック信号を伝送す
る1本のクロック線とでDSPまたはCPUと周辺LS
Iを接続し、制御信号、アドレス、データを各周辺LS
Iについて定められたフォーマットのビット列に変換
し、クロック信号に応じて送受信し、双方向シリアル通
信を行う。
According to the first aspect of the present invention, one communication line for transmitting a control signal and an address as necessary for a peripheral LSI to be connected to data, and one clock line for transmitting a clock signal. And DSP or CPU and peripheral LS
I and connect control signals, addresses, and data to each peripheral LS
I is converted into a bit string of a format defined for I, transmitted and received according to a clock signal, and performs bidirectional serial communication.

【0010】DSPまたはCPUと接続され、データの
送受信を行う周辺LSIは、各周辺LSI独自の通信フ
ォーマットを有しており、メモリのようにデータのみで
よいものや、データの他にアドレスやRNW(リードネ
ガティブライト信号)のような制御信号を一緒に伝送す
ることを要求するものもある。このように各周辺LSI
に応じたフォーマットのビット列を伝送する1本の通信
線と、このビット列の伝送タイミングを定めるクロック
を伝送する1本のクロック線を用いることにより、DS
PまたはCPUと各周辺LSIとの双方向シリアル通信
を行うことができる。
Peripheral LSIs connected to a DSP or CPU for transmitting and receiving data have a communication format unique to each peripheral LSI, such as a memory, such as a memory, or an address or RNW in addition to data. Some require that a control signal such as a (read negative write signal) be transmitted together. Thus, each peripheral LSI
By using one communication line for transmitting a bit string in a format corresponding to the above and one clock line for transmitting a clock that determines the transmission timing of this bit string, DS
Bidirectional serial communication between the P or CPU and each peripheral LSI can be performed.

【0011】請求項2の発明では、前記制御信号、アド
レス、データの少なくとも1つは構成するビット数が可
変となっている。
According to the second aspect of the present invention, the number of bits constituting at least one of the control signal, the address, and the data is variable.

【0012】DSPまたはCPUと各周辺LSIを1本
の通信線と1本のクロック線で接続する場合、通信フォ
ーマットを構成する制御信号、アドレス、データのビッ
ト列の構成は各周辺LSI固有の構成となっている。こ
のためある周辺LSIを交換する場合、それと同じ通信
フォーマットを有するLSIを用いる必要があったが、
通信フォーマットをDSPまたはCPUで可変とするこ
とにより、元の周辺LSIと異なる通信フォーマットを
有するLSIと交換することができる。
When the DSP or CPU and each peripheral LSI are connected by one communication line and one clock line, the configuration of the control signal, address, and data bit strings constituting the communication format is the same as the configuration unique to each peripheral LSI. Has become. For this reason, when exchanging a certain peripheral LSI, it was necessary to use an LSI having the same communication format as that.
By making the communication format variable by the DSP or the CPU, it is possible to exchange with an LSI having a communication format different from that of the original peripheral LSI.

【0013】請求項3の発明では、前記周辺LSIは各
自固有のデータのビット列と、さらに接続される周辺L
SIによっては制御信号やアドレスのビット列を有し、
最初から所定数までのビット列が同一となる可能性のあ
る周辺LSIについては、前記DSPまたはCPUから
制御線を設け、通信しない周辺LSIを不動作にしてお
く。
According to the third aspect of the present invention, the peripheral LSI includes a bit string of unique data and a peripheral L to be further connected.
Some SIs have bit strings of control signals and addresses,
A control line is provided from the DSP or CPU for a peripheral LSI in which a predetermined number of bit strings may be the same from the beginning, and a peripheral LSI that does not communicate is disabled.

【0014】いくつかの周辺LSIについて、通信フォ
ーマットの最初の数ビット列が同じになる可能性が有る
場合、このような周辺LSIにはDSPまたはCPUか
らそのLSIを動作または不動作にする制御線を設け、
通信時目的とする周辺LSIのみ動作させるようにす
る。
If there is a possibility that the first few bit strings of the communication format may be the same for some peripheral LSIs, such peripheral LSIs may be provided with a control line from a DSP or CPU for operating or disabling the LSI. Provided,
At the time of communication, only the target peripheral LSI is operated.

【0015】以下、本発明の実施の形態について図面を
参照して説明する。図1は本発明によるLSIチップ間
配線の一実施形態を示すブロック図である。DSP10
は周辺LSI11,12,13と通信を行うようシリア
ルデータ線16とクロック線17で接続されている。D
SP10はその中心部を構成するDSPコア14と、周
辺LSI11〜13との通信を行う双方向シリアルイン
ターフェイス回路15から構成されている。シリアルデ
ータ線(通信線)16およびクロック線17が双方向シ
リアルインターフェイス回路15より各一本で出て、各
周辺LSI11〜13に分岐している。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of wiring between LSI chips according to the present invention. DSP10
Are connected by a serial data line 16 and a clock line 17 so as to communicate with the peripheral LSIs 11, 12, and 13. D
The SP 10 is composed of a DSP core 14 which forms a central part thereof, and a bidirectional serial interface circuit 15 which communicates with peripheral LSIs 11 to 13. A serial data line (communication line) 16 and a clock line 17 respectively exit from the bidirectional serial interface circuit 15 and branch to peripheral LSIs 11 to 13.

【0016】図2は本発明の双方向シリアルインターフ
ェイス回路の一例を示すブロック図である。コマンドレ
ジスタ21はソフトウェアにより予め定められた各種設
定をDSPコア14の指示により行う。トライステート
コントローラ22はシリアルデータ線16を制御するト
ライステートバッファ27を制御する信号の生成をDS
Pコア14の指示により行う。送信データバッファ23
はDSPコア14かのアドレス、データ、制御信号を一
旦保持し、コマンドレジスタ21からの指示により、そ
れらの信号を送信相手の周辺LSI用に組み合わせパラ
レル信号で出力し、このパラレル信号をP/S変換回路
24でシリアル信号に変換する。
FIG. 2 is a block diagram showing an example of the bidirectional serial interface circuit of the present invention. The command register 21 performs various settings predetermined by software according to an instruction from the DSP core 14. The tri-state controller 22 generates a signal for controlling the tri-state buffer 27 for controlling the serial data line 16 by DS.
This is performed according to an instruction from the P core 14. Transmission data buffer 23
Temporarily holds the address, data, and control signals from the DSP core 14 and combines them according to an instruction from the command register 21 for a peripheral LSI of a transmission partner, and outputs the combined signals as parallel signals. The conversion circuit 24 converts the signal into a serial signal.

【0017】S/P変換回路25は周辺LSI11〜1
3から送信されてきたシリアル信号をパラレル信号に変
換し、この信号を受信データバッファ26が一旦保持
し、データをDSPコア14に送信する。なお、周辺L
SI11〜13からの受信の場合、図5で説明するよう
に制御信号とアドレスはDPSコア14から指示する。
トライステートバッファ27はトライステートコントロ
ーラ22の指示によりハインピーダンス制御を行って、
P/S変換回路24からの出力、S/P変換回路25へ
の入力を制御する。
The S / P conversion circuit 25 includes peripheral LSIs 11 to 1
3 is converted into a parallel signal, and the received data buffer 26 temporarily holds the signal, and transmits the data to the DSP core 14. The surrounding L
In the case of reception from the SIs 11 to 13, the control signal and the address are instructed from the DPS core 14 as described in FIG.
The tri-state buffer 27 performs high impedance control according to an instruction from the tri-state controller 22.
The output from the P / S conversion circuit 24 and the input to the S / P conversion circuit 25 are controlled.

【0018】30はアドレスバス、31はデータバス、
32はライト(送信)動作するか、リード(受信)動作
をするかを知らせるRNW(Read Negative Write)など
の制御線である。33はトライステートコントローラ2
2を制御する制御線、34は送信データバッファ23を
制御する制御線、35は受信データバッファ26を制御
する制御線で、いずれもコマンドレジスタ21から出力
される。
Reference numeral 30 denotes an address bus, 31 denotes a data bus,
Reference numeral 32 denotes a control line such as an RNW (Read Negative Write) for informing whether to perform a write (transmission) operation or a read (reception) operation. 33 is a tri-state controller 2
2, a control line for controlling the transmission data buffer 23, and a control line for controlling the reception data buffer 26, all output from the command register 21.

【0019】36はトライステートバッファ27を制御
するためトライステートコントローラ22から出力され
る制御信号の制御線、37は送信データバッファ23か
らパラレル信号をP/S変換回路24へ送る信号線、3
8はS/P変換回路25からパラレル信号を受信データ
バッファ26へ伝送する信号線、39はP/S変換回路
24からトライステートバッファ27へシリアル信号を
伝送する信号線、40はシリアル信号の送信、受信用ク
ロックを伝送するクロック線で図1のクロック線17と
接続している。
Reference numeral 36 denotes a control line for a control signal output from the tri-state controller 22 for controlling the tri-state buffer 27; 37, a signal line for transmitting a parallel signal from the transmission data buffer 23 to the P / S conversion circuit 24;
8, a signal line for transmitting a parallel signal from the S / P conversion circuit 25 to the reception data buffer 26; a signal line 39, for transmitting a serial signal from the P / S conversion circuit 24 to the tri-state buffer 27; The clock line for transmitting the receiving clock is connected to the clock line 17 in FIG.

【0020】図3は図2に示した受信データバッファ2
3の概略ブロック図で、設定可能な通信信号(制御信
号、アドレス、データ)の範囲を8ビットとした場合の
構成を示す。他のビット数、16、32ビットなどの場
合も同様な構成となる。AIN,BIN,CIN,DI
N,EIN,FIN,GIN.HINは送信データバッ
ファ23に保持された入力信号、A1〜A9,B1〜B
8,C1〜C7,D1〜D6,E1〜E5,F1〜4,
G1〜G3,H1〜H2はトライステートバッファ,A
OUT,BOUY,COUT,DOUT,EOUT,F
OUT,GOUT,HOUTは送信データバッファ23
からP/S変換回路24へ出力する出力信号である。ト
ライステートバッファA1〜A9,H1〜H2 はコマ
ンドレジスタ21からの制御線34によって制御され
る。
FIG. 3 shows the reception data buffer 2 shown in FIG.
3 is a schematic block diagram showing a configuration in which the range of a settable communication signal (control signal, address, data) is set to 8 bits. The same configuration applies to other bit numbers, such as 16 and 32 bits. AIN, BIN, CIN, DI
N, EIN, FIN, GIN. HIN is an input signal held in the transmission data buffer 23, A1 to A9, B1 to B
8, C1 to C7, D1 to D6, E1 to E5, F1 to 4,
G1 to G3, H1 to H2 are tri-state buffers, A
OUT, BOUY, COUT, DOUT, EOUT, F
OUT, GOUT, and HOUT are transmission data buffers 23.
Is an output signal to be output to the P / S conversion circuit 24. The tristate buffers A1 to A9 and H1 to H2 are controlled by a control line 34 from the command register 21.

【0021】図4はDSPより1つの周辺LSIへ送信
する場合のタイミングチャートである。16,17は図
1に示したシリアルデータ線16とクロック線17であ
る。50は1ビットのスタートビット、51は1ビット
のアドレスビット、52は送信か受信かを示す1ビット
のRNWビット、53は双方向であるデータの衝突を避
けるための1ビットのハイインピーダンスビットで、2
ビットのデータ54の前後に設けられている。55は一
連の信号の終わりを示す1ビットのストップビット、5
6はスタートビット50の前とストップビット55の後
に付き、信号線上でデータの通信が行われていないこと
を示すハイレベル状態を示すビットである。このシリア
ルデータ線16に表されるビット列は該当する周辺LS
Iの通信フォーマットを示し、各周辺LSIは固有の通
信フォーマットを有する。DSP10は送信されLSI
の通信フォーマォーマットで送信を行う。
FIG. 4 is a timing chart when a signal is transmitted from the DSP to one peripheral LSI. Reference numerals 16 and 17 are the serial data line 16 and the clock line 17 shown in FIG. 50 is a 1-bit start bit, 51 is a 1-bit address bit, 52 is a 1-bit RNW bit indicating transmission or reception, and 53 is a 1-bit high impedance bit for avoiding bidirectional data collision. , 2
It is provided before and after the bit data 54. 55 is a 1-bit stop bit indicating the end of a series of signals, 5
Reference numeral 6 denotes a bit which is provided before the start bit 50 and after the stop bit 55 and indicates a high level state indicating that data communication is not performed on the signal line. The bit string represented on the serial data line 16 is the corresponding peripheral LS
I shows a communication format of I, and each peripheral LSI has a unique communication format. DSP 10 is transmitted to LSI
The transmission is performed in the communication format.

【0022】以上のように構成した双方向シリアルイン
ターフェース通信装置の動作を説明する。まず最初に通
信する1つの周辺LSI11〜13のシリアルインター
フェイスの通信フォーマットを、図2に示すコマンドレ
ジスタ21にDSPコア14より設定する。通信フォー
マットの設定可能な範囲が、ハード的に図2の送信デー
タバッファ23に8ビット分あるとすると、図4のシリ
アルデータ線16で送信される信号は8ビットの範囲で
ビット割り付け(ビットアサイン)が行われ、この通信
フォーマットにより通信が行われる。図3は8ビットの
ビットアサインの場合の送信データバッファ23の構成
を示している。32ビットの単位で通信が行われる場合
は32ビットの範囲でビットアサインが行われる。図4
のシリアルデータ線16上にアサインされたスタートビ
ット50、アドレスビット51、RNWビット52、ハ
イインピーダンスビット53、データビット54、ハイ
インピーダンスビット53、ストップ55にそれぞれ何
ビット割り当てるかにより通信フォーマットが決定され
る。
The operation of the thus configured bidirectional serial interface communication device will be described. First, the DSP core 14 sets the communication format of the serial interface of one of the peripheral LSIs 11 to 13 for communication in the command register 21 shown in FIG. Assuming that the transmission data buffer 23 shown in FIG. 2 has a settable range of 8 bits for the communication format in terms of hardware, the signal transmitted on the serial data line 16 shown in FIG. ) Is performed, and communication is performed using this communication format. FIG. 3 shows the configuration of the transmission data buffer 23 in the case of 8-bit bit assignment. When communication is performed in units of 32 bits, bit assignment is performed in a range of 32 bits. FIG.
The communication format is determined by the number of start bits 50, address bits 51, RNW bits 52, high-impedance bits 53, data bits 54, high-impedance bits 53, and stops 55 assigned to the serial data line 16 of the first embodiment. You.

【0023】また設定可能範囲が32ビットとして、デ
ータビット数を8ビットとすると、残り24ビットのス
テイタスビット(制御信号とアドレス)は、0〜24ビ
ットの間で設定が可能であり、その内訳は、スタートビ
ット50が最大1ビット、アドレスビット51が最大で
16ビット、RNWビット52が最大で1ビット、ハイ
インピーダンスビット53がデータビット54の前後で
それぞれ最大2ビット、ストップビット55が最大2ビ
ットである。なお、周辺LSIがメモリなどの場合、全
てのステイタスビットのアサインを行わず、データビッ
トのみにして、最大32ビットのデータビットを送受信
することも可能である。
If the settable range is 32 bits and the number of data bits is 8, the remaining 24 status bits (control signal and address) can be set between 0 and 24 bits. The start bit 50 has a maximum of 1 bit, the address bit 51 has a maximum of 16 bits, the RNW bit 52 has a maximum of 1 bit, the high impedance bit 53 has a maximum of 2 bits before and after the data bit 54, and the stop bit 55 has a maximum of 2 bits. Is a bit. When the peripheral LSI is a memory or the like, it is possible to transmit and receive a maximum of 32 data bits without assigning all the status bits and using only the data bits.

【0024】ここでコマンドレジスタ21の設定によ
り、送信では送信データバッファ23が信号線37へ送
るパラレルデータをセレクトし、P/S変換回路24に
供給する。図3は、アドレスバス30とデータバス31
と制御線32の合計が8本で、送信データバッファ23
はこの8本に対応したトライステートバッファが設けら
れている場合を示す。AOUT,BOUT,COUT等
にどの信号を出力するかは、コマンドレジスタ21によ
って制御されたトライステートバッファにより決められ
る。例えば、AOUTにAIN,BOUTにEIN,C
OUTにHIN,DOUT〜HOUTにハイレベルを出
力したいときは、トライステートバッファA1,B4,
C6,D6,E5,F4,G3,H2をスルーに設定す
ることになる。
In the transmission, the transmission data buffer 23 selects parallel data to be transmitted to the signal line 37 and supplies the parallel data to the P / S conversion circuit 24 by setting the command register 21. FIG. 3 shows an address bus 30 and a data bus 31.
And a total of eight control lines 32, and the transmission data buffer 23
Indicates a case where tri-state buffers corresponding to these eight lines are provided. Which signal is output to AOUT, BOUT, COUT and the like is determined by a tri-state buffer controlled by the command register 21. For example, AOUT is AIN, BOUT is EIN, C
When it is desired to output HIN to OUT and output a high level to DOUT to HOUT, tristate buffers A1, B4,
C6, D6, E5, F4, G3, and H2 are set to through.

【0025】P/S変換回路24に供給された信号は、
信号線39にシリアル信号として出力され、トライステ
ートバッファ27に入力される。これとともに、コマン
ドレジスタ21の設定によりトライステートコントロー
ラ22からの出力が信号線36を介してトライステート
バッファ27を制御し、その結果出力のシリアルデータ
線16が確定する。受信の場合も同様にして、信号線3
9にシリアル信号が出力されるが、トライステートコン
トローラ22は受信であることの指示をDSPコア14
より受けており、図4に示すデータビット54が送信さ
れてくる区間をハイインピーダンスに制御する。このと
きシリアルデータ線16から入力された信号は、S/P
変換回路25でパラレルに変換されて、受信データバッ
ファ26は、コマンドレジスタ21の設定により送信さ
れた信号が全てパラレルに変換された時点で信号を取り
込み、以降この設定が保持されたまま、送受信が行われ
る。
The signal supplied to the P / S conversion circuit 24 is
The signal is output to the signal line 39 as a serial signal, and is input to the tri-state buffer 27. At the same time, the output from the tri-state controller 22 controls the tri-state buffer 27 via the signal line 36 according to the setting of the command register 21, and as a result, the output serial data line 16 is determined. Similarly, in the case of reception, the signal line 3
9 is output to the DSP core 14.
The section in which the data bit 54 shown in FIG. 4 is transmitted is controlled to have high impedance. At this time, the signal input from the serial data line 16 is S / P
The data is converted into parallel by the conversion circuit 25, and the reception data buffer 26 takes in the signal when all the signals transmitted by the setting of the command register 21 have been converted into parallel. Done.

【0026】図5は図4でDSP10より送信された周
辺LSIからの送信信号をDSP10が受信するタイミ
ングチャートである。通信フォーマットは周辺LSIに
固有なので図4に示す場合と同じである。なお、DSP
10が周辺LSIからデータを受信する場合、制御信号
やアドレスはDSP10から周辺LSIへ送信しデータ
のみ周辺LSIからDSP10へ送信する。このように
DSP10と周辺LSPとの通信は常にDSP10主導
で行われ、周辺LSIは受動的に動作する。受信時のD
SPコア14の動作は、56,50〜53,53と56
の間は図2に示すようにアドレスバス30と制御線32
の信号の向きはDSPコア14より受信データバッファ
26に向いており、アドレスと制御信号とを周辺LSI
に送信する。周辺LSIよりデータ54が送信されてく
るときはDSP10側の出力(データ線16はハイイン
ピーダンスHizになり、送信されてくるデータ54と
の衝突を防止している。
FIG. 5 is a timing chart in which the DSP 10 receives the transmission signal from the peripheral LSI transmitted from the DSP 10 in FIG. Since the communication format is specific to the peripheral LSI, it is the same as the case shown in FIG. Note that the DSP
When the data 10 is received from the peripheral LSI, the control signal and the address are transmitted from the DSP 10 to the peripheral LSI, and only the data is transmitted from the peripheral LSI to the DSP 10. As described above, the communication between the DSP 10 and the peripheral LSP is always performed under the initiative of the DSP 10, and the peripheral LSI operates passively. D when receiving
The operation of the SP core 14 is 56, 50 to 53, 53 and 56.
Between the address bus 30 and the control line 32 as shown in FIG.
Is directed from the DSP core 14 to the reception data buffer 26, and the address and the control signal are
Send to When the data 54 is transmitted from the peripheral LSI, the output of the DSP 10 (the data line 16 becomes high impedance Hiz to prevent collision with the transmitted data 54).

【0027】図6は本発明の第2実施形態を示す。DS
P10に接続されている周辺LSI11〜13の通信フ
ォーマットには、アドレス等最初の数ビットが同じくな
る可能性がある。図7はこのような一例を示すもので、
例えば周辺LSI−2の通信フォーマットはデータのみ
の32ビットよりなり、周辺LSI−1の通信フォーマ
ットはアドレスとデータが8ビットづつの場合である。
この場合、周辺LSI−1のアドレスの8ビットと、周
辺LSI−2のデータの8ビットが同一となる場合で、
このようなときは、周辺LSI−1と周辺LSI−2に
それぞれ信号線a,bをDSP10より配線し、一方の
LSIが動作する時は他方のLSIの停止させる。
FIG. 6 shows a second embodiment of the present invention. DS
In the communication format of the peripheral LSIs 11 to 13 connected to P10, there is a possibility that the first few bits such as an address are the same. FIG. 7 shows such an example.
For example, the communication format of the peripheral LSI-2 is composed of 32 bits of data only, and the communication format of the peripheral LSI-1 is a case where the address and the data are each 8 bits.
In this case, when the 8 bits of the address of the peripheral LSI-1 and the 8 bits of the data of the peripheral LSI-2 are the same,
In such a case, the signal lines a and b are wired from the DSP 10 to the peripheral LSI-1 and the peripheral LSI-2, respectively, and when one of the LSIs operates, the other LSI is stopped.

【0028】[0028]

【発明の効果】以上の説明より明らかなように、本発明
は制御信号、アドレス、データを乗せる1本の通信線と
1本のクロック線により、DSPまたはCPUと周辺L
SIの間で双方向シリアル通信を実施することができ
る。また通信線の通信フォーマットが可変であることに
より、通信フォーマットの違うLSIと通信できるの
で、シリアルインターフェイスにより制限を受けずに、
LSIチップを選択することができる。
As is apparent from the above description, according to the present invention, the DSP or CPU and the peripheral L are controlled by one communication line and one clock line for carrying control signals, addresses and data.
Bidirectional serial communication can be performed between SIs. In addition, since the communication format of the communication line is variable, communication with an LSI having a different communication format can be performed.
An LSI chip can be selected.

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

【図1】本発明のDSPと周辺LSI間の接続を示すブ
ロック図
FIG. 1 is a block diagram showing a connection between a DSP of the present invention and a peripheral LSI;

【図2】DSPのインターフェイス回路の一例を示すブ
ロック図
FIG. 2 is a block diagram illustrating an example of a DSP interface circuit.

【図3】インターフェイス回路内の送信データバッファ
の構成を示すブロック図
FIG. 3 is a block diagram showing a configuration of a transmission data buffer in the interface circuit.

【図4】インターフェイス回路の送信時のタイミングチ
ャート
FIG. 4 is a timing chart at the time of transmission of an interface circuit.

【図5】インターフェイス回路の受信時のタイミングチ
ャート
FIG. 5 is a timing chart at the time of reception of an interface circuit.

【図6】通信フォーマットの最初の数ビットが同一とな
る可能性がある場合の接続法を示す図
FIG. 6 is a diagram showing a connection method when the first few bits of a communication format may be the same;

【図7】通信フォーマットの最初の数ビットが同一とな
る可能性がある場合の一例を示す図
FIG. 7 is a diagram illustrating an example of a case where the first few bits of a communication format may be the same;

【図8】従来の一方向シリアル通信の接続例を示す図FIG. 8 is a diagram showing a connection example of conventional one-way serial communication.

【図9】図8の通信を行う場合のタイミングチャートFIG. 9 is a timing chart when the communication of FIG. 8 is performed;

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

10 DSP 11〜13 周辺LSI 14 DSPコア 15 双方向シリアルインターフェイス回路 16 シリアルデータ線 17 クロック線 21 コマンドレジスタ 22 トライステートコントローラ 23 送信データバッファ 24 P/S変換回路 25 S/P変換回路 26 受信データバッファ Reference Signs List 10 DSP 11 to 13 Peripheral LSI 14 DSP core 15 Bidirectional serial interface circuit 16 Serial data line 17 Clock line 21 Command register 22 Tri-state controller 23 Transmission data buffer 24 P / S conversion circuit 25 S / P conversion circuit 26 Receive data buffer

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データおよび接続される周辺LSIの必
要に応じて制御信号やアドレスを伝送する1本の通信線
とクロック信号を伝送する1本のクロック線とでDSP
またはCPUと周辺LSIを接続し、制御信号、アドレ
ス、データを各周辺LSIについて定められたフォーマ
ットのビット列に変換し、クロック信号に応じて送受信
し、双方向シリアル通信を行う双方向シリアルインター
フェイス通信装置。
1. A DSP comprising one communication line for transmitting a control signal and an address and one clock line for transmitting a clock signal as required by data and a peripheral LSI connected thereto.
Alternatively, a bidirectional serial interface communication device that connects a CPU to a peripheral LSI, converts control signals, addresses, and data into bit strings in a format defined for each peripheral LSI, transmits and receives according to a clock signal, and performs bidirectional serial communication .
【請求項2】 前記制御信号、アドレス、データの少な
くとも1つは構成するビット数を可変とすることができ
ることを特徴とする請求項1記載の双方向シリアルイン
ターフェイス通信装置。
2. The bidirectional serial interface communication device according to claim 1, wherein the number of bits constituting at least one of the control signal, address, and data can be made variable.
【請求項3】 前記周辺LSIは各自固有のデータのビ
ット列と、さらに接続される周辺LSIによっては制御
信号やアドレスのビット列を有しており、最初から所定
数までのビット列が同一となる可能性のある周辺LSI
については、前記DSPまたはCPUから制御線を設
け、通信しない周辺LSIを不動作にしておくようにし
たことを特徴とする請求項1記載の双方向シリアルイン
ターフェイス通信装置。
3. The peripheral LSI has a bit string of its own data and a bit string of a control signal and an address depending on a peripheral LSI to be connected, and the bit strings from the beginning to a predetermined number may be the same. Peripheral LSI
2. A bidirectional serial interface communication device according to claim 1, wherein a control line is provided from said DSP or CPU so that peripheral LSIs that do not communicate are inactive.
JP12398A 1998-01-05 1998-01-05 Bidirectional serial interface communication equipment Pending JPH11194997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12398A JPH11194997A (en) 1998-01-05 1998-01-05 Bidirectional serial interface communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12398A JPH11194997A (en) 1998-01-05 1998-01-05 Bidirectional serial interface communication equipment

Publications (1)

Publication Number Publication Date
JPH11194997A true JPH11194997A (en) 1999-07-21

Family

ID=11465271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12398A Pending JPH11194997A (en) 1998-01-05 1998-01-05 Bidirectional serial interface communication equipment

Country Status (1)

Country Link
JP (1) JPH11194997A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005142699A (en) * 2003-11-05 2005-06-02 Mega Chips Corp Image companding apparatus
JP2006350783A (en) * 2005-06-17 2006-12-28 Seiko Epson Corp Data transfer control device, electronic device and data transfer control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005142699A (en) * 2003-11-05 2005-06-02 Mega Chips Corp Image companding apparatus
US7787690B2 (en) 2003-11-05 2010-08-31 Megachips Corporation Image compression and expansion device
JP2006350783A (en) * 2005-06-17 2006-12-28 Seiko Epson Corp Data transfer control device, electronic device and data transfer control method

Similar Documents

Publication Publication Date Title
US5768546A (en) Method and apparatus for bi-directional transfer of data between two buses with different widths
US5327121A (en) Three line communications method and apparatus
JPH09265439A (en) Device and method for executing general interface between host system and asynchronous transfer mode core function block
US20050198483A1 (en) Conversion apparatus and method thereof
WO1999022307A1 (en) Data interface and high-speed communication system using the same
JPH11194997A (en) Bidirectional serial interface communication equipment
US8041868B2 (en) Bus relay device and bus control system including bus masters, interconnect section, and bridge section
JPH04312152A (en) Network input/output device
US5724615A (en) Communication circuit receiving data selectably synchronized to the rising or falling edge of a timing signal provided from the data source
EP2089804A2 (en) Peripheral supplied addressing in a simple dma
JP2786789B2 (en) Data transfer method
JP2006304011A (en) Interface circuit
JP3771153B2 (en) UTOPIA interface control apparatus and method, and back wire board used in the apparatus
JPS60138664A (en) Data bus system for device groups having different necessary data bus width
US7032061B2 (en) Multimaster bus system
JPH09237247A (en) Bus width converter and bus width conversion system device
JPH10145433A (en) Data transfer rate converter and communication network system
JP2675208B2 (en) Broadcast communication control method
JP4134371B2 (en) I / O bus bridge device
JPH056335A (en) Inter-device interface system
JPH07191934A (en) Double bus device
JPS6362064A (en) Bus converter
JP2743780B2 (en) Distributed processing equipment
JPH04304547A (en) Data transferring system
JPH1175227A (en) Data communication device

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Effective date: 20050620

Free format text: JAPANESE INTERMEDIATE CODE: A7421