JP2003345732A - Serial communication device - Google Patents

Serial communication device

Info

Publication number
JP2003345732A
JP2003345732A JP2002151653A JP2002151653A JP2003345732A JP 2003345732 A JP2003345732 A JP 2003345732A JP 2002151653 A JP2002151653 A JP 2002151653A JP 2002151653 A JP2002151653 A JP 2002151653A JP 2003345732 A JP2003345732 A JP 2003345732A
Authority
JP
Japan
Prior art keywords
data
address
communication
shift register
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002151653A
Other languages
Japanese (ja)
Inventor
Toshitomo Umei
俊智 梅井
Masaru Nagayasu
勝 永安
Kenichi Kawaguchi
謙一 川口
Yoshinori Urano
美紀 浦野
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 JP2002151653A priority Critical patent/JP2003345732A/en
Publication of JP2003345732A publication Critical patent/JP2003345732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce the processing load of a CPU in performing a communication and to reduce the burden of the CPU by reducing interruption processing needed in performing a serial communication. <P>SOLUTION: The serial communication device has a transmission buffer 111 and a reception buffer 112 for storing respective second addresses for transmission and reception, selectors (116 and 117) for selecting one among the addresses of the two buffers and a self-address 2, and an address determination control circuit 109 for comparing address data. Since the addresses held in the buffers (111 and 112) can be directly compared with the address of a shift register 108, interruption to the CPU 114 can be reduced, and the processing of the CPU 114 performed in communication is reduced to be able to reduce the burden of the CPU 114. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、マスターコントロ
ーラとスレーブコントローラ間の通信を行うI2C通信
装置等のシリアル通信装置に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a serial communication device such as an I2C communication device for performing communication between a master controller and a slave controller.

【0002】[0002]

【従来の技術】以下に、I2C通信装置を例として、従
来のシリアル通信装置について説明する。
2. Description of the Related Art A conventional serial communication device will be described below using an I2C communication device as an example.

【0003】図8は従来のI2C通信装置のブロック図
を示し、図9は従来のI2C通信装置での通信データと
割込み発生タイミング図を示す。図8において、I2C
通信装置は7ビットアドレスプロトコルのスレーブ送受
信動作するコントローラを10ビットアドレスプロトコ
ルのスレーブ送受信動作にソフトウェアで対応するもの
である。
FIG. 8 is a block diagram of a conventional I2C communication device, and FIG. 9 is a diagram showing communication data and an interrupt generation timing in the conventional I2C communication device. In FIG. 8, I2C
The communication device corresponds to a controller that performs a slave transmission / reception operation of a 7-bit address protocol by software for a slave transmission / reception operation of a 10-bit address protocol.

【0004】以下にI2C通信装置800の構成につい
て説明する。クロック制御回路803は、割込み発生回
路806から出力される割込み信号に応じてI2Cバス
のクロック信号線(以下I2CバスSCLと称す)80
1のクロック信号出力制御を行なう。
[0004] The configuration of the I2C communication device 800 will be described below. The clock control circuit 803 controls an I2C bus clock signal line (hereinafter, referred to as an I2C bus SCL) 80 in response to an interrupt signal output from the interrupt generation circuit 806.
1 clock signal output control.

【0005】データ制御回路805は、送信時はシフト
レジスタ808のシリアルデータをI2Cバスのデータ
信号線(以下I2CバスSDAと称す)802へ出力
し、受信時はI2CバスSDA802から入力するシリ
アルデータをシフトレジスタ808へ出力する。また、
アドレス判定制御回路809の出力に応じてアクノリッ
ジをI2CバスSDA802へ出力する。また、受信動
作時はCPU814による設定によってアクノリッジ送
出の有無を設定することができる。
The data control circuit 805 outputs the serial data of the shift register 808 to the data signal line of the I2C bus (hereinafter referred to as I2C bus SDA) 802 at the time of transmission, and the serial data input from the I2C bus SDA 802 at the time of reception. Output to the shift register 808. Also,
An acknowledgment is output to the I2C bus SDA802 in response to the output of the address determination control circuit 809. At the time of the reception operation, the presence / absence of acknowledgment transmission can be set by the setting of the CPU 814.

【0006】バス状態検出回路804は、I2CバスS
CL801とI2CバスSDA802の状態を監視する
ことにより通信のスタート条件の検出を行い、スタート
条件を検出した場合はスタート検出信号を出力する。
[0006] The bus state detection circuit 804 is an I2C bus S
A communication start condition is detected by monitoring the states of the CL 801 and the I2C bus SDA 802, and a start detection signal is output when the start condition is detected.

【0007】割込み発生回路806は、アドレス判定制
御回路809からのアドレス一致信号、または、データ
転送制御回路807からのバッファアクセス要求信号が
入力された場合、クロック制御回路803とCPU81
4への割込み信号を出力する。
When an address match signal from the address determination control circuit 809 or a buffer access request signal from the data transfer control circuit 807 is input, the interrupt generation circuit 806 controls the clock control circuit 803 and the CPU 81
4 is output as an interrupt signal.

【0008】データ転送制御回路807は、アドレス判
定制御回路809からの送受信切り換え信号により送信
動作と受信動作を制御する。送受信切り換え信号が送信
選択信号である場合、データ転送制御回路807は送信
モードとなり、送信バッファ811から送信用のバイト
データを読み出した後にシフトレジスタ808へ転送し
てシリアル送信を開始する。また、シリアル送信後にバ
ッファアクセス要求信号を割込み発生回路806へ出力
する。送受信切り換え信号が受信選択信号である場合、
データ転送制御回路807は受信モードとなり、シフト
レジスタ808から受信したバイトデータを読み出した
後に受信バッファ812へ転送し、バッファアクセス要
求信号を割込み発生回路806へ出力する。ただし、受
信時でのバッファアクセス要求信号の出力は必ずアクノ
リッジ送出の前になる。
A data transfer control circuit 807 controls a transmission operation and a reception operation according to a transmission / reception switching signal from the address determination control circuit 809. If the transmission / reception switching signal is a transmission selection signal, the data transfer control circuit 807 enters the transmission mode, reads out byte data for transmission from the transmission buffer 811 and then transfers it to the shift register 808 to start serial transmission. After serial transmission, it outputs a buffer access request signal to interrupt generation circuit 806. When the transmission / reception switching signal is a reception selection signal,
The data transfer control circuit 807 enters the reception mode, reads out the byte data received from the shift register 808, transfers it to the reception buffer 812, and outputs a buffer access request signal to the interrupt generation circuit 806. However, the output of the buffer access request signal at the time of reception is always before transmission of the acknowledge.

【0009】シフトレジスタ808は、1バイトのシフ
トレジスタである。受信動作をする場合、シフトレジス
タ808は、データ制御回路805から入力されたシリ
アルデータをLSB側からシフト動作を行なう。また、
送信動作をする場合は、シフトレジスタ808は、シリ
アルデータをMSB側からシフト動作してデータ制御回
路805へ出力する。
The shift register 808 is a one-byte shift register. When performing a receiving operation, the shift register 808 performs a shifting operation on the serial data input from the data control circuit 805 from the LSB side. Also,
When performing the transmission operation, the shift register 808 shifts the serial data from the MSB side and outputs the serial data to the data control circuit 805.

【0010】送信バッファ811は、1バイトのデータ
バッファであり、送信用データを格納する。送信バッフ
ァ811は、制御回路807の制御により送信用データ
のCPU814からの読み出しが行なわれる。
The transmission buffer 811 is a one-byte data buffer, and stores transmission data. The transmission buffer 811 reads out transmission data from the CPU 814 under the control of the control circuit 807.

【0011】受信バッファ812は、1バイトのデータ
バッファであり、受信したデータを格納する。受信バッ
ファ812は、データ転送制御回路807の制御により
受信したデータをCPU814へ書き込む。
The reception buffer 812 is a 1-byte data buffer, and stores received data. The reception buffer 812 writes the data received under the control of the data transfer control circuit 807 to the CPU 814.

【0012】ホストI/F813は、送信バッファ81
1のCPU814からの読み出しと受信バッファ812
への書き込みの制御を行なう。CPU814は、I2C
通信装置800を制御し、データを処理する中央演算処
理装置である。
The host I / F 813 includes a transmission buffer 81
1 from the CPU 814 and the reception buffer 812
Control of writing to. The CPU 814 is an I2C
A central processing unit that controls the communication device 800 and processes data.

【0013】自己アドレス1レジスタ810は、7ビッ
トのレジスタであり、各スレーブコントローラを識別す
るスレーブアドレスのうち、本スレーブコントローラに
対応するスレーブアドレスである自己アドレス1を格納
する。
The self address 1 register 810 is a 7-bit register and stores a self address 1 which is a slave address corresponding to the present slave controller among slave addresses for identifying each slave controller.

【0014】アドレス判定制御回路809は、シフトレ
ジスタ808と自己アドレス1レジスタ810のデータ
比較結果に応じて、割込み発生回路806やデータ制御
回路805のアクノリッジ送出制御、および、データ転
送制御回路807の送受信制御を行なう。
An address determination control circuit 809 controls the transmission of an acknowledgment by the interrupt generation circuit 806 and the data control circuit 805 and the transmission and reception of the data transfer control circuit 807 according to the data comparison result between the shift register 808 and the self address 1 register 810. Perform control.

【0015】以上の構成のI2C通信装置が行う動作を
図9を用いて説明する。データを受信する場合、まず、
バス状態検出回路804がスタート条件(S)を検出す
ると、データ転送制御回路807に制御信号を送りスレ
ーブコントローラはアドレス受信および判定動作を行
う。アドレス1のデータはI2CバスSDA802およ
びデータ制御回路805を経由してシフトレジスタ80
8へ格納する。次に、7ビットのアドレス+通信方向ビ
ット=8ビットがシフトレジスタ808に格納される
と、あらかじめ自己アドレス1が書き込まれた自己アド
レス1レジスタ810とシフトレジスタ808の値比較
をソフトウェアによりアドレス判定制御回路809が行
い、一致していると、データ制御回路805にアクノレ
ッジ(A)出力要求信号を出力する。この時、送受信動
作を決定する通信方向ビットが”0”であるため、デー
タ転送制御回路807は次の動作としてコントローラを
受信動作に切り替える(9a)。次に、アドレス2のデ
ータはアドレス1と同様にシフトレジスタ808に格納
され、データ転送制御回路807は格納されたアドレス
2を受信バッファ812へ転送する。転送完了後、割込
み発生回路806に割込み要求を行い、コントローラは
割込みを出力する。その後、ソフトウェアでアドレス2
を判定してアクノリッジを出力するか、しないかの設定
をスレーブコントローラに対して行う(9b)。次に、
リスタートシーケンスが検出されない場合は、リスター
ト条件(Sr)または、ストップ条件(P)が送出され
るまで(9e)、コントローラはスレーブ受信のバイト
受信動作を続ける(9c,9d)。リスタートシーケン
スを検出すると、再び、アドレス1のデータを比較する
動作を行い処理を継続する。ここで、通信方向ビット
が”1”であるため、データ転送制御回路807はスレ
ーブコントローラを送信動作に切り替える(9f)。次
に、リスタート条件(Sr)または、ストップ条件
(S)が送出されるまで(9i)、スレーブコントロー
ラはバイトデータ送信動作を行う(9g,9h)。送信
バッファ811へ書き込まれたデータをデータ転送制御
回路807がシフトレジスタ808へ転送し、シリアル
データをデータ制御回路805を経由してI2CバスS
DA802へ出力する。また、アクノリッジビットの完
了の度にデータ転送制御回路807は、割込み発生回路
806へ割込み要求を行い、スレーブコントローラは割
込みを出力する。
The operation performed by the I2C communication device having the above configuration will be described with reference to FIG. When receiving data,
When the bus state detection circuit 804 detects the start condition (S), it sends a control signal to the data transfer control circuit 807, and the slave controller performs an address reception and determination operation. The data of the address 1 is transferred to the shift register 80 via the I2C bus SDA 802 and the data control circuit 805.
8 is stored. Next, when 7 bits of address + communication direction bit = 8 bits are stored in the shift register 808, the value of the self address 1 register 810 in which the self address 1 is written in advance is compared with the value of the shift register 808 by address determination control by software. The circuit 809 performs this operation, and if they match, outputs an acknowledge (A) output request signal to the data control circuit 805. At this time, since the communication direction bit for determining the transmission / reception operation is "0", the data transfer control circuit 807 switches the controller to the reception operation as the next operation (9a). Next, the data of the address 2 is stored in the shift register 808 in the same manner as the address 1, and the data transfer control circuit 807 transfers the stored address 2 to the reception buffer 812. After the transfer is completed, an interrupt request is sent to the interrupt generation circuit 806, and the controller outputs an interrupt. Then, address 2 by software
Is determined and whether the acknowledgment is output or not is set for the slave controller (9b). next,
When the restart sequence is not detected, the controller continues the byte reception operation of the slave reception (9c, 9d) until the restart condition (Sr) or the stop condition (P) is transmitted (9e). When the restart sequence is detected, the operation of comparing the data of the address 1 is performed again, and the process is continued. Here, since the communication direction bit is “1”, the data transfer control circuit 807 switches the slave controller to the transmission operation (9f). Next, until the restart condition (Sr) or the stop condition (S) is transmitted (9i), the slave controller performs the byte data transmission operation (9g, 9h). The data transfer control circuit 807 transfers the data written to the transmission buffer 811 to the shift register 808, and the serial data is transferred to the I2C bus S via the data control circuit 805.
Output to DA802. Every time the acknowledge bit is completed, the data transfer control circuit 807 issues an interrupt request to the interrupt generation circuit 806, and the slave controller outputs an interrupt.

