Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5955608B2 - Communication system between processing units - Google Patents
[go: Go Back, main page]

JP5955608B2 - Communication system between processing units - Google Patents

Communication system between processing units Download PDF

Info

Publication number
JP5955608B2
JP5955608B2 JP2012077138A JP2012077138A JP5955608B2 JP 5955608 B2 JP5955608 B2 JP 5955608B2 JP 2012077138 A JP2012077138 A JP 2012077138A JP 2012077138 A JP2012077138 A JP 2012077138A JP 5955608 B2 JP5955608 B2 JP 5955608B2
Authority
JP
Japan
Prior art keywords
clock
transmission
data
reception
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012077138A
Other languages
Japanese (ja)
Other versions
JP2013207702A (en
Inventor
敬 森
敬 森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MegaChips Corp
Original Assignee
MegaChips Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MegaChips Corp filed Critical MegaChips Corp
Priority to JP2012077138A priority Critical patent/JP5955608B2/en
Publication of JP2013207702A publication Critical patent/JP2013207702A/en
Application granted granted Critical
Publication of JP5955608B2 publication Critical patent/JP5955608B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Information Transfer Systems (AREA)
  • Dc Digital Transmission (AREA)

Description

本発明は、処理装置間通信システムに関し、特に通信の異常に関する。   The present invention relates to a communication system between processing devices, and particularly relates to a communication abnormality.

伝送路を介して第1装置と第2装置との間で通信を行う通信システムが存在する。ある通信システムにおいては、第1装置および第2装置の各々は自身が通信可能か否かを判断し、通信可否情報を送信し合う。これによって、第1装置および第2装置は通信相手が通信可能か否かを認識することができる。   There is a communication system that performs communication between a first device and a second device via a transmission line. In a certain communication system, each of the first device and the second device determines whether they can communicate with each other and transmits communication availability information. Thereby, the first device and the second device can recognize whether or not the communication partner can communicate.

また伝送路の信号線の数を低減すべく、例えばシリアル/パラレル変換部を第1装置と第2装置とにそれぞれ設けることもある。各変換部は伝送路を介して通信相手からクロックとデータ(シリアルデータ)とを受け取り、当該クロックを用いてシリアルデータを適切なパラレルデータに変換する。   In order to reduce the number of signal lines in the transmission path, for example, a serial / parallel converter may be provided in each of the first device and the second device. Each converter receives a clock and data (serial data) from a communication partner via a transmission path, and converts the serial data into appropriate parallel data using the clock.

また特許文献1は装置本体と外部装置との通信に関する技術を開示している。特許文献1では、装置本体がクロック信号(CLK信号)とデータ信号(CMD信号)とを外部装置に送信し、外部装置がデータ信号を解析してこれに応じたステータス信号(STS信号)を装置本体へと送信する。このやり取りは通信サイクル毎に行われる。   Patent Document 1 discloses a technique related to communication between the apparatus main body and an external apparatus. In Patent Document 1, the apparatus main body transmits a clock signal (CLK signal) and a data signal (CMD signal) to an external apparatus, and the external apparatus analyzes the data signal and outputs a status signal (STS signal) corresponding thereto. Send to the main unit. This exchange is performed every communication cycle.

そして、外部装置がステータス信号の送信に所定時間以上の時間を要したときには、通信エラーが生じたと判断して、外部装置はステータス信号をHighレベルに維持する。一方、装置本体は次の通信サイクルの開始時にHighレベルに維持されたステータス信号を受信し、通信エラーが生じたことを認識する。   When the external device takes a predetermined time or longer to transmit the status signal, it is determined that a communication error has occurred, and the external device maintains the status signal at the high level. On the other hand, the apparatus main body receives the status signal maintained at the high level at the start of the next communication cycle, and recognizes that a communication error has occurred.

特開2011−187079号公報JP 2011-187079 A

しかしながら上述した通信システムにおいて、たとえば第1装置に通信異常が生じて第2装置へとクロックを送信できない場合、第2装置の変換部はクロックを受信できずに停止する(変換動作を実行できない)。よって、第2装置は第1装置が通信できないことを認識できない。   However, in the communication system described above, for example, when communication abnormality occurs in the first device and the clock cannot be transmitted to the second device, the conversion unit of the second device stops without receiving the clock (cannot execute the conversion operation). . Therefore, the second device cannot recognize that the first device cannot communicate.

また特許文献1の技術では、外部装置に通信エラーが生じたと認識した場合に、Highレベルのステータス信号を送信するものの、外部装置自体に通信異常が生じてステータス信号が送信できない場合には、装置本体は通信エラーを認識できない。   Further, in the technique of Patent Document 1, when it is recognized that a communication error has occurred in the external device, a high-level status signal is transmitted. However, if a communication error occurs in the external device itself and the status signal cannot be transmitted, The main unit cannot recognize a communication error.

そこで、本発明は、第1装置から第2装置へのクロックが停止したときにその異常を第2装置が認識できる処理装置間通信システムを提供することを目的とする。   Accordingly, an object of the present invention is to provide an inter-processor communication system in which the second device can recognize the abnormality when the clock from the first device to the second device stops.

本発明にかかる処理装置間通信システムの第1の態様は、第1装置と、第2装置と、前記第1装置と前記第2装置とを接続する伝送路とを備える処理装置間通信システムであって、前記第1装置は、所定の送信クロックと同期する送信データをM(Mは2以上の自然数)ビットパラレル又は1ビットシリアルで前記伝送路を介して前記第2装置へと送信するとともに、前記伝送路を介して前記送信クロックを前記第2装置へと送信し、前記第2装置は、所定のバスクロックと同期するデータがn(nは2以上の自然数)ビットパラレルで伝達される信号線群と、前記信号線群との間でデータを送受信する処理部と、前記伝送路から前記送信クロックと前記送信データとを受け取り、前記送信クロックが停止したか否を判定し、否定的な判定がなされたときに、受信クロック及び受信データとして前記送信クロック及び前記送信データを送信し、肯定的な判定をしたときに、前記受信クロックとして所定の代替クロックを、前記受信データとして前記代替クロックと同期する異常情報を、それぞれ送信する受信データ中継部と、前記受信データ中継部から前記受信データをMビットパラレル又は1ビットシリアルで受け取るとともに、前記受信データ中継部から前記受信クロックを受け取り、前記所定のバスクロックと前記受信クロックとを用いて前記受信データをnビットパラレルの受信データに変換し、前記信号線群を介して変換後の前記受信データを前記処理部へと送信する変換部と、前記バスクロックと生成用クロックとを生成するクロック生成部とを備え、前記受信データ中継部は、前記送信クロックと等しく又は前記送信クロックに基づいて生成されて活性/不活性を繰り返し採る判定クロックを、前記判定クロックの周波数の2倍よりも高いサンプリング周波数でサンプリングし、当該サンプリング値が連続して同じ値を採る回数が、前記サンプリング周波数を前記判定クロックの周波数の2倍で除算した値以上の整数たる回数基準値より大きいときに、前記送信クロックが停止したと判定し、前記変換部は、前記生成用クロックを用いて第2送信クロックを生成し、前記バスクロックと同期する第2送信データを前記信号線群からnビットパラレルで受け取り、前記バスクロックと前記第2送信クロックとを用いて、前記第2送信データをMビットパラレルまたは1ビットシリアルの第3送信データに変換して、前記第3送信データと前記第2送信クロックとを前記伝送路を介して前記第1装置へと送信し、前記サンプリング周波数は前記生成用クロックまたは前記バスクロックに基づいて規定され、前記サンプリング周波数は前記生成用クロックの周波数と等しく、前記送信クロックの周波数は最大値ftmaxと最小値ftminとの間の値を採り、前記生成用クロックの周波数は最大値fpmaxと最小値fpminとの間の値を採り、前記判定クロックは前記送信クロックを所定の分周比DIVで分周して生成され、前記分周比DIVは、DIV>2ftmax/fpminを満たし、前記回数基準値DETCTはDETCT>fpmax・DIV/(2×ftmin)を満たすA first aspect of an inter-processing device communication system according to the present invention is an inter-processing device communication system including a first device, a second device, and a transmission line connecting the first device and the second device. The first device transmits transmission data synchronized with a predetermined transmission clock to the second device via the transmission path in M (M is a natural number of 2 or more) bit parallel or 1 bit serial. The transmission clock is transmitted to the second device via the transmission line, and the second device transmits data synchronized with a predetermined bus clock in n (n is a natural number of 2 or more) bit parallel. A signal line group, a processing unit that transmits / receives data between the signal line group, the transmission clock and the transmission data from the transmission path, and determines whether the transmission clock has stopped; Judgment The transmission clock and the transmission data are transmitted as a reception clock and reception data, and when a positive determination is made, a predetermined alternative clock is synchronized as the reception clock and the alternative clock as the reception data. And receiving the reception data from the reception data relay unit and the reception data relay unit in M-bit parallel or 1-bit serial, and receiving the reception clock from the reception data relay unit, Converting the received data into n-bit parallel received data using a bus clock and the received clock, and transmitting the converted received data to the processing unit via the signal line group ; and a clock generator for generating the generated clock to the bus clock, the received data The relay section samples a determination clock that is equal to the transmission clock or is generated based on the transmission clock and repeatedly takes active / inactive at a sampling frequency higher than twice the frequency of the determination clock, and the sampling value Determines that the transmission clock has stopped when the number of times of continuously taking the same value is greater than a reference number of times that is an integer equal to or greater than a value obtained by dividing the sampling frequency by twice the frequency of the determination clock, The converter generates a second transmission clock using the generation clock, receives second transmission data synchronized with the bus clock in n-bit parallel from the signal line group, and converts the bus clock and the second transmission clock. To convert the second transmission data into M-bit parallel or 1-bit serial third transmission data. And transmitting the third transmission data and the second transmission clock to the first device via the transmission line, the sampling frequency being defined based on the generation clock or the bus clock, and the sampling The frequency is equal to the frequency of the generation clock, the frequency of the transmission clock takes a value between the maximum value ftmax and the minimum value ftmin, and the frequency of the generation clock is between the maximum value fpmax and the minimum value fpmin. The determination clock is generated by dividing the transmission clock by a predetermined division ratio DIV, the division ratio DIV satisfies DIV> 2 ftmax / fpmin, and the number of times reference value DETCT is DETCT> fpmax -DIV / (2xftmin) is satisfied .

本発明にかかる処理装置間通信システムの第の態様は、第1の態様にかかる処理装置間通信システムであって、前記代替クロックは前記バスクロックである又は前記バスクロックに基づいて生成される。 A second aspect of the inter-processor communication system according to the present invention is the inter-processor communication system according to the first aspect, wherein the alternative clock is the bus clock or generated based on the bus clock. .

本発明にかかる処理装置間通信システムの第の態様は、第1またはの態様にかかる処理装置間通信システムであって、前記代替クロックは前記生成用クロックである又は前記生成用クロックに基づいて生成される。 A third aspect of the inter-processor communication system according to the present invention is the inter-processor communication system according to the first or second aspect, wherein the alternative clock is the generation clock or the generation clock. Based on.

本発明にかかる処理装置間通信システムの第の態様は、第1から第の何れか一つの態様にかかる処理装置間通信システムであって、前記第1装置は、自身が通信可能か否かを示す通信可否情報を前記送信情報として前記第2装置に送信し、前記異常情報は前記通信可否情報において通信不可を示す情報と等しい。 A fourth aspect of the inter-processing apparatus communication system according to the present invention is the inter-processing apparatus communication system according to any one of the first to third aspects, wherein the first apparatus is capable of communicating with itself. Is transmitted to the second device as the transmission information, and the abnormality information is equal to information indicating that communication is impossible in the communication availability information.

本発明にかかる処理装置間通信システムの第1及び第の態様によれば、第1装置からの送信クロックが停止したときにも、変換部は受信クロックとして代替クロックを受信し、受信クロック(代替クロック)によって規定される受信データとして異常情報を受信する。このとき、変換部は代替クロックによって規定される異常情報を、バスクロックによって規定される受信データに変換して処理部へと送信する。 According to the first and third aspects of the inter-processor communication system according to the present invention, even when the transmission clock from the first device is stopped, the conversion unit receives the alternative clock as the reception clock, Abnormal information is received as reception data defined by the alternative clock. At this time, the conversion unit converts the abnormality information defined by the alternative clock into reception data defined by the bus clock and transmits the received data to the processing unit.

したがって第1装置からの送信クロックが停止したときに、変換部は当該異常情報を処理部へと処理部へと送信することができる。   Therefore, when the transmission clock from the first device stops, the conversion unit can transmit the abnormality information to the processing unit.

しかも変換部の機能を用いて異常情報を処理部へと送信しているので、別途に信号線群と受信データ中継部とを接続する場合に比べて信号線群の信号線の本数を増やす必要がない。   In addition, since the abnormality information is transmitted to the processing unit using the function of the conversion unit, it is necessary to increase the number of signal lines in the signal line group as compared with the case where the signal line group and the reception data relay unit are separately connected. There is no.

しかも、サンプリング値が連続して同じ値を採る回数に基づいて送信クロックの停止を判断することができる。 In addition , the stop of the transmission clock can be determined based on the number of times that the sampling value continuously takes the same value.

しかも、サンプリング周波数は生成用クロック又はバスクロックによって規定される。よって、サンプリング周波数を規定するクロックを一から生成する場合に比して、回路規模または製造コストを低減できる。 In addition , the sampling frequency is defined by a generation clock or a bus clock. Therefore, the circuit scale or manufacturing cost can be reduced as compared with the case where the clock defining the sampling frequency is generated from scratch.

しかも、送信クロックの周波数及び生成用クロックの周波数の各々が最大値と最小値との間で変動したとしても、適切に送信クロックの停止を判定できる。 Moreover , even if each of the frequency of the transmission clock and the frequency of the generation clock fluctuates between the maximum value and the minimum value, it is possible to appropriately determine whether the transmission clock is stopped.

本発明にかかる処理装置間通信システムの第の態様によれば、一から代替クロックを生成する場合に比べて回路規模および製造コストを抑制できる。 According to the second aspect of the inter-processor communication system according to the present invention, the circuit scale and manufacturing cost can be suppressed as compared with the case where an alternative clock is generated from scratch.

本発明にかかる処理装置間通信システムの第の態様によれば、処理部が認識すべき情報の種類を増やすことなく、第1装置が通信できないことを了知できる。
According to the fourth aspect of the inter-processing-device communication system of the present invention, it can be recognized that the first device cannot communicate without increasing the types of information that the processing unit should recognize.

処理装置間通信システムの概念的な構成の一例を示す図である。It is a figure which shows an example of a notional structure of the communication system between processing apparatuses. 処理装置間通信システムの概念的な構成の一例を示す図である。It is a figure which shows an example of a notional structure of the communication system between processing apparatuses. 選択部の概念的な内部構成の一例を示す図である。It is a figure which shows an example of a notional internal structure of a selection part. 判定クロックとサンプリング周期との関係の一例を示す図である。It is a figure which shows an example of the relationship between a determination clock and a sampling period. 判定クロックとサンプリング周期との関係の一例を示す図である。It is a figure which shows an example of the relationship between a determination clock and a sampling period. 処理装置間通信システムの概念的な構成の一例を示す図である。It is a figure which shows an example of a notional structure of the communication system between processing apparatuses.

図1に示すように、第1装置10と第2装置20とは伝送路30を介して相互に接続されて、互いに通信する。例えば第1装置10は自身が通信可能であるかどうかを、伝送路30を介して第2装置20へと送信し、また第2装置20は自身が通信可能であるかどうかを、伝送路30を介して第1装置10へと送信する。   As shown in FIG. 1, the first device 10 and the second device 20 are connected to each other via a transmission line 30 and communicate with each other. For example, the first device 10 transmits whether or not it can communicate to the second device 20 via the transmission line 30, and the second device 20 indicates whether or not it can communicate with the transmission line 30. To the first device 10 via

また図1の例示では、第1装置10は例えば撮像装置(例えばイメージセンサ)40と接続され、伝送路30とは別の画像用伝送路31も介して第2装置20と接続されている。第1装置10は例えば撮像装置40によって撮像される撮像データ(原画像データ)を受け取り、この撮像データに適宜に処理を施した上で、画像用伝送路31を介して第2装置20へと送信する。   In the example of FIG. 1, the first device 10 is connected to, for example, an imaging device (for example, an image sensor) 40, and is connected to the second device 20 via an image transmission path 31 that is different from the transmission path 30. For example, the first device 10 receives imaging data (original image data) captured by the imaging device 40, appropriately processes the imaging data, and then passes the image data to the second device 20 via the image transmission path 31. Send.

第2装置20は受け取ったデータに適宜に公知の画像処理を施し、これを不図示の装置へと送信する。   The second device 20 appropriately performs known image processing on the received data, and transmits this to a device (not shown).

このような画像処理装置において、第1装置10は例えば撮像装置40と第2装置20との間の通信を仲介する仲介装置と把握することができる。例えば第1装置10は撮像装置40と第2装置20との間の接続条件の不一致(例えば信号線の数の不一致および/または動作速度の不一致など)を整合させるための仲介装置である。この場合、第1装置10は撮像装置40からの撮像データを第2装置20に入力可能なデータに変換し、これを第2装置20へと送信する。   In such an image processing device, the first device 10 can be grasped as an intermediary device that mediates communication between the imaging device 40 and the second device 20, for example. For example, the first device 10 is an intermediary device for matching a mismatch in connection conditions between the imaging device 40 and the second device 20 (for example, a mismatch in the number of signal lines and / or a mismatch in operation speed). In this case, the first device 10 converts the imaging data from the imaging device 40 into data that can be input to the second device 20, and transmits this to the second device 20.

図1の例示では、第1装置10は回路11と信号線群(以下、CPUバスと呼ぶ)13と処理部14と記憶部15と変換部16とクロック生成部18とを備えている。処理部14は例えば中央演算装置(CPU)である。処理部14はクロック生成部18から所定のバスクロックBC1を受け取る。処理部14はCPUバス13に接続されており、バスクロックBC1でCPUバス13と信号の送受信を行う。処理部14は例えば第1装置10の全体を制御する。   In the illustration of FIG. 1, the first device 10 includes a circuit 11, a signal line group (hereinafter referred to as a CPU bus) 13, a processing unit 14, a storage unit 15, a conversion unit 16, and a clock generation unit 18. The processing unit 14 is, for example, a central processing unit (CPU). The processing unit 14 receives a predetermined bus clock BC1 from the clock generation unit 18. The processing unit 14 is connected to the CPU bus 13 and transmits and receives signals to and from the CPU bus 13 using the bus clock BC1. For example, the processing unit 14 controls the entire first device 10.

記憶部15は例えばメモリ(例えばSRAM(Static-Random-Access-Memory))であってCPUバス13に接続される。記憶部15には例えば処理部14によって実行されるプログラムが格納され、また例えばプログラムを実行するための作業領域を提供する。   The storage unit 15 is, for example, a memory (for example, SRAM (Static-Random-Access-Memory)) and is connected to the CPU bus 13. The storage unit 15 stores a program executed by the processing unit 14, for example, and provides a work area for executing the program, for example.

回路11は撮像装置40から撮像データを受け取る。回路11はCPUバス13に接続されており、例えば処理部14によって制御される。回路11は撮像データに対して処理を施して、例えば第2装置20に適したデータに変換する。この処理の内容は本発明の本質とは異なるので詳細な説明は省略する。   The circuit 11 receives imaging data from the imaging device 40. The circuit 11 is connected to the CPU bus 13 and is controlled by, for example, the processing unit 14. The circuit 11 performs processing on the imaging data and converts it into data suitable for the second device 20, for example. Since the contents of this process are different from the essence of the present invention, a detailed description is omitted.

変換部16は、CPUバス13と伝送路30とに接続される。変換部16はCPUバス13からのデータを伝送路30へと送信し、伝送路30からのデータをCPUバス13へと送信する。その際、変換部16はCPUバス13のN(Nは2以上の複数)本の信号線を介してパラレルでデータを送受信する。また変換部16は伝送路30のM(Mは自然数であって例えばNよりも小さい)本の信号線を介してパラレルでデータを送受信する。ただし、Mが1である場合には、変換部16は伝送路30とシリアルでデータを送受信することとなる。   The conversion unit 16 is connected to the CPU bus 13 and the transmission path 30. The conversion unit 16 transmits data from the CPU bus 13 to the transmission path 30 and transmits data from the transmission path 30 to the CPU bus 13. At that time, the conversion unit 16 transmits and receives data in parallel via N (N is a plurality of two or more) signal lines of the CPU bus 13. The conversion unit 16 transmits and receives data in parallel via M signal lines (M is a natural number, for example, smaller than N) on the transmission line 30. However, when M is 1, the conversion unit 16 transmits / receives data to / from the transmission line 30 serially.

言い換えれば、変換部16は、CPUバス13側のNビットパラレルのデータと、伝送路30側のMビットパラレル(Mが1の場合は1ビットシリアル、以下同様)のデータとの間の変換を実行する。以下、詳細に説明する。   In other words, the conversion unit 16 performs conversion between the N-bit parallel data on the CPU bus 13 side and the M-bit parallel data on the transmission line 30 side (1 bit serial when M is 1; the same applies hereinafter). Run. Details will be described below.

変換部16はクロック生成部18からバスクロックBC1を受け取る(図2も参照)。なお図2では、図面の簡素化のために、第1装置10の回路11、処理部14、記憶部15及びクロック生成部18と、第2装置20の一部(後述)との図示を省略している。   The converter 16 receives the bus clock BC1 from the clock generator 18 (see also FIG. 2). 2, illustration of the circuit 11, the processing unit 14, the storage unit 15, the clock generation unit 18, and a part of the second device 20 (described later) is omitted for simplification of the drawing. doing.

変換部16は処理部14から第2装置20へと送信すべき送信データを、CPUバス13のN本の信号線を介してNビットパラレルで受け取る。この段階では送信データはバスクロックBC1と同期する。   The conversion unit 16 receives transmission data to be transmitted from the processing unit 14 to the second device 20 via N signal lines of the CPU bus 13 in N-bit parallel. At this stage, the transmission data is synchronized with the bus clock BC1.

また変換部16は例えばクロック生成部18から生成用クロックPC1を受け取る。変換部16は生成用クロックPC1に基づいて送信クロックTC1を生成する。送信クロックTC1は変換部16が伝送路30へと送信データを送信する際に用いられるクロックである。   For example, the conversion unit 16 receives the generation clock PC1 from the clock generation unit 18. The conversion unit 16 generates the transmission clock TC1 based on the generation clock PC1. The transmission clock TC <b> 1 is a clock used when the conversion unit 16 transmits transmission data to the transmission path 30.

変換部16は、バスクロックBC1と送信クロックTC1とを用いて、Nビットパラレルの送信データをMビットパラレルの送信データTD1に変換する。この送信データTD1は送信クロックTC1と同期する。このような変換自体は公知技術であるので詳細な説明は省略する。そして変換部16は伝送路30のM本の信号線へと送信データTD1を送信するとともに、伝送路30の他の1本の信号線へと送信クロックTC1を送信する。なお図2には、送信データTD1が1ビットシリアルで送信される場合の伝送路30が示されている。   The conversion unit 16 converts the N-bit parallel transmission data into the M-bit parallel transmission data TD1 using the bus clock BC1 and the transmission clock TC1. The transmission data TD1 is synchronized with the transmission clock TC1. Since such conversion itself is a known technique, detailed description thereof is omitted. The conversion unit 16 transmits the transmission data TD1 to the M signal lines of the transmission line 30 and transmits the transmission clock TC1 to the other signal line of the transmission line 30. FIG. 2 shows a transmission path 30 when the transmission data TD1 is transmitted in 1-bit serial.

また変換部16は第2装置20から送信される受信クロックRC1および受信データRD1を、伝送路30を介して受信する。より詳細には、変換部16は伝送路30の1本の信号線を介して受信クロックRC1を受信するとともに、伝送路30のM本の信号線を介してMビットパラレルで受信データRD1を受信する。この段階では受信データRD1は受信クロックRC1と同期する。変換部16は、バスクロックBC1と受信クロックRC1とを用いて、Mビットパラレルの受信データRD1をNビットパラレルの受信データに変換する。変換後の受信データはバスクロックBC1と同期する。そして、変換部16はCPUバス13のN本の信号線を経由してNビットパラレルの当該受信データを処理部14へと送信する。   The conversion unit 16 receives the reception clock RC1 and the reception data RD1 transmitted from the second device 20 via the transmission line 30. More specifically, the conversion unit 16 receives the reception clock RC1 through one signal line of the transmission path 30, and receives the reception data RD1 in M bit parallel through the M signal lines of the transmission path 30. To do. At this stage, the reception data RD1 is synchronized with the reception clock RC1. The conversion unit 16 converts the M-bit parallel reception data RD1 into N-bit parallel reception data using the bus clock BC1 and the reception clock RC1. The converted received data is synchronized with the bus clock BC1. Then, the conversion unit 16 transmits the N-bit parallel received data to the processing unit 14 via the N signal lines of the CPU bus 13.

第2装置20は例えば回路21と信号線群(CPUバス)23と処理部24と記憶部25と変換部26と受信データ中継部27とクロック生成部28とを備えている。処理部24は例えば中央演算装置(CPU)である。処理部24はクロック生成部28からバスクロックBC2を受け取る。処理部24はCPUバス23に接続されており、バスクロックBC2でCPUバス23と信号の送受信を行う。処理部24は例えば第2装置20の全体を制御する。   For example, the second device 20 includes a circuit 21, a signal line group (CPU bus) 23, a processing unit 24, a storage unit 25, a conversion unit 26, a reception data relay unit 27, and a clock generation unit 28. The processing unit 24 is, for example, a central processing unit (CPU). The processing unit 24 receives the bus clock BC2 from the clock generation unit 28. The processing unit 24 is connected to the CPU bus 23, and transmits and receives signals to and from the CPU bus 23 using the bus clock BC2. For example, the processing unit 24 controls the entire second device 20.

記憶部25は例えばメモリ(例えばSRAM(Static-Random-Access-Memory))であってCPUバス23に接続される。記憶部25には例えば処理部24によって実行されるプログラムが格納され、またプログラムを実行するための作業領域を提供する。   The storage unit 25 is, for example, a memory (for example, SRAM (Static-Random-Access-Memory)) and is connected to the CPU bus 23. The storage unit 25 stores, for example, a program executed by the processing unit 24, and provides a work area for executing the program.

回路21は第1装置10から画像用伝送路31を介して画像データを受け取る。回路21は例えばCPUバス23に接続されており、例えば処理部24によって制御される。回路21は画像データに対して適宜に画像処理を施して、不図示の装置へと送信する。この画像処理の内容は本発明の本質とは異なるので詳細な説明は省略する。   The circuit 21 receives image data from the first device 10 via the image transmission path 31. The circuit 21 is connected to the CPU bus 23, for example, and is controlled by the processing unit 24, for example. The circuit 21 appropriately performs image processing on the image data and transmits it to a device (not shown). Since the contents of this image processing are different from the essence of the present invention, detailed description thereof is omitted.

変換部26はCPUバス23と伝送路30とに接続される。変換部26は、変換部16と同様の機能を有し、CPUバス23からのデータを伝送路30へと送信し、伝送路30からのデータをCPUバス23へと送信する。その際、変換部26はCPUバス23のn(nは2以上の複数)本の信号線とパラレルでデータを送受信し、伝送路30のM(nよりも小さい自然数)本の信号線とパラレルでデータを送受信する。なおMが1である場合には、変換部26は伝送路30とシリアルでデータを送受信する。   The conversion unit 26 is connected to the CPU bus 23 and the transmission path 30. The conversion unit 26 has a function similar to that of the conversion unit 16, transmits data from the CPU bus 23 to the transmission path 30, and transmits data from the transmission path 30 to the CPU bus 23. At that time, the conversion unit 26 transmits / receives data in parallel with n (n is a plurality of 2 or more) signal lines of the CPU bus 23, and in parallel with M (natural number smaller than n) signal lines of the transmission path 30. Send and receive data with. When M is 1, the conversion unit 26 transmits / receives data to / from the transmission line 30 serially.

言い換えれば、変換部26は、CPUバス23側のnビットパラレルのデータと、伝送路30側のMビットパラレル(Mが1の場合は1ビットシリアル、以下同様)のデータとの間の変換を実行する。以下、詳細に説明する。   In other words, the conversion unit 26 performs conversion between the n-bit parallel data on the CPU bus 23 side and the M-bit parallel data on the transmission line 30 side (1 bit serial when M is 1; the same applies hereinafter). Run. Details will be described below.

変換部26はクロック生成部28からバスクロックBC2を受け取る(図2も参照)。なお図2では、図面の簡素化のために、第2装置20の回路21、処理部24、記憶部25及びクロック生成部28の図示を省略している。   The converter 26 receives the bus clock BC2 from the clock generator 28 (see also FIG. 2). In FIG. 2, the circuit 21, the processing unit 24, the storage unit 25, and the clock generation unit 28 of the second device 20 are omitted for simplification of the drawing.

変換部26は処理部24から第1装置10へと送信すべき送信データを、CPUバス23のn本の信号線を介してnビットパラレルで受け取る。この段階では送信データはバスクロックBC2と同期する。   The conversion unit 26 receives transmission data to be transmitted from the processing unit 24 to the first device 10 through n signal lines of the CPU bus 23 in n-bit parallel. At this stage, the transmission data is synchronized with the bus clock BC2.

また変換部26は例えばクロック生成部28から生成用クロックPC2を受け取る。変換部26は生成用クロックPC2に基づいて送信クロックTC2を生成する。送信クロックTC2は変換部26が伝送路30へと送信データを送信する際に用いられるクロックである。   Further, the conversion unit 26 receives the generation clock PC2 from the clock generation unit 28, for example. The conversion unit 26 generates a transmission clock TC2 based on the generation clock PC2. The transmission clock TC <b> 2 is a clock used when the conversion unit 26 transmits transmission data to the transmission path 30.

変換部26は、バスクロックBC2と送信クロックTC2とを用いて、nビットパラレルの送信データをMビットパラレルの送信データTD2に変換する。この送信データTD2は送信クロックTC2と同期する。そして変換部26は伝送路30のM本の信号線へと送信データTD2を送信するとともに、伝送路30の他の1本の信号線へと送信クロックTC2を送信する。   The converter 26 uses the bus clock BC2 and the transmission clock TC2 to convert the n-bit parallel transmission data into the M-bit parallel transmission data TD2. The transmission data TD2 is synchronized with the transmission clock TC2. The conversion unit 26 transmits the transmission data TD2 to the M signal lines of the transmission path 30, and transmits the transmission clock TC2 to the other signal line of the transmission path 30.

なお、上述の送信クロックTC2および送信データTD2は受信クロックRC1および受信データRD1として変換部26によって受信される。   The transmission clock TC2 and the transmission data TD2 are received by the conversion unit 26 as the reception clock RC1 and the reception data RD1.

また変換部26は、第1装置10から送信される送信クロックTC1および送信データTD1を、伝送路30と受信データ中継部27とを介して受信する。   The conversion unit 26 receives the transmission clock TC1 and the transmission data TD1 transmitted from the first device 10 via the transmission path 30 and the reception data relay unit 27.

受信データ中継部27は伝送路30を介して送信クロックTC1と送信データTD1とを受け取る。そして受信データ中継部27は送信クロックTC1が停止しているか否かを判定する。否定的な判定がなされれば、受信データ中継部27は送信クロックTC1を受信クロックRC2として変換部26へと送信するとともに、送信データTD1を受信データRD2として変換部26へと送信する。したがって、送信クロックTC1が正常に動作しているときには、変換部26は、第1装置10から送信される送信クロックTC1および送信データTD1を、それぞれ受信クロックRC2および受信データRD2として受信することができる。   The reception data relay unit 27 receives the transmission clock TC1 and the transmission data TD1 via the transmission path 30. Then, the reception data relay unit 27 determines whether or not the transmission clock TC1 is stopped. If a negative determination is made, the reception data relay unit 27 transmits the transmission clock TC1 as the reception clock RC2 to the conversion unit 26 and transmits the transmission data TD1 as reception data RD2 to the conversion unit 26. Therefore, when the transmission clock TC1 is operating normally, the conversion unit 26 can receive the transmission clock TC1 and the transmission data TD1 transmitted from the first device 10 as the reception clock RC2 and the reception data RD2, respectively. .

一方で肯定的な判定がなされれば、受信データ中継部27は受信クロックRC2として所定の代替クロック(例えばバスクロックBC2)を変換部26へと送信するとともに、受信データRD2として、代替クロックと同期する異常情報を変換部26へと送信する。したがって、送信クロックTC1が停止しているときには、変換部26は代替クロックと異常情報とを、それぞれ受信クロックRC2および受信データRD2として受信する。   On the other hand, if a positive determination is made, the reception data relay unit 27 transmits a predetermined alternative clock (for example, the bus clock BC2) as the reception clock RC2 to the conversion unit 26, and synchronizes with the alternative clock as the reception data RD2. The abnormal information to be transmitted is transmitted to the conversion unit 26. Therefore, when transmission clock TC1 is stopped, conversion unit 26 receives the alternative clock and the abnormality information as reception clock RC2 and reception data RD2, respectively.

変換部26は1本の信号線を介して受信クロックRC2を受信するとともに、M本の信号線を介してMビットパラレルで受信データRD2を受信する。受信データRD2は受信クロックRC2と同期する。変換部26は、バスクロックBC2と受信クロックRC2とを用いて、Mビットパラレルの受信データRD2をnビットパラレルの受信データに変換する。変換後の受信データはバスクロックBC2と同期する。そして、変換部26はCPUバス23のn本の信号線を経由してnビットパラレルの当該受信データを処理部24へと送信する。   The converter 26 receives the reception clock RC2 through one signal line and receives the reception data RD2 in M-bit parallel through the M signal lines. The reception data RD2 is synchronized with the reception clock RC2. The conversion unit 26 converts the M-bit parallel reception data RD2 into n-bit parallel reception data using the bus clock BC2 and the reception clock RC2. The converted received data is synchronized with the bus clock BC2. Then, the conversion unit 26 transmits the n-bit parallel received data to the processing unit 24 via the n signal lines of the CPU bus 23.

このようなシステムによれば、送信クロックTC1が停止していないときには、処理部24は変換部26とCPUバス23とを経由して送信データTD1を受信データRD2として適切に受け取ることができる。なおこのようなデータの一例として、第1装置10が通信可能か否かを示す例えば8ビットの通信可否情報が挙げられる。   According to such a system, when the transmission clock TC1 is not stopped, the processing unit 24 can appropriately receive the transmission data TD1 as the reception data RD2 via the conversion unit 26 and the CPU bus 23. An example of such data is 8-bit communication availability information indicating whether the first device 10 is communicable.

一方で、送信クロックTC1が停止しているときには、変換部26には受信クロックRC2として代替クロックが入力され、受信データRD2として異常情報が入力される。したがって送信クロックTC1が停止しているにも関わらず、変換部26は動作を継続することができ、異常情報を適切に処理部24へと送信できる。よって、処理部24は第1装置10が通信できない状態であると認識することができる。   On the other hand, when the transmission clock TC1 is stopped, the alternative clock is input to the conversion unit 26 as the reception clock RC2, and abnormality information is input as the reception data RD2. Therefore, although the transmission clock TC <b> 1 is stopped, the conversion unit 26 can continue the operation and can appropriately transmit the abnormality information to the processing unit 24. Therefore, the processing unit 24 can recognize that the first device 10 is in a state where communication is not possible.

しかも本システムによれば、受信データ中継部27が送信クロックTC1の停止を検出したときには、変換部26の機能を利用して、異常情報を処理部24に通知している。よって、別途にCPUバス23と受信データ中継部27を接続する場合に比べて、CPUバス23の信号線数を増大させる必要がなく、回路規模を抑制することができる。   Moreover, according to this system, when the reception data relay unit 27 detects the stop of the transmission clock TC1, the abnormality information is notified to the processing unit 24 by using the function of the conversion unit 26. Therefore, it is not necessary to increase the number of signal lines of the CPU bus 23 as compared with the case where the CPU bus 23 and the reception data relay unit 27 are separately connected, and the circuit scale can be suppressed.

なお、第1装置10と第2装置20とはそれぞれ送信クロックTC1,TC2を絶えず送信してもよく、或いは所定の間隔毎に送信してもよい。受信データ中継部27はこの所定の間隔を考慮した期間を超えて送信クロックが活性或いは非活性を維持しているときに送信クロックが停止したと判定すればよい。   The first device 10 and the second device 20 may continuously transmit the transmission clocks TC1 and TC2, or may be transmitted at predetermined intervals. The reception data relay unit 27 may determine that the transmission clock has stopped when the transmission clock remains active or inactive beyond the period considering the predetermined interval.

また上述のように、代替クロックとしては例えばバスクロックBC2を採用することができる。よって図2の例示では、受信データ中継部27がクロック生成部28からバスクロックBC2を入力し、代替クロックとしてバスクロックBC2を出力する。ただし必ずしもこれに限らない。例えばバスクロックBC2とは別に生成されるクロック(例えば生成用クロックPC2)を代替クロックとして採用してもよい。バスクロックBC2または生成用クロックPC2を採用すれば、代替クロックを生成する必要がないので、回路規模および製造コストが抑制できる。或いは代替クロックは、バスクロックBC2または生成用クロックPC2に基づいて生成されてもよい。   As described above, for example, the bus clock BC2 can be adopted as the alternative clock. Therefore, in the example of FIG. 2, the reception data relay unit 27 inputs the bus clock BC2 from the clock generation unit 28, and outputs the bus clock BC2 as an alternative clock. However, it is not necessarily limited to this. For example, a clock generated separately from the bus clock BC2 (for example, the generation clock PC2) may be used as an alternative clock. If the bus clock BC2 or the generation clock PC2 is employed, it is not necessary to generate an alternative clock, so that the circuit scale and manufacturing cost can be suppressed. Alternatively, the alternative clock may be generated based on the bus clock BC2 or the generation clock PC2.

また異常情報として、送信データTD1の通信可否情報であって通信が不可であることを示す場合の情報を採用してもよい。これによって、処理部24が認識すべき情報の種類を増やすことなく、第1装置10が通信できないことを了知できる。   Further, as the abnormality information, information that is communication enable / disable information of the transmission data TD1 and that indicates that communication is impossible may be employed. This makes it possible to recognize that the first device 10 cannot communicate without increasing the types of information that the processing unit 24 should recognize.

また第1装置10および第2装置20は図1に示す態様に限らない。要するに、第1装置10は送信クロックTC1と、送信クロックTC1と同期する送信データTD1とを伝送路30に送信すればよく、第2装置20はCPUバス23と処理部24と変換部26と受信データ中継部27とクロック生成部28とを備えていればよい。送信クロックTC1が停止したと受信データ中継部27が判定したときに、変換部26は第1装置10の異常を処理部24に送信できるからである。   Moreover, the 1st apparatus 10 and the 2nd apparatus 20 are not restricted to the aspect shown in FIG. In short, the first device 10 only has to transmit the transmission clock TC1 and transmission data TD1 synchronized with the transmission clock TC1 to the transmission line 30, and the second device 20 receives the CPU bus 23, the processing unit 24, the conversion unit 26, and the reception. What is necessary is just to provide the data relay part 27 and the clock generation part 28. FIG. This is because the conversion unit 26 can transmit the abnormality of the first device 10 to the processing unit 24 when the reception data relay unit 27 determines that the transmission clock TC1 is stopped.

<受信データ中継部27>
受信データ中継部27の内部構成の一例は図2の態様に限らないものの、以下に詳述する。図2の例示では、例えば受信データ中継部27はクロック受信データ中継部271と選択部272と論理回路273〜275とを有している。なお以下では、信号の活性/非活性をそれぞれ「1」「0」で表す。例えば各クロックの活性/非活性を「1」「0」で表す。
<Received data relay unit 27>
An example of the internal configuration of the reception data relay unit 27 is not limited to the aspect of FIG. In the example of FIG. 2, for example, the reception data relay unit 27 includes a clock reception data relay unit 271, a selection unit 272, and logic circuits 273 to 275. In the following, the activation / inactivation of the signal is represented by “1” and “0”, respectively. For example, the activation / inactivation of each clock is represented by “1” and “0”.

クロック受信データ中継部271は送信クロックTC1が停止しているか否かを判定する。例えば送信クロックTC1が「0」を採る期間が予め定められた基準期間よりも長いときに、クロック受信データ中継部271は肯定的に判定する。当該期間は例えば公知のタイマー回路などを用いて計時することができ、当該期間と基準期間との比較は例えば公知の比較器などを用いて行うことができる。そしてクロック受信データ中継部271は肯定的な判定がなされたときに「1」を出力し、否定的な判定がなされたときに「0」を出力する。   The clock reception data relay unit 271 determines whether or not the transmission clock TC1 is stopped. For example, when the period in which the transmission clock TC1 takes “0” is longer than a predetermined reference period, the clock reception data relay unit 271 makes a positive determination. The period can be measured using, for example, a known timer circuit, and the comparison between the period and the reference period can be performed using, for example, a known comparator. The clock reception data relay unit 271 outputs “1” when a positive determination is made, and outputs “0” when a negative determination is made.

論理回路273には、クロック受信データ中継部271からの出力と、送信クロックTC1とが入力される。論理回路273はAND回路であって、クロック受信データ中継部271が「0」を出力し、且つ、送信クロックTC1が「1」を採るときに、「1」を出力する。論理回路273はこれ以外の場合に「0」を出力する。よって論理回路273は、送信クロックTC1が停止していないと判定されるときには送信クロックTC1を出力し、送信クロックTC1が停止していると判定されるときには「0」を出力する。   The logic circuit 273 receives the output from the clock reception data relay unit 271 and the transmission clock TC1. The logic circuit 273 is an AND circuit, and outputs “1” when the clock reception data relay unit 271 outputs “0” and the transmission clock TC1 takes “1”. In other cases, the logic circuit 273 outputs “0”. Therefore, the logic circuit 273 outputs the transmission clock TC1 when it is determined that the transmission clock TC1 is not stopped, and outputs “0” when it is determined that the transmission clock TC1 is stopped.

選択部272には代替クロック(例えばバスクロックBC2)とクロック受信データ中継部271の出力とが入力される。選択部272はクロック受信データ中継部271の出力が「0」である場合には「0」を出力する。一方、クロック受信データ中継部271の出力が「1」である場合には代替クロックを出力する。   The selection unit 272 receives an alternative clock (for example, the bus clock BC2) and the output of the clock reception data relay unit 271. The selection unit 272 outputs “0” when the output of the clock reception data relay unit 271 is “0”. On the other hand, when the output of the clock reception data relay unit 271 is “1”, an alternative clock is output.

選択部272は例えば図3に示すようにフリップフロップ2721,2722とラッチ回路2723と論理回路2724とを備えている。フリップフロップ2721,2722は例えばD型のフリップフロップである。フリップフロップ2721にはクロック受信データ中継部271の出力と代替クロックとが入力される。フリップフロップ2722にはフリップフロップ2721の出力と代替クロックとが入力される。ラッチ回路2723にはフリップフロップ2722の出力と代替クロックとが入力される。ラッチ回路2723は例えばD型のラッチ回路である。論理回路2724にはラッチ回路2723と代替クロックとが入力される。論理回路2724はAND回路である。論理回路2724の出力が選択部272の出力となる。   The selection unit 272 includes flip-flops 2721 and 2722, a latch circuit 2723, and a logic circuit 2724 as shown in FIG. The flip-flops 2721 and 2722 are, for example, D-type flip-flops. The output of the clock reception data relay unit 271 and the alternative clock are input to the flip-flop 2721. The output of the flip-flop 2721 and the alternative clock are input to the flip-flop 2722. The output of the flip-flop 2722 and the alternative clock are input to the latch circuit 2723. The latch circuit 2723 is, for example, a D-type latch circuit. A latch circuit 2723 and an alternative clock are input to the logic circuit 2724. The logic circuit 2724 is an AND circuit. The output of the logic circuit 2724 becomes the output of the selection unit 272.

図3の選択部272によれば、クロック受信データ中継部271の出力を適宜にラッチしているので、瞬時的なノイズ変動などの影響を抑制することができる。   According to the selection unit 272 of FIG. 3, since the output of the clock reception data relay unit 271 is appropriately latched, the influence of instantaneous noise fluctuation and the like can be suppressed.

論理回路275は選択部272の出力と論理回路273の出力とを入力し、後述の論理値を受信クロックRC2として変換部26へと出力する。論理回路275はOR回路であって、選択部272の出力または論理回路273の出力が「1」であるときに「1」を出力し、選択部272の出力および論理回路273の出力が「0」であるときに「0」を出力する。さて、クロック受信データ中継部271の出力が「0」であるときには、選択部272は「0」を出力し、論理回路273は送信クロックTC1を出力する。よってこのとき論理回路275は送信クロックTC1を受信クロックRC2として変換部26へと出力する。一方、クロック受信データ中継部271の出力が「1」であるときには、選択部272は代替クロック(例えばバスクロックBC2)を出力し、論理回路273は「0」を出力する。よってこのとき論理回路275は代替クロックを受信クロックRC2として変換部26へと出力する。   The logic circuit 275 receives the output of the selection unit 272 and the output of the logic circuit 273, and outputs a later-described logic value to the conversion unit 26 as a reception clock RC2. The logic circuit 275 is an OR circuit, and outputs “1” when the output of the selection unit 272 or the output of the logic circuit 273 is “1”, and the output of the selection unit 272 and the output of the logic circuit 273 are “0”. "0" is output when "." When the output of the clock reception data relay unit 271 is “0”, the selection unit 272 outputs “0”, and the logic circuit 273 outputs the transmission clock TC1. Therefore, at this time, the logic circuit 275 outputs the transmission clock TC1 to the conversion unit 26 as the reception clock RC2. On the other hand, when the output of the clock reception data relay unit 271 is “1”, the selection unit 272 outputs an alternative clock (for example, the bus clock BC2), and the logic circuit 273 outputs “0”. Therefore, at this time, the logic circuit 275 outputs the alternative clock to the conversion unit 26 as the reception clock RC2.

論理回路274はクロック受信データ中継部271の出力と送信データTD1とを入力し、後述の論理値を受信データRD2として変換部26へと出力する。論理回路274は(M+1)ビットのAND回路であって、クロック受信データ中継部271が「0」を出力した場合には、Mビットの送信データTD1と同じ内容を出力する。論理回路274はこれ以外の場合にMビットの「0」を出力する。よって論理回路274は、送信クロックTC1が停止していないと判定されるときには送信データTD1を受信データRD2として変換部26へと出力する。また送信クロックTC1が停止していると判定されるときには受信データRD2として「0」を出力する。この受信データD2が異常情報に相当する。   The logic circuit 274 receives the output of the clock reception data relay unit 271 and the transmission data TD1, and outputs a logic value described later to the conversion unit 26 as reception data RD2. The logic circuit 274 is an (M + 1) -bit AND circuit, and outputs the same content as the M-bit transmission data TD1 when the clock reception data relay unit 271 outputs “0”. In other cases, the logic circuit 274 outputs M-bit “0”. Therefore, when it is determined that the transmission clock TC1 is not stopped, the logic circuit 274 outputs the transmission data TD1 to the conversion unit 26 as the reception data RD2. When it is determined that the transmission clock TC1 is stopped, “0” is output as the reception data RD2. This received data D2 corresponds to abnormality information.

なお上述のように、この異常情報は通信可否情報において通信できない旨の情報と等しくてもよい。   As described above, this abnormality information may be equal to information indicating that communication is not possible in the communication availability information.

<クロック受信データ中継部271>
クロック受信データ中継部271の内部構成の一例は図4の態様に限らないものの、以下に詳述する。クロック受信データ中継部271は分周部2711と判定部2712とを備える。
<Clock Reception Data Relay Unit 271>
An example of the internal configuration of the clock reception data relay unit 271 is not limited to the aspect of FIG. The clock reception data relay unit 271 includes a frequency division unit 2711 and a determination unit 2712.

分周部2711は分周比DIVで送信クロックTC1を分周して判定クロックC2を生成し、これを判定部2712に出力する。分周比DIVは例えば予め設定される。   The frequency divider 2711 divides the transmission clock TC1 by the frequency division ratio DIV to generate a determination clock C2, and outputs this to the determination unit 2712. The frequency division ratio DIV is set in advance, for example.

判定部2712には判定クロックC2が入力される。判定部2712は判定クロックC2を所定のサンプリング周波数f1で繰り返しサンプリングする(図5も参照)。図5においては判定クロックC2を示し、またサンプリングタイミングを黒丸で示している。このサンプリング周波数f1は判定クロックC2の周波数f2の2倍よりも高い。これによってサンプリングの周期(1/f1)が判定クロックC2の半周期(1/(2・f2))よりも短くなる。したがって判定クロックC2の半周期に少なくとも1回のサンプリングを行うことができる。   The determination clock 27 is input to the determination unit 2712. The determination unit 2712 repeatedly samples the determination clock C2 at a predetermined sampling frequency f1 (see also FIG. 5). In FIG. 5, the determination clock C2 is shown, and the sampling timing is shown by a black circle. This sampling frequency f1 is higher than twice the frequency f2 of the determination clock C2. As a result, the sampling period (1 / f1) is shorter than the half period (1 / (2 · f2)) of the determination clock C2. Accordingly, at least one sampling can be performed in a half cycle of the determination clock C2.

判定部2712は同じサンプリング値を連続して採る回数Fを計数する。図5の例示では、回数Fは2又は3である。そして判定部2712はこの回数Fが回数基準値DETCT(例えば3)よりも大きいかどうかを判定し、肯定的な判定がなされたときに送信クロックTC1が停止したと判定する。   The determination unit 2712 counts the number of times F that the same sampling value is continuously taken. In the illustration of FIG. 5, the number of times F is 2 or 3. Then, the determination unit 2712 determines whether or not the number of times F is larger than the number of times reference value DETCT (for example, 3), and determines that the transmission clock TC1 has stopped when a positive determination is made.

ここで、回数基準値DETCTの決定方法について述べる。まず判定クロックC2が正常に動作しているときの回数Fについて考慮する。図5に例示するように回数Fは必ずしも一定ではない。図5の例示では回数Fは2又は3を採る。よってこの場合、回数基準値DETCTとして3以上の値を採用すればよい。これによって送信クロックTC1の停止を適切に判定することができる。   Here, a method of determining the number reference value DETCT will be described. First, consider the number of times F when the determination clock C2 is operating normally. As illustrated in FIG. 5, the number of times F is not necessarily constant. In the example of FIG. 5, the frequency F is 2 or 3. Therefore, in this case, a value of 3 or more may be adopted as the number reference value DETCT. Thereby, it is possible to appropriately determine whether the transmission clock TC1 is stopped.

次に、判定クロックC2が正常に動作するときの回数Fを一般化する。この回数Fは、サンプリング周期(1/f1)と判定クロックPC2の半周期(1/(2・f2))との比(=f1/(2・f2))に基づいて理解できる。例えば当該比が自然数である場合、図6に示すように、回数Fは常にその自然数(図6の例示では2)と一致する。なお、判定クロックPC2が遷移するタイミングでサンプリングする場合、例えばサンプリング値として常に「1」を採用するか、常に「0」を採用すればよい。一方、図5に例示では当該比が2.2程度である。この場合、回数Fは2または3を採る。つまり、当該比が整数部分Xと小数部分Y(0<Y<1)とを有する小数である場合、回数Fはその整数部分Xと、整数部分Xに1を加算した整数(X+1)とのどちらかを採る。   Next, the number of times F when the determination clock C2 operates normally is generalized. The number of times F can be understood based on the ratio (= f1 / (2 · f2)) between the sampling period (1 / f1) and the half period (1 / (2 · f2)) of the determination clock PC2. For example, when the ratio is a natural number, as shown in FIG. 6, the number of times F always matches the natural number (2 in the example of FIG. 6). When sampling is performed at the timing at which the determination clock PC2 transitions, for example, “1” may always be employed as the sampling value, or “0” may be always employed. On the other hand, in the example shown in FIG. 5, the ratio is about 2.2. In this case, the frequency F is 2 or 3. That is, when the ratio is a decimal having an integer part X and a decimal part Y (0 <Y <1), the number of times F is the integer part X and an integer (X + 1) obtained by adding 1 to the integer part X. Take either one.

回転基準値DETCTは、判定クロックC2が正常に動作するときの回数Fの最大値(図5の例示では(X+1))以上であればよい。言い換えれば、回数基準値DETCTは、サンプリング周波数f1を周波数f2の2倍で除算した値以上の整数であればよい。   The rotation reference value DETCT may be equal to or greater than the maximum value of the number of times F when the determination clock C2 operates normally ((X + 1) in the example of FIG. 5). In other words, the count reference value DETCT may be an integer greater than or equal to a value obtained by dividing the sampling frequency f1 by twice the frequency f2.

以上のようにして回数基準値DETCTを決定することができる。   The number reference value DETCT can be determined as described above.

なおサンプリング周波数f1はサンプリングクロックによって規定される。サンプリングクロックは例えばバスクロックBC2または生成用クロックPC2であってもよい。これによって、サンプリングのための新たなクロックを生成する必要がなく、回路規模および製造コストを低減できる。   The sampling frequency f1 is defined by the sampling clock. The sampling clock may be, for example, the bus clock BC2 or the generation clock PC2. Thus, it is not necessary to generate a new clock for sampling, and the circuit scale and manufacturing cost can be reduced.

なお例えば信号処理のモードに基づいて、送信クロックTC1の周波数ftおよび生成用クロックPC2の周波数fpを、個別に変化させる場合がある。例えば第1モードにおいて周波数ftをその最大値ftmaxに設定し、周波数fpをその最小値fpminに設定したり、第2モードにおいて周波数ftをその最小値ftminに設定し、周波数fpをその最大値fpmaxに設定する。   For example, the frequency ft of the transmission clock TC1 and the frequency fp of the generation clock PC2 may be individually changed based on the signal processing mode. For example, in the first mode, the frequency ft is set to its maximum value ftmax, the frequency fp is set to its minimum value fpmin, or in the second mode, the frequency ft is set to its minimum value ftmin, and the frequency fp is set to its maximum value fpmax Set to.

このように周波数ft,fpをその最小値と最大値との間で個別に変動させる場合、分周比DIVを以下の式を満たすように設定することが望ましい。   As described above, when the frequencies ft and fp are individually changed between the minimum value and the maximum value, it is desirable to set the frequency division ratio DIV so as to satisfy the following expression.

DIV>2ftmax/fpmin ・・・(1)   DIV> 2 ftmax / fpmin (1)

式(1)は次のように変形できる。   Equation (1) can be modified as follows.

1/fpmin<1/(2・ftmax/DIV) ・・・(2)   1 / fpmin <1 / (2 · ftmax / DIV) (2)

式(2)の左辺はサンプリング周期の最大値に相当し、式(2)の右辺は判定クロックC2の半周期の最小値に相当する。よって式(2)によれば、サンプリング周期が最大であり、かつ判定クロックC2の半周期の最小値となる場合であっても、サンプリング周期を判定クロックC2の半周期よりも小さくできる。したがって、式(1)を満たすように分周比DIVを設定することで、たとえ送信クロックTC1の周波数ftと生成用クロックPC2の周波数fpとが変動したとしても、判定クロックC2の半周期において少なくとも1回のサンプリングを行うことができる。   The left side of Expression (2) corresponds to the maximum value of the sampling period, and the right side of Expression (2) corresponds to the minimum value of the half period of the determination clock C2. Therefore, according to Expression (2), even when the sampling period is the maximum and becomes the minimum value of the half period of the determination clock C2, the sampling period can be made smaller than the half period of the determination clock C2. Therefore, by setting the frequency division ratio DIV so as to satisfy Expression (1), even if the frequency ft of the transmission clock TC1 and the frequency fp of the generation clock PC2 fluctuate, at least in the half cycle of the determination clock C2 One sampling can be performed.

また回数基準値DETCTは次式を満たす整数であることが望ましい。   The number reference value DETCT is preferably an integer that satisfies the following equation.

DETCT≧fpmax・DIV/(2×ftmin)・・・(3)   DETCT ≧ fpmax · DIV / (2 × ftmin) (3)

式(3)の右辺は、サンプリング周期の最小値(1/fpmax)と、判定クロックC2の周期の最大値(1/(2・ftmin/DIV))との比である。さて回数Fは、サンプリング周期が最小であり、判定クロックC2の周期が最大となるときに、最大値を採る。よって、式(3)の右辺の比は回数Fの最大を表す。   The right side of Equation (3) is the ratio between the minimum value of the sampling period (1 / fpmax) and the maximum value of the period of the determination clock C2 (1 / (2 · ftmin / DIV)). The number of times F takes the maximum value when the sampling period is minimum and the period of the determination clock C2 is maximum. Therefore, the ratio on the right side of Equation (3) represents the maximum number of times F.

式(3)によれば回数基準値DETCTは回数Fの最大値よりも大きい。よって、たとえ送信クロックTC1の周波数ftと生成用クロックPC2の周波数fpとが変動したとしても、判定クロックC2の動作の停止を適切に判定することができる。   According to Equation (3), the number reference value DETCT is larger than the maximum value of the number F. Therefore, even if the frequency ft of the transmission clock TC1 and the frequency fp of the generation clock PC2 fluctuate, it is possible to appropriately determine whether the operation of the determination clock C2 is stopped.

10,20 装置
23 CPUバス
24 処理部
26 変換部
27 受信データ中継部
28 クロック生成部
30 伝送路
10, 20 Device 23 CPU bus 24 Processing unit 26 Conversion unit 27 Received data relay unit 28 Clock generation unit 30 Transmission path

Claims (4)

第1装置と、第2装置と、前記第1装置と前記第2装置とを接続する伝送路とを備える処理装置間通信システムであって、
前記第1装置は、所定の送信クロックと同期する送信データをM(Mは2以上の自然数)ビットパラレル又は1ビットシリアルで前記伝送路を介して前記第2装置へと送信するとともに、前記伝送路を介して前記送信クロックを前記第2装置へと送信し、
前記第2装置は、
所定のバスクロックと同期するデータがn(nは2以上の自然数)ビットパラレルで伝達される信号線群と、
前記信号線群との間でデータを送受信する処理部と、
前記伝送路から前記送信クロックと前記送信データとを受け取り、前記送信クロックが停止したか否を判定し、否定的な判定がなされたときに、受信クロック及び受信データとして前記送信クロック及び前記送信データを送信し、肯定的な判定をしたときに、前記受信クロックとして所定の代替クロックを、前記受信データとして前記代替クロックと同期する異常情報を、それぞれ送信する受信データ中継部と、
前記受信データ中継部から前記受信データをMビットパラレル又は1ビットシリアルで受け取るとともに、前記受信データ中継部から前記受信クロックを受け取り、前記所定のバスクロックと前記受信クロックとを用いて前記受信データをnビットパラレルの受信データに変換し、前記信号線群を介して変換後の前記受信データを前記処理部へと送信する変換部と
前記バスクロックと生成用クロックとを生成するクロック生成部と
を備え
前記受信データ中継部は、前記送信クロックと等しく又は前記送信クロックに基づいて生成されて活性/不活性を繰り返し採る判定クロックを、前記判定クロックの周波数の2倍よりも高いサンプリング周波数でサンプリングし、当該サンプリング値が連続して同じ値を採る回数が、前記サンプリング周波数を前記判定クロックの周波数の2倍で除算した値以上の整数たる回数基準値より大きいときに、前記送信クロックが停止したと判定し、
前記変換部は、前記生成用クロックを用いて第2送信クロックを生成し、前記バスクロックと同期する第2送信データを前記信号線群からnビットパラレルで受け取り、前記バスクロックと前記第2送信クロックとを用いて、前記第2送信データをMビットパラレルまたは1ビットシリアルの第3送信データに変換して、前記第3送信データと前記第2送信クロックとを前記伝送路を介して前記第1装置へと送信し、
前記サンプリング周波数は前記生成用クロックまたは前記バスクロックに基づいて規定され、
前記サンプリング周波数は前記生成用クロックの周波数と等しく、
前記送信クロックの周波数は最大値ftmaxと最小値ftminとの間の値を採り、前記生成用クロックの周波数は最大値fpmaxと最小値fpminとの間の値を採り、
前記判定クロックは前記送信クロックを所定の分周比DIVで分周して生成され、
前記分周比DIVは、
DIV>2ftmax/fpmin
を満たし、
前記回数基準値DETCTは
DETCT>fpmax・DIV/(2×ftmin)
を満たす、処理装置間通信システム。
A communication system between processing devices comprising a first device, a second device, and a transmission line connecting the first device and the second device,
The first device transmits transmission data synchronized with a predetermined transmission clock to the second device via the transmission path in M (M is a natural number of 2 or more) bit parallel or 1 bit serial, and the transmission. Transmitting the transmission clock to the second device via a path;
The second device includes:
A group of signal lines in which data synchronized with a predetermined bus clock is transmitted in n (n is a natural number of 2 or more) bit parallel;
A processing unit that transmits and receives data to and from the signal line group;
The transmission clock and the transmission data are received from the transmission path, and it is determined whether or not the transmission clock has stopped. When a negative determination is made, the transmission clock and the transmission data are received as reception clock and reception data. A reception data relay unit that transmits a predetermined alternative clock as the reception clock and abnormal information that is synchronized with the alternative clock as the reception data, respectively,
The reception data is received from the reception data relay unit in M-bit parallel or 1-bit serial, the reception clock is received from the reception data relay unit, and the reception data is received using the predetermined bus clock and the reception clock. a conversion unit that converts the received data into n-bit parallel received data and transmits the received data after conversion to the processing unit via the signal line group ;
A clock generation unit for generating the bus clock and the generation clock ,
The reception data relay unit samples a determination clock that is equal to the transmission clock or is generated based on the transmission clock and repeatedly takes active / inactive at a sampling frequency higher than twice the frequency of the determination clock, It is determined that the transmission clock has stopped when the number of times that the sampling value continuously takes the same value is larger than a reference value that is an integer equal to or greater than a value obtained by dividing the sampling frequency by twice the frequency of the determination clock. And
The conversion unit generates a second transmission clock using the generation clock, receives second transmission data synchronized with the bus clock in n-bit parallel from the signal line group, and transmits the bus clock and the second transmission. The second transmission data is converted into M-bit parallel or 1-bit serial third transmission data using a clock, and the third transmission data and the second transmission clock are converted to the first transmission data via the transmission path. To one device,
The sampling frequency is defined based on the generation clock or the bus clock,
The sampling frequency is equal to the frequency of the generating clock;
The frequency of the transmission clock takes a value between the maximum value ftmax and the minimum value ftmin, the frequency of the generation clock takes a value between the maximum value fpmax and the minimum value fpmin,
The determination clock is generated by dividing the transmission clock by a predetermined division ratio DIV,
The division ratio DIV is
DIV> 2ftmax / fpmin
The filling,
The reference number of times DETCT is
DETCT> fpmax · DIV / (2 × ftmin)
The communication system between processing apparatuses satisfying the requirements .
前記代替クロックは前記バスクロックである又は前記バスクロックに基づいて生成される、請求項1に記載の処理装置間通信システム。 The inter-processor communication system according to claim 1, wherein the alternative clock is the bus clock or generated based on the bus clock . 前記代替クロックは前記生成用クロックである又は前記生成用クロックに基づいて生成される、請求項1または2に記載の処理装置間通信システム。 The alternative clock is generated based on some or the generated clock by the generating clock, processor communication system according to claim 1 or 2. 前記第1装置は、自身が通信可能か否かを示す通信可否情報を送信情報として前記第2装置に送信し、
前記異常情報は前記通信可否情報において通信不可を示す情報と等しい、請求項1からの何れか一つに記載の処理装置間通信システム。
The first device transmits communication enable / disable information indicating whether or not the first device can communicate to the second device as transmission information,
The communication system between processing apparatuses according to any one of claims 1 to 3 , wherein the abnormality information is equal to information indicating that communication is impossible in the communication availability information .
JP2012077138A 2012-03-29 2012-03-29 Communication system between processing units Expired - Fee Related JP5955608B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012077138A JP5955608B2 (en) 2012-03-29 2012-03-29 Communication system between processing units

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012077138A JP5955608B2 (en) 2012-03-29 2012-03-29 Communication system between processing units

Publications (2)

Publication Number Publication Date
JP2013207702A JP2013207702A (en) 2013-10-07
JP5955608B2 true JP5955608B2 (en) 2016-07-20

Family

ID=49526354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012077138A Expired - Fee Related JP5955608B2 (en) 2012-03-29 2012-03-29 Communication system between processing units

Country Status (1)

Country Link
JP (1) JP5955608B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11103289A (en) * 1997-09-25 1999-04-13 Nec Eng Ltd Intra-device self-monitoring system
JP3070546B2 (en) * 1997-10-23 2000-07-31 日本電気株式会社 Alarm transfer circuit
JP4653008B2 (en) * 2006-04-26 2011-03-16 富士通株式会社 Clock abnormality detection circuit and clock abnormality detection method

Also Published As

Publication number Publication date
JP2013207702A (en) 2013-10-07

Similar Documents

Publication Publication Date Title
US8612733B2 (en) Battery management systems with enumerating circuits
JP2014239432A (en) Method for providing general-purpose interface and microcontroller having general-purpose interface
US8593313B2 (en) Parallel-to-serial conversion circuit, information processing apparatus, information processing system, and parallel-to-serial conversion method
JP2020021341A (en) Redundant system
US9170871B2 (en) Data polling method and digital instrumentation and control system for atomic power plant using the method
JP5955608B2 (en) Communication system between processing units
CN113282520A (en) EPA system test method, EPA system test equipment and medium
Vaidya et al. A review of communication protocols and topologies for power converters
IT201900002961A1 (en) PROCESSING SYSTEM, CORRESPONDING APPARATUS AND CORRESPONDING PROCEDURE
CN101355359A (en) Output circuit for FPGA clock signal and processing method thereof
US20120033772A1 (en) Synchroniser circuit and method
Bloom et al. Event notification in CAN-based sensor networks
US12101607B1 (en) Systems for synchronizing data from multiple devices
EP2876970B1 (en) Communication device
JP2010074211A (en) Clock synchronization circuit, electronic control unit, onboard network system and clock synchronization method
JP2020145356A (en) Integrated circuit equipment
KR20160100363A (en) CCIe RECEIVER LOGIC REGISTER WRITE ONLY WITH RECEIVER CLOCK
CN116604588A (en) Control system and control method of robot, electronic equipment and storage medium
Wasicek et al. Virtual CAN lines in an integrated MPSoC architecture
CN114826465B (en) Clock synchronization function execution monitoring system
JP5202628B2 (en) Test apparatus, transmission circuit, test apparatus control method, and transmission circuit control method
JP2010016960A (en) Pcm current differential protection relay device
Sastry et al. A taxonomy of distributed sensor networks
US11080061B2 (en) Pre-loading of instructions
US20100195672A1 (en) Diagnosis of the synchronization of two communications networks of an electronic data-processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160315

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160509

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160531

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160615

R150 Certificate of patent or registration of utility model

Ref document number: 5955608

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees