JPH05207096A - Serial data communication equipment - Google Patents

Serial data communication equipment

Info

Publication number
JPH05207096A
JPH05207096A JP4015174A JP1517492A JPH05207096A JP H05207096 A JPH05207096 A JP H05207096A JP 4015174 A JP4015174 A JP 4015174A JP 1517492 A JP1517492 A JP 1517492A JP H05207096 A JPH05207096 A JP H05207096A
Authority
JP
Japan
Prior art keywords
communication
data
clock signal
storage area
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.)
Granted
Application number
JP4015174A
Other languages
Japanese (ja)
Other versions
JP2790748B2 (en
Inventor
Kenichi Suehiro
憲一 末廣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4015174A priority Critical patent/JP2790748B2/en
Publication of JPH05207096A publication Critical patent/JPH05207096A/en
Application granted granted Critical
Publication of JP2790748B2 publication Critical patent/JP2790748B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide serial data communication equipment capable of easily performing software processing for the setting of transmission data and the control of a communication start timing, etc. CONSTITUTION:A communication data selection circuit 550 selects one register from communication data registers 561-563 corresponding to count data 5f in a communication counter 540 which counts the number of times of communication, and supplies transmission data 5g stored in a selected register to a shift register 530. When a timer 500 is started up, the shift register 530 fetches supplied transmission data 5f by a communication start signal 5b outputted after the lapse of constant time, and starts transmission. The count data 5f in the communication counter 540 is changed by a communication completion signal 5e, and the next transmission data 5g is supplied to the shift register 530, and continuous serial transmission can be automatically performed by starting up the timer 500 again.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はシリアルデータ通信装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data communication device.

【0002】[0002]

【従来の技術】従来、シリアルデータ通信装置は、クロ
ック信号とデータ信号のための2本の信号線のみで通信
が可能であり、ワンチップのマイクロプロセッサ間のデ
ータ通信手段として多用されている。従来のシリアルデ
ータ通信装置は、シリアルデータを転送するためのクロ
ック信号を発生するクロック信号発生回路と、通信デー
タを1ビットずつシフトするシフトレジスタと、通信デ
ータのシフト回数をカウントするシフトカウンタとで構
成され、ワンチップのマイクロプロセッサ間で通信する
場合には、ソフトウェアによって送信データの設定,受
信データの格納および通信開始タイミング等の制御を行
なっていた。
2. Description of the Related Art Conventionally, a serial data communication device is capable of communication only with two signal lines for a clock signal and a data signal, and is widely used as a data communication means between one-chip microprocessors. A conventional serial data communication device includes a clock signal generation circuit that generates a clock signal for transferring serial data, a shift register that shifts communication data bit by bit, and a shift counter that counts the number of shifts of communication data. In the case of communication between configured one-chip microprocessors, software controls transmission data setting, reception data storage, communication start timing, and the like.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の構成では、データ通信を1回行うたびに、送
信開始時には送信データの設定を行い、受信終了時には
受信データの格納を行う必要があった。また、データ通
信を行う装置間の同期をとる等の理由により一定周期で
データ通信を行なう場合には、さらにシリアルデータ通
信装置を一定時間間隔で正確に制御する必要があった。
However, in such a conventional configuration, it is necessary to set transmission data at the start of transmission and store the reception data at the end of reception each time data communication is performed. It was Further, in the case where data communication is performed at a constant cycle for reasons such as synchronization between devices that perform data communication, it is necessary to further accurately control the serial data communication device at constant time intervals.

【0004】したがって、従来のシリアルデータ通信装
置を用いて、ワンチップのマイクロプロセッサ間で通信
する場合には、このような送信データの設定,受信デー
タの格納および通信開始タイミングの制御を行うための
ソフトウェア処理が複雑となり、特に通信間隔時間が短
い時にはこれらの処理を頻繁に行わなければならず、本
来行うべきソフトウェア処理の実行が遅れるなど、通常
の処理に対して悪影響を及ぼすという問題があった。
Therefore, when the conventional serial data communication device is used to communicate between one-chip microprocessors, the transmission data is set, the reception data is stored, and the communication start timing is controlled. Software processing becomes complicated, and especially when the communication interval time is short, these processing must be performed frequently, and there is a problem that the execution of software processing that should be originally performed is delayed, which adversely affects normal processing. ..

【0005】この発明の目的は上記従来の問題点を解決
するもので、送信データの設定,受信データの格納およ
び通信開始タイミング等の制御を容易にでき、ソフトウ
ェア処理を容易にできるシリアルデータ通信装置を提供
することである。
An object of the present invention is to solve the above-mentioned conventional problems, and it is possible to easily set transmission data, store reception data, control communication start timing, etc., and facilitate software processing. Is to provide.

【0006】[0006]

【課題を解決するための手段】請求項1記載のシリアル
データ通信装置は、クロック信号をカウントし、所定の
カウント値に達した場合に通信終了信号を出力する制御
手段と、通信開始信号によってクロック信号の出力を開
始し、通信終了信号によってクロック信号の出力を停止
する通信クロック発生手段と、クロック信号に同期して
データを1ビットずつシフトするシフトレジスタと、デ
ータを格納するための少なくとも2つ以上の格納領域を
有する通信データ格納手段と、通信回数となる制御手段
からの通信終了信号の出力回数をカウントする通信カウ
ンタと、この通信カウンタのカウントデータに応じて通
信データ格納手段の有する格納領域のうちの1つの格納
領域を選択する格納領域選択手段と、送信時には、格納
領域選択手段によって選択された格納領域内のデータを
シフトレジスタに供給し、受信時には、シフトレジスタ
内のデータを格納領域選択手段によって選択された格納
領域に供給する通信データ制御手段とを備えたものであ
る。
According to a first aspect of the present invention, there is provided a serial data communication device which counts a clock signal and outputs a communication end signal when a predetermined count value is reached, and a clock according to a communication start signal. Communication clock generation means for starting signal output and stopping clock signal output by a communication end signal, a shift register for shifting data bit by bit in synchronization with the clock signal, and at least two for storing data The communication data storage means having the above storage area, the communication counter for counting the number of times of the communication end signal output from the control means, which is the number of times of communication, and the storage area of the communication data storage means according to the count data of the communication counter The storage area selecting means for selecting one of the storage areas and the storage area selecting means at the time of transmission. Has been fed to the shift register the data in the storage area selected Te, during reception, in which a communication data control means for supplying a selected storage area by the data storage area selection means in the shift register.

【0007】請求項2記載のシリアルデータ通信装置
は、クロック信号をカウントし、所定のカウント値に達
した場合に通信終了信号を出力する制御手段と、通信開
始信号によってクロック信号の出力を開始し、通信終了
信号によってクロック信号の出力を停止する通信クロッ
ク発生手段と、クロック信号に同期してデータを1ビッ
トずつシフトするシフトレジスタと、データを格納する
ための少なくとも2つ以上の格納領域を有する通信デー
タ格納手段と、通信回数となる制御手段からの通信終了
信号の出力回数をカウントする第1および第2の通信カ
ウンタと、この第1の通信カウンタのカウントデータに
応じて通信データ格納手段の有する格納領域のうちの1
つの格納領域を選択する第1の格納領域選択手段と、第
2の通信カウンタのカウントデータに応じて通信データ
格納手段の有する格納領域のうちの1つの格納領域を選
択する第2の格納領域選択手段と、送信時には、第1の
格納領域選択手段によって選択された格納領域内のデー
タをシフトレジスタに供給し、受信時には、シフトレジ
スタ内のデータを第2の格納領域選択手段によって選択
された格納領域に供給する通信データ制御手段とを備え
たものである。
According to another aspect of the present invention, there is provided a serial data communication device which counts a clock signal and outputs a communication end signal when a predetermined count value is reached, and a communication start signal which starts output of the clock signal. A communication clock generation means for stopping output of a clock signal by a communication end signal, a shift register for shifting data bit by bit in synchronization with the clock signal, and at least two or more storage areas for storing data The communication data storage means, the first and second communication counters that count the number of times the communication means outputs the communication end signal from the control means, and the communication data storage means according to the count data of the first communication counter. One of the storage areas
A first storage area selecting means for selecting one storage area and a second storage area selecting means for selecting one storage area of the storage areas of the communication data storage means according to the count data of the second communication counter. Means for supplying the data in the storage area selected by the first storage area selecting means to the shift register at the time of transmission, and storing the data in the shift register at the time of reception selected by the second storage area selecting means. And communication data control means for supplying the area.

【0008】請求項3記載のシリアルデータ通信装置
は、請求項2記載のシリアルデータ通信装置において、
第2の格納領域選択手段は第1の格納領域選択手段が選
択する格納領域とは異なる1つの格納領域を選択するこ
とを特徴とする。請求項4記載のシリアルデータ通信装
置は、設定された時間が経過すると通信開始信号を出力
するタイマーと、クロック信号をカウントし、所定のカ
ウント値に達した場合に通信終了信号を出力する制御手
段と、通信開始信号によってクロック信号の出力を開始
し、通信終了信号によってクロック信号の出力を停止す
る通信クロック発生手段と、クロック信号に同期してデ
ータを1ビットずつシフトするシフトレジスタと、デー
タを格納するための少なくとも2つ以上の格納領域を有
する通信データ格納手段と、通信回数となる制御手段か
らの通信終了信号の出力回数をカウントする通信カウン
タと、この通信カウンタのカウントデータに応じて通信
データ格納手段の有する格納領域のうちの1つの格納領
域を選択し、この選択した格納領域内のデータをシフト
レジスタに供給する格納領域選択手段とを備えたもので
ある。
A serial data communication device according to a third aspect is the serial data communication device according to the second aspect.
The second storage area selection means is characterized by selecting one storage area different from the storage area selected by the first storage area selection means. The serial data communication device according to claim 4, wherein a timer that outputs a communication start signal when a set time has elapsed, and a control means that counts a clock signal and outputs a communication end signal when a predetermined count value is reached. And a communication clock generation means for starting the output of the clock signal by the communication start signal and stopping the output of the clock signal by the communication end signal, a shift register for shifting the data bit by bit in synchronization with the clock signal, and the data Communication data storage means having at least two or more storage areas for storing, a communication counter for counting the number of times of communication end signal output from the control means, which is the number of times of communication, and communication according to the count data of the communication counter One of the storage areas of the data storage means is selected, and the selected storage area is selected. Data is obtained and a storage area selecting means for supplying to the shift register of.

【0009】[0009]

【作用】請求項1記載の構成によれば、格納領域選択手
段により、通信回数をカウントする通信カウンタのカウ
ントデータに応じて自動的に通信データ格納手段の有す
る複数の格納領域を順に選択する。そして、送信時に
は、通信データ制御手段により格納領域内のデータをシ
フトレジスタに格納した後、このシフトレジスタからデ
ータをクロック信号に同期させて1ビットずつシフトさ
せて出力する。また、受信時には、入力されるデータを
クロック信号に同期させて1ビットずつシフトさせてシ
フトレジスタに格納した後、通信データ制御手段により
シフトレジスタ内のデータを格納領域内に格納する。
According to the structure of the first aspect, the storage area selecting means automatically selects a plurality of storage areas of the communication data storing means in accordance with the count data of the communication counter for counting the number of times of communication. Then, at the time of transmission, after the data in the storage area is stored in the shift register by the communication data control means, the data is shifted from the shift register bit by bit in synchronization with the clock signal and output. Further, at the time of reception, after the input data is synchronized with the clock signal, it is shifted bit by bit and stored in the shift register, and then the data in the shift register is stored in the storage area by the communication data control means.

【0010】したがって、従来のように一回の通信ごと
に送信するべきデータの設定または受信したデータの格
納を行うことが不要となり、複数回分の送信データの設
定や受信データの格納を容易に一度に行うことができ、
一連のシリアルデータ通信を容易に連続的に行うことが
できる。請求項2記載の構成によれば、送信時には、第
1の格納領域選択手段により、通信回数をカウントする
第1の通信カウンタのカウンタデータに応じて自動的に
通信データ格納手段の有する複数の格納領域を順に選択
し、受信時には、第2の格納領域選択手段により、通信
回数をカウントする第2の通信カウンタのカウンタデー
タに応じて自動的に通信データ格納領域の有する複数の
格納領域を順に選択する。そして、送信時には、通信デ
ータ制御手段により格納領域内のデータをシフトレジス
タに格納した後、このシフトレジスタからデータをクロ
ック信号に同期させて1ビットずつシフトさせて出力す
る。また、受信時には、入力されるデータをクロック信
号に同期させて1ビットずつシフトさせてシフトレジス
タに格納した後、通信データ制御手段によりシフトレジ
スタ内のデータを格納領域内に格納する。
Therefore, it becomes unnecessary to set the data to be transmitted or store the received data for each communication as in the prior art, and it is easy to set the transmission data for a plurality of times and store the received data once. Can be done in
A series of serial data communication can be easily and continuously performed. According to the configuration of claim 2, at the time of transmission, the first storage area selection unit automatically stores a plurality of storages in the communication data storage unit according to the counter data of the first communication counter that counts the number of times of communication. Areas are sequentially selected, and at the time of reception, the second storage area selecting means automatically selects a plurality of storage areas included in the communication data storage area in accordance with the counter data of the second communication counter that counts the number of times of communication. To do. Then, at the time of transmission, after the data in the storage area is stored in the shift register by the communication data control means, the data is shifted from the shift register bit by bit in synchronization with the clock signal and output. Further, at the time of reception, after the input data is synchronized with the clock signal, it is shifted bit by bit and stored in the shift register, and then the data in the shift register is stored in the storage area by the communication data control means.

【0011】したがって、従来のように一回の通信ごと
に送信するべきデータの設定または受信したデータの格
納を行うことが不要となり、複数回分の送信データの設
定や受信データの格納を容易に一度に行うことができ、
複数回送受信が連続するシリアルデータ通信を簡単に行
うことができる。請求項3記載の構成によれば、請求項
2記載の構成において、第2の格納領域選択手段は第1
の格納領域選択手段が選択する格納領域とは異なる1つ
の格納領域を選択することにより、さらに、複数回送受
信が連続するシリアルデータ通信を容易に行うことがで
き、ソフトウェア処理が容易となる。
Therefore, it becomes unnecessary to set the data to be transmitted or store the received data for each communication as in the prior art, and it is easy to set the transmission data for a plurality of times and store the received data once. Can be done in
Serial data communication in which transmission and reception are repeated a plurality of times can be easily performed. According to the configuration described in claim 3, in the configuration described in claim 2, the second storage area selection means is the first storage area.
By selecting one storage area different from the storage area selected by the storage area selecting means, serial data communication in which transmission and reception are repeated a plurality of times can be easily performed, and software processing is facilitated.

【0012】請求項4記載の構成によれば、タイマーが
出力する通信開始信号により自動的にシリアルデータ通
信を開始し、格納領域選択手段により、通信回数をカウ
ントする通信カウンタのカウントデータに応じて通信デ
ータ格納手段の有する複数の格納領域を順に選択し、こ
の選択した格納領域内のデータをシフトレジスタ内に格
納した後に、このシフトレジスタから送信データとなる
シリアルデータをクロック信号に同期させて1ビットず
つシフトさせて出力する。
According to the fourth aspect of the invention, serial data communication is automatically started by the communication start signal output from the timer, and the storage area selecting means responds to the count data of the communication counter for counting the number of times of communication. A plurality of storage areas included in the communication data storage means are sequentially selected, the data in the selected storage areas are stored in the shift register, and the serial data serving as the transmission data is synchronized with the clock signal from the shift register. Output by shifting bit by bit.

【0013】したがって、従来のように、一回の通信ご
とに送信するべきデータの設定を行うことが不要とな
り、複数回分の送信データの設定を容易に一度に行うこ
とができ、一定間隔の送信が連続するシリアルデータ通
信を簡単に行うことができる。
Therefore, unlike the prior art, it is not necessary to set the data to be transmitted for each communication, the transmission data for a plurality of times can be easily set at one time, and the data can be transmitted at regular intervals. It is possible to easily perform continuous serial data communication.

【0014】[0014]

【実施例】以下、この発明の一実施例について、図面を
参照しながら説明する。図1は、この発明の第1の実施
例のシリアルデータ通信装置の構成を示すブロック図で
ある。図1に示すように、シリアルデータ通信装置は、
制御手段となる制御回路120と、通信カウンタ140
と、通信クロック発生手段となるクロック信号出力回路
110と、シフトレジスタ130と、格納領域として通
信データレジスタ161〜163を有する通信データ格
納手段となる通信データ格納回路160と、格納領域選
択手段となる通信データ選択回路150と、通信データ
制御手段となる通信データ制御回路170とからなる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. 1 is a block diagram showing the configuration of a serial data communication device according to a first embodiment of the present invention. As shown in FIG. 1, the serial data communication device is
A control circuit 120 serving as control means and a communication counter 140
A clock signal output circuit 110 serving as a communication clock generating means, a shift register 130, a communication data storage circuit 160 serving as a communication data storing means having communication data registers 161-163 as storage areas, and a storage area selecting means. It comprises a communication data selection circuit 150 and a communication data control circuit 170 which serves as communication data control means.

【0015】クロック信号出力回路110は、端子10
から通信開始信号1aが供給されると、制御回路12
0,シフトレジスタ130および端子30にシリアルデ
ータ転送用のクロック信号1bを供給するものである。
制御回路120は、クロック信号出力回路110から供
給されるクロック信号1bをカウントし、所定のカウン
ト値に達した場合に、通信終了信号1dをクロック信号
出力回路110,通信カウンタ140および通信データ
制御回路170に供給するものである。
The clock signal output circuit 110 has a terminal 10
When the communication start signal 1a is supplied from the control circuit 12,
0, the shift register 130 and the terminal 30 are supplied with the clock signal 1b for serial data transfer.
The control circuit 120 counts the clock signal 1b supplied from the clock signal output circuit 110, and when it reaches a predetermined count value, outputs the communication end signal 1d as the clock signal output circuit 110, the communication counter 140, and the communication data control circuit. It is supplied to 170.

【0016】通信カウンタ140は、通信回数をカウン
トするカウンタであり、制御回路120から供給される
通信終了信号1dをカウントし、この際のカウントデー
タ1eを通信データ選択回路150に供給するものであ
る。通信データ格納回路160は、通信データの格納領
域として通信データレジスタ161〜163の3つのデ
ータ格納用レジスタを有し、通信データを格納するもの
である。
The communication counter 140 is a counter for counting the number of times of communication, counts the communication end signal 1d supplied from the control circuit 120, and supplies the count data 1e at this time to the communication data selection circuit 150. .. The communication data storage circuit 160 has three data storage registers, communication data registers 161-163, as storage areas for communication data, and stores communication data.

【0017】通信データ選択回路150は、通信カウン
タ140から供給されるカウントデータ1eに応じて、
通信データレジスタ161〜163のうちのいずれか1
つを選択するものである。通信データ制御回路170
は、送信データの設定および受信データの格納を行う回
路であり、端子40から供給される送受信切り換え信号
40aに応じて送受信動作を切り換えられ、通信データ
の送信時には、端子10から供給される通信開始信号1
aによって、通信データ選択回路150が選択した通信
データレジスタ161〜163に格納されているデータ
をシフトレジスタ130に格納し、また、通信データの
受信時には制御回路120から供給される通信終了信号
1dによって、シフトレジスタ130内のデータを通信
データ選択回路150が選択した通信データレジスタ1
61〜163に格納するものである。
The communication data selection circuit 150 responds to the count data 1e supplied from the communication counter 140.
Any one of the communication data registers 161 to 163
One to choose one. Communication data control circuit 170
Is a circuit for setting the transmission data and storing the reception data. The transmission / reception operation can be switched according to the transmission / reception switching signal 40a supplied from the terminal 40, and when the communication data is transmitted, the communication start supplied from the terminal 10 is started. Signal 1
The data stored in the communication data registers 161 to 163 selected by the communication data selection circuit 150 is stored in the shift register 130 by a, and when the communication data is received, the communication end signal 1d supplied from the control circuit 120 is used. The communication data register 1 in which the communication data selection circuit 150 selects the data in the shift register 130
It stores in 61-163.

【0018】シフトレジスタ130は、端子20により
シリアルデータ1cの入出力を行う回路であり、端子4
0から供給される送受信切り換え信号40aに応じて送
受信動作を切り換えられ、送信時には設定されているデ
ータをクロック信号1bに同期して1ビットずつシフト
しながら端子20から出力し、受信時には端子20から
入力されるデータをクロック信号1bに同期して1ビッ
トずつシフトしながら格納するものである。
The shift register 130 is a circuit for inputting and outputting the serial data 1c through the terminal 20, and the terminal 4
The transmission / reception operation is switched according to the transmission / reception switching signal 40a supplied from 0, and the set data is output from the terminal 20 while being shifted bit by bit in synchronization with the clock signal 1b at the time of transmission, and from the terminal 20 at the time of reception. The input data is stored while being shifted bit by bit in synchronization with the clock signal 1b.

【0019】このように構成した第1の実施例のシリア
ルデータ通信装置について、図1および図2を参照しな
がらその動作を説明する。図2は図1に示すシリアルデ
ータ通信装置の主要部の入出力信号のタイミングチャー
トである。図2において、1aは端子10から供給され
る通信開始信号を示し、1bはクロック信号出力回路1
10が出力するシリアルデータ転送用のクロック信号を
示し、1cはシフトレジスタ130が端子20から入出
力するシリアルデータを示し、1dは制御回路120が
出力する通信終了信号を示し、1eは通信カウンタ14
0が出力するカウントデータを示す。
The operation of the serial data communication apparatus of the first embodiment thus constructed will be described with reference to FIGS. 1 and 2. FIG. 2 is a timing chart of input / output signals of main parts of the serial data communication device shown in FIG. In FIG. 2, 1a indicates a communication start signal supplied from the terminal 10, and 1b indicates a clock signal output circuit 1.
10 shows a clock signal for serial data transfer, 1c shows serial data inputted to and outputted from the terminal 20 by the shift register 130, 1d shows a communication end signal outputted by the control circuit 120, and 1e shows a communication counter 14.
0 indicates the count data output.

【0020】まず、通信データ送信時の動作について説
明する。時刻t0の時点までに、各通信データレジスタ
161〜163には、3種類の8ビットの送信データす
なわち、送信データDATAa(各ビットのデータa0
〜a7からなる。),送信データDATAb(各ビット
のデータb0〜b7からなる。)および送信データDA
TAcが設定されているとする。また、通信カウンタ1
40には初期値として“0”が設定されているとする。
さらに、通信カウンタ140から出力されるカウントデ
ータ1eの値“0”,“1”および“2”に対し、通信
データ選択回路150は、各通信データレジスタ16
1,162,163を選択するものとする。これによ
り、時刻t0では通信カウンタ140が“0”であるた
め、通信データ選択回路150は、通信データレジスタ
161を選択することとなる。また、シフトレジスタ1
30は、シリアルデータ1cとして各送信データDAT
Aa,DATAbおよびDATAcをその最下位ビット
から順に端子20から出力するものとする。
First, the operation when transmitting communication data will be described. By the time t0, each of the communication data registers 161 to 163 has three types of 8-bit transmission data, that is, transmission data DATAa (each bit data a0
~ A7. ), Transmission data DATAb (consisting of data b0 to b7 of each bit) and transmission data DA
It is assumed that TAc is set. Also, the communication counter 1
It is assumed that 40 is set to “0” as an initial value.
Further, for the values “0”, “1” and “2” of the count data 1e output from the communication counter 140, the communication data selection circuit 150 causes the communication data register 16 to operate.
1, 162, 163 shall be selected. As a result, since the communication counter 140 is “0” at time t0, the communication data selection circuit 150 selects the communication data register 161. Also, the shift register 1
30 is each transmission data DAT as serial data 1c
It is assumed that Aa, DATAb, and DATAc are output from the terminal 20 in order from the least significant bit.

【0021】先ず、時刻t0で端子10から供給される
通信開始信号1aのリーディングエッジが到来すると、
通信データ制御回路170は、通信データ選択回路15
0が選択した通信データレジスタ161に格納された送
信データDATAaをシフトレジスタ130に設定す
る。これにより、端子20からはシリアルデータ1cと
して送信データDATAaの最下位ビットのデータa0
が出力される。
First, when the leading edge of the communication start signal 1a supplied from the terminal 10 arrives at time t0,
The communication data control circuit 170 includes a communication data selection circuit 15
The transmission data DATAa stored in the communication data register 161 selected by 0 is set in the shift register 130. As a result, the least significant bit data a0 of the transmission data DATAa is output from the terminal 20 as the serial data 1c.
Is output.

【0022】また、クロック信号出力回路110は、時
刻t1で通信開始信号1aのトレイリングエッジが到来
すると、クロック信号1bを制御回路120,シフトレ
ジスタ130および端子30に供給する。これにより、
制御回路120は、クロック信号1bのカウントを開始
する。また、シフトレジスタ130は、時刻t2でクロ
ック信号1bのトレイリングエッジが到来すると、8ビ
ットの送信データDATAaを下位ビット方向に1ビッ
トシフトし、端子20からは送信データDATAaの最
下位ビットから2ビットめのデータa1を出力する。
When the trailing edge of the communication start signal 1a arrives at time t1, the clock signal output circuit 110 supplies the clock signal 1b to the control circuit 120, the shift register 130 and the terminal 30. This allows
The control circuit 120 starts counting the clock signal 1b. Further, when the trailing edge of the clock signal 1b arrives at the time t2, the shift register 130 shifts the 8-bit transmission data DATAa by 1 bit in the lower bit direction, and from the terminal 20, shifts from the least significant bit of the transmission data DATAa to 2 bits. The bit data a1 is output.

【0023】以後、同様にして、シフトレジスタ130
は、クロック信号1bのトレイリングエッジが到来する
たびに、送信データDATAaの各ビットのデータa2
〜a7を下位ビット方向に1ビットずつシフトし、端子
20から送信データDATAaの3〜8ビットめのデー
タa2〜a7を順次出力する。そして、シフトレジスタ
130が、8ビットの送信データDATAaの各ビット
のデータa0〜a7をすべて出力した時、即ち、時刻t
3で制御回路120がクロック信号1bの8つめのリー
ディングエッジをカウントすると、制御回路120は、
時刻t4でクロック信号1bのカウントデータ(図示せ
ず)を初期状態にするとともに、通信終了信号1eをク
ロック信号出力回路110,通信カウンタ140および
通信データ制御回路170に供給する。これにより、ク
ロック信号出力回路110は、時刻t4で通信終了信号
1dのリーディングエッジが到来すると、それ以降のク
ロック信号1bの出力を停止する。このクロック信号1
bの停止によりシフトレジスタ130はシフト動作を停
止する。
Thereafter, in the same manner, the shift register 130
Each time the trailing edge of the clock signal 1b arrives, the data a2 of each bit of the transmission data DATAa is
.About.a7 are shifted bit by bit in the lower bit direction, and the data a2 to a7 of the third to eighth bits of the transmission data DATAa are sequentially output from the terminal 20. Then, when the shift register 130 outputs all the data a0 to a7 of each bit of the 8-bit transmission data DATAa, that is, at the time t.
When the control circuit 120 counts the eighth leading edge of the clock signal 1b in 3, the control circuit 120
At time t4, the count data (not shown) of the clock signal 1b is initialized, and the communication end signal 1e is supplied to the clock signal output circuit 110, the communication counter 140, and the communication data control circuit 170. Thus, when the leading edge of the communication end signal 1d arrives at the time t4, the clock signal output circuit 110 stops the output of the clock signal 1b thereafter. This clock signal 1
The shift register 130 stops the shift operation by stopping b.

【0024】その後、通信カウンタ140は、時刻t5
で通信終了信号1dのトレイリングエッジが到来する
と、カウントデータ1eを“0”から“1”にカウント
アップし、これにともない、通信データ選択回路150
は次に送信するべき送信データDATAbを格納してい
る通信データレジスタ162を選択する。以後、同様
に、時刻t6で通信開始信号1aのリーディングエッジ
が通信データ制御回路170に到来すると、通信データ
選択回路150が選択した通信データレジスタ162に
格納された送信データDATAb(各ビットのデータb
0〜b7からなる。)がシフトレジスタ130に設定さ
れ、次のシリアルデータ送信が行われる。端子20から
出力される送信データは、最下位ビットから送信され、
クロック信号1bのトレイリングエッジで変更されるた
め、受信側のシフトレジスタ(図示せず)では、端子3
0から出力されるクロック信号1bのリーディングエッ
ジで受信データを最上位ビットから取り込み、クロック
信号1bのトレイリングエッジで下位ビット方向に1ビ
ットずつシフトするようにすれば、正しく通信すること
ができる。
After that, the communication counter 140 displays the time t5.
When the trailing edge of the communication end signal 1d arrives, the count data 1e is counted up from "0" to "1", and accordingly, the communication data selection circuit 150
Selects the communication data register 162 that stores the transmission data DATAb to be transmitted next. Thereafter, similarly, when the leading edge of the communication start signal 1a arrives at the communication data control circuit 170 at time t6, the transmission data DATAb (data of each bit b stored in the communication data register 162 selected by the communication data selection circuit 150 is selected.
It consists of 0 to b7. ) Is set in the shift register 130, and the next serial data transmission is performed. The transmission data output from the terminal 20 is transmitted from the least significant bit,
Since it is changed at the trailing edge of the clock signal 1b, in the shift register (not shown) on the receiving side, the terminal 3
If the received data is fetched from the most significant bit at the leading edge of the clock signal 1b output from 0 and the trailing edge of the clock signal 1b is shifted one bit at a time in the lower bit direction, correct communication can be performed.

【0025】次に、図1および図2を参照しながら、通
信データ受信時の動作について説明する。なお、送信動
作と受信動作は、端子40から供給される送受信切り換
え信号40aにより切り換えが行われる。通信カウンタ
140から出力されるカウントデータ1eの値“0”,
“1”および“2”に対し、通信データ選択回路150
は、各通信データレジスタ161,162および163
を選択するものとする。さらに、初期状態として、通信
カウンタ140は“0”となっており、これによって、
通信データ選択回路150は、通信データレジスタ16
1を選択しているとする。また、シフトレジスタ130
は、端子20からシリアルデータ1cとして各受信デー
タDATAa(各ビットのデータa0〜a7からな
る。),DATAbおよびDATAcを最下位ビットか
ら順に送信されてくるものとする。
Next, the operation at the time of receiving communication data will be described with reference to FIGS. The transmission operation and the reception operation are switched by the transmission / reception switching signal 40a supplied from the terminal 40. The value “0” of the count data 1e output from the communication counter 140,
Communication data selection circuit 150 for “1” and “2”
Are communication data registers 161, 162 and 163.
Shall be selected. Further, as the initial state, the communication counter 140 is “0”, which causes
The communication data selection circuit 150 includes a communication data register 16
It is assumed that 1 is selected. In addition, the shift register 130
It is assumed that the received data DATAa (consisting of data a0 to a7 of each bit), DATAb and DATAc are sequentially transmitted from the terminal 20 as serial data 1c from the least significant bit.

【0026】先ず、クロック信号出力回路110は、時
刻t1で通信開始信号1aのトレイリングエッジが到来
すると、クロック信号1bを制御回路120,シフトレ
ジスタ130および端子30に供給する。これにより、
制御回路120は、クロック信号1bのカウントを開始
する。また、シフトレジスタ130は、時刻t1でクロ
ック信号1bのリーディングエッジが到来すると、端子
20から入力されているシリアルデータ1cの最下位ビ
ットのデータa0を最上位ビットに格納し、さらに時刻
t2でクロック信号1bのトレイリングエッジが到来す
ると、時刻t1で最上位ビットに格納したデータa0を
1ビット下位ビット方向にシフトして格納する。
First, when the trailing edge of the communication start signal 1a arrives at time t1, the clock signal output circuit 110 supplies the clock signal 1b to the control circuit 120, the shift register 130 and the terminal 30. This allows
The control circuit 120 starts counting the clock signal 1b. When the leading edge of the clock signal 1b arrives at the time t1, the shift register 130 stores the least significant bit data a0 of the serial data 1c input from the terminal 20 in the most significant bit, and further at the time t2. When the trailing edge of the signal 1b arrives, the data a0 stored in the most significant bit at time t1 is shifted by 1 bit in the lower bit direction and stored.

【0027】以後、同様にして、シフトレジスタ130
は、クロック信号1bのリーディングエッジが到来する
たびに端子20から入力されるシリアルデータ1cを最
上位ビットに取り込み、トレイリングエッジが到来する
たびにそれまでに取り込んだデータを1ビットずつ下位
ビット方向にシフトし、端子20から入力されるシリア
ルデータ1cからなる受信データの3〜8ビットめのデ
ータa2〜a7を順次格納する。
Thereafter, in the same manner, the shift register 130
Each time the leading edge of the clock signal 1b arrives, the serial data 1c input from the terminal 20 is taken into the most significant bit, and every time the trailing edge arrives, the data taken up to that time is read one bit at a time in the lower bit direction. The data a2 to a7 of the third to eighth bits of the received data composed of the serial data 1c input from the terminal 20 are sequentially stored.

【0028】そして、シフトレジスタ130が8ビット
の受信データの各ビットのデータa0〜a7をすべて受
信した時、即ち、時刻t3で制御回路120がクロック
信号1bの8つめのリーディングエッジをカウントする
と、制御回路120は時刻t4でクロック信号1bのカ
ウントデータ(図示せず)を初期状態にするとともに、
通信終了信号1dをクロック信号出力回路110,通信
カウンタ140および通信データ制御回路170に供給
する。これにより、クロック信号出力回路110は、時
刻t4で通信終了信号のリーディングエッジが到来する
と、それ以降のクロック信号1bの出力を停止する。こ
のクロック信号1bの停止によりシフトレジスタ13は
シフト動作を停止する。また、通信データ制御回路17
0は、時刻t4で通信終了信号1dのリーディングエッ
ジが到来すると、シフトレジスタ130に格納された受
信データDATAa(各ビットのデータa0〜a7)を
通信データ選択回路150が選択した通信データレジス
タ161に格納する。
When the shift register 130 receives all the data a0 to a7 of each bit of the 8-bit received data, that is, when the control circuit 120 counts the eighth leading edge of the clock signal 1b at time t3, The control circuit 120 initializes the count data (not shown) of the clock signal 1b at time t4, and
The communication end signal 1d is supplied to the clock signal output circuit 110, the communication counter 140, and the communication data control circuit 170. Thus, when the leading edge of the communication end signal arrives at time t4, the clock signal output circuit 110 stops outputting the clock signal 1b thereafter. The stop of the clock signal 1b causes the shift register 13 to stop the shift operation. In addition, the communication data control circuit 17
When the leading edge of the communication end signal 1d arrives at time t4, the received data DATAa (each bit of data a0 to a7) stored in the shift register 130 is transferred to the communication data register 161 selected by the communication data selection circuit 150. Store.

【0029】その後、通信カウンタ140は、時刻t5
で通信終了信号1dのトレイリングエッジが到来する
と、カウントデータ1eを“0”から“1”にカウント
アップし、これにともない、通信データ選択回路150
は、通信データレジスタ162を選択する。以後、同様
に、時刻t7で通信開始信号1aのトレイリングエッジ
が到来すると、クロック信号1bがクロック信号出力回
路110から制御回路120,シフトレジスタ130お
よび端子30に供給され、次のシリアルデータ受信が行
われる。端子20から入力されるシリアルデータ1cか
らなる受信データは、クロック信号1bのリーディング
エッジに同期して、シフトレジスタ130の最上位ビッ
トから取り込まれ、クロック信号1bのトレイリングエ
ッジで下位ビット方向にシフトされるため、送信側では
送信データの最下位ビットから送信し、端子30から出
力されるクロック信号1bのトレイリングエッジで送信
データを下位ビット方向にシフトし、データを送信すれ
ば、正しく通信することができる。
After that, the communication counter 140 displays the time t5.
When the trailing edge of the communication end signal 1d arrives, the count data 1e is counted up from "0" to "1", and accordingly, the communication data selection circuit 150
Selects the communication data register 162. Thereafter, similarly, when the trailing edge of the communication start signal 1a arrives at time t7, the clock signal 1b is supplied from the clock signal output circuit 110 to the control circuit 120, the shift register 130 and the terminal 30, and the next serial data reception is performed. Done. Received data composed of serial data 1c input from the terminal 20 is taken in from the most significant bit of the shift register 130 in synchronization with the leading edge of the clock signal 1b, and is shifted in the lower bit direction at the trailing edge of the clock signal 1b. Therefore, on the transmitting side, the least significant bit of the transmission data is transmitted, the transmission data is shifted in the lower bit direction at the trailing edge of the clock signal 1b output from the terminal 30, and if the data is transmitted, the communication is correctly performed. be able to.

【0030】このように第1の実施例では、送信時に
は、通信データ選択回路150により通信カウンタ14
0のカウントデータ1eに応じて各通信データレジスタ
161〜163を順に選択し、通信データ制御回路17
0により、この選択した通信データレジスタ161〜1
63に格納した8ビットの送信データをシフトレジスタ
130に供給する。そして、このシフトレジスタ130
から送信データを1ビットずつシフトして出力する。ま
た、受信時には、通信データ選択回路150により通信
カウンタ140のカウントデータ1eに応じて各通信デ
ータレジスタ161〜163を順に選択し、この選択し
た通信データレジスタ161〜163に、通信データ制
御回路170によりシフトレジスタ130に入力した8
ビットの受信データを供給する。すなわち、送信時に
は、複数の通信データレジスタ161〜163に格納し
た送信データを順にシフトレジスタ130に格納し、こ
のシフトレジスタ130に格納した送信データを1ビッ
トずつ出力し、また、受信時には、シフトレジスタ13
0に格納した受信データを複数の通信データレジスタ1
61〜163に順に格納することにより、複数回分の送
信データの設定や受信データの格納を容易に一度に行う
ことができる。
As described above, in the first embodiment, the communication counter 14 is set by the communication data selection circuit 150 during transmission.
The communication data registers 161 to 163 are sequentially selected according to the count data 1e of 0, and the communication data control circuit 17
Depending on 0, the selected communication data registers 161-1
The 8-bit transmission data stored in 63 is supplied to the shift register 130. Then, the shift register 130
The transmission data is shifted by 1 bit and output. When receiving, the communication data selection circuit 150 sequentially selects the communication data registers 161 to 163 according to the count data 1e of the communication counter 140, and the communication data control circuit 170 causes the selected communication data registers 161 to 163 to be selected. 8 input to the shift register 130
Supplies the received data in bits. That is, at the time of transmission, the transmission data stored in the plurality of communication data registers 161 to 163 are sequentially stored in the shift register 130, and the transmission data stored in the shift register 130 is output bit by bit. Thirteen
Received data stored in 0 is stored in a plurality of communication data registers 1
By sequentially storing in 61 to 163, it is possible to easily set the transmission data for a plurality of times and store the reception data at one time.

【0031】その結果、マイクロプロセッサ間のシリア
ルデータ通信に適用した場合に、通信間隔時間が短い連
続した通信の場合でも、シリアルデータの設定,シリア
ルデータの格納および通信開始タイミング等の制御を行
うためのソフトウェア処理が簡単となる。図3は、この
発明の第2の実施例のシリアルデータ通信装置の構成を
示すブロック図である。
As a result, when it is applied to serial data communication between microprocessors, serial data setting, serial data storage, communication start timing, etc. are controlled even in the case of continuous communication with a short communication interval time. The software processing of is simplified. FIG. 3 is a block diagram showing the configuration of the serial data communication device according to the second embodiment of the present invention.

【0032】図3に示すように、シリアルデータ通信装
置は、制御手段となる制御回路320と、通信クロック
発生手段となるクロック信号出力回路310と、シフト
レジスタ330と、格納領域として送信データレジスタ
361〜363および受信データレジスタ364〜36
6を有する通信データ格納手段となる通信データ格納回
路360と、通信回数をカウントする第1および第2の
通信カウンタとなる送信カウンタ340および受信カウ
ンタ341と、第1の格納領域選択手段となる送信デー
タ選択回路350と、第2の格納領域選択手段となる受
信データ選択回路351と、通信データ制御手段となる
通信データ制御回路370とからなる。
As shown in FIG. 3, the serial data communication device has a control circuit 320 as a control means, a clock signal output circuit 310 as a communication clock generation means, a shift register 330, and a transmission data register 361 as a storage area. -363 and reception data registers 364-36
6, a communication data storage circuit 360 serving as communication data storage means, a transmission counter 340 and a reception counter 341 serving as first and second communication counters that count the number of times of communication, and a transmission serving as first storage area selection means. It comprises a data selection circuit 350, a reception data selection circuit 351 which serves as second storage area selection means, and a communication data control circuit 370 which serves as communication data control means.

【0033】クロック信号出力回路310は、端子10
から通信開始信号3bが供給されると、制御回路32
0,シフトレジスタ330および端子30にシリアルデ
ータ転送用のクロック信号3cを供給するものである。
制御回路320は、通信終了信号3eを出力する回路で
あり、クロック信号出力回路310から供給されるクロ
ック信号3cをカウントし、所定のカウント値に達した
場合に、通信終了信号3eをクロック信号出力回路31
0, 送信カウンタ340,受信カウンタ341および通
信データ制御回路370に供給するものである。
The clock signal output circuit 310 has a terminal 10
When the communication start signal 3b is supplied from the control circuit 32,
0, the shift register 330 and the terminal 30 are supplied with the clock signal 3c for serial data transfer.
The control circuit 320 is a circuit that outputs the communication end signal 3e, counts the clock signal 3c supplied from the clock signal output circuit 310, and outputs the communication end signal 3e when the count value reaches a predetermined count value. Circuit 31
0, the transmission counter 340, the reception counter 341, and the communication data control circuit 370.

【0034】送信カウンタ340は、送信回数をカウン
トするカウンタであり、端子40から供給される送受信
切り換え信号40aが送信状態を示している場合に、制
御回路320から供給される通信終了信号3eをカウン
トし、この際のカウントデータ3fを送信データ選択回
路350に供給するものである。受信カウンタ341
は、受信回数をカウントするカウンタであり、端子40
から供給される送受信切り換え信号40aが受信状態を
示している場合に、制御回路320から供給される通信
終了信号3eをカウントし、この際のカウントデータ3
gを受信データ選択回路351に供給するものである。
The transmission counter 340 is a counter that counts the number of transmissions, and counts the communication end signal 3e supplied from the control circuit 320 when the transmission / reception switching signal 40a supplied from the terminal 40 indicates the transmission state. However, the count data 3f at this time is supplied to the transmission data selection circuit 350. Reception counter 341
Is a counter that counts the number of receptions, and the terminal 40
When the transmission / reception switching signal 40a supplied from the device indicates the reception state, the communication end signal 3e supplied from the control circuit 320 is counted, and the count data 3 at this time is counted.
g is supplied to the reception data selection circuit 351.

【0035】通信データ格納回路360は、送信データ
レジスタ361〜363および受信データレジスタ36
4〜366を有し、送信データ3hおよび受信データ3
iを格納するものである。送信データ選択回路350
は、送信カウンタ340から供給されるカウントデータ
3fに応じて、送信データレジスタ361〜363のう
ちいずれか1つを選択し、選択した送信データレジスタ
361〜363に格納されている送信データ3hを通信
データ制御回路370に供給するものである。
The communication data storage circuit 360 includes transmission data registers 361 to 363 and reception data register 36.
4 to 366, transmitted data 3h and received data 3
It stores i. Transmission data selection circuit 350
Selects any one of the transmission data registers 361 to 363 according to the count data 3f supplied from the transmission counter 340, and communicates the transmission data 3h stored in the selected transmission data register 361 to 363. It is supplied to the data control circuit 370.

【0036】受信データ選択回路351は、受信カウン
タ341から供給されるカウントデータ3gに応じて、
通信データ制御回路370から供給される受信データ3
iを格納するための受信データレジスタを受信データレ
ジスタ364〜366の中から1つ選択するものであ
る。通信データ制御回路370は、送信データ3hの設
定および受信データ3iの格納を行うための回路であ
り、端子40から供給される送受信切り換え信号40a
に応じて、送信時には端子10から供給される通信開始
信号3bによって、送信データ選択回路350から供給
される送信データ3hをシフトレジスタ330に格納
し、受信時には制御回路320から供給される通信終了
信号3eによって、シフトレジスタ330に受信された
受信データ3iを受信データ選択回路351が選択する
受信データレジスタ364〜366に格納するものであ
る。
The reception data selection circuit 351 responds to the count data 3g supplied from the reception counter 341.
Received data 3 supplied from the communication data control circuit 370
One receiving data register for storing i is selected from the receiving data registers 364 to 366. The communication data control circuit 370 is a circuit for setting the transmission data 3h and storing the reception data 3i, and the transmission / reception switching signal 40a supplied from the terminal 40.
Accordingly, the transmission start signal 3b supplied from the terminal 10 stores the transmission data 3h supplied from the transmission data selection circuit 350 in the shift register 330 at the time of transmission, and the communication end signal supplied from the control circuit 320 at the time of reception. The reception data 3i received by the shift register 330 by 3e is stored in the reception data registers 364 to 366 selected by the reception data selection circuit 351.

【0037】シフトレジスタ330は、シリアルデータ
3dの入出力を行う回路であり、端子40から供給され
る送受信切り換え信号40aに応じて送受信動作を切り
換えられ、送信時には設定されているデータをクロック
信号3cに同期して1ビットずつシフトしながら端子2
0から出力し、受信時には端子20から入力されるデー
タをクロック信号3cに同期して1ビットずつシフトし
ながら格納するものである。
The shift register 330 is a circuit for inputting / outputting the serial data 3d. The transmission / reception operation can be switched according to the transmission / reception switching signal 40a supplied from the terminal 40, and the data set at the time of transmission can be the clock signal 3c. Terminal 2 while shifting bit by bit in synchronization with
The data is output from 0, and at the time of reception, the data input from the terminal 20 is stored while being shifted bit by bit in synchronization with the clock signal 3c.

【0038】このように構成した第2の実施例のシリア
ルデータ通信装置について、図3および図4を参照しな
がらその動作を説明する。図4は図3に示すシリアルデ
ータ通信装置で送信動作と受信動作を交互に行った場合
の主要部の入出力信号のタイミングチャートである。図
4において、40aは端子40から供給される送受信切
り換え信号を示し、3bは端子10から供給される通信
開始信号を示し、3cはクロック信号出力回路310が
出力するシリアルデータ転送用のクロック信号を示し、
3dはシフトレジスタ330が端子20から入出力を行
うシリアルデータを示し、3eは制御回路320が出力
する通信終了信号を示し、3fは送信カウンタ340の
カウントデータを示し、3gは受信カウンタ341のカ
ウントデータを示し、3hは送信データ選択回路350
から通信データ制御回路370に供給される送信データ
を示し、3iは受信データレジスタ364に格納される
受信データを示す。
The operation of the serial data communication apparatus of the second embodiment having such a configuration will be described with reference to FIGS. 3 and 4. FIG. 4 is a timing chart of input / output signals of main parts when the transmission operation and the reception operation are alternately performed in the serial data communication device shown in FIG. In FIG. 4, reference numeral 40a denotes a transmission / reception switching signal supplied from the terminal 40, 3b denotes a communication start signal supplied from the terminal 10, and 3c denotes a clock signal for serial data transfer output from the clock signal output circuit 310. Shows,
3d is serial data that the shift register 330 inputs / outputs from the terminal 20, 3e is a communication end signal output from the control circuit 320, 3f is count data of the transmission counter 340, and 3g is count of the reception counter 341. Data is shown, and 3h is a transmission data selection circuit 350.
3 shows the transmission data supplied to the communication data control circuit 370 from 3i and 3i shows the reception data stored in the reception data register 364.

【0039】時刻t0の時点までに、各送信データレジ
スタ361〜363には8ビットの送信データDATA
a(各ビットのデータa0〜a7からなる。),DAT
AbおよびDATAcがそれぞれ設定されている。ま
た、送信カウンタ340および受信カウンタ341に
は、初期値として“0”が設定されているとする。ま
た、送信カウンタ340のカウントデータ3fの値
“0”,“1”および“2”に対し、送信データ選択回
路350は送信データレジスタ361,362および3
63を選択し、受信カウンタ341のカウントデータ3
gの値“0”,“1”および“2”に対し、受信データ
選択回路351は受信送信データレジスタ364,36
5および366を選択するとする。また、シフトレジス
タ330は、送信時には、端子20にシリアルデータ3
dとして送信データの最下位ビットから順に出力し、受
信時には、端子20にシリアルデータ3dとして受信デ
ータの最下位ビットから順に送られてくるものとする。
また、端子40から供給される送受信切り換え信号40
aの電位は高電位レベルと低電位レベルのいずれかであ
り、高電位レベルの場合は送信を行い、低電位レベルの
場合は受信を行うものとする。
By the time t0, 8-bit transmission data DATA is stored in each transmission data register 361-363.
a (consisting of data a0 to a7 of each bit), DAT
Ab and DATAc are set respectively. Further, it is assumed that the transmission counter 340 and the reception counter 341 are set to “0” as initial values. Further, the transmission data selection circuit 350 transmits the transmission data registers 361, 362 and 3 for the values “0”, “1” and “2” of the count data 3f of the transmission counter 340.
63 is selected, and the count data 3 of the reception counter 341
For the values of g “0”, “1” and “2”, the reception data selection circuit 351 receives the reception transmission data registers 364, 36.
Suppose 5 and 366 are selected. In addition, the shift register 330 sends the serial data 3 to the terminal 20 during transmission.
It is assumed that the least significant bit of the transmission data is sequentially output as d, and at the time of reception, the least significant bit of the reception data is sequentially transmitted to the terminal 20 as the serial data 3d.
In addition, the transmission / reception switching signal 40 supplied from the terminal 40
The potential of a is either a high potential level or a low potential level. When the potential is a high potential level, transmission is performed, and when it is a low potential level, reception is performed.

【0040】先ず、時刻t0で端子40から供給される
送受信切り換え信号40aの電位が高電位レベルとなる
ことによって図3に示したシリアルデータ通信装置は送
信状態となったとする。そして、時刻t1で通信開始信
号3bのリーディングエッジが到来すると、通信データ
制御回路370は、送信データ選択回路350が選択し
た送信データレジスタ361に格納された8ビットの送
信データDATAa(各ビットのデータa0〜a7から
なる。)をシフトレジスタ330に設定する。これによ
り、端子20からは送信データDATAaの最下位ビッ
トのデータa0が出力される。
First, assume that the transmission / reception switching signal 40a supplied from the terminal 40 has a high potential level at time t0, and the serial data communication apparatus shown in FIG. When the leading edge of the communication start signal 3b arrives at the time t1, the communication data control circuit 370 causes the transmission data selection circuit 350 to select the 8-bit transmission data DATAa (data of each bit) stored in the transmission data register 361. a0 to a7) are set in the shift register 330. As a result, the least significant bit data a0 of the transmission data DATAa is output from the terminal 20.

