JP2650256B2 - Serial data transmission method - Google Patents

Serial data transmission method

Info

Publication number
JP2650256B2
JP2650256B2 JP62117542A JP11754287A JP2650256B2 JP 2650256 B2 JP2650256 B2 JP 2650256B2 JP 62117542 A JP62117542 A JP 62117542A JP 11754287 A JP11754287 A JP 11754287A JP 2650256 B2 JP2650256 B2 JP 2650256B2
Authority
JP
Japan
Prior art keywords
serial
data
bit
data transmission
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62117542A
Other languages
Japanese (ja)
Other versions
JPS63281545A (en
Inventor
正人 田中
吉生 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP62117542A priority Critical patent/JP2650256B2/en
Publication of JPS63281545A publication Critical patent/JPS63281545A/en
Application granted granted Critical
Publication of JP2650256B2 publication Critical patent/JP2650256B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 A.産業上の利用分野 本発明は、シリアル・データ伝送方法に関し、特に、
データ処理用プロセッサいわゆるCPUと各種デバイスと
の間のデータ伝送を効率良く行うためのシリアル・デー
タ伝送方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION A. Industrial Field of the Invention The present invention relates to a serial data transmission method,
The present invention relates to a serial data transmission method for efficiently transmitting data between a data processing processor, a so-called CPU, and various devices.

B.発明の概要 本発明は、いわゆるCPUからのデータをシリアル・イ
ンターフェース回路を介して複数のデバイスにシリアル
伝送する際に、該CPUからの書込/読出のコントロール
信号に応じて書込か読出かを表すステータス・ビットを
出力し、この書込/読出ステータス・ビットを伝送すべ
きデータに付加し、シリアル・データ列の先頭を表すス
タート・ビットと共にシリアル伝送することにより、CP
Uと複数のデバイスとの間のデータ伝送が、メモリに対
する通常の書込/読出と同様な動作で済み、簡単な構造
で高速のシリアル・データ伝送を実現するものである。
B. Summary of the Invention The present invention relates to a method for serially transmitting data from a so-called CPU to a plurality of devices via a serial interface circuit, according to a write / read control signal from the CPU. By outputting a status bit indicating whether or not the write / read status bit is added to the data to be transmitted and serially transmitting it together with a start bit indicating the beginning of the serial data string,
Data transmission between U and a plurality of devices can be performed in the same manner as normal writing / reading to / from a memory, and realizes high-speed serial data transmission with a simple structure.

C.従来の技術 近年において、いわゆるマイクロ・プロセッサが種々
の用途に用いられるようになっており、種々のデバイス
との間でデータ伝送することが必要とされている。この
マイクロ・プロセッサと各種デバイスとの間でのデータ
の伝送方法には、大別してパラレル(並列)伝送と、シ
リアル(直列)伝送とがある。これらのうち、シリアル
伝送は、配線が少なくて済む等の利点を有しており、例
えば、各種電子機器のシステム・コントロール等におい
て、複数の被制御デバイスに対してのデータ伝送等に用
いられている。
C. Prior Art In recent years, so-called microprocessors have been used for various applications, and there is a need to transmit data to and from various devices. Data transmission methods between the microprocessor and various devices are roughly classified into parallel (parallel) transmission and serial (serial) transmission. Among these, serial transmission has advantages such as requiring less wiring. For example, in serial control of various electronic devices, serial transmission is used for data transmission to a plurality of controlled devices. I have.

ここで第3図は、CPUと各種デバイスとの間でシリア
ル・データ伝送を行う場合の従来例を説明するためのブ
ロック回路図である。この第3図において、CPU51には
例えば8ビット・マイクロ・プロセッサ等が用いられて
おり、このCPU51のデータ・バスDB、アドレス・バスAB
およびコントロール・バスCBには、いわゆるROM(リー
ド・オンリ・メモリ)52、RAM(ランダム・アクセス・
メモリ)53、PIO(パラレル・インターフェース)回路5
4及びSIO(シリアル・インターフェース)回路55が接続
されている。このSIO回路55のデータ入出力端子には、
複数個のシリアル被制御デバイス、例えばAD/DA変換器6
1、DSP(ディジタル信号プロセッサ)62、‥‥等が共通
接続されている。これらの各種デバイス61、62、‥‥を
択一的に指定するために、例えばアドレス・バスABおよ
びコントロール・バスCBに接続されたアドレス・デコー
ダ56が用いられている。これは、いわゆるメモリ・マッ
プド・IOの構成であり、CPU51からは通常のメモリ・ア
クセスと同様な形態で各IOデバイスを指定することがで
き、コマンドの統一化あるいは簡略化が図れソフトウェ
ア的に有利である。
FIG. 3 is a block circuit diagram for explaining a conventional example in which serial data transmission is performed between a CPU and various devices. In FIG. 3, for example, an 8-bit microprocessor is used for the CPU 51, and the data bus DB and the address bus AB of the CPU 51 are used.
And the control bus CB include a so-called ROM (read only memory) 52 and a RAM (random access memory).
Memory) 53, PIO (parallel interface) circuit 5
4 and an SIO (serial interface) circuit 55 are connected. The data input / output terminals of this SIO circuit 55
Multiple serial controlled devices, such as AD / DA converters6
1, DSP (Digital Signal Processor) 62,... Are commonly connected. In order to alternatively designate these various devices 61, 62,..., For example, an address decoder 56 connected to an address bus AB and a control bus CB is used. This is a so-called memory-mapped IO configuration, in which each CPU can be specified from the CPU 51 in the same form as ordinary memory access, and commands can be unified or simplified, which is advantageous in terms of software. It is.

