JPH08166914A - Transmission circuit and reception circuit - Google Patents

Transmission circuit and reception circuit

Info

Publication number
JPH08166914A
JPH08166914A JP6310637A JP31063794A JPH08166914A JP H08166914 A JPH08166914 A JP H08166914A JP 6310637 A JP6310637 A JP 6310637A JP 31063794 A JP31063794 A JP 31063794A JP H08166914 A JPH08166914 A JP H08166914A
Authority
JP
Japan
Prior art keywords
data
shift register
circuit
bit
logic
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
JP6310637A
Other languages
Japanese (ja)
Inventor
Yutaka Fujimaki
裕 藤巻
Yasuo Yamada
泰生 山田
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.)
JFE Steel Corp
Original Assignee
Kawasaki Steel 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 Kawasaki Steel Corp filed Critical Kawasaki Steel Corp
Priority to JP6310637A priority Critical patent/JPH08166914A/en
Publication of JPH08166914A publication Critical patent/JPH08166914A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE: To eliminate the need of using a serial clock counter, to reduce a circuit scale and to flexibly correspond to the increase/decrease of a character length by monitoring logical bit data stored by an initial character input circuit with an input timing detection circuit and detecting the termination of communication. CONSTITUTION: A character generation circuit 12 stores bit data of logic '1' to MSB on a side to which serial input data is inputted, and bit data of logic '0' to all the bits on a downstream-side compared, to the MSB in a shift register 41 in prior to the storage of serial input data to the shift register 41. A character detector 13 monitors that a lower bit among the bits where bit data of logic '0' is stored, namely, the logic of LSB changes from '0' to '1' by the character generation circuit 12. Thus, the timing when the storage of serial input data into the shift register 41 is terminated is detected.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、シリアル通信に使用さ
れる送信回路および受信回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transmission circuit and a reception circuit used for serial communication.

【0002】[0002]

【従来の技術】図4は、従来のクロック同期式シリアル
通信回路の構成図である。ここでは送信の例について説
明する。図4に示すシフトレジスタ41は、格納された
データを順次シフトしながら出力する8ビットのシフト
レジスタである。
2. Description of the Related Art FIG. 4 is a block diagram of a conventional clock synchronous serial communication circuit. Here, an example of transmission will be described. The shift register 41 shown in FIG. 4 is an 8-bit shift register that outputs the stored data while sequentially shifting the data.

【0003】シリアルクロックカウンタ42は、3ビッ
トのカウンタであり、シフトレジスタ41に格納された
データをシフトするためのシリアルクロック信号Bをカ
ウントし、規定数だけカウントするとその旨を制御回路
43に出力する。制御回路43は、送信の状態を制御す
るものであり、ここでは特に、シリアルクロックカウン
タ42からの出力を受けてシフトレジスタ41のシフト
動作を停止させる。
The serial clock counter 42 is a 3-bit counter, counts the serial clock signal B for shifting the data stored in the shift register 41, and outputs to the control circuit 43 to that effect when a specified number has been counted. To do. The control circuit 43 controls the transmission state, and here, in particular, receives the output from the serial clock counter 42 and stops the shift operation of the shift register 41.

【0004】図5は、図4に示すクロック同期式シリア
ル通信回路の、送信時のタイミングチャートである。図
5(a)には、外部から入力されるシリアルクロック信
号Aが示されており、図5(b)には、制御回路43で
制御される待機状態および通信状態が示されている。ま
た、図5(c)には、シリアルクロック信号Aが制御回
路43で制御された後のシリアルクロック信号Bが示さ
れている。さらに図5(d)には、シリアルクロック信
号Bで順次デクリメントされるシリアルクロックカウン
タ42のカウント値が示されており、また図5(e)に
は、シフトレジスタ41の、シリアルクロック信号Bの
各立下りのタイミングでシフトレジスタ41から出力さ
れたデータが示されている。
FIG. 5 is a timing chart at the time of transmission of the clock synchronous serial communication circuit shown in FIG. FIG. 5A shows a serial clock signal A input from the outside, and FIG. 5B shows a standby state and a communication state controlled by the control circuit 43. Further, FIG. 5C shows the serial clock signal B after the serial clock signal A is controlled by the control circuit 43. Further, FIG. 5D shows the count value of the serial clock counter 42 which is sequentially decremented by the serial clock signal B, and FIG. 5E shows the serial clock signal B of the shift register 41. The data output from the shift register 41 at each falling timing is shown.