【0016】[0016]

【発明が解決しようとする課題】従来の技術で示した7
ビットアドレスフォーマット専用のI2C通信装置で1
0ビットアドレスフォーマットにソフトウェア処理で対
応する場合、図9に示すように(9b)でのアドレス2
の比較でI2C通信装置からの割込みが必要となってい
る。その理由としては、アドレス2の比較を行なう場合
はソフトウェアで受信バッファからアドレス2のデータ
を読み出してソフトウェアが保持する自己アドレスのデ
ータとの照合を行なう必要があり、その処理を行なうた
めの割込みが不可欠になるためである。周辺デバイスか
らのCPUへの割込みが発生するために、CPUが行う
ことのできる処理が減少するという問題点があった。
SUMMARY OF THE INVENTION Problems to be Solved by the Invention
1 in I2C communication device dedicated to bit address format
When the 0-bit address format is supported by software processing, as shown in FIG.
Requires an interrupt from the I2C communication device. The reason for this is that when comparing address 2, it is necessary to read the data at address 2 from the reception buffer by software and to compare it with the data at its own address held by software, and an interrupt for that processing is issued. Because it becomes indispensable. Since an interrupt from the peripheral device to the CPU occurs, there is a problem that the number of processes that can be performed by the CPU is reduced.

【0017】上記問題点を解決するために、本発明のシ
リアル通信装置は、通信の際に必要となる割込みを軽減
することにより、通信の際に行うCPUの処理を少なく
してCPUの負担を軽くすることを目的とする。
In order to solve the above problems, the serial communication device of the present invention reduces the number of interrupts required for communication, thereby reducing the amount of processing performed by the CPU during communication and reducing the load on the CPU. It is intended to be light.

【0018】[0018]

【課題を解決するための手段】この目的を達成するため
本発明の請求項1記載のシリアル通信装置は、通信デー
タをシリアル転送し外部に対して送受信するシリアル通
信装置であって、前記通信データをシフトするシフトレ
ジスタと、順次通信される前記通信データのうち受信デ
ータを前記シフトレジスタに転送するデータ制御回路
と、前記シフトレジスタでシフトされた受信データを保
持する第1のデータバッファと、第1の受信データを前
記シフトレジスタがシフトした後に第2の受信データが
前記データ制御回路に入力された時に前記第1の受信デ
ータを前記第1のデータバッファに転送し前記第2の受
信データを前記シフトレジスタに転送するデータ転送制
御回路と、任意に設定可能な比較用データを保持するレ
ジスタと、前記第1のデータバッファに保持された第1
の受信データまたは前記比較用データのうちいずれかを
選択する第1のセレクタ回路と、前記第1のセレクタ回
路が選択したデータと前記第2の受信データを比較する
データ比較回路とを有することを特徴とする。
According to a first aspect of the present invention, there is provided a serial communication apparatus for serially transmitting communication data and transmitting / receiving the communication data to / from an external device. A shift register, a data control circuit for transferring received data of the communication data sequentially communicated to the shift register, a first data buffer for holding the received data shifted by the shift register, When the second received data is input to the data control circuit after the shift register shifts the first received data, the first received data is transferred to the first data buffer, and the second received data is transferred to the first data buffer. A data transfer control circuit for transferring the data to the shift register; a register for holding arbitrarily set comparison data; The held in the data buffer 1
A first selector circuit for selecting any of the received data and the comparison data, and a data comparison circuit for comparing the data selected by the first selector circuit with the second received data. Features.

【0019】請求項2記載のシリアル通信装置は、I2
Cバスを介して通信を行うI2C通信装置であるシリア
ル通信装置であって、前記通信データをシフトするシフ
トレジスタと、順次通信される前記通信データのうち受
信データを前記シフトレジスタに転送するデータ制御回
路と、前記シフトレジスタでシフトされた受信データの
アドレスを保持する第1のデータバッファと、第1の受
信データを前記シフトレジスタがシフトした後に第2の
受信データが前記データ制御回路に入力された時に前記
第1の受信データのアドレスを前記第1のデータバッフ
ァに転送し前記第2の受信データを前記シフトレジスタ
に転送するデータ転送制御回路と、任意に設定可能な比
較用アドレスを保持するレジスタと、前記第1のデータ
バッファに保持された第1の受信データのアドレスまた
は前記比較用アドレスのうちいずれかを選択するセレク
タ回路と、前記セレクタ回路が選択したアドレスと前記
第2の受信データのアドレスを比較するデータ比較回路
とを有し、前記第2の受信データのアドレスと前記セレ
クタ回路が選択したアドレスが一致した場合にデータの
受信を行うことを特徴とする。
According to a second aspect of the present invention, there is provided a serial communication device comprising:
What is claimed is: 1. A serial communication device, which is an I2C communication device that performs communication via a C bus, comprising: a shift register for shifting the communication data; and data control for transferring received data of the communication data sequentially communicated to the shift register. A circuit, a first data buffer for holding an address of the reception data shifted by the shift register, and a second reception data input to the data control circuit after the shift register shifts the first reception data. And a data transfer control circuit for transferring an address of the first received data to the first data buffer and transferring the second received data to the shift register, and an arbitrarily configurable comparison address. A register and an address of the first reception data held in the first data buffer or the comparison address. And a data comparison circuit for comparing the address selected by the selector circuit with the address of the second received data, wherein the address of the second received data and the selector Data reception is performed when the addresses selected by the circuit match.

【0020】請求項3記載のシリアル通信装置は、I2
Cバスを介して通信を行うI2C通信装置であるシリア
ル通信装置であって、前記通信データをシフトするシフ
トレジスタと、順次通信される前記通信データのうち受
信データを前記シフトレジスタに転送し送信データを前
記シフトレジスタから受取って出力するデータ制御回路
と、前記シフトレジスタでシフトされた受信データのア
ドレスを保持する第1のデータバッファと、前記シフト
レジスタから受取った送信データのアドレスを保持する
第2のデータバッファと、第1の通信データを前記シフ
トレジスタがシフトした後に第2の通信データが前記デ
ータ制御回路に入力された時に前記第1の通信データの
アドレスを前記第1のデータバッファに転送し前記第2
の通信データを前記シフトレジスタに転送するデータ転
送制御回路と、第1のデータバッファと第2のデータバ
ッファ間でのアドレスデータの転送を制御するアドレス
データ転送回路と、任意に設定可能な比較用データを保
持するレジスタと、前記第1のデータバッファに保持さ
れた通信データのアドレスまたは前記第2のデータバッ
ファに保持された通信データのアドレスまたは前記レジ
スタに保持された比較用のアドレスのうちいずれか1つ
のアドレスを選択するセレクタ回路と、前記セレクタ回
路が選択したアドレスと前記第2の通信データのアドレ
スを比較するデータ比較回路とを有し、前記第2の通信
データのアドレスと前記セレクタ回路が選択したアドレ
スが一致した場合にデータの送受信を行うことを特徴と
する。
According to a third aspect of the present invention, there is provided a serial communication device, comprising:
What is claimed is: 1. A serial communication device, which is an I2C communication device performing communication via a C bus, comprising: a shift register for shifting said communication data; A data control circuit for receiving and outputting the received data from the shift register, a first data buffer for storing the address of the received data shifted by the shift register, and a second data buffer for storing the address of the transmitted data received from the shift register. And a second buffer for transferring the address of the first communication data to the first data buffer when the second communication data is input to the data control circuit after the shift register shifts the first communication data. And the second
A data transfer control circuit for transferring communication data to the shift register; an address data transfer circuit for controlling transfer of address data between the first data buffer and the second data buffer; A register for holding data, an address of communication data held in the first data buffer, an address of communication data held in the second data buffer, or a comparison address held in the register; A selector circuit for selecting one of the addresses; and a data comparison circuit for comparing the address selected by the selector circuit with the address of the second communication data, wherein the address of the second communication data and the selector circuit are selected. Are transmitted and received when the selected addresses match.

【0021】請求項4記載のシリアル通信装置は、I2
Cバスを介して通信を行うI2C通信装置であるシリア
ル通信装置であって、前記通信データをシフトするシフ
トレジスタと、順次通信される前記通信データのうち受
信データを前記シフトレジスタに転送し送信データを前
記シフトレジスタから受取って出力するデータ制御回路
と、前記シフトレジスタでシフトされた前記通信データ
のアドレスを保持するデータバッファと、第1の通信デ
ータを前記シフトレジスタがシフトした後に第2の通信
データが前記データ制御回路に入力された時に前記第1
の通信データのアドレスを前記データバッファに転送し
前記第2の通信データを前記シフトレジスタに転送する
データ転送制御回路と、前記データバッファに前記第2
の通信データのアドレスが保持されているときにフラグ
をセットするアドレス保持フラグ設定回路と、任意に設
定可能な比較用データを保持するレジスタと、前記デー
タバッファに保持されたアドレスまたは前記レジスタに
保持された比較用のアドレスのうちいずれかを選択する
セレクタ回路と、前記セレクタ回路が選択したアドレス
と前記第2の通信データのアドレスを比較するデータ比
較回路とを有し、前記フラグがセットされない場合には
前記比較用アドレスと前記第1の通信データのアドレス
の一致により送受信を行い、前記フラグがセットされた
場合には前記第2の通信データのアドレスと前記セレク
タ回路が選択したアドレスの一致によりデータの送受信
を行うことを特徴とする。
According to a fourth aspect of the present invention, there is provided the serial communication device, wherein the I2
What is claimed is: 1. A serial communication device, which is an I2C communication device performing communication via a C bus, comprising: a shift register for shifting said communication data; A data control circuit for receiving and outputting the communication data from the shift register, a data buffer for holding the address of the communication data shifted by the shift register, and a second communication after the shift register shifts the first communication data. When data is input to the data control circuit, the first
A data transfer control circuit for transferring an address of the communication data to the data buffer and transferring the second communication data to the shift register;
An address holding flag setting circuit that sets a flag when an address of communication data is held, a register that holds arbitrarily set comparison data, and an address held in the data buffer or held in the register A selector circuit for selecting any of the selected comparison addresses, and a data comparison circuit for comparing the address selected by the selector circuit with the address of the second communication data, wherein the flag is not set The transmission / reception is performed by matching the comparison address with the address of the first communication data, and when the flag is set, the address of the second communication data matches the address selected by the selector circuit. It is characterized by transmitting and receiving data.

【0022】請求項5記載のシリアル通信装置は、I2
Cバスを介して通信を行うI2C通信装置であるシリア
ル通信装置であって、前記通信データをシフトするシフ
トレジスタと、順次通信される前記通信データのうち受
信データを前記シフトレジスタに転送し送信データを前
記シフトレジスタから受取って出力するデータ制御回路
と、前記シフトレジスタでシフトされた受信データのア
ドレスを保持する第1のデータバッファと、前記シフト
レジスタから受取った送信データのアドレスを保持する
第2のデータバッファと、第1の通信データを前記シフ
トレジスタがシフトした後に第2の通信データが前記デ
ータ制御回路に入力された時に前記第1の通信データの
アドレスを前記第1のデータバッファに転送し前記第2
の通信データを前記シフトレジスタに転送するデータ転
送制御回路と、第1のデータバッファと第2のデータバ
ッファ間でのアドレスデータの転送を制御するアドレス
データ転送回路と、外部演算装置が通信を行い前記第1
のデータバッファに前記第2の通信データのアドレスが
保持されている時にフラグをセットするアドレス保持フ
ラグ設定回路と、任意に設定可能な比較用データを保持
するレジスタと、前記第1のデータバッファに保持され
た通信データのアドレスまたは前記第2のデータバッフ
ァに保持された通信データのアドレスまたは前記レジス
タに保持された比較用のアドレスのうちいずれか1つの
アドレスを選択するセレクタ回路と、前記セレクタ回路
が選択したアドレスと前記第2の通信データのアドレス
を比較するデータ比較回路とを有し、前記第2の通信デ
ータのアドレスと前記セレクタ回路が選択したアドレス
が一致した場合にデータの送受信を行うことを特徴とす
る。
According to a fifth aspect of the present invention, there is provided the serial communication device, wherein the I2
What is claimed is: 1. A serial communication device, which is an I2C communication device performing communication via a C bus, comprising: a shift register for shifting said communication data; A data control circuit for receiving and outputting the received data from the shift register, a first data buffer for storing the address of the received data shifted by the shift register, and a second data buffer for storing the address of the transmitted data received from the shift register. And a second buffer for transferring the address of the first communication data to the first data buffer when the second communication data is input to the data control circuit after the shift register shifts the first communication data. And the second
A data transfer control circuit that transfers the communication data to the shift register; an address data transfer circuit that controls the transfer of address data between the first data buffer and the second data buffer; The first
An address holding flag setting circuit that sets a flag when the address of the second communication data is held in the data buffer of the first buffer, a register that holds arbitrarily set comparison data, A selector circuit for selecting any one of an address of the held communication data, an address of the communication data held in the second data buffer, and a comparison address held in the register; and the selector circuit Has a data comparison circuit that compares the selected address with the address of the second communication data, and performs data transmission and reception when the address of the second communication data matches the address selected by the selector circuit. It is characterized by the following.

【0023】請求項6記載のシリアル通信装置は、I2
Cバスを介して通信を行うI2C通信装置であるシリア
ル通信装置であって、前記通信データをシフトするシフ
トレジスタと、順次通信される前記通信データのうち受
信データを前記シフトレジスタに転送し送信データを前
記シフトレジスタから受取って出力するデータ制御回路
と、前記シフトレジスタでシフトされた受信データのア
ドレスを保持する第1のデータバッファと、前記シフト
レジスタから受取った送信データのアドレスを保持する
第2のデータバッファと、第1の通信データを前記シフ
トレジスタがシフトした後に第2の通信データが前記デ
ータ制御回路に入力された時に前記第1の通信データの
アドレスを前記第1のデータバッファに転送し前記第2
の通信データを前記シフトレジスタに転送するデータ転
送制御回路と、第1のデータバッファと第2のデータバ
ッファ間でのアドレスデータの転送を制御するアドレス
データ転送回路と、シリアル送信動作状態であるかシリ
アル受信動作状態であるかを判別する動作判別回路と、
外部演算装置が通信を行う際に、前記動作判別回路によ
りシリアル受信動作状態であると判別され、かつ、前記
第1のデータバッファに前記第2の通信データのアドレ
スが保持されている時にフラグをセットするアドレス保
持フラグ設定回路と、任意に設定可能な比較用データを
保持するレジスタと、前記第1のデータバッファに保持
された通信データのアドレスまたは前記第2のデータバ
ッファに保持された通信データのアドレスまたは前記レ
ジスタに保持された比較用のアドレスのうちいずれか1
つのアドレスを選択するセレクタ回路と、前記セレクタ
回路が選択したアドレスと前記第2の通信データのアド
レスを比較するデータ比較回路とを有し、前記第2の通
信データのアドレスと前記セレクタ回路が選択したアド
レスが一致した場合にデータの送受信を行うことを特徴
とする。
According to a sixth aspect of the present invention, there is provided a serial communication device, comprising:
What is claimed is: 1. A serial communication device, which is an I2C communication device performing communication via a C bus, comprising: a shift register for shifting said communication data; A data control circuit for receiving and outputting the received data from the shift register, a first data buffer for storing the address of the received data shifted by the shift register, and a second data buffer for storing the address of the transmitted data received from the shift register. And a second buffer for transferring the address of the first communication data to the first data buffer when the second communication data is input to the data control circuit after the shift register shifts the first communication data. And the second
A data transfer control circuit for transferring the communication data to the shift register; an address data transfer circuit for controlling the transfer of address data between the first data buffer and the second data buffer; An operation determination circuit that determines whether the device is in a serial reception operation state;
When the external arithmetic unit performs communication, it is determined by the operation determination circuit that the operation is in the serial reception operation state, and the flag is set when the address of the second communication data is held in the first data buffer. An address holding flag setting circuit to be set; a register for holding arbitrarily set comparison data; and an address of communication data held in the first data buffer or communication data held in the second data buffer Either the address of the address or the address for comparison held in the register
A selector circuit for selecting one of the two addresses, and a data comparing circuit for comparing the address selected by the selector circuit with the address of the second communication data, wherein the address of the second communication data and the selector circuit are selected. The transmission and reception of data is performed when the addresses match.

【0024】以上の構成により、通信の際に必要となる
割込みを軽減することにより、通信の際に行うCPUの
処理を少なくしてCPUの負担を軽くすることができ
る。
With the above configuration, by reducing the number of interrupts required during communication, the processing performed by the CPU during communication can be reduced and the load on the CPU can be reduced.

【0025】[0025]

【発明の実施の形態】以下、I2C通信装置を例に用い
て、本発明のシリアル通信装置の実施の形態について説
明する。 (実施の形態1)以下、本発明の実施の形態1について
図1,図2,図3を用いて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a serial communication device according to the present invention will be described below using an I2C communication device as an example. (Embodiment 1) Hereinafter, Embodiment 1 of the present invention will be described with reference to FIGS.

【0026】ここでは、マスタ動作を行なわず、10ビ
ットアドレスモードのスレーブ送受信で動作するI2C
通信装置について説明する。図1は本発明の実施の形態
1におけるI2C通信装置のブロック図である。図2は
本発明の実施の形態1におけるI2C通信装置での通信
データと割込み発生タイミング図、図3は本発明の実施
の形態1におけるI2C通信装置の動作フロー図であ
る。
Here, the I2C operating in the slave transmission / reception in the 10-bit address mode without performing the master operation is described.
The communication device will be described. FIG. 1 is a block diagram of an I2C communication device according to Embodiment 1 of the present invention. FIG. 2 is a timing chart of communication data and interruption occurrence in the I2C communication device according to the first embodiment of the present invention, and FIG. 3 is an operation flow diagram of the I2C communication device in the first embodiment of the present invention.

【0027】以下にI2C通信装置100の構成と各回
路の機能について説明する。クロック制御回路103は
信号106aに応じてLowをI2CバスSCL101
へ出力することにより、I2Cバス全体の動作を任意の
期間止めることができる。
Hereinafter, the configuration of the I2C communication device 100 and the function of each circuit will be described. The clock control circuit 103 sets the Low to the I2C bus SCL101 in response to the signal 106a.
The operation of the entire I2C bus can be stopped for an arbitrary period of time by outputting to the.

【0028】データ制御回路105は、送信時はシフト
レジスタ108のシリアルデータをI2CバスSDA1
02へ出力し、受信時はI2CバスSDA102のシリ
アルデータをシフトレジスタ108へ出力する。また、
アクノリッジ送出信号109aが入力された場合、デー
タ制御回路105はアクノリッジをI2CバスSDA1
02へ出力する。
When transmitting, the data control circuit 105 transmits the serial data of the shift register 108 to the I2C bus SDA1.
02, and upon reception, the serial data of the I2C bus SDA102 is output to the shift register 108. Also,
When the acknowledgment sending signal 109a is input, the data control circuit 105 sends an acknowledgment to the I2C bus SDA1.
02 is output.

【0029】バス状態検出回路104はI2CバスSC
L101とI2CバスSDA102の状態を監視するこ
とによりスタート条件の検出を行い、検出した場合はス
タート検出信号104aを出力する。また、送信時にお
いてアクノリッジを検出しなかった場合および受信中に
スタート条件かストップ条件を検出した場合には、本回
路は通信終了信号104bを出力する。
The bus state detection circuit 104 is an I2C bus SC
The start condition is detected by monitoring the states of the L101 and the I2C bus SDA102, and when the start condition is detected, a start detection signal 104a is output. In addition, when an acknowledgment is not detected during transmission and when a start condition or a stop condition is detected during reception, the present circuit outputs a communication end signal 104b.

【0030】割込み発生回路106はアドレス一致信号
109bまたはバッファアクセス要求信号107aが入
力された場合、割込み発生回路106は信号106aの
出力と割込み信号106bを出力する。
When the address match signal 109b or the buffer access request signal 107a is input to the interrupt generation circuit 106, the interrupt generation circuit 106 outputs an output of the signal 106a and an interrupt signal 106b.

【0031】データ転送制御回路107は送受信切り換
え信号109dにより送信動作と受信動作あるいは動作
しない状態の切り替えを制御する。送受信切り換え信号
109dが送信選択信号である場合、本回路は送信モー
ドとなり送信バッファ111から送信用のバイトデータ
を読み出した後にシフトレジスタ108へ転送してシリ
アル送信を開始する。また、本回路はバイトデータのシ
リアル送信完了後にバッファアクセス要求信号107a
を出力する。送受信切り換え信号109dが受信選択信
号である場合、本回路は受信モードとなりシフトレジス
タ108から受信したバイトデータを読み出した後に受
信バッファ112へ転送し、バッファアクセス要求信号
107aと受信バッファ書き込み信号107bを出力す
る。送受信切り換え信号109dが送信選択信号および
受信選択信号のどちらでもない場合、本回路は送信バッ
ファ111と受信バッファ112へのアクセスをせず、
バッファアクセス要求信号107aの出力もしない。ま
た、本回路は、通信終了信号104bが出力さた場合は
送受信動作を終了し、初期化信号107cを出力する。
The data transfer control circuit 107 controls switching between a transmission operation and a reception operation or a non-operation state by a transmission / reception switching signal 109d. When the transmission / reception switching signal 109d is a transmission selection signal, the circuit enters a transmission mode, reads out byte data for transmission from the transmission buffer 111, and then transfers it to the shift register 108 to start serial transmission. Further, this circuit operates after the serial transmission of the byte data is completed.
Is output. When the transmission / reception switching signal 109d is a reception selection signal, the circuit enters the reception mode, reads out the byte data received from the shift register 108, transfers it to the reception buffer 112, and outputs the buffer access request signal 107a and the reception buffer write signal 107b. I do. When the transmission / reception switching signal 109d is neither the transmission selection signal nor the reception selection signal, the circuit does not access the transmission buffer 111 and the reception buffer 112, and
It does not output the buffer access request signal 107a. When the communication end signal 104b is output, the circuit ends the transmission / reception operation and outputs the initialization signal 107c.

【0032】シフトレジスタ108は1バイトのシフト
レジスタである。受信動作をする場合、シフトレジスタ
108はデータ制御回路105からシリアルデータがL
SB側から入力されながらシフト動作を行なう。送信動
作をする場合、シフトレジスタ108はMSB側からデ
ータ制御回路105へシリアルデータを出力しながらシ
フト動作を行なう。
The shift register 108 is a one-byte shift register. When performing a reception operation, the shift register 108 outputs the serial data L from the data control circuit 105.
The shift operation is performed while being input from the SB side. When performing a transmission operation, the shift register 108 performs a shift operation while outputting serial data from the MSB side to the data control circuit 105.

【0033】送信バッファ111は1バイトのデータバ
ッファであり、送信用データと自己アドレス2を格納す
る。送信バッファ111は、ホストI/F113により
読み出しと書き込みが行われ、データ転送制御回路10
7により読み出しが行なわれる。また、送信バッファ1
11内データはセレクタ117へ常に出力される。
The transmission buffer 111 is a one-byte data buffer, and stores transmission data and its own address 2. The transmission buffer 111 is read and written by the host I / F 113, and the data transfer control circuit 10
7, reading is performed. Also, transmission buffer 1
The data in 11 is always output to the selector 117.