D.発明が解決しようとする問題点 しかしながら、上記アドレス・デコーダ56から各デバ
イス61、62、‥‥に対してデバイス選択のための配線を
それぞれ施す必要があり、又は上記SIOを上記シリアル
被制御デバイスの個数分だけ設ける必要があり、配線が
複雑化したり構成が煩雑化する。また、現実にシリアル
伝送を行う際の動作手順としては、デバイス選択のため
のステップと、データをSIO回路55を介して伝送するた
めのステップとが少なくとも必要であるのみならず、通
常の周辺IC等のSIO回路55を介してのデータ伝送は、い
わゆるハンドシェイク処理等を含むため一般に低速であ
り、高速のデータ伝送が行えない。
D. Problems to be Solved by the Invention However, it is necessary to provide wiring for device selection from the address decoder 56 to each of the devices 61, 62,. It is necessary to provide as many as the number of devices, which complicates wiring and complicates the configuration. In addition, as an operation procedure for actually performing serial transmission, not only a step for selecting a device and a step for transmitting data via the SIO circuit 55 are required at least, but also an ordinary peripheral IC Transmission of data via the SIO circuit 55 is generally slow because it involves so-called handshake processing and the like, and high-speed data transmission cannot be performed.

本発明は、このような実情に鑑みてなされたものであ
り、簡単な構成で高速のシリアル・データ伝送が可能な
シリアル・データ伝送方法の提供を目的とする。
The present invention has been made in view of such circumstances, and has as its object to provide a serial data transmission method capable of high-speed serial data transmission with a simple configuration.

E.問題点を解決するための手段 本発明に係るシリアル・データ伝送方法は、上述の問
題点を解決するために、データ処理用プロセッサからの
データをシリアル・インターフェース回路を介して被制
御デバイスに伝送するシリアル・データ伝送方法におい
て、上記シリアル・インターフェース回路は、上記プロ
セッサからのデータを被制御デバイスに書込/読出する
際にプロセッサの書込/読出のコントロール信号に応じ
た書込状態/読出状態を示すステータス・ビットを発生
し、このステータス・ビットとシリアル・データの先頭
を示すスタート・ビットとを上記伝送すべき所定ビット
のデータに付加し、上記スタート・ビット、データ・ビ
ット及びステータス・ビットをシリアル伝送することを
特徴としている。
E. Means for Solving the Problems In order to solve the above problems, the serial data transmission method according to the present invention provides data from a data processing processor to a controlled device via a serial interface circuit. In the serial data transmission method for transmitting, when writing / reading data from the processor to / from a controlled device, the serial interface circuit includes a write state / read corresponding to a write / read control signal of the processor. A status bit indicating a state is generated, and the status bit and a start bit indicating the beginning of serial data are added to the data of the predetermined bit to be transmitted, and the start bit, the data bit, and the status bit are added. It is characterized by serial transmission of bits.

F.作用 シリアル伝送されるデータ列内部に、プロセッサによ
るメモリ・アクセスと同様な書込/読出制御に応じて自
動的に発生される書込/読出のステータス・ビットを設
けているため、コマンド等による書込/読出を指示する
ためだけの制御ステップを省略でき、高速化が可能とな
る。
F. Function Since the serial data is provided with a write / read status bit which is automatically generated in response to a write / read control similar to the memory access by the processor, a command, etc. Therefore, a control step only for instructing writing / reading can be omitted, and the speed can be increased.