【0005】通信開始前においては、図5(b)に示す
ように、制御回路43により待機状態に制御されてお
り、制御回路43から出力される信号bは‘L’レベル
となっている。またシリアルクロックカウンタ42のカ
ウント値は‘111’に初期設定されている。ここで、
通信開始命令を受けると、制御回路43により、通信状
態に設定され、制御回路43からの出力信号bが‘H’
レベルとなる。この‘H’レベルの信号bがアンドゲー
ト44の一方の端子に入力され、アンドゲート44の他
方の端子から入力されているシリアルクロック信号Aが
アンドゲート44を経由してシリアルクロック信号Bと
なる。このシリアルクロック信号Bの各立下りのタイミ
ングを受けて、シリアルクロックカウンタ42が1つず
つデクリメントされ、そのカウント値が順次‘11
0’,‘101’,‘100’……に変化する。またそ
れと同期してシフトレジスタ41に格納されたシリアル
入力データが、図4の右に1つずつシフトされ、図5
(e)に示す‘LSB’,‘L+1’,‘L+2’,…
…のデータが外部に順次出力される。
Before the start of communication, as shown in FIG. 5B, the control circuit 43 controls the standby state, and the signal b output from the control circuit 43 is at the'L 'level. The count value of the serial clock counter 42 is initially set to '111'. here,
When the communication start command is received, the control circuit 43 sets the communication state, and the output signal b from the control circuit 43 is'H '.
Level. This'H 'level signal b is input to one terminal of the AND gate 44, and the serial clock signal A input from the other terminal of the AND gate 44 becomes the serial clock signal B via the AND gate 44. . In response to each falling timing of the serial clock signal B, the serial clock counter 42 is decremented by one, and the count values are sequentially set to '11.
It changes to 0 ',' 101 ',' 100 '.... Further, in synchronization with this, the serial input data stored in the shift register 41 is shifted one by one to the right in FIG.
'LSB', 'L + 1', 'L + 2', ... Shown in (e)
The data of ... Are sequentially output to the outside.

【0006】ここで、シリアルクロックカウンタ42の
カウント値が‘000’になると、シリアルクロックカ
ウンタ42は、このカウンタ値を通信終了を示す規定数
と認識し、制御回路43にその旨を出力する。制御回路
43はこれを受けて、次のシリアルクロック信号Bの立
下りのタイミングで、信号bを‘L’レベルに変化させ
る。また、シリアルクロック信号Bの、その立ち下がり
のタイミングで、シフトレジスタ41から‘MSB’の
データが出力され、これを最後に、シフトレジスタ41
のシフト動作が停止する。また、シリアルクロックカウ
ンタ42のカウント値は初期値を示す‘111’にな
る。
Here, when the count value of the serial clock counter 42 reaches '000', the serial clock counter 42 recognizes this counter value as a prescribed number indicating the end of communication, and outputs that to the control circuit 43. In response to this, the control circuit 43 changes the signal b to the'L 'level at the next falling timing of the serial clock signal B. Further, at the timing of the trailing edge of the serial clock signal B, the shift register 41 outputs the data of “MSB”.
Shift operation stops. In addition, the count value of the serial clock counter 42 becomes “111” indicating the initial value.

【0007】尚、ここでは送信の場合について説明した
が、受信の場合も同様であり、ここでは説明は省略す
る。
Although the case of transmission has been described here, the same applies to the case of reception, and a description thereof will be omitted here.

【0008】[0008]

【発明が解決しようとする課題】上述した従来のクロッ
ク同期式シリアル通信回路では、通信終了を検知するた
めに、通信時のキャラクタ長(ビット長)に対応する数
だけシリアルクロック信号をカウントする必要がある。
従って、例えば8ビットのキャラクタの通信を行なう回
路には、3ビット幅のシリアルクロックカウンタを用意
する必要があり、回路規模が大きくなり問題がある。ま
た、キャラクタ長の長い通信を行なうことができるよう
に汎用化を目指すとさらに回路規模が大きくなる。
In the above-mentioned conventional clock-synchronous serial communication circuit, in order to detect the end of communication, it is necessary to count the serial clock signals by the number corresponding to the character length (bit length) during communication. There is.
Therefore, for example, a circuit for performing 8-bit character communication needs to have a 3-bit width serial clock counter, which causes a problem in that the circuit scale becomes large. In addition, if a general purpose is aimed at so that communication with a long character length can be performed, the circuit scale becomes larger.

【0009】本発明は、上記事情に鑑み、シリアルクロ
ックカウンタを使用する必要がなくこのため回路規模が
削減され、さらにキャラクタ長の増減に対して柔軟な対
応が図られた送信回路および受信回路を提供する。
In view of the above circumstances, the present invention eliminates the need for using a serial clock counter, which reduces the circuit scale, and provides a transmitter circuit and a receiver circuit that flexibly deal with the increase and decrease of the character length. provide.

【0010】[0010]