【0041】次に、クロック信号出力回路310は、時
刻t2で通信開始信号3bのトレイリングエッジが到来
すると、クロック信号3cの出力を開始し、制御回路3
20,シフトレジスタ330および端子30にクロック
信号3cを供給する。これにより、制御回路320はク
ロック信号3cのカウントを開始する。また、シフトレ
ジスタ330は、時刻t3でクロック信号3cのトレイ
リングエッジが到来すると、8ビットの送信データDA
TAaを下位ビット方向に1ビットシフトし、端子20
から送信データDATAaの最下位ビットから2ビット
めのデータa1を出力する。
Next, when the trailing edge of the communication start signal 3b arrives at the time t2, the clock signal output circuit 310 starts outputting the clock signal 3c, and the control circuit 3
The clock signal 3c is supplied to 20, the shift register 330 and the terminal 30. As a result, the control circuit 320 starts counting the clock signal 3c. Further, the shift register 330 receives the 8-bit transmission data DA when the trailing edge of the clock signal 3c arrives at time t3.
TAa is shifted by 1 bit in the lower bit direction, and the terminal 20
Outputs the second bit data a1 from the least significant bit of the transmission data DATAa.

【0042】以後、同様にして、シフトレジスタ330
は、クロック信号3cのトレイリングエッジが到来する
たびに送信データDATAaを下位ビット方向に1ビッ
トずつシフトし、端子20から送信データDATAaの
3〜8ビットめのデータa2〜a7を順次出力する。そ
して、シフトレジスタ330が8ビットの送信データD
ATAaの各ビットのデータa0〜a7をすべて出力し
た時、即ち、時刻t4では制御回路320は、クロック
信号3cの8つめのリーディングエッジをカウントする
と、時刻t5でクロック信号3cのカウントデータ(図
示せず)を初期状態にするとともに、通信終了信号3e
をクロック信号出力回路310,送信カウンタ340,
受信カウンタ341および通信データ制御回路370に
供給する。これにより、クロック信号出力回路310は
時刻t5で通信終了信号3eのリーディングエッジが到
来すると、それ以降のクロック信号3cの出力を停止す
る。このクロック信号3cの停止によりシフトレジスタ
330はシフト動作を停止する。また、送信カウンタ3
40は、時刻t6で通信終了信号3eのトレイリングエ
ッジが到来すると、カウントデータ3fを“0”から
“1”にカウントアップし、これにともない、送信デー
タ選択回路350は、送信データレジスタ362を選択
し、これにより、送信データレジスタ362は、次の送
信データとして送信データDATAbを通信データ制御
回路370に供給する。
Thereafter, the shift register 330 is similarly processed.
Shifts the transmission data DATAa by 1 bit in the lower bit direction each time the trailing edge of the clock signal 3c arrives, and sequentially outputs the 3rd to 8th bit data a2 to a7 of the transmission data DATAa from the terminal 20. Then, the shift register 330 sets the 8-bit transmission data D
When all the data a0 to a7 of each bit of ATAa are output, that is, at time t4, the control circuit 320 counts the eighth leading edge of the clock signal 3c, and at time t5, count data of the clock signal 3c (not shown). Communication end signal 3e
A clock signal output circuit 310, a transmission counter 340,
It is supplied to the reception counter 341 and the communication data control circuit 370. Thus, when the leading edge of the communication end signal 3e arrives at the time t5, the clock signal output circuit 310 stops the output of the clock signal 3c thereafter. The stop of the clock signal 3c causes the shift register 330 to stop the shift operation. Also, the transmission counter 3
40, when the trailing edge of the communication end signal 3e arrives at time t6, the count data 3f is counted up from “0” to “1”, and accordingly, the transmission data selection circuit 350 sets the transmission data register 362. The transmission data register 362 supplies the transmission data DATAb to the communication data control circuit 370 as the next transmission data.