G.実施例 第1図は、本発明に係るシリアル・データ伝送方法の
一実施例に用いられる構成を概略的に示すブロック回路
図である。
G. Embodiment FIG. 1 is a block circuit diagram schematically showing a configuration used in an embodiment of the serial data transmission method according to the present invention.

この第1図において、例えばいわゆる8ビット・マイ
クロ・プロセッサより成るCPU10には、書込制御信号W
R、読出制御信号RD、メモリ・アクセス要求信号MREQ、1
6ビット・アドレスA0〜A15の各出力端子、及び8ビット
・データD0〜D7の各入出力端子が少なくとも設けられて
いる。このCPU10からのデータ(アドレス・データも含
む)をシリアル・インターフェース回路20を介して複数
のデバイス11、12、‥‥にシリアル伝送する。
In FIG. 1, for example, a CPU 10 comprising a so-called 8-bit microprocessor is provided with a write control signal W.
R, read control signal RD, memory access request signal MREQ, 1
At least output terminals for 6-bit addresses A0 to A15 and input / output terminals for 8-bit data D0 to D7 are provided. The data (including address data) from the CPU 10 is serially transmitted to a plurality of devices 11, 12,... Via a serial interface circuit 20.

シリアル・インターフェース回路20は、主として上記
CPU10からのパラレル(並列)入力データをシリアル
(直列)データに変換するためのシフト・レジスタ21
と、上記複数のデバイス11、12、‥‥に対して割り当て
られたアドレスを検出するためのアドレス・デコーダ22
と、該シリアル・インターフェース回路20に対するデー
タ伝送の方向を切換制御するための3ステート・バッフ
ァ23と、シリアル伝送クロックを出力すると共に上記3
ステート・バッファ23及びシフト・レジスタ21の動作を
制御するシリアル制御回路24とを少なくとも有してい
る。このようなシリアル・インターフェース回路20は、
上記CPU10からの16ビット・アドレスA0〜A15及び8ビッ
ト・データD0〜D7をシフト・レジスタ21に並列入力し、
読出/書込のステータス・ビットR/W及びシリアル伝送
のためのスタート・ビットSTを付加して、第2図のよう
なフォーマットの下にシリアル伝送する。
The serial interface circuit 20 is mainly
Shift register 21 for converting parallel input data from CPU 10 into serial data
And an address decoder 22 for detecting addresses assigned to the plurality of devices 11, 12,.
A three-state buffer 23 for controlling the direction of data transmission to the serial interface circuit 20; a serial transmission clock;
At least a serial control circuit 24 for controlling the operation of the state buffer 23 and the shift register 21 is provided. Such a serial interface circuit 20
16-bit addresses A0 to A15 and 8-bit data D0 to D7 from the CPU 10 are input in parallel to the shift register 21,
A read / write status bit R / W and a start bit ST for serial transmission are added, and serial transmission is performed in a format as shown in FIG.

すなわち、第2図に示されたシリアル伝送データ・フ
ォーマットにおいて、シリアル・データ列の先頭から順
に、スタート・ビットST、読出/書込ステータス・ビッ
トR/W、16ビット・アドレスA0〜A15が配列され、さらに
読出/書込の動作切換マージン・ビットMGを介して上記
8ビット・データD0〜D7が配列されている。このシリア
ル・データ列は、上記シリアル伝送クロックに応じて、
上記スタート・ビットSTから順にシリアル伝送される。
That is, in the serial transmission data format shown in FIG. 2, a start bit ST, a read / write status bit R / W, and a 16-bit address A0 to A15 are arranged in order from the beginning of the serial data string. The 8-bit data D0 to D7 are arranged via a read / write operation switching margin bit MG. This serial data string is, according to the serial transmission clock,
Serial transmission is performed sequentially from the start bit ST.