【課題を解決するための手段】上記目的を達成する本発
明の受信回路は、 (1)シリアル入力データを順次シフトしながら格納す
るシフトレジスタ (2)そのシリアル入力データの格納に先立って、その
シフトレジスタの、そのシリアル入力データが入力され
る側の上位ビットに第1の論理のビットデータを格納す
るとともに、その上位ビットよりも下流側の複数のビッ
トにその第1の論理が反転した第2の論理のビットデー
タを格納する初期キャラクタ入力回路 (3)そのシフトレジスタの、上記上位ビットとは反対
側の、上記初期キャラクタ入力回路により上記第2の論
理のビットデータが格納された複数のビットのうちの下
位ビットの論理が上記第2の論理から上記第1の論理に
変化したことをモニタすることにより、そのシリアル入
力データの、シフトレジスタへの格納が終了したタイミ
ングを検知する入力タイミング検知回路 を備えたことを特徴とする。
The receiving circuit of the present invention which achieves the above object, comprises: (1) a shift register for sequentially shifting and storing serial input data; (2) prior to storing the serial input data, Bit data of the first logic is stored in the upper bit of the shift register on the side where the serial input data is input, and the first logic is inverted to a plurality of bits downstream of the upper bit. Initial character input circuit for storing bit data of 2 logic (3) A plurality of second bit data of the second logic stored by the initial character input circuit on the opposite side of the shift register from the upper bit. By monitoring that the logic of the lower bit of the bits has changed from the second logic to the first logic, the serial The force data, stored in the shift register is characterized by comprising an input timing detection circuit for detecting a timing ended.

【0011】また、上記目的を達成する本発明の送信回
路は、 (1)格納された出力データを順次シフトしながら出力
するシフトレジスタ (2)そのシフトレジスタの、その出力データが出力さ
れる側の下位ビットとは反対側の、上記出力データのう
ち最後に出力されるべきビットデータが格納された上位
ビットに、その出力データが1ビットシフトされたとき
に第1の論理のビットデータ、その出力データが2ビッ
ト以上の各ビット数シフトされる毎にその第1の論理が
反転した第2の論理のビットデータを格納するキャラク
タ入力回路 (3)そのシフトレジスタに格納されたビットパターン
をモニタすることにより、その出力データの、シフトレ
ジスタからの出力が終了したタイミングを検知する出力
タイミング検知回路 を備えたことを特徴とする。
Further, the transmission circuit of the present invention which achieves the above object is (1) a shift register for sequentially outputting stored output data while shifting it (2) a side of the shift register to which the output data is output Bit data of the first logic, when the output data is shifted by 1 bit, to the upper bit on the opposite side of the lower bit of A character input circuit that stores bit data of a second logic in which the first logic is inverted every time the output data is shifted by each bit number of 2 bits or more (3) Monitor the bit pattern stored in the shift register By providing an output timing detection circuit that detects the timing when the output of the output data from the shift register is completed. It is characterized by.

【0012】尚、本発明は、送信回路と受信回路とが独
立に構成されている必要はなく、それらの送信回路と受
信回路とを組合せた通信回路として構成されていてもよ
い。
In the present invention, it is not necessary that the transmission circuit and the reception circuit are independently configured, and they may be configured as a communication circuit in which the transmission circuit and the reception circuit are combined.

【0013】[0013]

【作用】本発明の受信回路では、シフトレジスタのシリ
アル入力データの格納に先立って、初期キャラクタ入力
回路により格納された論理ビットデータを入力タイミン
グ検知回路でモニタして通信終了を検知する。また、本
発明の送信回路では、キャラクタ入力回路により、送信
の進行に伴って格納されたビットパターンを出力タイミ
ング検知回路でモニタして通信終了を検知するものであ
る。したがって、本発明の送信回路および本発明の受信
回路のいずれにおいても、従来技術のようにシリアルク
ロック信号をカウントして通信終了を検知する必要がな
く、シリアルクロックカウンタは不要である。
In the receiving circuit of the present invention, before the serial input data of the shift register is stored, the logical bit data stored by the initial character input circuit is monitored by the input timing detection circuit to detect the end of communication. Further, in the transmission circuit of the present invention, the character input circuit detects the end of communication by monitoring the bit pattern stored as the transmission progresses by the output timing detection circuit. Therefore, neither the transmitter circuit of the present invention nor the receiver circuit of the present invention need to count the serial clock signal to detect the end of communication as in the prior art, and the serial clock counter is unnecessary.

【0014】また、通信時のキャラクタ長が増減して
も、そのキャラクタ長の増減に対応して通信終了判定の
ためのキャラクタ長を増減すれば済み、通信時のキャラ
クタ長の増減に容易に対応できる。
Further, even if the character length during communication increases or decreases, it is sufficient to increase or decrease the character length for communication end determination in response to the increase or decrease in the character length. it can.

【0015】[0015]

【実施例】以下、本発明の実施例について説明する。図
1は、本発明の送信回路の一実施例と本発明の受信回路
の一実施例とが組み合わされた通信回路の構成図であ
る。この通信回路は、キャラクタ長が8ビットのクロッ
ク同期式シリアル通信回路である。
Embodiments of the present invention will be described below. FIG. 1 is a configuration diagram of a communication circuit in which an embodiment of the transmission circuit of the present invention and an embodiment of the reception circuit of the present invention are combined. This communication circuit is a clock synchronous serial communication circuit having a character length of 8 bits.

