JPS59206934A - Serial interface circuit - Google Patents

Serial interface circuit

Info

Publication number
JPS59206934A
JPS59206934A JP8206983A JP8206983A JPS59206934A JP S59206934 A JPS59206934 A JP S59206934A JP 8206983 A JP8206983 A JP 8206983A JP 8206983 A JP8206983 A JP 8206983A JP S59206934 A JPS59206934 A JP S59206934A
Authority
JP
Japan
Prior art keywords
output
circuit
signal
data
interface circuit
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
JP8206983A
Other languages
Japanese (ja)
Inventor
Tomoaki Isozaki
磯崎 智明
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP8206983A priority Critical patent/JPS59206934A/en
Publication of JPS59206934A publication Critical patent/JPS59206934A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To simplify a serial interface circuit composed of N-bit shift registers by omitting a counter circuit, by using an (N+1)-bit shift register and setting the output of the first register to a specific one. CONSTITUTION:The reset signal 20 of a serial interface (SIFC) is connected to the S-terminal of a shift register (SR)21 and the R-terminal of SRs 22-29. The output of the SR29 becomes a serial data transfer completion signal 12 and the signal 12 is connected with an internal circuit 13. To initialize an interface circuit, the output of the SR21 is set to H and outputs of the SRs 22-29 are set to ''4'', by setting the reset signal 20 to H. When serial data are received, the SR21 reads the data at the first rise of a clock signal SCK and the SR22 reads the output H of the SR21. The output of the SR22 becomes H. The H is shifted to the SR23 at the next clock SCK and the transfer of the serial data is terminated when the SR29 becomes H at the 8th clock SCK. Therefore, a counter circuit can be omitted and, as a result, the circuit configuration can be simplified.

Description

【発明の詳細な説明】 本発明はシリアルインターフェイス回路に関する。[Detailed description of the invention] The present invention relates to serial interface circuits.