ここで、第2図のフォーマット中の上記読出/書込ス
テータス・ビットR/Wは、CPU10からの書込制御信号WR
と、メモリ・リクエスト信号MREQとの論理積をアンド回
路25でとることにより得ている。また上記スタート・ビ
ットSTは、端子26からシフト・レジスタ21に定常的に供
給されている。アドレス・デコーダ22には、CPU10から
の上記書込制御信号WR及びメモリ・リクエスト信号MREQ
の他に、読出制御信号RD及び16ビット・アドレスA0〜A1
5が供給されており、これらの信号に基づいて、上記各
デバイス11、12、‥‥に割り当てられたアドレスに対し
てアクセス要求(メモリ・リクエスト)がなされたと
き、所定のシリアル伝送開始信号あるいはトリガ信号を
シリアル制御回路24に送る。シリアル制御回路24には、
例えばCPU10の基準動作クロック等に同期したマスタ・
クロックが端子27を介して供給されている。シリアル制
御回路24からは、上記トリガ信号の入力に応じてこのマ
スタ・クロックがシリアル伝送クロックとして所定パル
ス数だけ出力され、シフト、レジスタ21に供給されると
ともに、必要に応じてクロック供給ラインlCKを介して
上記各デバイス11、12、‥‥のクロック入力端子にそれ
ぞれ供給されている。このシリアル伝送クロックは、省
略できる。シフト・レジスタ21からのシリアル伝送デー
タは、3ステート・バッファ23を介してシリアル伝送ラ
インlSTに送出され、上記各デバイス11、12、‥‥のシ
リアル・データ入力端子に送られる。この第1図の例で
は、双方向のシリアル伝送ラインlSTを想定しており、
各デバイス11、12、‥‥からのシリアル・データも伝送
ラインlSTを介してシリアル・インターフェース回路20
に供給されるようにしているが、データ送信用とデータ
受信用にそれぞれ別個のシリアル伝送ラインを設けるこ
とにしてもよい。
Here, the read / write status bit R / W in the format of FIG.
The AND circuit 25 obtains the logical product of the data and the memory request signal MREQ. The start bit ST is constantly supplied from the terminal 26 to the shift register 21. The write control signal WR and the memory request signal MREQ from the CPU 10 are supplied to the address decoder 22.
In addition, the read control signal RD and the 16-bit address A0 to A1
5 are supplied. When an access request (memory request) is made to an address assigned to each of the devices 11, 12,... Based on these signals, a predetermined serial transmission start signal or A trigger signal is sent to the serial control circuit 24. In the serial control circuit 24,
For example, a master synchronized with the reference operation clock of CPU10, etc.
The clock is supplied via terminal 27. From the serial control circuit 24, this master clock is output as a serial transmission clock by a predetermined number of pulses in response to the input of the trigger signal, and is supplied to the shift and register 21, and if necessary, a clock supply line l CK Are supplied to the clock input terminals of the devices 11, 12,. This serial transmission clock can be omitted. Serial transmission data from the shift register 21, 3 through the state buffer 23 is sent to the serial transmission line l ST, each device 11 and 12 is sent to the serial data input pin of ‥‥. In the example of FIG. 1, a bidirectional serial transmission line l ST is assumed,
The serial data from each of the devices 11, 12, and も is also transmitted via the transmission line l ST to the serial interface circuit 20.
However, separate serial transmission lines may be provided for data transmission and data reception, respectively.

以上のような伝送方法によれば、CPU10側からは、通
常のメモリ・アクセス時と同様に、アドレスを指定して
データの書き込みあるいは読み出し動作を行うのみで、
シリアル・インターフェース回路20を介しての各デバイ
スとのシリアル・データ伝送が実現でき、ソフトウェア
の簡略化及びデータ伝送の高速化が図れる。
According to the transmission method as described above, the CPU 10 only performs an operation of writing or reading data by designating an address in the same manner as during normal memory access.
Serial data transmission with each device via the serial interface circuit 20 can be realized, so that software can be simplified and data transmission can be speeded up.

なお本発明は、上述の実施例のみに限定されるもので
はなく、例えば、上記CPUのビット数は8ビットに限定
されず、例えば4ビットCPU、16ビットCPU等を用いても
よい。この他、本発明の要旨を逸脱しない範囲で種々の
変更が可能である。
The present invention is not limited to the above-described embodiment. For example, the number of bits of the CPU is not limited to 8 bits, and for example, a 4-bit CPU, a 16-bit CPU, or the like may be used. In addition, various changes can be made without departing from the spirit of the present invention.

H.発明の効果 本発明に係るシリアル・データ伝送方法によれば、CP
U(プロセッサ)からの読出制御信号や書込制御信号に
基づく読出/書込ステータス・ビットをシリアル伝送デ
ータ列内に含めて伝送しているため、読み出しや書き込
みコマンドを個別に送る必要がなくなり、データ伝送効
率の向上が図れる。また、通常のメモリ・アクセス時と
同様なアドレスを指定してのデータの書き込みあるいは
読み出し動作により、シリアル・インターフェースを介
しての各デバイスとのシリアル・データ伝送が実現でき
るため、ソフトウェアを大幅に簡略化できる。
H. Effects of the Invention According to the serial data transmission method of the present invention, the CP
Since the read / write status bits based on the read control signal and the write control signal from the U (processor) are included in the serial transmission data string and transmitted, there is no need to individually send a read or write command. Data transmission efficiency can be improved. Also, by writing or reading data by specifying the same address as during normal memory access, serial data transmission with each device via the serial interface can be realized, greatly simplifying software. Can be

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