【0016】先ず、図1に示す通信回路の受信動作につ
いて説明する。マルチプレクサ11は、受信時には、受
信端子Rxから入力されるシリアル入力データをシフト
レジスタ41に入力するように切り換えられる。シフト
レジスタ41は、入力されたシリアル入力データを順次
シフトしながら格納する。
First, the receiving operation of the communication circuit shown in FIG. 1 will be described. Upon reception, the multiplexer 11 is switched to input the serial input data input from the reception terminal Rx to the shift register 41. The shift register 41 sequentially shifts and stores the input serial input data.

【0017】キャラクタ生成回路12は、本発明の受信
回路にいう初期キャラクタ入力回路に対応しており、シ
フトレジスタ41へのシリアル入力データの格納に先立
って、シフトレジスタ41に、シリアル入力データが入
力される側のMSBに論理‘1’のビットデータ、その
MSBよりも下流側の全てのビットに論理‘0’のビッ
トデータを格納する。
The character generating circuit 12 corresponds to the initial character input circuit referred to as the receiving circuit of the present invention, and the serial input data is input to the shift register 41 before the serial input data is stored in the shift register 41. The bit data of logic "1" is stored in the MSB of the side to be processed, and the bit data of logic "0" is stored in all the bits downstream of the MSB.

【0018】キャラクタ検出器13は、本発明の受信回
路にいう入力タイミング検出回路に対応しており、キャ
ラクタ生成回路12により論理‘0’のビットデータが
格納されたビットのうちの下位ビット、即ちLSBの論
理が論理‘0’から論理‘1’に変化したことをモニタ
することにより、シリアル入力データの、シフトレジス
タ41への格納が終了したタイミングを検知する。
The character detector 13 corresponds to the input timing detection circuit referred to as the receiving circuit of the present invention, and is the lower bit of the bits in which the bit data of logic "0" is stored by the character generation circuit 12, that is, the lower bit. By monitoring the change of the logic of LSB from logic "0" to logic "1", the timing when the storage of the serial input data in the shift register 41 is completed is detected.

【0019】制御回路14は、受信状態を制御する。図
2は、図1に示す通信回路の、受信時のタイミングチャ
ートである。図2(a)には、シリアルクロック信号の
タイミングが示されている。また、図2(b)には、シ
フトレジスタ41に、シリアルクロック信号の各立上り
のタイミングで入力されたデータが示されている。さら
に、図2(c)には、制御回路14の状態が示されてい
る。
The control circuit 14 controls the reception state. FIG. 2 is a timing chart of the communication circuit shown in FIG. 1 during reception. FIG. 2A shows the timing of the serial clock signal. Further, FIG. 2B shows data input to the shift register 41 at each rising timing of the serial clock signal. Further, FIG. 2C shows the state of the control circuit 14.

【0020】また、制御回路14から出力される信号b
は、最初の待機状態では‘L’レベルとなっている。先
ず、シフトレジスタ41へのシリアル入力データの格納
に先立って、8ビットのデータ‘10000000’
(80)がキャラクタ生成回路12で生成され、受信開
始命令を受けると、制御回路14により通信状態に制御
され、信号bが‘H’レベルとなる。またキャラクタ生
成回路12で生成されたデータがシフトレジスタ41に
格納される。この‘H’レベルの信号bはアンドゲート
44の一方の端子に入力されるため、アンドゲート44
の他方の端子に入力されているシリアルクロック信号が
アンドゲード44を通過し、その立上りのタイミング
で、マルチプレクサ11の受信端子Rxを経由して入力
されたシリアル入力データがシフトレジスタ41に入力
されるとともに、シフトレジスタ41に格納されている
データが図1の右に1つシフトされる。このときにはキ
ャラクタ検出器13には、このときのLSBの論理(こ
こでは‘0’)が入力される。この時点におけるシフト
レジスタ41の格納データr1は、 r1=*1000000 となる。但し、*はマルチプレクサ11の受信端子Rx
を経由して入力されたシリアル入力データを表わす。
The signal b output from the control circuit 14
Is at the'L 'level in the first standby state. First, before storing serial input data in the shift register 41, 8-bit data “10000000” is stored.
When (80) is generated by the character generation circuit 12 and the reception start command is received, the control circuit 14 controls the communication state and the signal b becomes the “H” level. Further, the data generated by the character generation circuit 12 is stored in the shift register 41. Since this “H” level signal b is input to one terminal of the AND gate 44, the AND gate 44
The serial clock signal input to the other terminal of the shift register 41 passes through the AND gate 44, and at the rising timing thereof, the serial input data input via the receiving terminal Rx of the multiplexer 11 is input to the shift register 41. The data stored in the shift register 41 is shifted to the right in FIG. At this time, the LSB logic at this time (here, “0”) is input to the character detector 13. The stored data r1 of the shift register 41 at this time point is r1 = * 1000000. However, * is the reception terminal Rx of the multiplexer 11.
Represents serial input data input via.