【0043】次に、時刻t7で送受信切り換え信号40
aの電位が高電位レベルから低電位レベルに変化する
と、通信モードが送信モードから受信モードに切り換わ
り、端子20によりシリアルデータ3dの入力すなわち
受信データDATAa’(各ビットのデータa0’〜a
7’からなる。)の入力が可能となる。時刻t8で通信
開始信号3bのトレイリングエッジが到来すると、送信
時と同様に、クロック信号出力回路310は、クロック
信号3cの出力を開始し、制御回路320,シフトレジ
スタ330および端子30にクロック信号3cが供給さ
れる。これにより、制御回路320は、クロック信号3
cのカウントを開始する。また、時刻t8でのクロック
信号3cのリーディングエッジによって、シフトレジス
タ330は端子20から入力されているシリアルデータ
3dの最下位ビットのデータa0’を最上位ビットに格
納し、さらに時刻t9でクロック信号3cのトレイリン
グエッジが到来すると時刻t8で最上位ビットに格納し
たデータa0’を1ビット下位ビット方向にシフトして
格納する。
Next, at time t7, the transmission / reception switching signal 40
When the potential of a changes from the high potential level to the low potential level, the communication mode is switched from the transmission mode to the reception mode, and the terminal 20 inputs the serial data 3d, that is, the reception data DATAa '(each bit data a0' to a.
It consists of 7 '. ) Can be entered. When the trailing edge of the communication start signal 3b arrives at time t8, the clock signal output circuit 310 starts the output of the clock signal 3c, and outputs the clock signal to the control circuit 320, the shift register 330, and the terminal 30, as in the case of transmission. 3c is supplied. As a result, the control circuit 320 causes the clock signal 3
Start counting c. Further, due to the leading edge of the clock signal 3c at the time t8, the shift register 330 stores the least significant bit data a0 ′ of the serial data 3d input from the terminal 20 in the most significant bit, and further at the time t9, the clock signal 3c. When the trailing edge of 3c arrives, the data a0 ′ stored in the most significant bit at time t8 is shifted by 1 bit in the lower bit direction and stored.