【0034】受信バッファ112は1バイトのデータバ
ッファであり、受信したデータと自己アドレス2を格納
する。受信バッファ112は、ホストI/F113によ
り読み出しと書き込みが行なわれ、データ転送制御回路
107により書き込みが行われる。また、受信バッファ
112内データはセレクタ117へ常に出力される。
The reception buffer 112 is a one-byte data buffer, and stores received data and its own address 2. Reading and writing are performed on the reception buffer 112 by the host I / F 113, and writing is performed by the data transfer control circuit 107. The data in the reception buffer 112 is always output to the selector 117.

【0035】自己アドレス2転送回路115は受信バッ
ファ書き込み信号107bか受信バッファ書き込み信号
113bが入力された時、受信バッファ112内のデー
タを送信バッファ111へ転送し、セレクタ切り換え信
号115aを用いてセレクタ117を送信バッファ11
1へ切り換える。送信バッファ書き込み信号113aが
入力された時、自己アドレス2転送回路115は送信バ
ッファ111内のデータを受信バッファ112へ転送
し、セレクタ切り換え信号115aを用いてセレクタ1
17を受信バッファ112へ切り換える。受信動作中に
初期化信号107cが入力された場合、自己アドレス2
転送回路115は送信バッファ111内のデータを受信
バッファ112へ転送し、セレクタ切り換え信号115
aを用いてセレクタ117を送信バッファ111へ切り
換える。送信動作中に、初期化信号107cが入力され
た場合は、自己アドレス2転送回路115は受信バッフ
ァ112内のデータを送信バッファ111へ転送し、セ
レクタ切り換え信号115aを用いてセレクタ117を
送信バッファ111へ切り換える。
The self address 2 transfer circuit 115 transfers the data in the reception buffer 112 to the transmission buffer 111 when the reception buffer write signal 107b or the reception buffer write signal 113b is input, and uses the selector switching signal 115a to select the selector 117. Send buffer 11
Switch to 1. When the transmission buffer write signal 113a is input, the self address 2 transfer circuit 115 transfers the data in the transmission buffer 111 to the reception buffer 112, and uses the selector switching signal 115a to select the selector 1
17 is switched to the reception buffer 112. When the initialization signal 107c is input during the reception operation, the self address 2
The transfer circuit 115 transfers the data in the transmission buffer 111 to the reception buffer 112, and the selector switching signal 115
The selector 117 is switched to the transmission buffer 111 using a. If the initialization signal 107c is input during the transmission operation, the self address 2 transfer circuit 115 transfers the data in the reception buffer 112 to the transmission buffer 111, and switches the selector 117 using the selector switching signal 115a. Switch to.

【0036】ホストI/F113は送信バッファ111
と受信バッファ112の読み出しと書き込みを行なう。
また、送信バッファ111書き込み時には送信バッファ
書き込み信号113aを出力し、受信バッファ112書
き込み時には受信バッファ書き込み信号113bを出力
する。
The host I / F 113 includes a transmission buffer 111
And reading and writing of the receiving buffer 112.
Also, when writing to the transmission buffer 111, the transmission buffer writing signal 113a is output, and when writing to the reception buffer 112, the reception buffer writing signal 113b is output.

【0037】CPU114はI2C通信装置100を制
御する中央演算処理装置である。自己アドレス1レジス
タ110は7ビットのアドレスレジスタであり、自己ア
ドレス1を格納する。アドレス値はCPU114によっ
て設定される。7ビットのアドレスデータはセレクタ1
16へ常に出力されている。
The CPU 114 is a central processing unit for controlling the I2C communication device 100. The self address 1 register 110 is a 7-bit address register and stores the self address 1. The address value is set by the CPU 114. 7-bit address data is stored in the selector 1
16 is always output.

【0038】アドレス判定制御回路109はシフトレジ
スタ108とセレクタ116のデータ比較結果に応じ
て、送受信切り換え信号109dとセレクタ切り換え信
号109cの制御および、アクノリッジ送出信号109
aとアドレス一致信号109bの出力を行なう。
The address determination control circuit 109 controls the transmission / reception switching signal 109d and the selector switching signal 109c and sends the acknowledge transmission signal 109 in accordance with the data comparison result between the shift register 108 and the selector 116.
a and the address coincidence signal 109b are output.

【0039】以下、アドレス判定制御回路109の動作
を図2を併せて説明する。初期状態の場合、アドレス判
定制御回路109は、データ転送制御回路105を動作
せず、またセレクタ116を自己アドレス1レジスタ1
10側に切り換えている。
Hereinafter, the operation of the address determination control circuit 109 will be described with reference to FIG. In the initial state, the address determination control circuit 109 does not operate the data transfer control circuit 105 and sets the selector 116 to its own address 1 register 1
It has been switched to the 10 side.

【0040】アドレス1判定でのデータフォーマット
(2a)は、スタート条件(S)、アドレス1(7ビッ
ト)、転送方向ビット”0”値、アクノリッジビットの
順で構成されている。スタート条件(S)が検出されス
タート検出信号104aが入力された場合、本回路はア
ドレス1の判定を行なう。アドレス1と転送方向ビット
の受信後に、自己アドレス1レジスタ110の値のLS
B側に”0”値を加えた8ビットの値と、シフトレジス
タ内のアドレス1に転送方向ビットを加えた8ビットの
値との比較を行い、一致した場合はアクノリッジ送出信
号109aを出力してセレクタ116をセレクタ117
側に切り換える。アドレス1が一致しなかった場合、本
回路は初期状態と同じ動作を行なう。
The data format (2a) for the address 1 determination is composed of a start condition (S), an address 1 (7 bits), a transfer direction bit "0" value, and an acknowledge bit in this order. When the start condition (S) is detected and the start detection signal 104a is input, the circuit determines the address 1. After receiving the address 1 and the transfer direction bit, the LS of the value of the self address 1 register 110
The 8-bit value obtained by adding the value “0” to the B side is compared with the 8-bit value obtained by adding the transfer direction bit to the address 1 in the shift register. Selector 116 to selector 117
Switch to the side. If the addresses 1 do not match, this circuit performs the same operation as in the initial state.

【0041】アドレス2の判定でのデータフォーマット
(2b)は、アドレス2(8ビット)、アクノリッジビ
ットの順で構成されている。アドレス1一致後、アドレ
ス2の判定を行なう。本回路は、1バイトのアドレスデ
ータの受信後にセレクタ117の8ビット値とシフトレ
ジスタ内の8ビットのアドレス2との比較を行い、一致
した場合はアクノリッジ送出信号109aを出力してセ
レクタ116を自己アドレス1レジスタ110側に切り
換える。アドレス2が一致しなかった場合、本回路は初
期状態と同じ動作を行なう。
The data format (2b) in the determination of the address 2 is composed of the address 2 (8 bits) and the acknowledge bit in this order. After the address 1 matches, the address 2 is determined. This circuit compares the 8-bit value of the selector 117 with the 8-bit address 2 in the shift register after receiving 1-byte address data, and outputs an acknowledgment transmission signal 109a to make the selector 116 self Switch to the address 1 register 110 side. If the addresses 2 do not match, this circuit performs the same operation as in the initial state.

【0042】スレーブ送信用データフォーマット(2
f)はリスタート条件(Sr)、アドレス1(7ビッ
ト)、転送方向ビット”1”値、アクノリッジビットの
順で構成されている。
Data format for slave transmission (2
f) includes a restart condition (Sr), an address 1 (7 bits), a transfer direction bit “1” value, and an acknowledge bit.

【0043】アドレス2の一致後(2b)すぐに、リス
タート条件(Sr)が検出されスタート検出信号104
aが入力された場合、本回路は送信動作を行なうための
3回目のアドレス判定(2f)を行なう。本回路は、ア
ドレス1と転送方向ビットの受信後に自己アドレス1レ
ジスタ110の値とLSBに”1”値を加えた8ビット
の値とシフトレジスタ内のアドレス1と転送方向ビット
とをあわせた8ビットの値との比較を行い、一致した場
合はアクノリッジ送出信号109aを出力する。また、
データ転送制御回路107を送信モードに切り換え、ア
ドレス一致信号109bを出力する。また、セレクタ1
16の切り換えは自己アドレス1レジスタ110選択の
ままにする。以後、I2C通信装置100は送信動作を
行なう。ここでのアドレス比較で一致しなかった場合、
本回路は初期状態と同じ動作を行なう。
Immediately after the address 2 matches (2b), the restart condition (Sr) is detected and the start detection signal 104
When "a" is input, the circuit performs the third address determination (2f) for performing the transmission operation. This circuit combines the value of the self address 1 register 110, the 8-bit value obtained by adding "1" to the LSB, the address 1 in the shift register, and the transfer direction bit after receiving the address 1 and the transfer direction bit. The value is compared with the bit value, and if they match, an acknowledgment transmission signal 109a is output. Also,
The data transfer control circuit 107 is switched to the transmission mode, and outputs the address match signal 109b. Selector 1
Switching of 16 leaves the self address 1 register 110 selected. Thereafter, the I2C communication device 100 performs a transmission operation. If the address comparison here does not match,
This circuit performs the same operation as the initial state.

【0044】アドレス2一致後(2b)に受信バイトデ
ータ(2c)を受信した場合、本回路はデータ転送制御
回路107を受信モードに切り換える。以後、I2C通
信装置100は受信動作を行なう。
When the received byte data (2c) is received after the address 2 matches (2b), the circuit switches the data transfer control circuit 107 to the reception mode. Thereafter, the I2C communication device 100 performs a receiving operation.

【0045】I2C通信装置100が送受信動作中にリ
スタート条件(Sr)およびストップ条件(P)(2
e,2i)を受け取った場合、本回路は前述の初期状態
の動作を行なう。
During the transmission / reception operation of the I2C communication apparatus 100, the restart condition (Sr) and the stop condition (P) (2
When e, 2i) is received, the circuit performs the above-described operation in the initial state.

【0046】さらに、図3を併せてI2C通信装置10
0の動作フローを説明する。通信開始前に、自己アドレ
ス1は自己アドレス1レジスタ110にセットし、自己
アドレス2は送信バッファ111、受信バッファ112
の順番でセットする(S300)。また、初期状態で
は、セレクタ116は自己アドレス1レジスタ110側
を選択しており、セレクタ117は送信バッファ111
が選択される。
Further, referring to FIG.
The operation flow of 0 will be described. Before starting communication, the self address 1 is set in the self address 1 register 110, and the self address 2 is set in the transmission buffer 111 and the reception buffer 112.
(S300). In the initial state, the selector 116 selects the self address 1 register 110 side, and the selector 117
Is selected.

【0047】I2Cバス上にスタート条件(S)が現れ
るまで検出を続け(S301)、スタート条件(S)を
検出したならば、次にアドレス1の判定を行なう。次
に、アドレス1のデータを受信し、自己アドレス1レジ
スタとの比較および転送方向の判定を行う(S30
2)。一致したらアクノリッジ送出を行い、セレクタ1
16をセレクタ117側へ切り換え、次にアドレス2の
判定を行なう(S303)。一致しなかったらスタート
条件検出(S301)の待機状態に戻る。
The detection is continued until the start condition (S) appears on the I2C bus (S301). When the start condition (S) is detected, the address 1 is judged next. Next, the data of the address 1 is received, the data is compared with the self address 1 register, and the transfer direction is determined (S30).
2). If they match, an acknowledge is sent and selector 1
16 is switched to the selector 117 side, and then the address 2 is determined (S303). If they do not match, the process returns to the standby state for start condition detection (S301).

【0048】次に、アドレス2のデータを受信し、セレ
クタ117の出力との比較を行なう(S304)。一致
したらアクノリッジ送出を行い、セレクタ116を自己
アドレス1レジスタ110側へ切り換え、次にリスター
ト条件の有無について判定を行なう(S306)。一致
しなかったスタート条件検出(S301)の待機状態に
戻る(S305)。
Next, the data at the address 2 is received and compared with the output of the selector 117 (S304). If they match, an acknowledgment is sent out, the selector 116 is switched to the self address 1 register 110 side, and then it is determined whether or not a restart condition exists (S306). The process returns to the standby state for detecting the start condition that does not match (S301) (S305).