【0021】以下、シリアルクロック信号の各立上りの
タイミングで、マルチプレクサ11の受信端子Rxを経
由したシリアル入力データがシフトレジスタ41に順次
入力されるとともに、シフトレジスタ41に格納されて
いるデータが、図1の右に1つづつシフトされ、LSB
にシフトされたビットデータがキャラクタ検出器13に
順次入力される。シリアルクロック信号の各立上りによ
りシフトされた後のシフトレジスタ41の格納データr
2,……,r7は、 r2=**100000 r3=***10000 r4=****1000 r5=*****100 r6=******10 r7=*******1 となる。
Below, at each rising timing of the serial clock signal, serial input data via the receiving terminal Rx of the multiplexer 11 is sequentially input to the shift register 41, and the data stored in the shift register 41 is shown in FIG. Shifted to the right of 1 by 1, LSB
The bit data shifted to is sequentially input to the character detector 13. Data r stored in the shift register 41 after being shifted at each rising edge of the serial clock signal
2, ..., r7 is r2 = *** 100000 r3 = *** 10000 r4 = **** 1000 r5 = **** 100100 r6 = ********* 10 r7 = **** It becomes ** 1.

【0022】ここで各格納データr2,……,r7それ
ぞれのLSBがキャラクタ検出器13でモニタされてお
り、格納データr7のLSBの論理‘1’を検出する
と、制御回路43に通信終了が指示される。さらに次の
シリアルクロック信号の立上りのタイミングでシフトレ
ジスタ41の格納データr8は、 r8=******** となり、これにより、シフトレジスタ41に受信データ
が8ビット全て受信されたことになる。制御回路43
は、待機状態に制御され、信号bは‘L’レベルとな
り、これにより受信が停止する。
Here, the LSB of each of the stored data r2, ..., R7 is monitored by the character detector 13, and when the logic ‘1’ of the LSB of the stored data r7 is detected, the control circuit 43 is instructed to terminate the communication. To be done. Further, at the next rising timing of the serial clock signal, the stored data r8 of the shift register 41 becomes r8 = *********, which indicates that the shift register 41 has received all 8 bits of received data. Become. Control circuit 43
Are controlled to be in the standby state, and the signal b becomes the “L” level, which stops the reception.

【0023】次に、図1に示す通信回路における送信動
作について説明する。マルチプレクサ11は、送信時に
は送信端子Txに入力されるデータをシフトレジスタ4
1に入力するように切り換えられる。シフトレジスタ4
1は、格納された出力データを順次シフトしながら出力
する。
Next, the transmission operation in the communication circuit shown in FIG. 1 will be described. The multiplexer 11 shifts the data input to the transmission terminal Tx during transmission to the shift register 4
The input is switched to 1. Shift register 4
1 outputs the stored output data while sequentially shifting it.

【0024】キャラクタ生成回路12は、本発明の送信
回路にいうキャラクタ入力回路に対応しており、ビット
パターン‘00000001’を生成する。キャラクタ
検出器13は、本発明の送信回路にいう出力タイミング
検出回路に対応しており、シフトレジスタ41に格納さ
れたビットパターンが‘0000001*’(*は
‘0’もしくは‘1’)であるか否かをモニタすること
により、出力データの、シフトレジスタ41からの出力
が終了したタイミングを検知する。
The character generation circuit 12 corresponds to the character input circuit referred to as the transmission circuit of the present invention, and generates the bit pattern '00000001'. The character detector 13 corresponds to the output timing detection circuit referred to as the transmission circuit of the present invention, and the bit pattern stored in the shift register 41 is '0000001 *' (* is '0' or '1'). By monitoring whether or not the output data is output from the shift register 41, the timing at which the output is completed is detected.

【0025】制御回路14は、送信状態を制御する。図
3は、図1に示す通信回路の、送信時のタイミングチャ
ートである。図3(a)には、シリアルクロック信号の
タイミングが示されている。また図3(b)には、シフ
トレジスタ41から、シリアルクロック信号の各立下り
のタイミングで出力されたデータが示されている。さら
に、図3(c)には、制御回路14で制御される状態が
データが示されている。
The control circuit 14 controls the transmission state. FIG. 3 is a timing chart of the communication circuit shown in FIG. 1 during transmission. FIG. 3A shows the timing of the serial clock signal. Further, FIG. 3B shows data output from the shift register 41 at each falling timing of the serial clock signal. Further, in FIG. 3C, the data controlled by the control circuit 14 is shown.

【0026】制御回路14から出力される信号bは、最
初の初期状態では‘L’レベルとなっている。ここで送
信開始命令を受けると、制御回路14により、通信状態
に制御され、信号bが‘H’レベルとなる。 また、こ
の‘H’レベルの信号bがアンドゲート44の一方の端
子に入力され、アンドゲート44の他方の端子に入力さ
れているシリアルクロック信号がアンドゲート44を通
過し、その立下りのタイミングでキャラクタ生成回路1
2のデータがマルチプレクサ11の送信端子Txからシ
フトレジスタ41に入力されるとともに、シフトレジス
タ41に格納されているデータが図1の右に1つシフト
される。
The signal b output from the control circuit 14 is at the "L" level in the initial initial state. When the transmission start command is received here, the control circuit 14 controls the communication state and the signal b becomes the “H” level. Further, this'H 'level signal b is input to one terminal of the AND gate 44, the serial clock signal input to the other terminal of the AND gate 44 passes through the AND gate 44, and its falling timing. Character generation circuit 1
The data No. 2 is input to the shift register 41 from the transmission terminal Tx of the multiplexer 11, and the data stored in the shift register 41 is shifted to the right in FIG.