【0044】以後、同様にして、シフトレジスタ330
は、クロック信号3cのリーディングエッジが到来する
たびに端子20から入力されるシリアルデータ3dを最
上位ビットに取り込み、クロック信号3cのトレイリン
グエッジが到来するたびにそれまでに取り込んだシリア
ルデータ3dを1ビットずつ下位ビット方向にシフトす
ることにより、端子20から入力される受信データの3
〜8ビットめのデータa2’〜a7’を順次格納する。
Thereafter, in the same manner, the shift register 330
Captures the serial data 3d input from the terminal 20 in the most significant bit each time the leading edge of the clock signal 3c arrives, and captures the serial data 3d previously captured each time the trailing edge of the clock signal 3c arrives. By shifting in the direction of lower bits by 1 bit, 3 of received data input from the terminal 20 can be obtained.
8th bit data a2 'to a7' are sequentially stored.

【0045】そして、シフトレジスタ330が8ビット
の受信データDATAa’となる各ビットのデータa
0’〜a7’をすべて受信した時、即ち、時刻t10で
制御回路320が、クロック信号3cの8つめのリーデ
ィングエッジをカウントすると、制御回路320は時刻
t11でクロック信号3cのカウントデータ(図示せ
ず)を初期状態にするとともに、通信終了信号3eをク
ロック信号出力回路310,受信カウンタ341および
通信データ制御回路370に供給する。これにより、ク
ロック信号出力回路310は、時刻t11で通信終了信
号3eのリーディングエッジが到来すると、それ以降の
クロック信号3cの出力を停止する。このクロック信号
3cの停止によりシフトレジスタ330はシフト動作を
停止する。また、通信データ制御回路370は時刻t1
1で通信終了信号3eのリーディングエッジが到来する
と、シフトレジスタ330に格納された受信データDA
TAa’(各ビットのデータa0’〜a7’からな
る。)を受信データ選択回路351により選択した受信
データレジスタ364に格納する。
Then, the shift register 330 outputs 8-bit received data DATAa ', which is the data a of each bit.
When all 0'-a7 'are received, that is, when the control circuit 320 counts the eighth leading edge of the clock signal 3c at time t10, the control circuit 320 at time t11 outputs count data of the clock signal 3c (not shown). (3) is initialized and the communication end signal 3e is supplied to the clock signal output circuit 310, the reception counter 341 and the communication data control circuit 370. Accordingly, when the leading edge of the communication end signal 3e arrives at the time t11, the clock signal output circuit 310 stops the output of the clock signal 3c thereafter. The stop of the clock signal 3c causes the shift register 330 to stop the shift operation. Further, the communication data control circuit 370 determines that the time t1
When the leading edge of the communication end signal 3e arrives at 1, the received data DA stored in the shift register 330
TAa ′ (consisting of data a0 ′ to a7 ′ of each bit) is stored in the reception data register 364 selected by the reception data selection circuit 351.