【0049】次に、リスタート条件(Sr)の有無につ
いて判定を行い送信動作か受信動作の選択が行なわれる
(S307)。リスタート条件(Sr)を検出したら送
信モードになるためのアドレス判定(S308)を行
い、検出しなかったら受信動作(S311)を行なう。
Next, it is determined whether or not the restart condition (Sr) exists, and a transmission operation or a reception operation is selected (S307). If the restart condition (Sr) is detected, an address determination for entering the transmission mode is performed (S308), and if not detected, a reception operation (S311) is performed.

【0050】以下、送信動作のフローを説明する。ま
ず、アドレス1のデータを受信し、自己アドレス1レジ
スタとの比較および転送方向の判定を行う(S30
8)。一致したらI2C通信装置100は送信モードに
なりアクノリッジ送出を行って割込みを発生する(S3
09)。一致しなかったらI2Cバスのプロトコル違反
であると想定されるので通信エラーの処理を行なう。通
信エラーの制御については割込みを発生させて動作を止
める等の制御を行う。
Hereinafter, the flow of the transmission operation will be described. First, the data of the address 1 is received, the data is compared with the self address 1 register, and the transfer direction is determined (S30).
8). If they match, the I2C communication device 100 enters the transmission mode, sends an acknowledge, and generates an interrupt (S3).
09). If they do not match, it is assumed that it is a protocol violation of the I2C bus, and a communication error process is performed. As for the control of the communication error, control is performed such as generating an interrupt and stopping the operation.

【0051】CPU114から送信バッファ111へ送
信データの書き込みが行なわれた時に、送信バッファ1
11内のアドレス2のデータが受信バッファ112へ転
送されてセレクタ117が受信バッファ112側に切り
替わる(S310)。その後に送信データが送信バッフ
ァ111にセットされる(S317)。
When the CPU 114 writes transmission data to the transmission buffer 111, the transmission buffer 1
The data at the address 2 in 11 is transferred to the reception buffer 112, and the selector 117 switches to the reception buffer 112 side (S310). Thereafter, the transmission data is set in the transmission buffer 111 (S317).

【0052】次に、送信バッファ111内の送信データ
がシフトレジスタ108に転送されてシリアル送信が行
なわれ、バイトデータ分のシリアル送信が完了したら次
の送信データセット要求割込みを発生する(S31
8)。その後、バイト送信毎のアクノリッジが検出され
る間はデータ送信を継続し、検出されなかったら送信動
作が終了する(S319)。
Next, the transmission data in the transmission buffer 111 is transferred to the shift register 108 and serial transmission is performed. When the serial transmission of the byte data is completed, the next transmission data set request interrupt is generated (S31).
8). Thereafter, data transmission is continued while an acknowledgment for each byte transmission is detected, and if not detected, the transmission operation ends (S319).

【0053】送信動作が終了したら受信バッファ112
内のアドレス2のデータが送信バッファ111へ転送さ
れてセレクタ117が送信バッファ111側に切り替わ
る(S320)。
When the transmission operation is completed, the reception buffer 112
Is transferred to the transmission buffer 111, and the selector 117 switches to the transmission buffer 111 side (S320).

【0054】最後にスタート条件を検出(S321)し
たらアドレス1の判定(S302)を行い、ストップ条
件を検出(S322)したら通信を終了(S323)す
る。次に受信動作のフローを説明する。
Finally, when the start condition is detected (S321), the address 1 is determined (S302), and when the stop condition is detected (S322), the communication is terminated (S323). Next, the flow of the receiving operation will be described.

【0055】バイト分のシリアル受信後にシフトレジス
タ108内の受信データが受信バッファ112へ転送さ
れアクノリッジ送出後に割込みが発生し(S311)、
CPU114により受信バッファ112内の受信データ
を読み出す(S312)。
After the serial reception of bytes, the received data in the shift register 108 is transferred to the reception buffer 112, and an interrupt is generated after sending an acknowledge (S311).
The CPU 114 reads out the reception data in the reception buffer 112 (S312).

【0056】その後、リスタート条件(Sr)もしくは
ストップ条件(P)を検出しなかった場合はデータ受信
を継続する(S313,S314)。リスタート条件を
検出(S313)した場合は、送信バッファ111内の
アドレス2のデータが受信バッファ112へ転送されて
セレクタ117が送信バッファ111側に切り替わり
(S324)、アドレス1の判定(S302)へ処理が
移る。
Thereafter, when the restart condition (Sr) or the stop condition (P) is not detected, the data reception is continued (S313, S314). When the restart condition is detected (S313), the data at address 2 in the transmission buffer 111 is transferred to the reception buffer 112, the selector 117 is switched to the transmission buffer 111 side (S324), and the address 1 is determined (S302). Processing shifts.

【0057】ストップ条件を検出(S314)した場合
は、送信バッファ111内のアドレス2のデータが受信
バッファ112へ転送されてセレクタ117が送信バッ
ファ111側に切り替わり(S315)、通信を終了す
る(S316)。
When the stop condition is detected (S314), the data at address 2 in the transmission buffer 111 is transferred to the reception buffer 112, the selector 117 is switched to the transmission buffer 111 side (S315), and the communication is terminated (S316). ).

【0058】以上の構成により、自己アドレス2を送信
バッファまたは受信バッファに保持するため、2回目の
アドレス比較において、バッファに保持したアドレスと
シフトレジスタのレジスタを直接比較することができる
ので、プログラムを用いた処理を行わなくてもすみ、C
PUへの割込みを軽減することができる。
According to the above configuration, the self address 2 is held in the transmission buffer or the reception buffer, so that the address held in the buffer can be directly compared with the register of the shift register in the second address comparison. There is no need to perform the processing used, and C
Interrupts to the PU can be reduced.

【0059】(実施の形態2)以下、実施の形態2にお
けるI2C通信装置について図4,図5,図6を用いて
説明する。
Embodiment 2 Hereinafter, an I2C communication apparatus according to Embodiment 2 will be described with reference to FIGS.

【0060】実施の形態1におけるI2C通信装置では
送信バッファと受信バッファが別々に実装されていた
が、本発明の実施の形態2におけるI2C通信装置では
送信バッファと受信バッファとを共有した送受信バッフ
ァとして実装されていることを特徴とする。
Although the transmission buffer and the reception buffer are separately mounted in the I2C communication device according to the first embodiment, the transmission buffer and the reception buffer are shared by the I2C communication device according to the second embodiment of the present invention. It is characterized by being implemented.

【0061】ここでは、マスタ動作を行なわず、10ビ
ットアドレスモードのスレーブ送受信で動作するI2C
通信装置について説明する。図4は本発明の実施の形態
2におけるI2C通信装置のブロック図である。図5は
本発明の実施の形態2におけるI2C通信装置での通信
データと割込み発生タイミング図、図6は本発明の実施
の形態2におけるI2C通信装置の動作フロー図であ
る。
Here, I2C operating in slave transmission / reception in 10-bit address mode without performing the master operation
The communication device will be described. FIG. 4 is a block diagram of an I2C communication device according to Embodiment 2 of the present invention. FIG. 5 is a communication data and interrupt generation timing diagram in the I2C communication device according to the second embodiment of the present invention, and FIG. 6 is an operation flow diagram of the I2C communication device in the second embodiment of the present invention.

【0062】以下にI2C通信装置400の構成と各回
路の機能について説明する。ただし、実施の形態1と同
じ部分については説明を省略する。データ転送制御回路
107は送受信切り換え信号109dにより送信動作と
受信動作あるいは動作しない状態の切り替えを制御す
る。送受信切り換え信号109dが送信選択信号である
場合、データ転送制御回路107は送信モードとなり送
受信バッファ411から送信用のバイトデータを読み出
した後にシフトレジスタ108へ転送してシリアル送信
を開始する。送受信切り換え信号109dが受信選択信
号である場合、データ転送制御回路107は受信モード
となりシフトレジスタ108から受信したバイトデータ
を読み出した後に送受信バッファ411へ転送し、バッ
ファアクセス要求信号107aを出力する。送受信切り
換え信号109dが送信選択信号および受信選択信号の
どちらでもない場合、本回路は送受信バッファ411へ
のアクセスをせず、バッファアクセス要求信号107a
の出力もしない。また、本回路は、通信終了信号104
bが出力した場合は送受信動作を終了する。
The configuration of the I2C communication device 400 and the function of each circuit will be described below. However, description of the same parts as in the first embodiment will be omitted. The data transfer control circuit 107 controls switching between a transmission operation and a reception operation or a non-operation state by a transmission / reception switching signal 109d. When the transmission / reception switching signal 109d is a transmission selection signal, the data transfer control circuit 107 enters the transmission mode, reads out byte data for transmission from the transmission / reception buffer 411, and then transfers it to the shift register 108 to start serial transmission. When the transmission / reception switching signal 109d is a reception selection signal, the data transfer control circuit 107 enters the reception mode, reads out the byte data received from the shift register 108, transfers the data to the transmission / reception buffer 411, and outputs the buffer access request signal 107a. When the transmission / reception switching signal 109d is neither the transmission selection signal nor the reception selection signal, the circuit does not access the transmission / reception buffer 411 and the buffer access request signal 107a
Also does not output Further, the circuit includes a communication end signal 104
When b is output, the transmission / reception operation ends.

【0063】送受信バッファ411は1バイトのデータ
バッファであり、送信用データと受信したデータと自己
アドレス2を格納する。送受信バッファ411は、ホス
トI/F113とデータ転送制御回路107により読み
出しと書き込みが行われる。また、送受信バッファ41
1内データはセレクタ116へ常に出力される。また、
データ転送制御回路107とホストI/F113による
書き込みが行なわれた場合は、送受信バッファ書き込み
信号411aを出力する。
The transmission / reception buffer 411 is a 1-byte data buffer, and stores transmission data, received data, and its own address 2. The transmission / reception buffer 411 is read and written by the host I / F 113 and the data transfer control circuit 107. The transmission / reception buffer 41
The data in 1 is always output to the selector 116. Also,
When writing is performed by the data transfer control circuit 107 and the host I / F 113, a transmission / reception buffer write signal 411a is output.

【0064】ホストI/F113は送受信バッファ41
1の読み出しと書き込みを行なう。CPU114から送
受信バッファ411をアクセスする場合は、送受信バッ
ファとしてアクセスするためのアドレス1もしくは自己
アドレス2をセットする時にアクセスするためのアドレ
ス2が入力される。ホストI/F113においては、送
信時,受信時とも送受信バッファ411をアクセスする
が、アドレス1もしくはアドレス2はアドレスレコーダ
418に出力される。
The host I / F 113 has a transmission / reception buffer 41
1 is read and written. When the CPU 114 accesses the transmission / reception buffer 411, the address 1 for accessing when setting the address 1 or the self address 2 for accessing as the transmission / reception buffer is input. The host I / F 113 accesses the transmission / reception buffer 411 both at the time of transmission and at the time of reception, but the address 1 or the address 2 is output to the address recorder 418.

【0065】アドレスデコーダ418は、送信データの
セットおよび受信データの読み出しを行なうためにCP
U114が送受信バッファ411をアクセスする時はホ
ストI/F113からアドレス1が入力される。自己ア
ドレス2をセットするためにCPU114が送受信バッ
ファ411をアクセスする時は、ホストI/F113か
らアドレス2が入力される。アドレスデコーダ418
は、アドレス1が入力された時は”0”を出力し、アド
レス2が入力された時は”1”を出力する。
Address decoder 418 is used to set transmission data and read reception data.
When the U 114 accesses the transmission / reception buffer 411, the address 1 is input from the host I / F 113. When the CPU 114 accesses the transmission / reception buffer 411 to set the self address 2, the address 2 is input from the host I / F 113. Address decoder 418
Outputs "0" when an address 1 is input, and outputs "1" when an address 2 is input.

【0066】自己アドレス2セットフラグ419は送受
信バッファ411に自己アドレス2がセットされている
かどうかを記憶する回路である。送受信バッファ書き込
み信号411aが出力され、かつアドレスデコーダ41
8の出力が”1”である時は自己アドレス2セットフラ
グ419のフラグがセットされる。送受信バッファ書き
込み信号411aが出力され、かつアドレスデコーダ4
18の出力が”0”である時は自己アドレス2セットフ
ラグ419のフラグがクリアされる。また、自己アドレ
ス2セットフラグ419のフラグ値は自己アドレス2フ
ラグ信号419aとして出力される。
The self address 2 set flag 419 is a circuit for storing whether or not the self address 2 is set in the transmission / reception buffer 411. The transmission / reception buffer write signal 411a is output and the address decoder 41
When the output of 8 is "1", the self address 2 set flag 419 is set. The transmission / reception buffer write signal 411a is output and the address decoder 4
When the output of No. 18 is "0", the self address 2 set flag 419 is cleared. The flag value of the self address 2 set flag 419 is output as a self address 2 flag signal 419a.