【0027】この時点におけるシフトレジスタ41の格
納データt1は、 t1=1******* となる。但し、*はシフトレジスタ41にあらかじめ格
納された送信用のデータを表わす。キャラクタ検出器1
3には、この格納データt1が入力され、この格納デー
タt1のビットパターンがキャラクタ検出器13でモニ
タされる。
The data t1 stored in the shift register 41 at this time point is t1 = 1 ********. However, * represents the data for transmission previously stored in the shift register 41. Character detector 1
The stored data t1 is input to 3, and the bit pattern of the stored data t1 is monitored by the character detector 13.

【0028】以下、シリアルクロック信号の各立下りの
タイミングで、キャラクタ生成回路12のデータがマル
チプレクサ11の送信端子Txを経由してシフトレジス
タ41に順次入力されるとともに、シフトレジスタ41
に格納されているデータが図1の右に1つづつシフトさ
れて外部に出力される。また、キャラクタ検出器13で
はシフトレジスタ41のデータがシフトされる毎にシフ
トレジスタ41のデータ(ビットパターン)がモニタさ
れる。
Hereinafter, at each falling timing of the serial clock signal, the data of the character generation circuit 12 is sequentially input to the shift register 41 via the transmission terminal Tx of the multiplexer 11, and the shift register 41 is also input.
The data stored in is shifted one by one to the right in FIG. 1 and output to the outside. In the character detector 13, the data (bit pattern) in the shift register 41 is monitored every time the data in the shift register 41 is shifted.

【0029】このようにして、シリアルクロック信号の
各立下りのタイミングにおける、シフトレジスタ41の
格納データt2,……,t7は、 t2=01****** t3=001***** t4=0001**** t5=00001*** t6=000001** t7=0000001* となる。
In this way, the data t2, ..., T7 stored in the shift register 41 at each falling timing of the serial clock signal is as follows: t2 = 01 ****** t3 = 001 ***** t4 = 0001 **** t5 = 00001 **** t6 = 000001 ** t7 = 0000001 *.

【0030】ここで、キャラクタ検出器13が論理
‘1’の後に論理‘0’が6個続いたビットパターン
‘0000001*’、即ち格納データt7のビットパ
ターンを検出すると、制御回路14に通信終了が指示さ
れる。さらに次のシリアルクロック信号の立下りのタイ
ミングで、格納データt8は、 t8=00000001 となり、これによりシフトレジスタ41の送信データ8
ビット全てが送信されたことになる。この時点で制御回
路14により待機状態に制御され、信号bは‘L’レベ
ルとなり、これにより送信が停止する。
Here, when the character detector 13 detects a bit pattern "0000001 *" in which six logic "0" s follow the logic "1", that is, the bit pattern of the stored data t7, the control circuit 14 ends the communication. Is instructed. Further, at the next falling timing of the serial clock signal, the stored data t8 becomes t8 = 00000001, which causes the transmission data 8 of the shift register 41 to be 8
All bits have been transmitted. At this point, the control circuit 14 controls the standby state, and the signal b becomes the “L” level, which stops the transmission.

【0031】ここで、従来例の、図4に示すシリアルク
ロックカウンタ42と、本実施例のマルチプレクサ1
1、キャラクタ生成回路12、キャラクタ検出器13と
をゲート数に置き換えて比較すると、従来例では例えば
40ゲート必要であるのに対し、本実施例においてはわ
ずか15ゲートで済み、ゲート数が大幅に削減される。
尚、本実施例では、シフトレジスタとして送信,受信兼
用の8ビットのシフトレジスタを用いて説明したがこれ
に限られるものではなく、送信もしくは受信いずれか一
方を専用に行う回路を構成してもよく、またシフトレジ
スタのビット幅も8ビットに限られるものではなく任意
のビット幅でよい。 また、受信動作において、キャラ
クタ生成回路12で、シリアル入力データが入力される
側の上位ビットに論理‘1’のビットデータ、その上位
ビットを除く全てのビットに論理‘0’のビットデータ
を格納したが、これに限られるものではなく、論理
‘0’と論理‘1’を互いに入れ替え、キャラクタ検出
回路13でこれに対応してモニタし、受信終了を検知し
てもよい。
Here, the conventional serial clock counter 42 shown in FIG. 4 and the multiplexer 1 of the present embodiment are provided.
1 and the character generation circuit 12 and the character detector 13 are replaced by the number of gates and compared, in the conventional example, for example, 40 gates are required, whereas in this embodiment, only 15 gates are required, and the number of gates is significantly increased. Be reduced.
In this embodiment, an 8-bit shift register for both transmission and reception is used as the shift register, but the present invention is not limited to this, and a circuit for performing either transmission or reception may be configured. The bit width of the shift register is not limited to 8 bits and may be any bit width. In the receiving operation, the character generation circuit 12 stores bit data of logic '1' in the upper bit on the side where serial input data is input and bit data of logic '0' in all bits except the upper bit. However, the present invention is not limited to this, and the logic “0” and the logic “1” may be replaced with each other, and the character detection circuit 13 may monitor correspondingly to detect the reception end.