第1図は本発明に係るシリアル・データ伝送方法の一実
施例に用いられる構成を概略的に示すブロック回路図、
第2図は該実施例におけるシリアル伝送データのフォー
マットを示す図、第3図は従来例を説明するためのブロ
ック回路図である。 10……CPU(プロセッサ) 11、12……被制御デバイス 20……シリアル・インターフェース回路 21……シフト・レジスタ 22……アドレス・デコーダ 24……シリアル制御回路
FIG. 1 is a block diagram schematically showing a configuration used in an embodiment of a serial data transmission method according to the present invention;
FIG. 2 is a diagram showing a format of serial transmission data in the embodiment, and FIG. 3 is a block circuit diagram for explaining a conventional example. 10 CPU (processor) 11, 12 Device under control 20 Serial interface circuit 21 Shift register 22 Address decoder 24 Serial control circuit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データ処理用プロセッサからのデータをシ
リアル・インターフェース回路を介して被制御デバイス
に伝送するシリアル・データ伝送方法において、 上記シリアル・インターフェース回路は、 上記プロセッサからのデータを被制御デバイスに書込/
読出する際にプロセッサの書込/読出のコントロール信
号に応じた書込状態/読出状態を示すステータス・ビッ
トを発生し、 このステータス・ビットとシリアル・データの先頭を示
すスタート・ビットとを上記伝送すべき所定ビットのデ
ータに付加し、 上記スタート・ビット、データ・ビット及びステータス
・ビットをシリアル伝送すること を特徴とするシリアル・データ伝送方法。
1. A serial data transmission method for transmitting data from a data processing processor to a controlled device via a serial interface circuit, wherein the serial interface circuit transmits data from the processor to the controlled device. write/
When reading, a status bit indicating a write state / read state according to a write / read control signal of the processor is generated, and this status bit and a start bit indicating the head of serial data are transmitted as described above. A serial data transmission method, characterized in that the start bit, the data bit, and the status bit are serially transmitted in addition to predetermined bit data to be transmitted.
JP62117542A 1987-05-14 1987-05-14 Serial data transmission method Expired - Lifetime JP2650256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62117542A JP2650256B2 (en) 1987-05-14 1987-05-14 Serial data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62117542A JP2650256B2 (en) 1987-05-14 1987-05-14 Serial data transmission method

Publications (2)

Publication Number Publication Date
JPS63281545A JPS63281545A (en) 1988-11-18
JP2650256B2 true JP2650256B2 (en) 1997-09-03

Family

ID=14714375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62117542A Expired - Lifetime JP2650256B2 (en) 1987-05-14 1987-05-14 Serial data transmission method

Country Status (1)

Country Link
JP (1) JP2650256B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59201556A (en) * 1983-04-28 1984-11-15 Fujitsu Ltd Communication control system

Also Published As

Publication number Publication date
JPS63281545A (en) 1988-11-18

Similar Documents

Publication Publication Date Title
JPH03129548A (en) Dual-port-memory and communication method thereof
EP0094728A1 (en) Computer system comprising a data, address and control signal bus which comprises a left bus and a right bus
EP0427023A2 (en) Data transmission control apparatus for parallel processing system
JPS6118059A (en) Memory circuit
JP2650256B2 (en) Serial data transmission method
US5019962A (en) Direct memory access controller for a multi-microcomputer system
JP2995752B2 (en) Bus architecture conversion circuit
JPH0856274A (en) Communication circuit for image forming device
JP2550659B2 (en) Data transmission method
JP2591060B2 (en) Data transmission method and signal processing device
US7136956B2 (en) Semiconductor device
US5823871A (en) Interface control device for use with TV game equipment
JP2512990B2 (en) DATA TRANSMISSION METHOD, DATA TRANSMISSION DEVICE, AND DATA RECEIVING DEVICE
US5796672A (en) Method and circuit for routing data to registers in an integrated circuit
KR19990026343A (en) Adaptive Interface Circuitry for Serial and Serial Data Transmission
EP0148307A2 (en) Programmable controller
JPS6153985B2 (en)
JPH0937000A (en) Printer
JPS6383844A (en) Microprocessor system
JPS6246897B2 (en)
JPS61184655A (en) Data transmission system
JP2000076199A (en) Multiprocessor device provided with debugging terminal
JP2570986B2 (en) Data transfer control device and method
JPS58109915A (en) Data transfer controlling system of bus coupling system
JP3186247B2 (en) DMA controller for communication

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term