【0067】アドレス判定制御回路109における実施
の形態1との違いは、自己アドレス2フラグ419の値
によってアドレス1の判定時の動作が異なることであ
る。図5を併せて用いてアドレス1の判定時の動作を説
明する。
The difference between the address determination control circuit 109 and the first embodiment is that the operation at the time of determining the address 1 differs depending on the value of the self address 2 flag 419. The operation at the time of determining the address 1 will be described with reference to FIG.

【0068】アドレス1の判定(5a)を行なう場合、
自己アドレス2フラグ419がセットされていればアド
レス一致信号109bを出力せず、自己アドレス2フラ
グ419がクリアされていればアドレス一致信号109
bを出力して割込みを発生する。
When the determination (5a) of address 1 is performed,
If the self address 2 flag 419 is set, the address match signal 109b is not output, and if the self address 2 flag 419 is cleared, the address match signal 109b is not output.
b is output to generate an interrupt.

【0069】さらに、図6を併せてI2C通信装置40
0の動作フローを説明する。通信開始前に、自己アドレ
ス1を自己アドレス1レジスタ110に、自己アドレス
2を送受信バッファ411にセットし(S600)、同
時に自己アドレス2セットフラグ419もセットされる
(S601)。また、初期状態では、セレクタ116は
自己アドレス1レジスタ110側を選択している。
Further, referring to FIG. 6, the I2C communication device 40
The operation flow of 0 will be described. Before starting communication, the self address 1 is set in the self address 1 register 110 and the self address 2 is set in the transmission / reception buffer 411 (S600), and at the same time, the self address 2 set flag 419 is set (S601). In the initial state, the selector 116 selects the self address 1 register 110 side.

【0070】I2Cバス上にスタート条件が現れるまで
検出を続け、スタート条件を検出したならば次にアドレ
ス1の判定を行なう(S602)。まず、アドレス1の
データを受信し、自己アドレス1レジスタとの比較およ
び転送方向の判定を行う(S603)。一致したらアク
ノリッジ送出を行うと共にセレクタ116を送受信バッ
ファ411側へ切り換え(S604)、自己アドレス2
セットフラグ419の判定を行なう(S605)。一致
しなかったらスタート条件検出(S602)の待機状態
に戻る(S609)。
The detection is continued until the start condition appears on the I2C bus. If the start condition is detected, the address 1 is determined next (S602). First, the data at address 1 is received, the data is compared with the self address 1 register, and the transfer direction is determined (S603). If they match, an acknowledgment is transmitted, and the selector 116 is switched to the transmission / reception buffer 411 (S604).
The set flag 419 is determined (S605). If they do not match, the process returns to the standby state for start condition detection (S602) (S609).

【0071】次に、自己アドレス2セットフラグ419
がセットされていれば割込みを発生せず、自己アドレス
2セットフラグ419がクリアされていればソフトウェ
アで自己アドレス2のセットを行なう(S606)。
Next, the self address 2 set flag 419
Is set, no interrupt is generated. If the self address 2 set flag 419 is cleared, the self address 2 is set by software (S606).

【0072】次に、アドレス2のデータを受信し、送受
信バッファ411の出力との比較を行なう(S60
7)。一致しなかったらセレクタ116を自己アドレス
1レジスタ110側へ切り換えてスタート条件検出(S
602)の待機状態に戻る(S609)。一致したらア
クノリッジ送出を行い、セレクタ116を自己アドレス
1レジスタ110側へ切り換え(S608)、リスター
ト条件の有無について判定を行なうと共に送信動作か受
信動作の選択が行なわれる(S610)。リスタート条
件を検出したら送信モードになるためのアドレス判定
(S611)を行い、検出しなかったら受信動作(S6
14)を行なう。
Next, the data at the address 2 is received and compared with the output of the transmission / reception buffer 411 (S60).
7). If they do not match, the selector 116 is switched to the self address 1 register 110 side to detect the start condition (S
The process returns to the standby state of 602) (S609). If they match, an acknowledgment is sent out, the selector 116 is switched to the self address 1 register 110 side (S608), and the presence or absence of a restart condition is determined, and a transmission operation or a reception operation is selected (S610). If a restart condition is detected, an address determination for entering the transmission mode (S611) is performed. If no restart condition is detected, a reception operation (S6) is performed.
Perform 14).

【0073】以下、送信動作のフローを説明する。ま
ず、アドレス1のデータを受信し、自己アドレス1レジ
スタとの比較および転送方向の判定を行い(S61
1)、一致したらI2C通信装置400は送信モードに
なりアクノリッジ送出を行って割込みを発生する(S6
12)。一致しなかったらI2Cバスのプロトコル違反
であると想定されるので通信エラーの処理を行なう。通
信エラーの制御については割込みを発生させて動作を止
める等の制御を行う。
Hereinafter, the flow of the transmission operation will be described. First, the data of the address 1 is received, the data is compared with the self address 1 register, and the transfer direction is determined (S61).
1) If they match, the I2C communication device 400 enters the transmission mode, sends an acknowledgment, and generates an interrupt (S6).
12). If they do not match, it is assumed that it is a protocol violation of the I2C bus, and a communication error process is performed. As for the control of the communication error, control is performed such as generating an interrupt and stopping the operation.

【0074】CPU114から送受信バッファ411へ
送信データの書き込みが行なわれた時に、自己アドレス
2セットフラグ419がクリアされ(S613)、送信
データが送受信バッファ411にセットされる(S62
0)。
When the CPU 114 writes transmission data to the transmission / reception buffer 411, the self address 2 set flag 419 is cleared (S613), and the transmission data is set in the transmission / reception buffer 411 (S62).
0).

【0075】次に、送受信バッファ411内の送信デー
タがシフトレジスタ108に転送されてシリアル送信が
行なわれ、バイトデータ分のシリアル送信が完了したら
次の送信データセット要求割込みを発生する(S62
1)。その後、バイト送信毎のアクノリッジが検出され
る間はデータ送信を継続し(S622)、スタート条件
(S)を検出(S623)したらアドレス1の判定を行
い(S603)、ストップ条件(P)を検出したら(S
624)通信を終了する(S625)。
Next, the transmission data in the transmission / reception buffer 411 is transferred to the shift register 108 and serial transmission is performed. When the serial transmission of the byte data is completed, the next transmission data set request interrupt is generated (S62).
1). Thereafter, data transmission is continued while an acknowledgment is detected for each byte transmission (S622). When the start condition (S) is detected (S623), the address 1 is determined (S603), and the stop condition (P) is detected. Then (S
624) The communication is terminated (S625).

【0076】次に受信動作のフローを説明する。バイト
分のシリアル受信後にシフトレジスタ108内の受信デ
ータが送受信バッファ411へ転送されて自己アドレス
2セットフラグ419がクリアされ(S614)、アク
ノリッジ送出後に割込みが発生し(S615)、CPU
114により送受信バッファ411内の受信データを読
み出す(S616)。
Next, the flow of the receiving operation will be described. After serial reception of bytes, the received data in the shift register 108 is transferred to the transmission / reception buffer 411, the self-address two-set flag 419 is cleared (S614), and an interrupt is generated after an acknowledgment is sent (S615).
By 114, the received data in the transmission / reception buffer 411 is read (S616).

【0077】その後、リスタート条件(Sr)もしくは
ストップ条件(P)を検出しなかった場合はデータ受信
を継続する(S617,S618)。リスタート条件
(Sr)を検出した場合はアドレス1の判定(SS60
3)へ処理が移り(S617)、ストップ条件を検出し
た場合は通信を終了(S619)する(S618)。
Thereafter, when the restart condition (Sr) or the stop condition (P) is not detected, the data reception is continued (S617, S618). When the restart condition (Sr) is detected, the address 1 is determined (SS60).
The process proceeds to 3) (S617), and if a stop condition is detected, communication is terminated (S619) (S618).

【0078】以上のように、本発明実施の形態2による
と、送信バッファと受信バッファとを送受信バッファと
して共有しているI2C通信装置で10ビットアドレス
の比較を行なう場合に、2回目のアドレス比較におい
て、バッファに保持したアドレスとシフトレジスタのレ
ジスタを直接比較することができるので、プログラムを
用いた処理を行わなくてもすみ、CPUへの割込みを軽
減することができる。
As described above, according to the second embodiment of the present invention, when comparing a 10-bit address with an I2C communication device sharing a transmission buffer and a reception buffer as a transmission / reception buffer, a second address comparison is performed. In this case, since the address held in the buffer and the register of the shift register can be directly compared, it is not necessary to perform processing using a program, and it is possible to reduce interrupts to the CPU.

【0079】(実施の形態3)以下、実施の形態3にお
けるI2C通信装置について図7を用いて説明する。実
施の形態2におけるI2C通信装置ではアドレスデコー
ダを用いて自己アドレス2セットフラグの制御を行なっ
ていたが、本発明の実施の形態3におけるI2C通信装
置ではアドレスデコーダを用いずアドレス判定制御回路
から出力される送受信切り換え信号を利用して自己アド
レス2セットフラグの制御を行うことを特徴とする。
(Embodiment 3) An I2C communication apparatus according to Embodiment 3 will be described below with reference to FIG. In the I2C communication device according to the second embodiment, the self-address two-set flag is controlled using an address decoder. However, in the I2C communication device according to the third embodiment of the present invention, an output from an address determination control circuit is used without using an address decoder. The self-address two-set flag is controlled using the transmission / reception switching signal.

【0080】ここでは、マスタ動作を行なわず、10ビ
ットアドレスモードのスレーブ送受信で動作するI2C
通信装置について説明する。図7は本発明の実施の形態
3におけるI2C通信装置のブロック図である。
Here, I2C operating in slave transmission and reception in a 10-bit address mode without performing a master operation is described.
The communication device will be described. FIG. 7 is a block diagram of an I2C communication device according to Embodiment 3 of the present invention.

【0081】以下にI2C通信装置700の構成と各回
路の機能について説明する。ただし、実施の形態2と同
じ部分については説明を省略する。自己アドレス2セッ
トフラグ719は送受信バッファ411に自己アドレス
2がセットされているかどうかを記憶する回路である。
送受信バッファ書き込み信号411aが出力され、かつ
送受信切り換え信号109dが送信選択でない時にフラ
グがセットされる。送受信バッファ書き込み信号411
aが出力され、かつ送受信切り換え信号109dが送信
および受信選択である時に本回路のフラグがクリアされ
る。また、本回路のフラグ値は自己アドレス2フラグ信
号419aとして出力される。I2C通信装置700の
動作フローについては実施の形態2と同様であるので省
略する。
The configuration of the I2C communication device 700 and the function of each circuit will be described below. However, description of the same parts as in the second embodiment will be omitted. The self address 2 set flag 719 is a circuit for storing whether the self address 2 is set in the transmission / reception buffer 411.
A flag is set when the transmission / reception buffer write signal 411a is output and the transmission / reception switching signal 109d is not a transmission selection. Transmit / receive buffer write signal 411
a is output, and the flag of this circuit is cleared when the transmission / reception switching signal 109d is a transmission / reception selection. The flag value of this circuit is output as the self address 2 flag signal 419a. The operation flow of the I2C communication device 700 is the same as that of the second embodiment, and a description thereof will be omitted.

【0082】以上の構成により、実施の形態2では送受
信バッファのアクセス用と自己アドレス2フラグのセッ
ト用にそれぞれ別々のアクセスアドレス必要であった
が、本発明実施の形態3によると1種類のアクセスアド
レスで送受信バッファのアクセスと自己アドレス2フラ
グのセットを行なえる。すなわち、実施の形態2と比べ
ると、本発明実施の形態3では消費されるアドレス空間
がレジスタアドレス一つ分だけ少なくて済み、より効率
的な構成でCPUへの割込みを軽減することができる。
According to the configuration described above, in the second embodiment, separate access addresses are required for accessing the transmission / reception buffer and for setting the self address 2 flag. However, according to the third embodiment of the present invention, one type of access address is required. The address of the transmission / reception buffer and the setting of the self address 2 flag can be performed by the address. That is, compared to the second embodiment, the third embodiment of the present invention requires less address space by one register address, and can reduce interrupts to the CPU with a more efficient configuration.