【0032】また、これと同様に、送信動作において、
キャラクタ生成回路12でシフトレジスタ41に、出力
データが1ビットシフトされたときに論理‘1’のビッ
トデータ、出力データが2ビット以上8ビットまでシフ
トされたときに論理‘0’のビットデータを格納した
が、これに限られるものではなく、論理‘0’と論理
‘1’を互いに入れ替え、キャラクタ検出器13でこれ
に対応したビットパターンをモニタし、送信終了を検知
してもよい。
Similarly to this, in the transmitting operation,
In the character generation circuit 12, the shift register 41 stores bit data of logical “1” when the output data is shifted by 1 bit, and bit data of logical “0” when the output data is shifted from 2 bits to 8 bits. Although it is stored, the present invention is not limited to this, and the logic “0” and the logic “1” may be replaced with each other, and the character detector 13 may monitor the bit pattern corresponding thereto to detect the end of transmission.

【0033】また、本実施例では、送信回路および受信
回路としてクロック同期式シリアル通信回路について説
明したが、これに限られるものではなく、本発明は、非
同期式シリアル通信回路,キャラクタ同期式シリアル通
信回路等のシリアル通信回路にも適用することができ
る。
Although the clock synchronous serial communication circuit has been described as the transmitting circuit and the receiving circuit in the present embodiment, the present invention is not limited to this, and the present invention is not limited to the asynchronous serial communication circuit and the character synchronous serial communication. It can also be applied to a serial communication circuit such as a circuit.

【0034】[0034]

【発明の効果】以上説明したように、本発明の受信回路
では、初期キャラクタ入力回路により、シリアル入力デ
ータの格納に先立ってシフトレジスタに所定のキャラク
タを格納し、入力タイミング検出回路により所定の論理
の変化をモニタし、一方、送信回路では、キャラクタ入
力回路により、シフトレジスタに、所定のキャラクタを
送信とともにシリアルに格納し、出力タイミング検出回
路によりシフトレジスタに格納されたビットパターンを
モニタするものであるため、受信回路,送信回路のいず
れにおいてもシリアルクロックカウンタが不要となり、
ゲート数が削減される。また通信時のキャラクタ長の増
減にも容易に対応できる。
As described above, in the receiving circuit of the present invention, the initial character input circuit stores a predetermined character in the shift register prior to the storage of serial input data, and the input timing detection circuit stores a predetermined logic. On the other hand, in the transmission circuit, the character input circuit serially stores a predetermined character in the shift register together with transmission, and the output timing detection circuit monitors the bit pattern stored in the shift register. Therefore, the serial clock counter becomes unnecessary in both the receiving circuit and the transmitting circuit,
The number of gates is reduced. Further, it is possible to easily deal with the increase or decrease of the character length during communication.

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

【図1】本発明の送信回路の一実施例と本発明の受信回
路の一実施例とが組み合わされた通信回路の構成図であ
る。
FIG. 1 is a configuration diagram of a communication circuit in which an embodiment of a transmission circuit of the present invention and an embodiment of a reception circuit of the present invention are combined.

【図2】図1に示す通信回路の、受信時のタイミングチ
ャートである。
FIG. 2 is a timing chart of the communication circuit shown in FIG. 1 during reception.

【図3】図1に示す通信回路の、送信時のタイミングチ
ャートである。
FIG. 3 is a timing chart of the communication circuit shown in FIG. 1 during transmission.

【図4】従来のクロック同期式シリアル通信回路の構成
図である。
FIG. 4 is a configuration diagram of a conventional clock synchronous serial communication circuit.

【図5】図4に示すクロック同期式シリアル通信回路
の、送信時のタイミングチャートである。
5 is a timing chart of the clock synchronous serial communication circuit shown in FIG. 4 during transmission.

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