従来、マイクロコンピュータや、その周辺機器の間でデ
ータを転送するだめのインターフェイス回路としてパラ
1/ルインターフエイス回路とシリアルインターフェイ
ス回路とが知られている。前者はデータをパラ1/ル的
に送るため、Nビットのデータを送るためには、N本の
信号線と制御用の信号を送るための信号線とで最低N+
1本の信号線が必要であシ、マイクロコンピュータでは
データバスラインや、入出力ボートをこれらのために専
有してし捷うとと1(なる。一方シリアルインターフェ
イス回路では信号線を時分割的に使用してデータを送る
ため、必要な信号線としては、データを乗せる信号線と
、制御用の信号線との2本ですむ %に集積回路におい
ては、シリアルインターフェイス回路を用いれば、パン
ケージの端子数を削減することができろための非常によ
く使用されている。しかしながらシリアルインターフェ
イス回路はデータを時分割で送るためデータを受けとる
側では制御用の信号線で送られてくる制御信号に同期さ
せてデータを受けとらなければならすまたシリアルデー
タをパラレルデータに変換する゛回路も必要となるため
、パラレルインターフェイス回路に比べて回路が複雑に
なってしまうという欠点があった。特に従来のシリアル
インターフェイス回路ではNビットのデータ転送が完了
したかどうかを調べるために計数回路を設けてデータの
転送回路を計数し、N回のデータ転送が終了した時点で
転送終了信号を発生させ、データを使用可能にしていた
。第1図はこのような方式の8ビツトシリアルインター
フェイス回路の従来例を示す。
Conventionally, parallel interface circuits and serial interface circuits have been known as interface circuits for transferring data between microcomputers and their peripheral devices. The former sends data in parallel, so in order to send N bits of data, at least N+ signal lines are required for sending N signal lines and control signals.
One signal line is required, and in a microcomputer, if the data bus line or input/output port is dedicated for these, it becomes one (1).On the other hand, in a serial interface circuit, the signal line is divided in a time-sharing manner. In integrated circuits, if a serial interface circuit is used, only two signal lines are required: a signal line for carrying data and a signal line for control. It is very commonly used because it can reduce the number of data. However, since serial interface circuits send data in a time-division manner, the data receiving side has to synchronize with the control signal sent via the control signal line. It also requires a circuit to convert serial data into parallel data, which has the disadvantage of making the circuit more complex than a parallel interface circuit.Especially with conventional serial interface circuits, In order to check whether the data transfer of N bits is completed, a counting circuit is provided to count the data transfer circuit, and when the data transfer is completed N times, a transfer end signal is generated to make the data usable. Figure 1 shows a conventional example of an 8-bit serial interface circuit of this type.

第1図において1〜8はシフト1/ジスタでCK倍信号
立上シで入力データを読み込み、睨み込んだデータ入力
をQ端子に出力する。9はシリアルデータ信号で1のD
端子に接続され、1〜7のQ出力はそれぞれ2〜8のD
入力に接続されている。
In FIG. 1, shift 1/registers 1 to 8 read input data at the rising edge of the CK multiplier signal, and output the input data to the Q terminal. 9 is the serial data signal and is the D of 1.
The Q outputs of 1 to 7 are connected to the D terminals of 2 to 8, respectively.
connected to the input.

10はシリアルデータの同期用クロック信号(以下80
に信号と略す)であり、1〜8のCK端子に接続されて
いる。また11は計数回路であり80に信号1008回
目の立上シで転送終了信号12を発生し、内部回路13
にデータが使甲できる状態になったことを知らせる。こ
のような方式では、8ビツトのシリアルインターフェイ
ス回路の場合、データ転送終了信号を発生させるために
3ビツトのカウンタが必要になシ、パラ1ノルインター
フエイス回路に比べて大幅に回路が複雑になってしまと
いう欠点があった。
10 is a clock signal for synchronizing serial data (hereinafter 80
(abbreviated as "signal") and is connected to the CK terminals 1 to 8. 11 is a counting circuit which generates a transfer end signal 12 at the 1008th rising edge of the signal 80, and internal circuit 13.
Notify the user that the data is ready for use. In this type of system, an 8-bit serial interface circuit requires a 3-bit counter to generate the data transfer end signal, making the circuit significantly more complex than a para-1 nor interface circuit. There was a drawback.

本発明の目的は、従来のシリアルインターフェイス回路
に比べて簡単な回路構成で実現しうるシリアルインター
フェイス回路を提供することにある。
An object of the present invention is to provide a serial interface circuit that can be realized with a simpler circuit configuration than conventional serial interface circuits.

本発明によればNビットのシリアルインターフェイス回
路においてNビットのデータ転送終了信号を計数回路を
使用せずに発生させることができるために、従来のシリ
アルインターフェイス回路に比べて回路を大幅に簡略化
することができる。
According to the present invention, an N-bit data transfer end signal can be generated in an N-bit serial interface circuit without using a counting circuit, so the circuit can be significantly simplified compared to a conventional serial interface circuit. be able to.

次に第2図を用いて本発明の一実施例を説明する。Next, one embodiment of the present invention will be described using FIG. 2.

20はシリアルインターフェイス回路のリセット信号で
あシ、シフトレジスタ21のセット端子とシフト1/ジ
スタ22〜29のリセット端子に接続されておシ、シフ
トレジスタ29の出力がシリアルデータ転送終了信号1
2となり内部回路13に接続されている。第3図は本回
路のタイミング図であり、まずインターフェイス回路を
初期化するためにシリアルインターフェイス回路のリセ
ット信号20を′H”にしてシフトレジスタ21の出力
を”H”、シフト1/ジスタ22〜29の出力をL”に
する。(第3図a)この状態でシリアルデータを受けと
ると、まず80に信号の最初の立上りでシフトレジスタ
21は1ビツト目のシリアルデータ9を読み込み、同時
にシフトレジスタ22はシフトレジスタ21の出力を読
み込み、シフトレジスタ22の出力は0H”となる。シ
フト1ノジスタ23〜29の出力は入力データはすべて
′L”にリセットされているため、出力もL”レベルと
なる。
20 is a reset signal for the serial interface circuit, which is connected to the set terminal of shift register 21 and the reset terminal of shift 1/registers 22 to 29, and the output of shift register 29 is the serial data transfer end signal 1.
2 and is connected to the internal circuit 13. FIG. 3 is a timing diagram of this circuit. First, in order to initialize the interface circuit, the reset signal 20 of the serial interface circuit is set to 'H', the output of the shift register 21 is set to 'H', and the output of the shift register 21 is set to 'H'. Set the output of 29 to “L”. (Figure 3a) When serial data is received in this state, the shift register 21 reads the first bit of serial data 9 at the first rising edge of the signal at 80, and at the same time the shift register 22 reads the output of the shift register 21. , the output of the shift register 22 becomes 0H''. Since all the input data of the shift 1 registers 23 to 29 are reset to ``L'', the output also becomes ``L'' level.

同様にシフトレジスタ22の’H”出力は「テ又信号1
0の立上シ罠同期して次段のシフトレジスタにシフトさ
れ、80に信号10の8回目の立上りでシフトレジスタ
29のQ出力には6H”が出力される。この状態でシフ
トレジスタ21〜28はシ5− リアルデータの1ビツト目から8ビツト目のデータが転
送されている。従ってシフトレジスタ29のQ出力をデ
ータ転送終了信号に使用すればよく、内部回路13がイ
ンターフェイス回路のデータを使用した後に再びインタ
ーフェイス回路のリセット信号20をH″にしてインタ
ーフェイス回路を初期化すれば、次のシリアルデータの
受信が可能な状態となる。
Similarly, the 'H' output of the shift register 22 is 'Temata signal 1'.
0 is synchronized with the rising edge of signal 10 and shifted to the next stage shift register, and at 80, at the 8th rise of signal 10, 6H" is output to the Q output of shift register 29. In this state, shift registers 21 to 29 28 is the data from the 1st bit to the 8th bit of the serial data being transferred.Therefore, the Q output of the shift register 29 can be used as the data transfer end signal, and the internal circuit 13 can transfer the data of the interface circuit. After use, if the reset signal 20 of the interface circuit is set to H'' again to initialize the interface circuit, the next serial data can be received.

従って本発明を用いれはデータ転送終了信号を発生させ
るためのカウンター回路が必要なくなシ、シリアルイン
ターフェイス回路を大幅に簡略化することができる。1
P1に多ビットのシリアルインターフェイス回路やデー
タのビット数が2H系列でないようなシリアルインター
フェイス回路においては一般にカウンター回路が複雑に
なるため、大きな効果が得られる。
Therefore, by using the present invention, there is no need for a counter circuit for generating a data transfer end signal, and the serial interface circuit can be greatly simplified. 1
In serial interface circuits in which P1 has multiple bits or the number of data bits is not in the 2H series, counter circuits are generally complex, so a great effect can be obtained.

【図面の簡単な説明】 第1図はシリアルインターフェイス回路の従来例を示す
図、第2図は本発明の一実施例を示す図、6− 第3図は本発明の詳細な説明するだめの図である。 1〜8,21〜29・・・・・・シフトレジスタ、9・
・・・・・シリアルデータ入力端子、10・・・・・・
シリアルクロック入力、11・・・・・・カウンター回
路、12・・・・・・データ転送終了信号、13・・・
・・・内部回路、20・・・・・・インターフェイス回
路の初期化信号。 7一
[Brief Description of the Drawings] Figure 1 is a diagram showing a conventional example of a serial interface circuit, Figure 2 is a diagram showing an embodiment of the present invention, and Figures 6-3 are diagrams showing a detailed explanation of the present invention. It is a diagram. 1-8, 21-29...Shift register, 9.
...Serial data input terminal, 10...
Serial clock input, 11... Counter circuit, 12... Data transfer end signal, 13...
. . . Internal circuit, 20 . . . Initialization signal for interface circuit. 71

Claims (1)

【特許請求の範囲】[Claims] シフト17ジスタによシ構成されるNビットのシリアル
インターフェイス回路において、N+1ビツトのシフト
1/ジスタを有し、最初にシリアルデータが入力される
シフトレジスタの出力t−%定の値にセットし、他のシ
フトレジスタの出力を前記最初にシリアルデータが入力
されるシフト1ノジスタとは異なる値にセットする手段
と、N+1ビツト目のシフト1/ジスタの出力tテスト
する手段とを具備することを特徴とするシリアルインタ
ーフェイス回路。
An N-bit serial interface circuit configured with shift 17 registers has an N+1-bit shift 1/register, and the output of the shift register to which serial data is first input is set to a constant value t-%, It is characterized by comprising means for setting the output of another shift register to a value different from that of the shift 1 register to which the serial data is first input, and means for testing the output t of the N+1-th shift 1 register. serial interface circuit.
JP8206983A 1983-05-11 1983-05-11 Serial interface circuit Pending JPS59206934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8206983A JPS59206934A (en) 1983-05-11 1983-05-11 Serial interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8206983A JPS59206934A (en) 1983-05-11 1983-05-11 Serial interface circuit

Publications (1)

Publication Number Publication Date
JPS59206934A true JPS59206934A (en) 1984-11-22

Family

ID=13764193

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8206983A Pending JPS59206934A (en) 1983-05-11 1983-05-11 Serial interface circuit

Country Status (1)

Country Link
JP (1) JPS59206934A (en)

Similar Documents

Publication Publication Date Title
US4048673A (en) Cpu - i/o bus interface for a data processing system
JPS63288538A (en) Communication equipment
JPS6211921A (en) Frequency conversion system between different types of computers
JPH0311036B2 (en)
US4047246A (en) I/O bus transceiver for a data processing system
JPH03191633A (en) Data transfer system
US3972034A (en) Universal first-in first-out memory device
GB2235995A (en) Apparatus for read handshake in high-speed asynchronous bus interface
US6175887B1 (en) Deterministic arbitration of a serial bus using arbitration addresses
US4047201A (en) I/O Bus transceiver for a data processing system
JPS59206934A (en) Serial interface circuit
JP2008535305A (en) Electronic circuit that realizes asynchronous delay
JP2590935B2 (en) Digital transmission data recovery circuit
JPS62226260A (en) Asynchronous data bus interface
JPS59177629A (en) Data transfer system
JPH03222539A (en) Start bit detection circuit
JPH067385Y2 (en) Interface circuit
JPS581917Y2 (en) Phase synchronized circuit with multiple memory circuits
KR930007593Y1 (en) Control signal oscillating circuit for data input & output between apparatus
JPS6160456B2 (en)
JPH0298300A (en) Multichannel controller
JP2002198944A (en) Serial signal transmitting unit, information processing system and serial signal transmitting method
JPH02280263A (en) Microprocessor
JP2002215569A (en) Input/output device
JPS582039U (en) clock receiver circuit