【0046】その後、受信カウンタ341は、時刻t1
2で通信終了信号3eのトレイリングエッジが到来する
と、カウントデータ3gを“0”から“1”にカウント
アップし、これにともない、受信データ選択回路351
は次の受信データを格納するレジスタとして、受信デー
タレジスタ365を選択する。以後、同様にして、端子
40から供給する送受信切り換え信号40aによって、
送信動作あるいは受信動作を指定し、端子10から通信
開始信号3bが供給されると、送信時には送信データレ
ジスタ362,363に格納されているデータを順に送
信開始時にシフトレジスタ330に設定した後に1ビッ
トずつ送信し、、受信時にはシフトレジスタ330によ
り受信データを受信し、受信終了時に受信データレジス
タ365,366に順に受信データの格納を行う。
After that, the reception counter 341 displays the time t1.
When the trailing edge of the communication end signal 3e arrives at 2, the count data 3g is counted up from "0" to "1".
Selects the reception data register 365 as a register for storing the next reception data. Thereafter, in the same manner, by the transmission / reception switching signal 40a supplied from the terminal 40,
When the transmission operation or the reception operation is designated and the communication start signal 3b is supplied from the terminal 10, the data stored in the transmission data registers 362 and 363 at the time of transmission is sequentially set in the shift register 330 at the start of transmission and then 1 bit is set. The shift register 330 receives the received data at the time of reception, and the received data is sequentially stored in the received data registers 365 and 366 at the end of the reception.

【0047】なお、図4では送信終了後に受信を行って
いるが、受信終了後に送信を行う場合や、受信あるいは
送信を続けて行う場合も全く同様にして通信することが
できる。このように第2の実施例では、送信データおよ
び受信データを格納するための送信データレジスタ36
1〜363と受信データレジスタ364〜366とを独
立させ、これらを選択する送信データ選択回路350と
受信データ選択回路351とを独立させ、さらにこれら
にカウントデータ3f,3gを与える受信カウンタ34
0と送信カウンタ341とを独立させている。そして、
送信カウンタ340および受信カウンタ341のカウン
トデータ3f,3gに応じて自動的に送信データレジス
タ361〜363および受信データレジスタ364〜3
66を順に選択し、送信時には、通信データ制御回路3
70により送信データレジスタ361〜363内の送信
データ3hをシフトレジスタ330に格納した後、この
シフトレジスタ330からシリアルデータ3dをクロッ
ク信号3cに同期させて1ビットずつシフトさせて出力
する。また、受信時には、入力されるシリアルデータ3
dをクロック信号3cに同期させて1ビットずつシフト
させてシフトレジスタ330に格納した後、通信データ
制御回路370によりシフトレジスタ330内のデータ
を受信データレジスタ364〜366内に格納する。
In FIG. 4, the reception is performed after the end of the transmission, but the same communication can be performed when the transmission is performed after the end of the reception or when the reception or the transmission is continuously performed. As described above, in the second embodiment, the transmission data register 36 for storing the transmission data and the reception data is stored.
1-363 and the reception data registers 364-366 are independent, the transmission data selection circuit 350 and the reception data selection circuit 351 for selecting them are independent, and the reception counter 34 for giving count data 3f, 3g to them is further provided.
0 and the transmission counter 341 are independent. And
The transmission data registers 361 to 363 and the reception data registers 364 to 3 are automatically generated according to the count data 3f and 3g of the transmission counter 340 and the reception counter 341.
66 in order, and when transmitting, the communication data control circuit 3
After the transmission data 3h in the transmission data registers 361 to 363 is stored in the shift register 330 by 70, the serial data 3d is shifted from the shift register 330 by 1 bit in synchronization with the clock signal 3c and output. Also, the serial data 3 that is input when receiving
After d is shifted bit by bit in synchronization with the clock signal 3c and stored in the shift register 330, the data in the shift register 330 is stored in the reception data registers 364 to 366 by the communication data control circuit 370.