11 マルチプレクサ 12 キャラクタ生成回路 13 キャラクタ検出器 14 制御回路 41 シフトレジスタ 44 アンドゲート 11 multiplexer 12 character generation circuit 13 character detector 14 control circuit 41 shift register 44 AND gate

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シリアル入力データを順次シフトしなが
ら格納するシフトレジスタと、該シリアル入力データの
格納に先立って、該シフトレジスタの、該シリアル入力
データが入力される側の上位ビットに第1の論理のビッ
トデータを格納するとともに、該上位ビットよりも下流
側の複数のビットに該第1の論理が反転した第2の論理
のビットデータを格納する初期キャラクタ入力回路と、
該シフトレジスタの、前記上位ビットとは反対側の、前
記初期キャラクタ入力回路により前記第2の論理のビッ
トデータが格納された複数のビットのうちの下位ビット
の論理が前記第2の論理から前記第1の論理に変化した
ことをモニタすることにより、該シリアル入力データ
の、該シフトレジスタへの格納が終了したタイミングを
検知する入力タイミング検知回路とを備えたことを特徴
とする受信回路。
1. A shift register for storing serial input data while sequentially shifting it, and, prior to the storage of the serial input data, a first upper bit of the shift register on the side to which the serial input data is input. An initial character input circuit that stores logical bit data, and stores second logical bit data in which the first logical is inverted in a plurality of bits on the downstream side of the upper bit,
Of the plurality of bits in which the bit data of the second logic is stored by the initial character input circuit on the opposite side of the shift register from the second logic, the logic of the lower bit is from the second logic. An input timing detection circuit for detecting the timing when the storage of the serial input data in the shift register is completed by monitoring the change to the first logic.
【請求項2】 格納された出力データを順次シフトしな
がら出力するシフトレジスタと、該シフトレジスタの、
該出力データが出力される側の下位ビットとは反対側
の、前記出力データのうち最後に出力されるべきビット
データが格納された上位ビットに、該出力データが1ビ
ットシフトされたときに第1の論理のビットデータ、該
出力データが2ビット以上の各ビット数シフトされる毎
に該第1の論理が反転した第2の論理のビットデータを
格納するキャラクタ入力回路と、該シフトレジスタに格
納されたビットパターンをモニタすることにより、該出
力データの、該シフトレジスタからの出力が終了したタ
イミングを検知する出力タイミング検知回路とを備えた
ことを特徴とする送信回路。
2. A shift register for outputting stored output data while sequentially shifting the output data, and a shift register of the shift register,
When the output data is shifted by 1 bit, the first bit of the output data, which is opposite to the lower bit of the output data, is stored in the upper bit in which the bit data to be output last is stored. A character input circuit for storing bit data of 1 logic, bit data of second logic in which the first logic is inverted every time the output data is shifted by each bit number of 2 bits or more, and the shift register. A transmission circuit, comprising: an output timing detection circuit that detects a timing at which output of the output data from the shift register is completed by monitoring a stored bit pattern.
JP6310637A 1994-12-14 1994-12-14 Transmission circuit and reception circuit Pending JPH08166914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6310637A JPH08166914A (en) 1994-12-14 1994-12-14 Transmission circuit and reception circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6310637A JPH08166914A (en) 1994-12-14 1994-12-14 Transmission circuit and reception circuit

Publications (1)

Publication Number Publication Date
JPH08166914A true JPH08166914A (en) 1996-06-25

Family

ID=18007656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6310637A Pending JPH08166914A (en) 1994-12-14 1994-12-14 Transmission circuit and reception circuit

Country Status (1)

Country Link
JP (1) JPH08166914A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008210358A (en) * 2006-09-13 2008-09-11 Rohm Co Ltd Data processor, and data control circuit used therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008210358A (en) * 2006-09-13 2008-09-11 Rohm Co Ltd Data processor, and data control circuit used therefor

Similar Documents

Publication Publication Date Title
US6118393A (en) EFM signal frame period detecting circuit, and system for controlling the frequency of the bit synchronizing clock signal used for reproducing the EFM signal
JPH08166914A (en) Transmission circuit and reception circuit
US7079573B2 (en) Apparatus and method for receiving and transmitting serial data
EP0839424B1 (en) Extended chip select reset apparatus and method
US5208840A (en) Method and arrangement for detecting framing bit sequence in digital data communications system
US5724277A (en) Background noise generating apparatus
JP3048504B2 (en) Signal detection circuit and frame synchronization circuit
JPH0637857A (en) Serial data receiving circuit
US6545617B1 (en) Asynchronous serial data receiving device and asynchronous serial data transmitting device
JPH065831B2 (en) Signal frame transmission method
JP2593017B2 (en) Serial data transfer device
KR940008107B1 (en) Data transmitting apparatus
JP2000188591A (en) Received data error detection circuit
JPH05344115A (en) Reception synchronizing circuit
JP2941266B1 (en) Encoder data output method for bus communication type encoder device
KR100226022B1 (en) A system for showing an action completion state of equalizer
JPH04220041A (en) Split phase signal formation rule violation detection circuit
JP2508322B2 (en) Serial I / O circuit built-in micro computer
JP2684466B2 (en) Frame synchronization judgment circuit
JPH0797743B2 (en) Majority logic circuit
JP2002232402A (en) Automatic phase inversion circuit for clock signal
JPH0425240A (en) Burst signal monitoring circuit
JPH07129485A (en) Serial transmitting device
JPH02202738A (en) Serial data receiving circuit
JPH05114898A (en) Frame synchronizing circuit for digital transmission system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19991012