JPH05204848A - Serial communication system - Google Patents

Serial communication system

Info

Publication number
JPH05204848A
JPH05204848A JP2396292A JP2396292A JPH05204848A JP H05204848 A JPH05204848 A JP H05204848A JP 2396292 A JP2396292 A JP 2396292A JP 2396292 A JP2396292 A JP 2396292A JP H05204848 A JPH05204848 A JP H05204848A
Authority
JP
Japan
Prior art keywords
address
data
slave
communication system
serial communication
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
JP2396292A
Other languages
Japanese (ja)
Inventor
Ryoichi Tojo
亮一 東條
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2396292A priority Critical patent/JPH05204848A/en
Publication of JPH05204848A publication Critical patent/JPH05204848A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the redundancy in address data transfer and to improve the transmission efficiency time of data by varying address length according to the state of a slave device. CONSTITUTION:In the serial communication system which transfers data among plural peripheral components 15A, 15B, 15C...15N connected to a microcomputer 1 through a serial bus 2, the number of bits of address information sent from the microcomputer 1 to the peripheral components 15A, 15B, 15C...15N through the serial bus 2 is hierarchically separated and varied. A slave device 15 which access addresses, assigned to the slave devices 15 from the CPU 1, frequently in the same system is given a short address number. Further, the slave device 15 which is low in use frequency is given a relatively long address number to improve the transmission efficiency of the data and the address length is freely varied according to the scale of the system.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はシリアル通信方式に係わ
り、特に、マイクロコンピュータと周辺部品とを結ぶシ
リアルバスの通信方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial communication system, and more particularly to a serial bus communication system connecting a microcomputer and peripheral components.

【0002】[0002]

【従来の技術】従来のマイクロコンピュータ(以下CP
Uと記す)でインタフェースを介して外部の入出力装置
等を制御する場合には二つの転送方式が提案されてい
る。一つはパラレル通信方式であり、他の一つはシリア
ル通信方式である。パラレル通信方式ではデータが8ビ
ットであれば8本の信号ラインで同時に転送するが、シ
リアル通信方式では移送データは単位時間毎に分割して
伝送する。シリアル通信方式では制御信号ラインを持っ
ている場合と無い場合がある。無いものではデータ中に
スタートビットやストップビットを挿入している。
2. Description of the Related Art A conventional microcomputer (hereinafter referred to as CP
Two transfer methods have been proposed for controlling an external input / output device or the like via an interface. One is a parallel communication system, and the other is a serial communication system. In the parallel communication system, if the data is 8 bits, it is transferred simultaneously by eight signal lines, but in the serial communication system, the transfer data is divided and transmitted every unit time. The serial communication system may or may not have a control signal line. In the absence, the start bit and stop bit are inserted in the data.

【0003】これらのシリアル通信方式の各種方式を図
7乃至図9によって簡単に説明する。
Various methods of these serial communication methods will be briefly described with reference to FIGS. 7 to 9.

【0004】図7は同期式のシリアル通信方式を示すも
のでCPU1と例えば他のCPU或いはデジタル−アナ
ログ変換器(以下D/Aと記す)等の周辺機器や周辺部
品3A,3B‥‥3N間には双方向の1本のデータライ
ン5、クロックライン6、必要に応じて制御信号ライン
7が設けられる。この方式ではクロックライン6から基
準信号を送って、この基準信号に同期してデータライン
5からデータの伝送が行われる。
FIG. 7 shows a synchronous serial communication system. Between the CPU 1 and other CPUs or peripheral devices such as a digital-analog converter (hereinafter referred to as D / A) and peripheral parts 3A, 3B. Is provided with one bidirectional data line 5, a clock line 6 and, if necessary, a control signal line 7. In this method, a reference signal is sent from the clock line 6 and data is transmitted from the data line 5 in synchronization with this reference signal.

【0005】図8に示すものはM方式と呼ばれるシリア
ル通信方式を示すもので、この方式ではCPU1から複
数の周辺機器3A,3B‥‥3N間に2本のデータライ
ン(入出力用)7とクロックライン6の他に各周辺機器
3A,3B‥‥3Nに1本ずつ選択信号ライン8A,8
B‥‥8Nを引き出し、CPU1がアクセスをする周辺
機器3A,3B‥‥3Nの一つをこれら選択信号ライン
8A,8B‥‥8Nを通じて選択信号を送る必要があ
り、周辺機器3A,3B‥‥3Nの数に比例して選択信
号ライン8A,8B‥‥8Nが増加する欠点がある。
FIG. 8 shows a serial communication system called M system. In this system, two data lines (for input / output) 7 are provided between the CPU 1 and a plurality of peripheral devices 3A, 3B. In addition to the clock line 6, each peripheral device 3A, 3B ...
It is necessary to pull out B ... 8N and send a selection signal to one of the peripheral devices 3A, 3B ... 3N accessed by the CPU 1 through these selection signal lines 8A, 8B ... 8N, and the peripheral devices 3A, 3B. There is a drawback that the selection signal lines 8A, 8B ... 8N increase in proportion to the number of 3N.

【0006】図9A,Bに示すものは同じくシリアル通
信方式のI2 C及びIMバス方式を示すものである。図
9AのI2 Cバス方式はデータライン5及びクロックラ
イン6を有するが、アドレスとして例えば8ビットが割
り当てられ、CPU1はデータの伝送前にデータライン
6を介してアドレスデータを伝送する。同様に図9Bに
示されるIMバス方式ではデータライン5、クロックラ
イン6の他にアドレスデータ識別用のアドレスデータ識
別ライン9を有し、I2 Cバス方式と同様にアドレス用
の識別信号が送られる。これら各方式ではアドレス長は
固定ビットなので、CPU1に接続される周辺機器3A
‥‥3Nの数が少ないときは無駄が多く、逆に28 の2
56以上の周辺機器を制御することは出来なくなる。
FIGS. 9A and 9B show the serial communication I 2 C and IM bus systems. The I 2 C bus system of FIG. 9A has a data line 5 and a clock line 6, but 8 bits are allocated as an address, and the CPU 1 transmits address data via the data line 6 before transmitting the data. Similarly, in the IM bus system shown in FIG. 9B, in addition to the data line 5 and the clock line 6, the address data identification line 9 for address data identification is provided, and the identification signal for address is transmitted similarly to the I 2 C bus system. Be done. In each of these methods, the address length is a fixed bit, so the peripheral device 3A connected to the CPU 1
・ ・ ・ ・ ・ ・ When the number of 3N is small, there is a lot of waste, and conversely, 2 of 2 8
You will not be able to control more than 56 peripherals.

【0007】[0007]

【発明が解決しようとする課題】上述の構成で説明した
シリアル通信方式は同期バス式、Mバス方式等ではクロ
ックライン、データラインの外に制御ラインや選択信号
ラインを必要とし、I2 C及びIMバスではアドレス長
は固定されて、例えば8ビットであるためにCPUに接
続する周辺機器(以下スレーブ装置と記す)の数の最高
値に制限があると共に少ない個数の場合にはアドレスに
無駄が生ずる。即ち、この様なアドレスを小規模のバス
システムに適用すると、アドレスの大半は使用されない
ことになり、冗長な部分が多く、クロック信号(以下C
LKと記す)に基づいて、冗長なアドレスデータ伝送後
に供給されるデータ伝送に於いては、冗長なアドレスデ
ータ伝送に使われる時間だけデータ伝送時間が遅れて、
無駄な時間が多くなる問題があった。
[SUMMARY OF THE INVENTION The serial communication system synchronous bus type described in the above configuration, a clock line, and requires external to the control line and the select signal lines of the data lines in the M bus system or the like, I 2 C and In the IM bus, the address length is fixed, and because it is, for example, 8 bits, there is a limit on the maximum number of peripheral devices (hereinafter referred to as slave devices) connected to the CPU, and in the case of a small number, the address is wasted. Occurs. That is, when such an address is applied to a small-scale bus system, most of the addresses are not used, and there are many redundant parts, so that the clock signal (hereinafter C
In the data transmission supplied after the redundant address data transmission, the data transmission time is delayed by the time used for the redundant address data transmission.
There was a problem that wasted time increased.

【0008】逆に、固定長のアドレスを大規模なバスシ
ステムに利用した場合にはアドレスが不足する場合も生
ずる。
On the other hand, when fixed-length addresses are used in a large-scale bus system, the addresses may run short.

【0009】本発明は叙上の問題点を解消したシリアル
通信方式を提供するもので、その目的とするところは頻
繁にアクセスされるスレーブ装置に対しては短いアドレ
スを割り付け、使用頻度の少ないスレーブ装置に対して
は長めのアドレスを割り付ける様にアドレスを可変にし
て伝送する様に成したものである。
The present invention provides a serial communication system that solves the above problems. The object of the present invention is to allocate a short address to a slave device that is frequently accessed and to use a slave device that is rarely used. It is configured such that a long address is assigned to the device and the address is made variable and transmitted.

【0010】[0010]

【課題を解決するための手段】本発明のシリアル通信方
式はその例が図2に示されている様に、マイクロコンピ
ュータ1とシリアルバス2を介して接続された複数の周
辺部品15A,15B,15C‥‥15N間でデータの
授受を行なうシリアル通信方式に於いて、マイクロコン
ピュータ1から複数の周辺部品15A,15B,15C
‥‥15Nへシリアルバス2を介して伝送されるアドレ
ス情報のビット数を階層分離して可変にしたものであ
る。
As shown in FIG. 2, the serial communication system of the present invention has a plurality of peripheral parts 15A, 15B connected to the microcomputer 1 via a serial bus 2. 15C ... In the serial communication system for exchanging data between 15N, a plurality of peripheral parts 15A, 15B, 15C from the microcomputer 1
The number of bits of the address information transmitted to the 15N via the serial bus 2 is hierarchically separated and variable.

【0011】[0011]

【作用】本発明のシリアル通信方式はCPU1から複数
のスレーブ装置に対して割り付けられるアドレスを同一
システム内で頻繁にアクセスするスレーブ装置に対して
は短いアドレス番号を付与し、使用頻度の少ないスレー
ブ装置に対しては比較的長いアドレス番号を付与してデ
ータの伝送効率を向上させると共に、システムの規模に
応じてアドレス長を自由に可変出来る様に拡張したもの
である。
According to the serial communication system of the present invention, the slave device which is frequently used in the same system assigns a short address number to the slave device which frequently accesses the addresses assigned to a plurality of slave devices by the CPU 1. In contrast, a relatively long address number is given to improve the data transmission efficiency and the address length can be freely changed according to the scale of the system.

【0012】[0012]

【実施例】以下、本発明のシステム通信方式を図1乃至
図5で説明するに先だち全体的な構成を図2によって説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Before describing the system communication system of the present invention with reference to FIGS. 1 to 5, the overall configuration will be described with reference to FIG.

【0013】図2で、1はCPU、15A.15B,1
5C‥‥15Nは夫D/A、アナログ−デジタル変換
器(以下A/Dと記す)、並列入力を直列出力に変換す
るレジスタ(以下P/S・REGと記す)並に直列入力
を並列出力に変換するレジスタ(以下S/P・REGと
記す)であり、例えばA/D15B等では適当な図示し
ないインタフェース(I/F)を介してCPU1からの
データが供給される。
In FIG. 2, reference numeral 1 denotes a CPU, 15A. 15B, 1
5C ‥‥ 15N are each D / A, Analog - (hereinafter referred to as A / D) digital converters, parallel inputs (hereinafter referred to as P / S · REG) register for converting the serial output parallel serial input to parallel It is a register (hereinafter referred to as S / P.REG) for converting into an output, and data is supplied from the CPU 1 through an appropriate interface (I / F) (not shown) in the A / D 15B or the like.

【0014】尚、2は各D/A15A,A/D15B,
P/S・REG15C‥‥S/P・REG15N等のス
レーブ装置15にCPU1からアドレスデータ及びデー
タを供給するシリアルバスを示す。
2 is each D / A15A, A / D15B,
A serial bus for supplying address data and data from the CPU 1 to the slave device 15 such as P / S.REG15C ... S / P.REG15N.

【0015】図1は上述の1つのスレーブ装置15とC
PU1とのシステム構成図を示すものであり、スレーブ
装置15は例えばD/A15Aで構成され、スレーブ装
置15内にはNビットのシフトレジスタ16、同じくN
ビットのラッチ回路17及びNビットの比較回路18と
更にタイミング制御回路19を有する。
FIG. 1 shows one slave device 15 and C described above.
FIG. 3 is a system configuration diagram with PU1, in which a slave device 15 is composed of, for example, a D / A 15A, an N-bit shift register 16 in the slave device 15,
It has a bit latch circuit 17, an N-bit comparison circuit 18, and a timing control circuit 19.

【0016】CPU1からはクロック信号(CLK)、
マスデータ出力信号(Master Data Ou
t:以下MDOと記す)、スレーブデータ出力信号(S
lave Data Out:以下SDOと記す)並に
コントロール信号(以下、CTと記す)がシリアルバス
2を介してスレーブ装置15に供給される。
From the CPU 1, a clock signal (CLK),
Master data output signal (Master Data Ou
t: hereinafter referred to as MDO), slave data output signal (S
A control signal (hereinafter, referred to as CT) is supplied to the slave device 15 via the serial bus 2 as well as a slave data out (hereinafter, referred to as SDO).

【0017】即ち、CLKはシフトレジスタ16の各桁
にスイッチ20を介して並列的に供給される。更にタイ
ミング制御回路19とD/A15Aのクロック端子に供
給されている。
That is, CLK is supplied in parallel to each digit of the shift register 16 via the switch 20. Further, it is supplied to the timing control circuit 19 and the clock terminal of the D / A 15A.

【0018】又、MDOはシフトレジスタ16とD/A
15Aの入力端子SIに供給され、D/A15Aの出力
端子SOからはD/A15Aの出力がSDO用のライン
を通してCPU1に供給される。
The MDO is a shift register 16 and a D / A.
It is supplied to the input terminal SI of 15A and the output of the D / A 15A is supplied from the output terminal SO of the D / A 15A to the CPU 1 through the line for SDO.

【0019】CTはラッチ回路17及びタイミング回路
19にCT用ラインを介して供給される。又、スイッチ
20の動作片はCTによって開閉され、CTがハイ
(H)の時に「オン」され、ロー(L)の時「オフ」さ
れる。
The CT is supplied to the latch circuit 17 and the timing circuit 19 through the CT line. The operation piece of the switch 20 is opened and closed by CT, and is turned “on” when CT is high (H) and is “off” when CT is low (L).

【0020】シフトレジスタ16の各桁の出力はラッチ
回路17の対応した各桁に並列的に供給され、ラッチ回
路17の各桁の出力は比較回路18の対応した各桁に出
力される。比較回路18の各桁にはスレーブアドレスA
0 ,A1 ,A2 ‥‥AN-1 が与えられる。比較回路18
の比較出力はタイミング制御回路19に供給され、チッ
プイネーブル信号(Chip Enable:以下CE
と記す)及びロード信号(以下loadと記す)を出力
しD/A15Aの夫々の入力端子に供給してD/Aが行
なわれる。
The output of each digit of the shift register 16 is supplied in parallel to the corresponding digit of the latch circuit 17, and the output of each digit of the latch circuit 17 is output to the corresponding digit of the comparison circuit 18. The slave address A is assigned to each digit of the comparison circuit 18.
0 , A 1 , A 2 ... A N-1 are given. Comparison circuit 18
Is supplied to the timing control circuit 19 and a chip enable signal (Chip Enable: CE
And a load signal (hereinafter referred to as load) are output and supplied to the respective input terminals of the D / A 15A for D / A.

【0021】上述の構成に於ける動作を図3乃至図5を
参照して説明する。
The operation of the above configuration will be described with reference to FIGS.

【0022】上記構成でシフトレジスタ16、ラッチ回
路17並に比較回路18ではNビットのアドレスデータ
ビットを割り付けたが、このビット長(数)は複数の他
のスレーブ装置15、例えばA/D15B,P/S・R
EG15C‥‥S/P・REG15N等で異なり各スレ
ーブ装置で独自のアドレス長が割り当てられる。故に、
この様に割り付けられたアドレスのビット長に応じてシ
フトレジスタ16、ラッチ回路17並に比較回路18の
桁数(ビット数)を定める。
Although N bits of address data bits are assigned to the shift register 16 and the latch circuit 17 as well as the comparison circuit 18 in the above configuration, the bit length (number) is a plurality of other slave devices 15, for example, A / D 15B, P / SR
EG15C ... S / P.REG15N and the like differ, and each slave device is assigned a unique address length. Therefore,
The number of digits (the number of bits) of the shift register 16, the latch circuit 17 and the comparison circuit 18 are determined according to the bit length of the address thus assigned.

【0023】図1で図3に示す各フォーマットの信号を
CPU1がスレーブ装置15に送出すると、先ず、CT
がHの間はスイッチ20が「オン」されてCLKはシフ
トレジスタ16に並列的に供給されると共にMDOによ
ってCPU1から伝送されるアドレスA0 ,A1 ,A2
‥‥AN-1 がCLKに同期して順次シフトレジスタ16
の上位桁から下位桁に向かってストアされる。
When the CPU 1 sends the signals of each format shown in FIG. 3 to the slave device 15 in FIG.
While H is H, the switch 20 is turned on, CLK is supplied to the shift register 16 in parallel, and the addresses A 0 , A 1 , A 2 transmitted from the CPU 1 by the MDO are transmitted.
... AN -1 sequentially shifts in synchronization with CLK 16
Stored from higher digit to lower digit.

【0024】次にCTが「L」になると、スイッチ20
は「オフ」されシフトレジスタ17にストアされたNビ
ットのアドレスデータはラッチ回路17に移され、更に
比較回路18にシフトされて、この比較回路18にシフ
トされたアドレスデータと、比較回路18に供給された
基準のスレーブアドレスデータA0 ,A1 ,A2 ‥‥A
N-1 との比較が成される。
Next, when CT becomes "L", the switch 20
Is turned off and the N-bit address data stored in the shift register 17 is transferred to the latch circuit 17, further shifted to the comparison circuit 18, and the address data shifted to the comparison circuit 18 and the comparison circuit 18 are transferred. The supplied reference slave address data A 0 , A 1 , A 2 ... A
A comparison with N-1 is made.

【0025】比較回路18での比較出力が等しくなると
比較出力18Aがタイミング回路19に供給され、CL
K及びCTに基づいてD/A15Aを制御する制御信号
を発生する。即ち反転したCE及びLoadをD/A1
5Aに出力し、SOからSDC用のラインを介し、スレ
ーブデータをSDOとしてCPU1に返す。尚、Loa
dはA/D15B等を考えた時A/D内のシフトレジス
タ内への読み取り時にデータを取り込み、書き込み時に
データが確定してからパルスを発生する様に成される。
When the comparison outputs of the comparison circuit 18 become equal, the comparison output 18A is supplied to the timing circuit 19 and CL
A control signal for controlling the D / A 15A is generated based on K and CT. That is, the inverted CE and Load are set to
5A and outputs the slave data as SDO from the SO to the CPU 1 via the SDC line. In addition, Loa
In consideration of the A / D 15B and the like, d is configured to take in data when reading into the shift register in the A / D and to generate a pulse after the data is fixed when writing.

【0026】上述のアドレスデータ用のシフトレジスタ
16、ラッチ回路17並に比較回路18の動作をより詳
細に説明する。今スレーブ装置15内の各IC部品であ
るD/A15A,A/D15B,P/S・REG15C
‥‥S/P・REG15N等を図4に示す様にスレーブ
1、スレーブ2、スレーブ3‥‥スレーブ8として、こ
れらスレーブ1乃至スレーブ8がCPU1にシリアルバ
ス2を介して8個接続されているとする。
The operation of the shift register 16 for the address data, the latch circuit 17, and the comparator circuit 18 will be described in more detail. D / A15A, A / D15B, P / S REG15C which are IC parts in the slave device 15 now.
Eight S / P / REG15N etc. are connected to the CPU1 via the serial bus 2 as the slave 1, the slave 2, the slave 3, and the slave 8 as shown in FIG. And

【0027】上述のスレーブ装置15に対し、各スレー
ブ1、スレーブ2‥‥スレーブ8を動作させるためのア
ドレスを4ビットA0 ,A1 ,A2 ,A3 で考える。
Addresses for operating the slave 1, slave 2, ..., Slave 8 for the above-mentioned slave device 15 are considered with 4 bits A 0 , A 1 , A 2 , and A 3 .

【0028】図4の様にスレーブ1及びスレーブ8では
「00」「11」の2ビットのシフトレジスタ16を選
択する。
As shown in FIG. 4, in the slave 1 and the slave 8, the 2-bit shift register 16 of "00" and "11" is selected.

【0029】又、スレーブ6とスレーブ7では「10
0」と「101」の3ビットのシフトレジスタ16を選
択する。
Further, in the slave 6 and the slave 7, "10
The 3-bit shift register 16 of "0" and "101" is selected.

【0030】同様にスレーブ2とスレーブ3、スレーブ
4並にスレーブ5では「0100」「0101」、「0
110」「0111」の4ビットのシフトレジスタ16
を選択する。
Similarly, in slave 2, slave 3, slave 4, and slave 5, "0100", "0101", "0"
4-bit shift register 16 of "110" and "0111"
Select.

【0031】そして、CPU1に接続される複数のスレ
ーブ1乃至スレーブ8の使用頻度に応じて使用頻度の多
いスレーブ装置15ほど短いアドレスビットが選択され
る。即ち、スレーブ1及びスレーブ8の様に2ビットが
選択されることになる。以下使用頻度に応じて、スレー
ブ2乃至スレーブ7が選択されたものとする。
Then, depending on the frequency of use of the plurality of slaves 1 to 8 connected to the CPU 1, the slave device 15 having a higher frequency of use selects shorter address bits. That is, 2 bits are selected like slave 1 and slave 8. Hereinafter, it is assumed that the slaves 2 to 7 are selected according to the frequency of use.

【0032】上述の図3の様にCTが「H」の時に例え
ばアドレスデータA0 〜A3 がシフトレジスタ16に取
り込まれ、スレーブ1及び8は3ビット以上のアドレス
データが入力されても図5Aに示す様にA0 及びA1
アドレスデータしかみない。又、一番長いビット数のシ
フトレジスタ16を有するスレーブ2乃至スレーブ5は
3ビット以下の短いアドレスデータが入力された時は図
5Bに示すように、A 0 からビット数分だけをシフトレ
ジスタ16に確保する。
For example, when CT is "H" as shown in FIG.
Address data A0~ A3To the shift register 16
Slave 1 and 8 have addresses of 3 bits or more
Even if data is input, as shown in FIG.0And A1of
I see only address data. Also, the longest bit number
The slaves 2 to 5 having the shift register 16 are
Figure when short address data of 3 bits or less is input
As shown in 5B, A 0Shifts only the number of bits from
Secure in Dista 16.

【0033】上述の様に最も短い2ビットのシフトレジ
スタ16を持ったスレーブ1及びスレーブ8では例えば
0 ,A1 が他のスレーブと重なると複数のスレーブ装
置が同時に動作状態と成る可能性があるので、図4に示
すように、A0 ,A1 が「00」「11」の時はA2
びA3 が来ない様に定め、A0 ,A1 が「10」の時は
3 の「0」又は「1」が来ると定め、A0 1 が「0
1」の時はA2 ,A3 が「00」「01」「10」「1
1」を取り得ると定める。
In the slave 1 and the slave 8 having the shortest 2-bit shift register 16 as described above, for example, when A 0 and A 1 overlap with other slaves, there is a possibility that a plurality of slave devices will be in operation simultaneously. Therefore, as shown in FIG. 4, when A 0 and A 1 are “00” and “11”, A 2 and A 3 are determined not to come, and when A 0 and A 1 are “10”, A 2 and A 3 are It is defined that "0" or "1" of 3 comes, and A 0 A 1 is "0".
When “1”, A 2 and A 3 are “00” “01” “10” “1”
1 "can be taken.

【0034】即ち、定められた所定のNビットのアドレ
ス長を上位を最小のmビット(2ビット)以上に選択し
て下位をビットを振り分ける様に階層構造にすればよ
い。例えばN=8ビットであれば上記4ビットを「00
00」「1111」を最短アドレスデータと定め下位の
4ビットを付加せず、上記4ビットが「0001」の時
は下桁を1ビット付加して5ビットのアドレスデータと
する様に各スレーブのシフトレジスタ16のビット数を
定めて置けば複数のスレーブ1乃至8が同時に動作する
様な不都合は生じないことになる。
That is, the predetermined N-bit address length may be hierarchically selected so that the upper bits are selected to be the minimum m bits (2 bits) or more and the lower bits are allocated. For example, if N = 8 bits, the above 4 bits are set to "00".
00 "and" 1111 "are defined as the shortest address data, and the lower 4 bits are not added. When the above 4 bits are" 0001 ", 1 bit of the lower digit is added to make 5 bits of the address data of each slave. If the number of bits of the shift register 16 is determined and set, the inconvenience that a plurality of slaves 1 to 8 operate simultaneously does not occur.

【0035】上述の様に夫々のシフトレジスタ16でス
トアされ、ラッチ回路17でラッチされ、更に比較回路
18でアドレスデータが比較され、一致した比較信号1
8Aによってタイミング制御回路19はD/A15A等
のスレーブ1乃至スレーブ8を動作させる制御信号(図
3ではCE信号及びLOAD信号)を出力しスレーブ装
置15を動作させ、引続いてD/Aの授受が行なわれる
様になる。
As described above, each shift register 16 stores the data, the latch circuit 17 latches it, and the comparison circuit 18 compares the address data.
8A causes the timing control circuit 19 to output a control signal (CE signal and LOAD signal in FIG. 3) for operating the slaves 1 to 8 such as the D / A 15A to operate the slave device 15, and subsequently to transfer the D / A. Will be performed.

【0036】上述の実施例ではスレーブ装置15とし
て、複数の独立したD/A15A,A/D15B,P/
S・REG15C,‥‥S/P・REG15N等を可変
長アドレスを選択して動作させる場合を説明したが、図
6の様に構成させた場合も可変長アドレス方式として機
能させることが出来る。
In the above-described embodiment, the slave device 15 has a plurality of independent D / A 15A, A / D 15B, P /
The case where the S.REG15C, ..., S / P.REG15N, etc. are operated by selecting a variable length address has been described, but the configuration shown in FIG. 6 can also function as a variable length address system.

【0037】即ち、図6でスレーブ装置21A‥‥21
NはI/F16Aを選択動作させる機能デバイスセレク
トアドレスと、これらI/F16A‥‥16Nに階層構
造で接続されている各種部品、例えばD/A15A1
‥15An1、A/D15B1 ‥‥15An2、P/S・R
EG15C1 ‥‥15Cn3、S/P・REG15N1
‥15NnN等を選択動作させるデバイスのデバイスアド
レスを異なるアドレス長に選択する様になす。
That is, in FIG. 6, the slave devices 21A ... 21
N is a functional device select address for selectively operating the I / F 16A, and various parts connected to these I / F 16A ... 16N in a hierarchical structure, such as D / A 15A 1.
15A n1 , A / D 15B 1, 15A n2 , P / SR
EG15C 1・ ・ ・ 15C n3 , S / P REG15N 1・ ・ ・
... 15N nN etc. are selected so that the device address of the device to be operated is selected to a different address length.

【0038】即ち、図6の様に例えばスレーブ装置21
Aは1個のI/F20AとD/A15A1 乃至15An
から構成される。
That is, as shown in FIG. 6, for example, the slave device 21
A is one I / F 20A and D / A 15A 1 to 15A n
Composed of.

【0039】CPU1はスレーブ装置21Aを選択する
ために、先ず、8ビットのアドレスをシリアルバス2に
送出する。
To select the slave device 21A, the CPU 1 first sends an 8-bit address to the serial bus 2.

【0040】次にD/A15A1 乃至15An1中の一つ
を選択するために8ビットのアドレスをシリアルバス2
に送出する。
Next, an 8-bit address is input to the serial bus 2 to select one of the D / A's 15A 1 to 15A n1.
To send to.

【0041】故に、通常は8+8=16ビットのアドレ
スでD/A15A1 乃至15An1の1つのデバイスが選
択される。
[0041] Thus, usually one device at 8 + 8 = 16 bits of the address D / A15A 1 to 15A n1 is selected.

【0042】今、上述した様にI/F16Aが8ビット
で選択された時は他のI/F20B乃至20Nが選択さ
れるまではI/F20Aが有効であるからI/F20A
を8ビットのアドレスで選択した後はデバイスであるD
/A15A1 乃至15An1の1つを選択する8ビットの
アドレスだけを送出すればよい。この場合も8ビットの
アドレスだけでD/A15A1 〜15An の中の1つを
選択出来るので16ビットのアドレスを送出するのに比
べて時間短縮が行なえることになる。
As described above, when the I / F 16A is selected by 8 bits, the I / F 20A is valid until the other I / F 20B to 20N are selected.
D is the device after selecting
Only the 8-bit address that selects one of / A15A 1 to 15A n1 needs to be transmitted. In this case the time shorter than simply to deliver 16-bit address since one can be selected in the D / A15A 1 ~15A n 8-bit address will be performed.

【0043】以下、スレーブ装置21B乃至21Nにつ
いても上述と同様の選択が行なえることは明らかであ
る。
It is apparent that the same selection as described above can be made for the slave devices 21B to 21N.

【0044】依って、本発明の構成の場合は頻繁にアク
セスされるスレーブ装置ほど短いアドレスが割り付けら
れるのでデバイスの伝送効率は大幅に向上し、又通信シ
ステムの大きさに対応してアドレス長を自由に変えられ
るので拡張性に富んだシリアル通信方式が提供可能とな
る。
Therefore, in the case of the configuration of the present invention, the shorter the address is assigned to the slave device that is frequently accessed, the transmission efficiency of the device is significantly improved, and the address length is increased according to the size of the communication system. Since it can be changed freely, it is possible to provide a highly scalable serial communication system.

【0045】[0045]

【発明の効果】本発明によれば頻繁にアクセスされるス
レーブ装置には短いアドレスが割り付けられ、使用頻度
の少ないスレーブ装置には比較的長いアドレスが割り付
けられるので、アドレスデータの次に伝送するデータの
伝送待時間は冗長なアドレスデータを持つ時間が短縮さ
れ、データの伝送効率が高められる。更に構築されるシ
ステムに応じてアドレスデータ長を変えられるのでシス
テム構築時の拡張性を増大させるシリアル通信方式が得
られる。
According to the present invention, a slave device that is frequently accessed is assigned a short address, and a slave device that is used less frequently is assigned a relatively long address. The transmission waiting time is shortened with the redundant address data, and the data transmission efficiency is improved. Further, since the address data length can be changed according to the system to be constructed, a serial communication system that increases the expandability when constructing the system can be obtained.

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

【図1】本発明のシリアル通信方式の一実施例を示すシ
ステム構成図である。
FIG. 1 is a system configuration diagram showing an embodiment of a serial communication system of the present invention.

【図2】本発明のシリアル通信方式の一実施例を示す全
体的系統図である。
FIG. 2 is an overall system diagram showing an embodiment of a serial communication system of the present invention.

【図3】本発明のシリアル通信方式の伝送フォーマット
と制御信号波形図である。
FIG. 3 is a transmission format and control signal waveform diagram of the serial communication system of the present invention.

【図4】本発明のシリアル通信方式に用いるアドレス割
り付け説明図である。
FIG. 4 is an explanatory diagram of address allocation used in the serial communication system of the present invention.

【図5】本発明のシリアル通信方式に用いるシフトレジ
スタとアドレス長との関係説明図である。
FIG. 5 is an explanatory diagram of a relationship between a shift register used in the serial communication system of the present invention and an address length.

【図6】本発明のシリアル通信方式の他の実施例を示す
構成図である。
FIG. 6 is a configuration diagram showing another embodiment of the serial communication system of the present invention.

【図7】従来のシリアル通信方式の一つであり同期バス
方式の構成図である。
FIG. 7 is a configuration diagram of a synchronous bus system, which is one of conventional serial communication systems.

【図8】従来のシリアル通信方式の一つであるMバス方
式の構成図である。
FIG. 8 is a configuration diagram of an M bus system, which is one of conventional serial communication systems.

【図9】従来のシリアル通信方式の一つであるI2 C及
びIMバス方式の構成図である。
FIG. 9 is a configuration diagram of an I 2 C and IM bus system, which is one of conventional serial communication systems.

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

1 CPU 2 アドレスバス 15 スレーブ装置 16 シフトレジスタ 17 ラッチ回路 18 比較回路 19 タイミング制御回路 1 CPU 2 Address Bus 15 Slave Device 16 Shift Register 17 Latch Circuit 18 Comparison Circuit 19 Timing Control Circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 マイクロコンピュータとシリアルバスを
介して接続された複数の周辺部品間でデータの授受を行
なうシリアル通信方式に於いて、 上記マイクロコンピュータから上記複数の周辺部品へ上
記シリアルバスを介して伝送されるアドレス情報のビッ
ト数を階層分離して可変にしたことを特徴とするシリア
ル通信方式。
1. A serial communication system for exchanging data between a plurality of peripheral parts connected to a microcomputer via a serial bus, wherein the microcomputer communicates with the plurality of peripheral parts via the serial bus. A serial communication method characterized in that the number of bits of transmitted address information is divided into layers and made variable.
JP2396292A 1991-11-29 1992-02-10 Serial communication system Pending JPH05204848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2396292A JPH05204848A (en) 1991-11-29 1992-02-10 Serial communication system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP31680591 1991-11-29
JP3-316805 1991-11-29
JP2396292A JPH05204848A (en) 1991-11-29 1992-02-10 Serial communication system

Publications (1)

Publication Number Publication Date
JPH05204848A true JPH05204848A (en) 1993-08-13

Family

ID=26361405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2396292A Pending JPH05204848A (en) 1991-11-29 1992-02-10 Serial communication system

Country Status (1)

Country Link
JP (1) JPH05204848A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100440975B1 (en) * 2002-08-19 2004-07-21 삼성전자주식회사 Method and apparatus for transmission of serial data
JP2005025767A (en) * 2003-07-03 2005-01-27 Thomson Licensing Sa Method and data structure for random access via bus connection
US7535901B2 (en) 2004-01-22 2009-05-19 Seiko Epson Corporation Data transfer control device and electronic instrument
JP2014114353A (en) * 2012-12-07 2014-06-26 Kao Corp Flavor granule

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100440975B1 (en) * 2002-08-19 2004-07-21 삼성전자주식회사 Method and apparatus for transmission of serial data
JP2005025767A (en) * 2003-07-03 2005-01-27 Thomson Licensing Sa Method and data structure for random access via bus connection
US7302509B2 (en) * 2003-07-03 2007-11-27 Thomson Licensing Method and data structure for random access via a bus connection
CN100440187C (en) * 2003-07-03 2008-12-03 汤姆森特许公司 Method and data structure for random access via a bus connection
JP4657637B2 (en) * 2003-07-03 2011-03-23 トムソン ライセンシング Method and data structure for random access over a bus connection
US7535901B2 (en) 2004-01-22 2009-05-19 Seiko Epson Corporation Data transfer control device and electronic instrument
JP2014114353A (en) * 2012-12-07 2014-06-26 Kao Corp Flavor granule

Similar Documents

Publication Publication Date Title
US5379382A (en) Uni and bi-directional signal transfer modes in peripheral controller and method of operating same
US5506973A (en) Bus system for use with information processing apparatus
US5416909A (en) Input/output controller circuit using a single transceiver to serve multiple input/output ports and method therefor
US6606678B1 (en) Computer system
US6006302A (en) Multiple bus system using a data transfer unit
US4065810A (en) Data transfer system
CN106462516A (en) Dynamically adjustable multi-line bus shared by multi-protocol devices
CN102339267A (en) I2C address translation
JPS6135587B2 (en)
JPH05204848A (en) Serial communication system
JPH04362759A (en) Central processing unit
Deepika et al. Design of dual master I2C bus controller and interfacing it with DC motor
WO2005083577A2 (en) Integrated circuit with two different bus control units
TWI261167B (en) Method and related apparatus for realizing two-port synchronous memory device
US7136956B2 (en) Semiconductor device
KR100487218B1 (en) Apparatus and method for interfacing an on-chip bus
JPH11288330A (en) Integrated circuit with setting function
JP2001117867A (en) Data transfer circuit
US20220188254A1 (en) Methods for identifying target slave address for serial communication interface
JPH11175404A (en) Address controller
JP2743780B2 (en) Distributed processing equipment
JPS5971526A (en) Microcomputer system
JPH056335A (en) Inter-device interface system
JP3698483B2 (en) Serial I / O
JP2969879B2 (en) Address control circuit