【0048】したがって、従来のように一回の通信ごと
に送信するべきデータの設定または受信したデータの格
納を行うことが不要となり、複数回分の送信データの設
定や受信データの格納を容易に一度に行うことができ、
複数回送受信が連続するシリアルデータ通信を簡単に行
うことができる。その結果、マイクロプロセッサ間のシ
リアルデータ通信に適用した場合に、通信間隔時間が短
く交互に送受信が連続した通信の場合でも、シリアルデ
ータの設定,シリアルデータの格納および通信開始タイ
ミング等の制御を行うためのソフトウェア処理が簡単と
なる。
Therefore, it becomes unnecessary to set the data to be transmitted or store the received data for each communication as in the conventional case, and it is easy to set the transmission data for a plurality of times and store the received data once. Can be done in
Serial data communication in which transmission and reception are repeated a plurality of times can be easily performed. As a result, when applied to serial data communication between microprocessors, even in the case of communication in which communication interval time is short and transmission and reception are alternately repeated, serial data setting, serial data storage, communication start timing, etc. are controlled. The software processing for this becomes simple.

【0049】図5は、この発明の第3の実施例のシリア
ルデータ通信装置の構成を示すブロック図である。図5
に示すように、シリアルデータ通信装置は、タイマー5
00と、制御手段となる制御回路520と、通信クロッ
ク発生手段となるクロック信号出力回路510と、シフ
トレジスタ530と、格納領域として通信データレジス
タ561〜563を有する通信データ格納手段となる通
信データ格納領域560と、通信回数をカウントする通
信カウンタ540と、格納領域選択手段となる通信デー
タ選択回路550とからなる。
FIG. 5 is a block diagram showing the configuration of a serial data communication device according to the third embodiment of the present invention. Figure 5
As shown in FIG.
00, a control circuit 520 serving as control means, a clock signal output circuit 510 serving as communication clock generation means, a shift register 530, and communication data storage serving as communication data storage means having communication data registers 561 to 563 as storage areas. The area 560 includes a communication counter 540 that counts the number of times of communication, and a communication data selection circuit 550 that serves as a storage area selection unit.

【0050】タイマー500は、シリアル通信を開始す
るためのタイミング信号を発生する回路であり、端子1
0から供給されるタイマースタート信号5aあるいは制
御回路520から供給される通信終了信号5eにより動
作を開始し、あらかじめ設定された時間が経過すると通
信開始信号5bをクロック信号出力回路510およびシ
フトレジスタ530に供給するものである。
The timer 500 is a circuit for generating a timing signal for starting serial communication, and has a terminal 1
The operation is started by the timer start signal 5a supplied from 0 or the communication end signal 5e supplied from the control circuit 520, and when a preset time elapses, the communication start signal 5b is sent to the clock signal output circuit 510 and the shift register 530. To supply.

【0051】クロック信号出力回路510は、シリアル
データ転送用のクロック信号5cを発生する回路であ
り、タイマー500から通信開始信号5bが供給される
と、制御回路520,シフトレジスタ530および端子
30にクロック信号5cを供給するものである。制御回
路520は、通信終了信号5eを出力する回路であり、
クロック信号出力回路510から供給されるクロック信
号5cをカウントし、所定のカウント値に達した場合
に、通信終了信号5eをタイマー500,クロック信号
出力回路510および通信カウンタ540に供給するも
のである。
The clock signal output circuit 510 is a circuit for generating a clock signal 5c for serial data transfer. When the communication start signal 5b is supplied from the timer 500, the clock signal output circuit 510 outputs a clock to the control circuit 520, the shift register 530 and the terminal 30. It supplies the signal 5c. The control circuit 520 is a circuit that outputs the communication end signal 5e,
The clock signal 5c supplied from the clock signal output circuit 510 is counted, and when a predetermined count value is reached, the communication end signal 5e is supplied to the timer 500, the clock signal output circuit 510 and the communication counter 540.

【0052】通信カウンタ540は通信回数をカウント
するカウンタであり、この際のカウントデータ5fを通
信データ選択回路550に供給するものである。通信デ
ータ格納回路560は、通信データレジスタ561〜5
63で構成され、通信データの格納を行うものである。
通信データ選択回路550は、通信カウンタ540から
供給されるカウントデータ5fに応じて、通信データレ
ジスタ561〜563のうちいずれか1つを選択し、選
択した通信データレジスタ561〜563に格納されて
いる送信データ5gをシフトレジスタ530に供給する
ものである。
The communication counter 540 is a counter for counting the number of times of communication, and supplies the count data 5f at this time to the communication data selection circuit 550. The communication data storage circuit 560 includes communication data registers 561-5.
63, and stores communication data.
The communication data selection circuit 550 selects any one of the communication data registers 561 to 563 according to the count data 5f supplied from the communication counter 540 and stores the selected one in the selected communication data registers 561 to 563. The transmission data 5g is supplied to the shift register 530.

【0053】シフトレジスタ530は、シリアルデータ
5eの出力を行う回路であり、タイマー500から供給
される通信開始信号5bによって、通信データ選択回路
550から供給される送信データ5gを格納し、格納し
た送信データ5gをクロック信号5cに同期して1ビッ
トずつシフトしながら端子20から出力するものであ
る。
The shift register 530 is a circuit for outputting the serial data 5e, stores the transmission data 5g supplied from the communication data selection circuit 550 in response to the communication start signal 5b supplied from the timer 500, and stores the stored transmission data 5g. The data 5g is output from the terminal 20 while being shifted bit by bit in synchronization with the clock signal 5c.

【0054】このように構成した第3の実施例のシリア
ルデータ通信装置について、図5および図6を参照しな
がらその動作を説明する。図6は図5に示すシリアルデ
ータ通信装置の主要部の入出力信号のタイミングチャー
トである。図6において、5aは端子10から供給され
るタイマースタート信号を示し、5bはタイマー500
から出力される通信開始信号を示し、5cはクロック信
号出力回路510が出力するシリアルデータ転送用のク
ロック信号を示し、5dはシフトレジスタ530が端子
20から出力するシリアルデータを示し、5eは制御回
路520が出力する通信終了信号を示し、5fは通信カ
ウンタ540のカウントデータを示し、5gは通信デー
タ選択回路550からシフトレジスタ530に供給され
る送信データを示している。
The operation of the serial data communication apparatus of the third embodiment having the above configuration will be described with reference to FIGS. 5 and 6. FIG. 6 is a timing chart of input / output signals of main parts of the serial data communication device shown in FIG. In FIG. 6, 5a indicates a timer start signal supplied from the terminal 10, and 5b indicates a timer 500.
5c indicates a communication start signal output from the clock signal output circuit 510, 5c indicates a serial data transfer clock signal output from the clock signal output circuit 510, 5d indicates serial data output from the shift register 530 from the terminal 20, and 5e indicates a control circuit. Reference numeral 5f indicates the communication end signal output from 520, 5f indicates the count data of the communication counter 540, and 5g indicates the transmission data supplied from the communication data selection circuit 550 to the shift register 530.

【0055】時刻t0の時点までに、タイマー570に
はプリセットデータとして、通信間隔時間Tに対応する
タイミングデータDATAtを予め設定されており、ま
た、通信データレジスタ561〜563にはそれぞれ8
ビットの送信データDATAa(各ビットのデータa0
〜a7からなる。),DATAb(各ビットのデータb
0〜a7からなる。)およびDATAcがあらかじめ設
定されており、通信カウンタ540には初期値として
“0”が設定されているとする。さらに、通信カウンタ
540のカウントデータ“0”,“1”,“2”に対
し、通信データ選択回路550は通信データレジスタ5
61,562,563を選択するものとする。また、シ
フトレジスタ530は送信データとなるシリアルデータ
5dを最下位ビットから順に端子20から出力するもの
とする。
By the time t0, the timer 570 has preset the preset timing data DATAt corresponding to the communication interval time T, and each of the communication data registers 561 to 563 has 8 pieces.
Bit transmission data DATAa (each bit data a0
~ A7. ), DATAb (data b of each bit
It consists of 0 to a7. ) And DATAc are set in advance, and “0” is set as an initial value in the communication counter 540. Further, for the count data “0”, “1”, “2” of the communication counter 540, the communication data selection circuit 550 causes the communication data register 5 to
It is assumed that 61, 562 and 563 are selected. Further, the shift register 530 outputs serial data 5d which is transmission data from the terminal 20 in order from the least significant bit.

【0056】先ず、時刻t0で端子10からタイマース
タート信号5aのリーディングエッジがタイマー570
に供給されるとタイマー570は動作を開始する。タイ
マー570は通信間隔時間Tが経過すると、通信開始信
号5bをシフトレジスタ530およびクロック信号出力
回路510に供給し、再び通信間隔時間Tに対応するタ
イミングデータDATAtをセットして動作を停止す
る。
First, at time t0, the leading edge of the timer start signal 5a from the terminal 10 changes to the timer 570.
Is supplied to the timer 570, the timer 570 starts operating. When the communication interval time T has elapsed, the timer 570 supplies the communication start signal 5b to the shift register 530 and the clock signal output circuit 510, sets the timing data DATAt corresponding to the communication interval time T again, and stops the operation.

【0057】時刻t1で通信開始信号5bのリーディン
グエッジが到来すると、シフトレジスタ530は、通信
データ選択回路550から供給される送信データDAT
Aaを格納する。送信データDATAaがシフトレジス
タ530に設定されることによって、端子20からはシ
リアルデータ5dとして送信データの最下位ビットのデ
ータa0が出力される。
When the leading edge of the communication start signal 5b arrives at time t1, the shift register 530 sends the transmission data DAT supplied from the communication data selection circuit 550.
Store Aa. By setting the transmission data DATAa in the shift register 530, the terminal 20 outputs the data a0 of the least significant bit of the transmission data as the serial data 5d.

【0058】クロック信号出力回路510は、時刻t2
で通信開始信号5bのトレイリングエッジが到来する
と、クロック信号5cの出力を開始し、制御回路52
0,シフトレジスタ530および端子30にクロック信
号5cが供給される。これにより、制御回路520はク
ロック信号5cのカウントを開始し、端子30からはク
ロック信号5cが出力される。また、シフトレジスタ5
30は、時刻t3でクロック信号5cのトレイリングエ
ッジが到来すると送信データDATAaを下位ビット方
向に1ビットシフトし、端子20からは送信データDA
TAaの2ビットめのデータa1が出力される。
The clock signal output circuit 510 outputs the time t2.
When the trailing edge of the communication start signal 5b arrives at, the output of the clock signal 5c is started, and the control circuit 52
0, the clock signal 5c is supplied to the shift register 530 and the terminal 30. As a result, the control circuit 520 starts counting the clock signal 5c, and the terminal 30 outputs the clock signal 5c. In addition, the shift register 5
When the trailing edge of the clock signal 5c arrives at time t3, 30 shifts the transmission data DATAa by 1 bit in the lower bit direction, and the transmission data DAa is transmitted from the terminal 20.
The second bit data a1 of TAa is output.