【0083】[0083]

【発明の効果】以上のように本発明のシリアル通信装置
におけるI2C通信装置によると、送受信それぞれの第
2のアドレスを格納する2つのバッファと、2つのバッ
ファのアドレスと自己アドレス2のうちから1つを選択
するセレクタと、アドレスデータを比較する回路を有す
ることにより、2回目のアドレス比較において、バッフ
ァに保持したアドレスとシフトレジスタのレジスタを直
接比較することができるので、プログラムを用いた処理
を行わなくてもすみ、CPUへの割込みを軽減すること
ができ、通信の際に行うCPUの処理を少なくしてCP
Uの負担を軽くすることができる。
As described above, according to the I2C communication apparatus in the serial communication apparatus of the present invention, two buffers for storing the second addresses for transmission and reception, and one of the addresses of the two buffers and the self address 2 By having a selector for selecting one of the two and a circuit for comparing the address data, in the second address comparison, the address held in the buffer and the register of the shift register can be directly compared. It is not necessary to perform the processing, and the interruption to the CPU can be reduced.
The burden on U can be reduced.

【0084】また、送信バッファと受信バッファとを1
つの送受信バッファとして共有しても、同様に、2回目
のアドレス比較において、バッファに保持したアドレス
とシフトレジスタのレジスタを直接比較することができ
るので、プログラムを用いた処理を行わなくてもすみ、
CPUへの割込みを軽減することができ、通信の際に行
うCPUの処理を少なくしてCPUの負担を軽くするこ
とができる。
Further, the transmission buffer and the reception buffer are set to 1
Even if the transmission and reception buffers are shared, the address held in the buffer and the register of the shift register can be directly compared in the second address comparison, so that there is no need to perform processing using a program,
Interrupts to the CPU can be reduced, and the processing performed by the CPU during communication can be reduced, thereby reducing the load on the CPU.

【0085】さらに、自己アドレス2セットフラグを設
定することにより、1種類のアクセスアドレスで送受信
バッファのアクセスと自己アドレス2フラグのセットを
行なうことができ、消費されるアドレス空間を抑制し、
より効率的な構成でCPUへの割込みを軽減することが
でき、通信の際に行うCPUの処理を少なくしてCPU
の負担を軽くすることができる。
Further, by setting the self address 2 set flag, it is possible to access the transmission / reception buffer and set the self address 2 flag with one kind of access address, thereby suppressing the consumed address space.
It is possible to reduce interrupts to the CPU with a more efficient configuration, and reduce the number of CPU processes performed during communication to reduce the CPU
Can be lightened.

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

【図1】本発明の実施の形態1におけるI2C通信装置
のブロック図
FIG. 1 is a block diagram of an I2C communication device according to a first embodiment of the present invention.

【図2】本発明の実施の形態1におけるI2C通信装置
での通信データと割込み発生タイミング図
FIG. 2 is a communication data and interrupt generation timing diagram in the I2C communication device according to the first embodiment of the present invention.

【図3】本発明の実施の形態1におけるI2C通信装置
の動作フロー図
FIG. 3 is an operation flowchart of the I2C communication device according to the first embodiment of the present invention.

【図4】本発明の実施の形態2におけるI2C通信装置
のブロック図
FIG. 4 is a block diagram of an I2C communication device according to a second embodiment of the present invention.

【図5】本発明の実施の形態2におけるI2C通信装置
での通信データと割込み発生タイミング図
FIG. 5 is a communication data and interrupt generation timing diagram in the I2C communication device according to the second embodiment of the present invention.

【図6】本発明の実施の形態2におけるI2C通信装置
の動作フロー図
FIG. 6 is an operation flowchart of the I2C communication device according to the second embodiment of the present invention.

【図7】本発明の実施の形態3におけるI2C通信装置
のブロック図
FIG. 7 is a block diagram of an I2C communication device according to a third embodiment of the present invention.

【図8】従来のI2C通信装置のブロック図FIG. 8 is a block diagram of a conventional I2C communication device.

【図9】従来のI2C通信装置での通信データと割込み
発生タイミング図
FIG. 9 is a communication data and interrupt generation timing diagram in a conventional I2C communication device.

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

100 I2C通信装置 101 I2CバスSCL 102 I2CバスSDA 103 クロック制御回路 104 バス状態検出回路 104a スタート検出信号 104b 通信終了信号 105 データ制御回路 106 割込み発生回路 106a 信号 106b 割込み信号 107 データ転送制御回路 107a バッファアクセス要求信号 107b 受信バッファ書き込み信号 107c 初期化信号 108 シフトレジスタ 109 アドレス判定制御回路 109a アドレス判定制御回路 109b アドレス一致信号 109c セレクタ切り替え信号 109d 送受信切り替え信号 110 自己アドレス1レジスタ 111 送信バッファ 112 受信バッファ 113 ホストI/F 113a 送信バッファ書き込み信号 113b 受信バッファ書き込み信号 114 CPU 115 自己アドレス2転送回路 115a セレクタ切り換え信号 116 セレクタ 117 セレクタ 400 I2C通信装置 411 送受信バッファ 411a 送受信バッファ書込み信号 418 アドレスデコーダ 419 自己アドレス2セットフラグ 419a 自己アドレス2セットフラグ信号 700 I2C通信装置 719 自己アドレス2セットフラグ 800 I2C通信装置 801 I2CバスSCL 802 I2CバスSDA 803 クロック制御回路 804 バス状態検出回路 805 データ制御回路 806 割込み発生回路 807 データ転送制御回路 808 シフトレジスタ 809 アドレス判定制御回路 810 自己アドレス1レジスタ 811 送信バッファ 812 受信バッファ 813 ホストI/F 814 CPU 100 I2C communication device 101 I2C bus SCL 102 I2C bus SDA 103 Clock control circuit 104 Bus state detection circuit 104a Start detection signal 104b Communication end signal 105 Data control circuit 106 Interrupt generation circuit 106a signal 106b Interrupt signal 107 Data transfer control circuit 107a Buffer access request signal 107b Receive buffer write signal 107c Initialization signal 108 shift register 109 Address judgment control circuit 109a Address determination control circuit 109b Address match signal 109c Selector switching signal 109d transmission / reception switching signal 110 Self address 1 register 111 transmission buffer 112 receive buffer 113 Host I / F 113a Transmission buffer write signal 113b Receive buffer write signal 114 CPU 115 Self-address 2 transfer circuit 115a Selector switching signal 116 Selector 117 Selector 400 I2C communication device 411 send / receive buffer 411a Transmit / receive buffer write signal 418 Address decoder 419 Self address 2 set flag 419a Self address 2 set flag signal 700 I2C communication device 719 Self address 2 set flag 800 I2C communication device 801 I2C bus SCL 802 I2C bus SDA 803 Clock control circuit 804 bus state detection circuit 805 Data control circuit 806 interrupt generation circuit 807 Data transfer control circuit 808 shift register 809 Address determination control circuit 810 Self address 1 register 811 Transmission buffer 812 Receive buffer 813 Host I / F 814 CPU