【0059】以後、同様にして、シフトレジスタ530
はクロック信号5cのトレイリングエッジが到来するた
びに送信データDATAaを下位ビット方向に1ビット
ずつシフトし、端子20からシリアルデータ5dとして
送信データDATAaの3〜8ビットめのデータa2〜
a7を順次出力する。シフトレジスタ530が8ビット
の送信データDATAaの各ビットのデータa0〜a7
をすべて出力した時、即ち、時刻t4で制御回路520
がクロック信号5cの8つめのリーディングエッジをカ
ウントすると、制御回路520は時刻t5でクロック信
号5cのカウントデータ(図示せず)を初期状態にする
とともに、通信終了信号5eをクロック信号出力回路5
10,通信カウンタ540およびタイマー570に供給
する。これにより、クロック信号出力回路510は、時
刻t5で通信終了信号5eのリーディングエッジが到来
すると、それ以降のクロック信号5cの出力を停止す
る。このクロック信号5cの停止によりシフトレジスタ
530はシフト動作を停止する。また、通信カウンタ5
40は、時刻t6で通信終了信号5eのトレイリングエ
ッジが到来すると、カウントデータを“0”から“1”
にカウントアップし、これにともない、通信データ選択
回路550は通信データレジスタ562を選択し、次の
送信データとして送信データDATAbをシフトレジス
タ530に供給する。また、タイマー570は時刻t6
での通信終了信号5eのトレイリングエッジによって動
作を開始する。
Thereafter, similarly, the shift register 530
Shifts the transmission data DATAa by 1 bit in the lower bit direction each time the trailing edge of the clock signal 5c arrives, and outputs from the terminal 20 the serial data 5d as the third to eighth bits of the transmission data DATAa a2.
a7 is sequentially output. The shift register 530 uses the data a0 to a7 of each bit of the transmission data DATAa of 8 bits.
Is output, that is, at time t4, the control circuit 520
When the 8th leading edge of the clock signal 5c is counted by the control circuit 520, the control circuit 520 initializes the count data (not shown) of the clock signal 5c at the time t5 and outputs the communication end signal 5e to the clock signal output circuit 5c.
10, the communication counter 540 and the timer 570. Thus, when the leading edge of the communication end signal 5e arrives at time t5, the clock signal output circuit 510 stops the output of the clock signal 5c thereafter. The stop of the clock signal 5c causes the shift register 530 to stop the shift operation. Also, the communication counter 5
40, when the trailing edge of the communication end signal 5e arrives at time t6, the count data is changed from "0" to "1".
The communication data selection circuit 550 selects the communication data register 562 accordingly and supplies the transmission data DATAb as the next transmission data to the shift register 530. Further, the timer 570 is set to the time t6.
The operation is started by the trailing edge of the communication end signal 5e.

【0060】以後、同様に、時刻t6から通信間隔時間
Tが経過すると、時刻t7でタイマー570から通信開
始信号5bが通信データ制御回路570およびクロック
信号出力回路510に供給され、通信開始信号5bのリ
ーディングエッジが通信データ制御回路170に到来す
ると、シフトレジスタ530は通信データ選択回路55
0から供給される送信データDATAbを格納し、2回
目のシリアルデータの送信が行われる。端子20から出
力される送信データは、最下位ビットから送信され、ク
ロック信号5cのトレイリングエッジで変更されるた
め、受信側のシフトレジスタでは、端子30から出力さ
れるクロック信号5cのリーディングエッジで受信デー
タを最上位ビットから取り込み、クロック信号5cのト
レイリングエッジで下位ビット方向に1ビットずつシフ
トするようにすれば、正しく通信することができる。
Similarly, when the communication interval time T elapses from time t6, the communication start signal 5b is supplied from the timer 570 to the communication data control circuit 570 and the clock signal output circuit 510 at time t7, and the communication start signal 5b is output. When the leading edge arrives at the communication data control circuit 170, the shift register 530 causes the communication data selection circuit 55 to move.
The transmission data DATAb supplied from 0 is stored, and the second serial data transmission is performed. The transmission data output from the terminal 20 is transmitted from the least significant bit and is changed at the trailing edge of the clock signal 5c. Therefore, in the shift register on the receiving side, at the leading edge of the clock signal 5c output from the terminal 30. If the received data is fetched from the most significant bit and is shifted by one bit in the lower bit direction at the trailing edge of the clock signal 5c, correct communication can be performed.

【0061】このように第3の実施例では、タイマー5
00が出力する通信開始信号5bにより自動的にシリア
ルデータ通信を開始し、通信データ選択回路550によ
り、通信回数をカウントする通信カウンタ540のカウ
ントデータ5fに応じて通信データレジスタ561〜5
63を順に選択し、この選択した通信データレジスタ5
61〜563内のデータをシフトレジスタ530内に格
納した後に、このシフトレジスタ530からシリアルデ
ータ5dをクロック信号5cに同期させて1ビットずつ
シフトさせて出力する。
As described above, in the third embodiment, the timer 5
00 automatically outputs the communication start signal 5b to start serial data communication, and the communication data selection circuit 550 causes the communication data register 561-5 to correspond to the count data 5f of the communication counter 540 which counts the number of times of communication.
63 in order and select the selected communication data register 5
After storing the data in 61 to 563 in the shift register 530, the serial data 5d is shifted from the shift register 530 by 1 bit in synchronization with the clock signal 5c and output.

【0062】したがって、従来のように、一回の通信ご
とに送信するべきデータの設定を行うことが不要とな
り、複数回分の送信データの設定を容易に一度に行うこ
とができ、一定間隔の送信が連続するシリアルデータ通
信を簡単に行うことができる。その結果、マイクロプロ
セッサ間のシリアルデータ通信に適用した場合に、一定
間隔で送信が連続する通信の場合でも、シリアルデータ
の設定および通信開始タイミング等の制御を行うための
ソフトウェア処理が簡単となる。
Therefore, unlike the conventional case, it is not necessary to set the data to be transmitted for each communication, and it is possible to easily set the transmission data for a plurality of times at one time, and to transmit at a constant interval. It is possible to easily perform continuous serial data communication. As a result, when applied to serial data communication between microprocessors, software processing for setting serial data and controlling communication start timing and the like becomes simple even in the case of communication in which transmission is continuous at regular intervals.

【0063】なお、この発明の第1,第2および第3の
実施例においては、送受信されるデータのビット長を8
ビットとしているが、シフトレジスタ130,330お
よび530のビット数,制御回路120,320および
520内部のカウンタのビット数を増減させることによ
って、どのようなビット長のデータのシリアル通信も同
様に行うことができる。また、各実施例では、通信デー
タ格納回路160,360および560の有する格納領
域としてそれぞれ3つの通信データレジスタ161〜1
63,364〜366および561〜563を用いて3
種類の通信データの送信あるいは受信を説明したが、格
納領域となる通信データレジスタの数および通信カウン
タ540のビット数を増減させることによって、通信デ
ータの数がどのような場合でも同様にして実現すること
ができる。また、通信カウンタ140,540,送信カ
ウンタ340および受信カウンタ341はアップカウン
タとしたが、ダウンカウンタで構成してもまったく同様
の効果が得られる。さらに、端子20から入出力される
シリアルデータ1c,3dおよび5dは、クロック信号
1b,3cおよび5cのトレイリングエッジで変更する
ようにしているが、クロック信号1b,3cおよび5c
をトレイリングエッジから出力開始することによって、
シリアルデータ1c,3dおよび5dをクロック信号1
b,3cおよび5cのリーディングエッジで変更するよ
うな構成にしてもまったく同様の効果が得られる。
In the first, second and third embodiments of the present invention, the bit length of the transmitted / received data is 8 bits.
Although bits are used, serial communication of data of any bit length is similarly performed by increasing or decreasing the number of bits of the shift registers 130, 330 and 530 and the number of bits of the counters inside the control circuits 120, 320 and 520. You can Further, in each embodiment, the communication data storage circuits 160, 360 and 560 each have three communication data registers 161-1 as storage areas.
63, 364-366 and 561-563 using 3
Although the transmission or reception of various types of communication data has been described, the number of communication data registers serving as a storage area and the number of bits of the communication counter 540 are increased / decreased to achieve the same regardless of the number of communication data. be able to. Further, although the communication counters 140 and 540, the transmission counter 340 and the reception counter 341 are up counters, the same effect can be obtained even if they are down counters. Further, the serial data 1c, 3d and 5d input and output from the terminal 20 are changed at the trailing edge of the clock signals 1b, 3c and 5c, but the clock signals 1b, 3c and 5c are changed.
By starting output from the trailing edge,
The serial data 1c, 3d and 5d are clock signals 1
Even if the structure is changed by the leading edges of b, 3c and 5c, exactly the same effect can be obtained.

【0064】[0064]

【発明の効果】請求項1記載のシリアルデータ通信装置
によれば、格納領域選択手段により、通信回数をカウン
トする通信カウンタのカウントデータに応じて自動的に
通信データ格納手段の有する複数の格納領域を順に選択
する。そして、送信時には、通信データ制御手段により
格納領域内のデータをシフトレジスタに格納した後、こ
のシフトレジスタからデータをクロック信号に同期させ
て1ビットずつシフトさせて出力する。また、受信時に
は、入力されるデータをクロック信号に同期させて1ビ
ットずつシフトさせてシフトレジスタに格納した後、通
信データ制御手段によりシフトレジスタ内のデータを格
納領域内に格納する。
According to the serial data communication device of the present invention, the storage area selection means automatically provides a plurality of storage areas in the communication data storage means according to the count data of the communication counter for counting the number of times of communication. In order. Then, at the time of transmission, after the data in the storage area is stored in the shift register by the communication data control means, the data is shifted from the shift register bit by bit in synchronization with the clock signal and output. Further, at the time of reception, after the input data is synchronized with the clock signal, it is shifted bit by bit and stored in the shift register, and then the data in the shift register is stored in the storage area by the communication data control means.

【0065】したがって、従来のように一回の通信ごと
に送信するべきデータの設定または受信したデータの格
納を行うことが不要となり、複数回分の送信データの設
定や受信データの格納を容易に連続的に行うことがで
き、一連のシリアルデータ通信を容易に一度に行うこと
ができる。その結果、通信間隔時間が短い連続した通信
の場合でも、シリアルデータの設定や格納および通信開
始タイミング等の制御を容易にでき、ソフトウェア処理
が簡単となる。
Therefore, it becomes unnecessary to set the data to be transmitted or store the received data for each communication as in the conventional case, and it is easy to continuously set the transmission data and store the received data for a plurality of times. The serial data communication can be easily performed at one time. As a result, even in the case of continuous communication in which the communication interval time is short, it is possible to easily set and store the serial data, control the communication start timing, etc., and simplify the software processing.

【0066】請求項2記載のシリアルデータ通信装置に
よれば、送信時には、第1の格納領域選択手段により、
通信回数をカウントする第1の通信カウンタのカウンタ
データに応じて自動的に通信データ格納手段の有する複
数の格納領域を順に選択し、受信時には、第2の格納領
域選択手段により、通信回数をカウントする第2の通信
カウンタのカウンタデータに応じて自動的に通信データ
格納領域の有する複数の格納領域を順に選択する。そし
て、送信時には、通信データ制御手段により格納領域内
のデータをシフトレジスタに格納した後、このシフトレ
ジスタからデータをクロック信号に同期させて1ビット
ずつシフトさせて出力する。また、受信時には、入力さ
れるデータをクロック信号に同期させて1ビットずつシ
フトさせてシフトレジスタに格納した後、通信データ制
御手段によりシフトレジスタ内のデータを格納領域内に
格納する。
According to the serial data communication device of the second aspect, at the time of transmission, the first storage area selection means causes
According to the counter data of the first communication counter that counts the number of times of communication, a plurality of storage areas of the communication data storage means are automatically selected in order, and the number of times of communication is counted by the second storage area selection means when receiving. A plurality of storage areas included in the communication data storage area are automatically selected in order according to the counter data of the second communication counter. Then, at the time of transmission, after the data in the storage area is stored in the shift register by the communication data control means, the data is shifted from the shift register bit by bit in synchronization with the clock signal and output. Further, at the time of reception, after the input data is synchronized with the clock signal, it is shifted bit by bit and stored in the shift register, and then the data in the shift register is stored in the storage area by the communication data control means.

【0067】したがって、従来のように一回の通信ごと
に送信するべきデータの設定または受信したデータの格
納を行うことが不要となり、複数回分の送信データの設
定や受信データの格納を容易に一度に行うことができ、
複数回送受信が連続するシリアルデータ通信を簡単に行
うことができる。その結果、通信間隔時間が短く交互に
送受信が連続する通信の場合でも、シリアルデータの設
定や格納および通信開始タイミング等の制御を容易にで
き、ソフトウェア処理が簡単となる。
Therefore, it becomes unnecessary to set the data to be transmitted or store the received data for each communication as in the conventional case, and it is easy to set the transmission data for a plurality of times and store the received data once. Can be done in
Serial data communication in which transmission and reception are repeated a plurality of times can be easily performed. As a result, even in the case of the communication in which the communication interval time is short and the transmission and reception are alternately repeated, it is possible to easily control the setting and storage of the serial data and the communication start timing, and the software processing is simplified.

【0068】請求項3記載のシリアルデータ通信装置に
よれば、請求項2記載のシリアルデータ通信装置におい
て、第2の格納領域選択手段は第1の格納領域選択手段
が選択する格納領域とは異なる1つの格納領域を選択す
ることにより、さらに、複数回送受信が連続するシリア
ルデータ通信を容易に行うことができ、ソフトウェア処
理が容易となる。
According to the serial data communication device of the third aspect, in the serial data communication device of the second aspect, the second storage area selecting means is different from the storage area selected by the first storage area selecting means. By selecting one storage area, serial data communication in which transmission and reception are repeated a plurality of times can be performed easily, and software processing becomes easy.