───────────────────────────────────────────────────── フロントページの続き (72)発明者 川口 謙一 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 浦野 美紀 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 5B014 HB02 5B077 BA02 DD07 NN02    ────────────────────────────────────────────────── ─── Continuation of front page    (72) Inventor Kenichi Kawaguchi             Matsushita Electric, 1006 Kadoma, Kazuma, Osaka             Sangyo Co., Ltd. (72) Inventor Miki Urano             Matsushita Electric, 1006 Kadoma, Kazuma, Osaka             Sangyo Co., Ltd. F-term (reference) 5B014 HB02                 5B077 BA02 DD07 NN02

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】通信データをシリアル転送し外部に対して
送受信するシリアル通信装置であって、 前記通信データをシフトするシフトレジスタと、 順次通信される前記通信データのうち受信データを前記
シフトレジスタに転送するデータ制御回路と、 前記シフトレジスタでシフトされた受信データを保持す
る第1のデータバッファと、 第1の受信データを前記シフトレジスタがシフトした後
に第2の受信データが前記データ制御回路に入力された
時に前記第1の受信データを前記第1のデータバッファ
に転送し前記第2の受信データを前記シフトレジスタに
転送するデータ転送制御回路と、 任意に設定可能な比較用データを保持するレジスタと、 前記第1のデータバッファに保持された第1の受信デー
タまたは前記比較用データのうちいずれかを選択する第
1のセレクタ回路と、 前記第1のセレクタ回路が選択したデータと前記第2の
受信データを比較するデータ比較回路とを有することを
特徴とするシリアル通信装置。
1. A serial communication device for serially transmitting communication data and transmitting / receiving the communication data to / from an external device, comprising: a shift register for shifting the communication data; and receiving data of the communication data sequentially communicated to the shift register. A data control circuit for transferring; a first data buffer for holding the received data shifted by the shift register; and a second received data to the data control circuit after the shift register shifts the first received data. A data transfer control circuit for transferring the first received data to the first data buffer when input, and transferring the second received data to the shift register; and holding arbitrarily configurable comparison data. A register, either of the first received data or the comparison data held in the first data buffer; A first selector circuit for selecting either the serial communication device; and a data comparison circuit for comparing said first selector circuit selects the data second received data.
【請求項2】I2Cバスを介して通信を行うI2C通信
装置であるシリアル通信装置であって、 前記通信データをシフトするシフトレジスタと、 順次通信される前記通信データのうち受信データを前記
シフトレジスタに転送するデータ制御回路と、 前記シフトレジスタでシフトされた受信データのアドレ
スを保持する第1のデータバッファと、 第1の受信データを前記シフトレジスタがシフトした後
に第2の受信データが前記データ制御回路に入力された
時に前記第1の受信データのアドレスを前記第1のデー
タバッファに転送し前記第2の受信データを前記シフト
レジスタに転送するデータ転送制御回路と、 任意に設定可能な比較用アドレスを保持するレジスタ
と、 前記第1のデータバッファに保持された第1の受信デー
タのアドレスまたは前記比較用アドレスのうちいずれか
を選択するセレクタ回路と、 前記セレクタ回路が選択したアドレスと前記第2の受信
データのアドレスを比較するデータ比較回路とを有し、
前記第2の受信データのアドレスと前記セレクタ回路が
選択したアドレスが一致した場合にデータの受信を行う
ことを特徴とするシリアル通信装置。
2. A serial communication device, which is an I2C communication device that performs communication via an I2C bus, comprising: a shift register that shifts the communication data; and a shift register that receives received data among the communication data sequentially communicated. A first data buffer for holding an address of the received data shifted by the shift register; and a second received data after the shift register shifts the first received data. A data transfer control circuit for transferring an address of the first received data to the first data buffer and transferring the second received data to the shift register when input to the control circuit; A register for holding an address for use, and an address of first received data held in the first data buffer. Other has a selector circuit for selecting one of the addresses for the comparison, the data comparison circuit for comparing the address of said second received data and addresses the selector circuit selects,
A serial communication device, wherein data is received when the address of the second received data matches the address selected by the selector circuit.
【請求項3】I2Cバスを介して通信を行うI2C通信
装置であるシリアル通信装置であって、 前記通信データをシフトするシフトレジスタと、 順次通信される前記通信データのうち受信データを前記
シフトレジスタに転送し送信データを前記シフトレジス
タから受取って出力するデータ制御回路と、 前記シフトレジスタでシフトされた受信データのアドレ
スを保持する第1のデータバッファと、 前記シフトレジスタから受取った送信データのアドレス
を保持する第2のデータバッファと、 第1の通信データを前記シフトレジスタがシフトした後
に第2の通信データが前記データ制御回路に入力された
時に前記第1の通信データのアドレスを前記第1のデー
タバッファに転送し前記第2の通信データを前記シフト
レジスタに転送するデータ転送制御回路と、 第1のデータバッファと第2のデータバッファ間でのア
ドレスデータの転送を制御するアドレスデータ転送回路
と、 任意に設定可能な比較用データを保持するレジスタと、 前記第1のデータバッファに保持された通信データのア
ドレスまたは前記第2のデータバッファに保持された通
信データのアドレスまたは前記レジスタに保持された比
較用のアドレスのうちいずれか1つのアドレスを選択す
るセレクタ回路と、 前記セレクタ回路が選択したアドレスと前記第2の通信
データのアドレスを比較するデータ比較回路とを有し、
前記第2の通信データのアドレスと前記セレクタ回路が
選択したアドレスが一致した場合にデータの送受信を行
うことを特徴とするシリアル通信装置。
3. A serial communication device, which is an I2C communication device that performs communication via an I2C bus, comprising: a shift register that shifts the communication data; and a shift register that receives received data among the communication data sequentially communicated. A data control circuit for receiving the transmission data from the shift register and outputting the received data; a first data buffer for holding an address of the reception data shifted by the shift register; and an address of the transmission data received from the shift register. And a second data buffer for holding the first communication data when the second communication data is input to the data control circuit after the shift register shifts the first communication data. To transfer the second communication data to the shift register. A transfer control circuit; an address data transfer circuit for controlling transfer of address data between the first data buffer and the second data buffer; a register for holding arbitrarily configurable comparison data; A selector circuit for selecting any one of an address of communication data held in a data buffer, an address of communication data held in the second data buffer, and an address for comparison held in the register; A data comparison circuit that compares the address selected by the selector circuit with the address of the second communication data,
A serial communication device for transmitting and receiving data when the address of the second communication data matches the address selected by the selector circuit.
【請求項4】I2Cバスを介して通信を行うI2C通信
装置であるシリアル通信装置であって、 前記通信データをシフトするシフトレジスタと、 順次通信される前記通信データのうち受信データを前記
シフトレジスタに転送し送信データを前記シフトレジス
タから受取って出力するデータ制御回路と、 前記シフトレジスタでシフトされた前記通信データのア
ドレスを保持するデータバッファと、 第1の通信データを前記シフトレジスタがシフトした後
に第2の通信データが前記データ制御回路に入力された
時に前記第1の通信データのアドレスを前記データバッ
ファに転送し前記第2の通信データを前記シフトレジス
タに転送するデータ転送制御回路と、 前記データバッファに前記第2の通信データのアドレス
が保持されているときにフラグをセットするアドレス保
持フラグ設定回路と、 任意に設定可能な比較用データを保持するレジスタと、 前記データバッファに保持されたアドレスまたは前記レ
ジスタに保持された比較用のアドレスのうちいずれかを
選択するセレクタ回路と、 前記セレクタ回路が選択したアドレスと前記第2の通信
データのアドレスを比較するデータ比較回路とを有し、
前記フラグがセットされない場合には前記比較用アドレ
スと前記第1の通信データのアドレスの一致により送受
信を行い、前記フラグがセットされた場合には前記第2
の通信データのアドレスと前記セレクタ回路が選択した
アドレスの一致によりデータの送受信を行うことを特徴
とするシリアル通信装置。
4. A serial communication device, which is an I2C communication device that performs communication via an I2C bus, comprising: a shift register for shifting the communication data; and a shift register for receiving data among the communication data sequentially communicated. A data control circuit for receiving the transmission data from the shift register and outputting the transmission data; a data buffer for holding the address of the communication data shifted by the shift register; and a shift register for shifting the first communication data. A data transfer control circuit that transfers an address of the first communication data to the data buffer when the second communication data is input to the data control circuit later, and transfers the second communication data to the shift register; When the address of the second communication data is held in the data buffer, An address holding flag setting circuit for setting a register, a register for holding arbitrarily set comparison data, and selecting one of an address held in the data buffer or a comparison address held in the register And a data comparison circuit that compares the address selected by the selector circuit with the address of the second communication data,
When the flag is not set, transmission / reception is performed by matching the comparison address with the address of the first communication data, and when the flag is set, the second communication is performed.
A serial communication device for transmitting and receiving data by matching the address of the communication data with the address selected by the selector circuit.
【請求項5】I2Cバスを介して通信を行うI2C通信
装置であるシリアル通信装置であって、 前記通信データをシフトするシフトレジスタと、 順次通信される前記通信データのうち受信データを前記
シフトレジスタに転送し送信データを前記シフトレジス
タから受取って出力するデータ制御回路と、 前記シフトレジスタでシフトされた受信データのアドレ
スを保持する第1のデータバッファと、 前記シフトレジスタから受取った送信データのアドレス
を保持する第2のデータバッファと、 第1の通信データを前記シフトレジスタがシフトした後
に第2の通信データが前記データ制御回路に入力された
時に前記第1の通信データのアドレスを前記第1のデー
タバッファに転送し前記第2の通信データを前記シフト
レジスタに転送するデータ転送制御回路と、 第1のデータバッファと第2のデータバッファ間でのア
ドレスデータの転送を制御するアドレスデータ転送回路
と、 外部演算装置が通信を行い前記第1のデータバッファに
前記第2の通信データのアドレスが保持されている時に
フラグをセットするアドレス保持フラグ設定回路と、 任意に設定可能な比較用データを保持するレジスタと、 前記第1のデータバッファに保持された通信データのア
ドレスまたは前記第2のデータバッファに保持された通
信データのアドレスまたは前記レジスタに保持された比
較用のアドレスのうちいずれか1つのアドレスを選択す
るセレクタ回路と、 前記セレクタ回路が選択したアドレスと前記第2の通信
データのアドレスを比較するデータ比較回路とを有し、
前記第2の通信データのアドレスと前記セレクタ回路が
選択したアドレスが一致した場合にデータの送受信を行
うことを特徴とするシリアル通信装置。
5. A serial communication device, which is an I2C communication device that performs communication via an I2C bus, comprising: a shift register that shifts the communication data; and a shift register that receives received data among the communication data sequentially communicated. A data control circuit for receiving the transmission data from the shift register and outputting the received data, a first data buffer for holding an address of the reception data shifted by the shift register, and an address of the transmission data received from the shift register. And a second data buffer for holding the first communication data when the second communication data is input to the data control circuit after the shift register shifts the first communication data. To transfer the second communication data to the shift register. A transfer control circuit; an address data transfer circuit for controlling transfer of address data between the first data buffer and the second data buffer; and an external arithmetic unit communicating with the first data buffer to store the second data in the first data buffer. An address holding flag setting circuit for setting a flag when an address of communication data is held; a register for holding arbitrarily set comparison data; an address of communication data held in the first data buffer; A selector circuit for selecting any one of an address of communication data held in the second data buffer or a comparison address held in the register; and an address selected by the selector circuit and the second address. A data comparison circuit for comparing addresses of communication data of
A serial communication device for transmitting and receiving data when the address of the second communication data matches the address selected by the selector circuit.
【請求項6】I2Cバスを介して通信を行うI2C通信
装置であるシリアル通信装置であって、 前記通信データをシフトするシフトレジスタと、 順次通信される前記通信データのうち受信データを前記
シフトレジスタに転送し送信データを前記シフトレジス
タから受取って出力するデータ制御回路と、 前記シフトレジスタでシフトされた受信データのアドレ
スを保持する第1のデータバッファと、 前記シフトレジスタから受取った送信データのアドレス
を保持する第2のデータバッファと、 第1の通信データを前記シフトレジスタがシフトした後
に第2の通信データが前記データ制御回路に入力された
時に前記第1の通信データのアドレスを前記第1のデー
タバッファに転送し前記第2の通信データを前記シフト
レジスタに転送するデータ転送制御回路と、 第1のデータバッファと第2のデータバッファ間でのア
ドレスデータの転送を制御するアドレスデータ転送回路
と、 シリアル送信動作状態であるかシリアル受信動作状態で
あるかを判別する動作判別回路と、 外部演算装置が通信を行う際に、前記動作判別回路によ
りシリアル受信動作状態であると判別され、かつ、前記
第1のデータバッファに前記第2の通信データのアドレ
スが保持されている時にフラグをセットするアドレス保
持フラグ設定回路と、 任意に設定可能な比較用データを保持するレジスタと、 前記第1のデータバッファに保持された通信データのア
ドレスまたは前記第2のデータバッファに保持された通
信データのアドレスまたは前記レジスタに保持された比
較用のアドレスのうちいずれか1つのアドレスを選択す
るセレクタ回路と、 前記セレクタ回路が選択したアドレスと前記第2の通信
データのアドレスを比較するデータ比較回路とを有し、
前記第2の通信データのアドレスと前記セレクタ回路が
選択したアドレスが一致した場合にデータの送受信を行
うことを特徴とするシリアル通信装置。
6. A serial communication device, which is an I2C communication device that performs communication via an I2C bus, comprising: a shift register that shifts the communication data; and a shift register that receives received data among the communication data sequentially communicated. A data control circuit for receiving the transmission data from the shift register and outputting the received data, a first data buffer for holding an address of the reception data shifted by the shift register, and an address of the transmission data received from the shift register. And a second data buffer for holding the first communication data when the second communication data is input to the data control circuit after the shift register shifts the first communication data. To transfer the second communication data to the shift register. A transfer control circuit; an address data transfer circuit for controlling the transfer of address data between the first data buffer and the second data buffer; and an operation for determining whether the device is in a serial transmission operation state or a serial reception operation state. When the discrimination circuit communicates with the external arithmetic device, the operation discrimination circuit discriminates that the operation is in the serial reception operation state, and the address of the second communication data is held in the first data buffer. An address holding flag setting circuit for setting a flag when there is a register; a register for holding arbitrarily settable comparison data; an address of communication data held in the first data buffer or holding in the second data buffer One of the address of the transmitted communication data or the address for comparison held in the register. The has a selector circuit for selecting, and a data comparator circuit for comparing said selector circuit address of the selected address to the second communication data,
A serial communication device for transmitting and receiving data when the address of the second communication data matches the address selected by the selector circuit.
JP2002151653A 2002-05-27 2002-05-27 Serial communication device Pending JP2003345732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002151653A JP2003345732A (en) 2002-05-27 2002-05-27 Serial communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002151653A JP2003345732A (en) 2002-05-27 2002-05-27 Serial communication device

Publications (1)

Publication Number Publication Date
JP2003345732A true JP2003345732A (en) 2003-12-05

Family

ID=29769163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002151653A Pending JP2003345732A (en) 2002-05-27 2002-05-27 Serial communication device

Country Status (1)

Country Link
JP (1) JP2003345732A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006090473A1 (en) * 2005-02-25 2006-08-31 Fujitsu Limited Data transmission control method and data transmission control apparatus
JP2008197752A (en) * 2007-02-08 2008-08-28 Sharp Corp Data communication malfunction preventing device, electronic equipment, control method for data communication malfunction preventing device, control program for data communication malfunction preventing device and recording medium with the program recorded

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006090473A1 (en) * 2005-02-25 2006-08-31 Fujitsu Limited Data transmission control method and data transmission control apparatus
JP2008197752A (en) * 2007-02-08 2008-08-28 Sharp Corp Data communication malfunction preventing device, electronic equipment, control method for data communication malfunction preventing device, control program for data communication malfunction preventing device and recording medium with the program recorded

Similar Documents

Publication Publication Date Title
EP0619548B1 (en) Interface circuit between a control bus and an integrated circuit suitable for two different protocol standards
US11409679B2 (en) System component and use of a system component
JPH1153306A (en) Data processor, external storage device, data processing system and data transmission method
JP2003345732A (en) Serial communication device
EP0473059B1 (en) Communication control system
CN100504712C (en) Version-programmable circuit module
US5831849A (en) Data control system
US11907155B2 (en) Bus system connecting slave devices with single-wire data access communication
US20030093594A1 (en) Apparatus and method for controlling block signal flow in a multi digital signal processor configuration from a shared peripheral direct memory controller to high level data link controller
JP2002149623A (en) Microcomputer
WO2000033539A1 (en) Communication system
JPH1063617A (en) Serial communication device
US20220188254A1 (en) Methods for identifying target slave address for serial communication interface
JP2002149626A (en) Microcomputer
KR100225531B1 (en) Apparatus for interfacing between peripheral processor and device in the switching system
JP4860811B2 (en) Microcomputer
KR0157915B1 (en) Address processing apparatus of memory pc card controller
JP2000076180A (en) Bus connection device and information processing system
JP2639248B2 (en) Communication interface device
JPH06164595A (en) Serial bus controller
JP2000172635A (en) Device and method for serial transmission
JP2000267774A (en) Microcontroller unit
JP2001027920A (en) Bus bridge circuit and its power management method
JPH11312139A (en) Serial bus extension circuit
KR0174979B1 (en) System having interface function between different central processing units and control method thereof