【0069】請求項4記載のシリアルデータ通信装置に
よれば、タイマーが出力する通信開始信号により自動的
にシリアルデータ通信を開始し、格納領域選択手段によ
り、通信回数をカウントする通信カウンタのカウントデ
ータに応じて通信データ格納手段の有する複数の格納領
域を順に選択し、この選択した格納領域内のデータをシ
フトレジスタ内に格納した後に、このシフトレジスタか
ら送信データとなるシリアルデータをクロック信号に同
期させて1ビットずつシフトさせて出力する。
According to the serial data communication device of the fourth aspect, the serial data communication is automatically started by the communication start signal output from the timer, and the count data of the communication counter for counting the number of communication by the storage area selecting means. According to the above, a plurality of storage areas of the communication data storage means are sequentially selected, the data in the selected storage areas are stored in the shift register, and the serial data to be the transmission data is synchronized with the clock signal from the shift register. Then, the data is shifted bit by bit and output.

【0070】したがって、従来のように、一回の通信ご
とに送信するべきデータの設定を行うことが不要とな
り、複数回分の送信データの設定を容易に一度に行うこ
とができ、一定間隔の送信が連続するシリアルデータ通
信を簡単に行うことができる。その結果、一定間隔で送
信が連続する通信の場合でも、シリアルデータの設定お
よび通信開始タイミング等の制御を容易にでき、ソフト
ウェア処理が簡単となる。
Therefore, it is not necessary to set the data to be transmitted for each communication as in the conventional case, and it is possible to easily set the transmission data for a plurality of times at one time and to transmit the data at a constant interval. It is possible to easily perform continuous serial data communication. As a result, even in the case of communication in which transmission is continuous at regular intervals, setting of serial data, control of communication start timing, etc. can be facilitated, and software processing becomes simple.

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

【図1】この発明の第1の実施例のシリアルデータ通信
装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a serial data communication device according to a first embodiment of the present invention.

【図2】図1に示すシリアルデータ通信装置の主要部の
入出力信号のタイミングチャートである。
FIG. 2 is a timing chart of input / output signals of main parts of the serial data communication device shown in FIG.

【図3】図3は、この発明の第2の実施例のシリアルデ
ータ通信装置の構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a serial data communication device according to a second embodiment of the present invention.

【図4】図3に示すシリアルデータ通信装置で送信動作
と受信動作を交互に行った場合の主要部の入出力信号の
タイミングチャートである。
4 is a timing chart of input / output signals of main parts when a transmission operation and a reception operation are alternately performed in the serial data communication device shown in FIG.

【図5】この発明の第3の実施例のシリアルデータ通信
装置の構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a serial data communication device according to a third embodiment of the present invention.

【図6】図5に示すシリアルデータ通信装置の主要部の
入出力信号のタイミングチャートである。
6 is a timing chart of input / output signals of main parts of the serial data communication device shown in FIG.

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

110,310,510 クロック信号出力回路(クロ
ック信号発生手段) 120,320,520 制御回路(制御手段) 130,330,530 シフトレジスタ 140,540 通信カウンタ 340 送信カウンタ(第1の通信カウンタ) 341 受信カウンタ(第2の通信カウンタ) 150,550 通信データ選択回路(格納領域選択手
段) 350 送信データ選択回路(第1の格納領域選択手
段) 351 受信データ選択回路(第2の格納領域選択手
段) 161〜163 通信データレジスタ(格納領域) 361〜363 送信データレジスタ(格納領域) 364〜366 受信データレジスタ(格納領域) 160,360,560 通信データ格納回路(通信デ
ータ格納手段) 170,370 通信データ制御回路(通信データ制御
手段) 500 タイマー 1b,3c,5c クロック信号 1a,3b,5b 通信開始信号 1d,3e,5e 通信終了信号 1e,3f,3g,5f カウントデータ
110, 310, 510 Clock signal output circuit (clock signal generating means) 120, 320, 520 Control circuit (control means) 130, 330, 530 Shift register 140, 540 Communication counter 340 Transmission counter (first communication counter) 341 Reception Counter (second communication counter) 150, 550 Communication data selection circuit (storage area selection means) 350 Transmission data selection circuit (first storage area selection means) 351 Received data selection circuit (second storage area selection means) 161 To 163 communication data register (storage area) 361 to 363 transmission data register (storage area) 364 to 366 reception data register (storage area) 160, 360, 560 communication data storage circuit (communication data storage means) 170, 370 communication data control Circuit (communication data control means 500 timer 1b, 3c, 5c clock signal 1a, 3b, 5b communication start signal 1d, 3e, 5e communication end signal 1e, 3f, 3g, 5f count data

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 クロック信号をカウントし、所定のカウ
ント値に達した場合に通信終了信号を出力する制御手段
と、 通信開始信号によって前記クロック信号の出力を開始
し、前記通信終了信号によって前記クロック信号の出力
を停止する通信クロック発生手段と、 前記クロック信号に同期してデータを1ビットずつシフ
トするシフトレジスタと、 前記データを格納するための少なくとも2つ以上の格納
領域を有する通信データ格納手段と、 通信回数となる前記制御手段からのの前記通信終了信号
の出力回数をカウントする通信カウンタと、 この通信カウンタのカウントデータに応じて前記通信デ
ータ格納手段の有する格納領域のうちの1つの格納領域
を選択する格納領域選択手段と、 送信時には、前記格納領域選択手段によって選択された
格納領域内のデータを前記シフトレジスタに供給し、受
信時には、前記シフトレジスタ内のデータを前記格納領
域選択手段によって選択された格納領域に供給する通信
データ制御手段とを備えたシリアルデータ通信装置。
1. A control unit that counts clock signals and outputs a communication end signal when a predetermined count value is reached; output of the clock signal by a communication start signal; and the clock by the communication end signal. Communication clock generation means for stopping signal output, shift register for shifting data bit by bit in synchronization with the clock signal, and communication data storage means having at least two or more storage areas for storing the data And a communication counter for counting the number of times the control means outputs the number of times of communication, which is the number of times of communication, and one of the storage areas of the communication data storage means according to the count data of the communication counter. Storage area selecting means for selecting an area, and the area selected by the storage area selecting means at the time of transmission A serial data communication device comprising: communication data control means for supplying data in a storage area to the shift register, and for receiving data in the shift register to the storage area selected by the storage area selecting means at the time of reception.
【請求項2】 クロック信号をカウントし、所定のカウ
ント値に達した場合に通信終了信号を出力する制御手段
と、 通信開始信号によって前記クロック信号の出力を開始
し、前記通信終了信号によって前記クロック信号の出力
を停止する通信クロック発生手段と、 前記クロック信号に同期してデータを1ビットずつシフ
トするシフトレジスタと、 前記データを格納するための少なくとも2つ以上の格納
領域を有する通信データ格納手段と、 通信回数となる前記制御手段からの前記通信終了信号の
出力回数をカウントする第1および第2の通信カウンタ
と、 この第1の通信カウンタのカウントデータに応じて前記
通信データ格納手段の有する格納領域のうちの1つの格
納領域を選択する第1の格納領域選択手段と、 前記第2の通信カウンタのカウントデータに応じて前記
通信データ格納手段の有する格納領域のうちの1つの格
納領域を選択する第2の格納領域選択手段と、 送信時には、前記第1の格納領域選択手段によって選択
された格納領域内のデータを前記シフトレジスタに供給
し、受信時には、前記シフトレジスタ内のデータを前記
第2の格納領域選択手段によって選択された格納領域に
供給する通信データ制御手段とを備えたシリアルデータ
通信装置。
2. Control means for counting a clock signal and outputting a communication end signal when the count value reaches a predetermined count value; output of the clock signal by a communication start signal; and output of the clock signal by the communication end signal. Communication clock generation means for stopping signal output, shift register for shifting data bit by bit in synchronization with the clock signal, and communication data storage means having at least two or more storage areas for storing the data And first and second communication counters for counting the number of times of output of the communication end signal from the control means, which is the number of times of communication, and the communication data storage means according to the count data of the first communication counter. A first storage area selecting means for selecting one of the storage areas; and a second storage counter of the second communication counter. Second storage area selecting means for selecting one storage area out of the storage areas of the communication data storage means according to count data; and a storage area selected by the first storage area selecting means at the time of transmission. And a communication data control means for supplying the data in the shift register to the storage area selected by the second storage area selecting means at the time of reception. ..
【請求項3】 第2の格納領域選択手段は第1の格納領
域選択手段が選択する格納領域とは異なる1つの格納領
域を選択することを特徴とする請求項2記載のシリアル
データ通信装置。
3. The serial data communication device according to claim 2, wherein the second storage area selection means selects one storage area different from the storage area selected by the first storage area selection means.
【請求項4】 設定された時間が経過すると通信開始信
号を出力するタイマーと、 クロック信号をカウントし、所定のカウント値に達した
場合に通信終了信号を出力する制御手段と、 前記通信開始信号によって前記クロック信号の出力を開
始し、前記通信終了信号によって前記クロック信号の出
力を停止する通信クロック発生手段と、 前記クロック信号に同期してデータを1ビットずつシフ
トするシフトレジスタと、 前記データを格納するための少なくとも2つ以上の格納
領域を有する通信データ格納手段と、 通信回数となる前記制御手段からの前記通信終了信号の
出力回数をカウントする通信カウンタと、 この通信カウンタのカウントデータに応じて前記通信デ
ータ格納手段の有する格納領域のうちの1つの格納領域
を選択し、この選択した格納領域内のデータを前記シフ
トレジスタに供給する格納領域選択手段とを備えたシリ
アルデータ通信装置。
4. A timer which outputs a communication start signal when a set time has elapsed, a control means which counts a clock signal and outputs a communication end signal when a predetermined count value is reached, said communication start signal Communication clock generation means for starting the output of the clock signal by the communication end signal and stopping the output of the clock signal for the communication end signal; a shift register for shifting data bit by bit in synchronization with the clock signal; Communication data storage means having at least two or more storage areas for storing, a communication counter for counting the number of times of the communication end signal output from the control means, which is the number of times of communication, and a count data of the communication counter. Select one of the storage areas of the communication data storage means, and select this And a storage area selecting means for supplying the data in the storage area to the shift register.
JP4015174A 1992-01-30 1992-01-30 Serial data communication device Expired - Fee Related JP2790748B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4015174A JP2790748B2 (en) 1992-01-30 1992-01-30 Serial data communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4015174A JP2790748B2 (en) 1992-01-30 1992-01-30 Serial data communication device

Publications (2)

Publication Number Publication Date
JPH05207096A true JPH05207096A (en) 1993-08-13
JP2790748B2 JP2790748B2 (en) 1998-08-27

Family

ID=11881450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4015174A Expired - Fee Related JP2790748B2 (en) 1992-01-30 1992-01-30 Serial data communication device

Country Status (1)

Country Link
JP (1) JP2790748B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006500861A (en) * 2002-09-24 2006-01-05 ナグラカード エス. アー. Method for multiple pairing control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006500861A (en) * 2002-09-24 2006-01-05 ナグラカード エス. アー. Method for multiple pairing control

Also Published As

Publication number Publication date
JP2790748B2 (en) 1998-08-27

Similar Documents

Publication Publication Date Title
RU2172018C2 (en) Data conversion unit
KR19990018174A (en) Serial interface device with register for both sending and receiving
GB2234377A (en) Timer system for learning and replaying of infrared signals
JPH05265943A (en) Serial data transfer equipment
JPH05207096A (en) Serial data communication equipment
USRE35254E (en) Conversion device for doubling/dividing the rate of a serial bit stream
US6744837B1 (en) Clock switching circuit
JPS60241150A (en) Data transfer device
US7249274B1 (en) System and method for scalable clock gearing mechanism
JP2925592B2 (en) Microcomputer serial data transfer method
JP2932851B2 (en) Asynchronous serial data transceiver
JP2000259559A (en) Serial interface circuit
JP3403714B2 (en) Remote control waveform output device
JP2613971B2 (en) Serial transfer method
JPH065831B2 (en) Signal frame transmission method
JPH03222539A (en) Start bit detection circuit
KR100194657B1 (en) System control signal transmission circuit
JPH0736819A (en) Dma data transfer device
JP2572734B2 (en) Display circuit for serial data
JPH07210363A (en) Variable length line buffer, control method therefor and picture data processor
KR920003696A (en) Data transmission device of multi system
JPH10173732A (en) Data transmitter-receiver
JPH05236046A (en) Data transfer system
JPH01147765A (en) Data transfer controller
JP2003218980A (en) Data transmission rate changeover device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080612

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090612

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees