JP2015035024A - Communication device, communication system, and communication processing program - Google Patents
Communication device, communication system, and communication processing program Download PDFInfo
- Publication number
- JP2015035024A JP2015035024A JP2013164510A JP2013164510A JP2015035024A JP 2015035024 A JP2015035024 A JP 2015035024A JP 2013164510 A JP2013164510 A JP 2013164510A JP 2013164510 A JP2013164510 A JP 2013164510A JP 2015035024 A JP2015035024 A JP 2015035024A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- register group
- address
- packet
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、通信装置、通信システム、及び通信処理プログラムに関する。 The present invention relates to a communication device, a communication system, and a communication processing program.
特許文献1には、少なくとも1つの機器が接続され、前記機器の駆動を制御するデータ及び前記機器の状態を示すデータの各々が記憶される第1記憶部、及び前記第1記憶部に記憶された各データを読出して送信する読出送信手段を備えた機器制御部と、中央処理装置、第2記憶部、及び前記機器制御部から送信されたデータを前記第2記憶部に書込む書込手段を備えた主制御部と、前記主制御部と前記機器制御部とを接続する全二重方式のシリアルバスと、を有し、前記読出送信手段及び前記書込手段は、前記中央処理装置の動作の基準となるシステムタイマのカウント周期以下の周期で、前記第1記憶部に記憶された各データが読出されて送信され前記第2記憶部に書込まれるように動作する制御装置が記載されている。
In
本発明は、記憶部のデータ更新が終了するまで待って中央処理装置が割込処理を実施する場合に比べて、中央処理装置の負荷を低減することができる通信装置、通信システム、及び通信処理プログラムを提供することを目的とする。 The present invention relates to a communication device, a communication system, and a communication process that can reduce the load on the central processing unit as compared with the case where the central processing unit waits until the data update of the storage unit is completed and performs the interrupt processing. The purpose is to provide a program.
上記目的を達成するために、本発明の通信装置は、他の通信装置から送信されたパケットのデータ、及び前記他の通信装置から送信された割込パケットに基づいて中央処理装置が割込処理を実施する際に参照する参照データを記憶部に書き込む書込手段と、前記他参照データが前記書込手段により書き込まれる前記記憶部のアドレスが格納される格納手段と、前記他の通信装置から送信された前記割込パケットに基づいて前記書込手段が前記参照データを書き込んだ前記記憶部の書込アドレスと、前記格納手段に格納された前記記憶部のアドレスとが一致した場合に、前記中央処理装置に対して割込を通知する制御を行う割込制御手段と、を備える。 In order to achieve the above object, the communication device of the present invention is configured such that the central processing unit performs an interrupt process based on packet data transmitted from another communication device and an interrupt packet transmitted from the other communication device. From the writing means for writing the reference data to be referred to in the storage section, the storage means for storing the address of the storage section to which the other reference data is written by the writing means, and the other communication device When the writing address of the storage unit to which the writing unit has written the reference data based on the transmitted interrupt packet matches the address of the storage unit stored in the storage unit, Interrupt control means for performing control for notifying the central processing unit of the interrupt.
また、本発明の通信装置の前記割込制御手段は、前記中央処理装置が前記記憶部に記憶されている前記参照データを参照せずに前記割込処理を行う場合は、前記書込アドレスと前記格納手段に格納された前記記憶部のアドレスとが一致したか否かにかかわらず前記中央処理装置に対して割込を通知する制御を行ってもよい。 Further, the interrupt control means of the communication device according to the present invention is configured such that when the central processing unit performs the interrupt processing without referring to the reference data stored in the storage unit, the write address Control may be performed to notify the central processing unit of an interrupt regardless of whether or not the address of the storage unit stored in the storage means matches.
また、本発明の通信装置の前記割込制御手段は、前記書込アドレスと前記格納手段に格納された前記記憶部のアドレスとを比較する比較回路を備え、前記比較回路の比較結果に基づいて前記中央処理装置に対して割込を通知する制御を行うことが好ましい。 Further, the interrupt control means of the communication device of the present invention comprises a comparison circuit for comparing the write address with the address of the storage unit stored in the storage means, and based on the comparison result of the comparison circuit It is preferable to perform control for notifying the central processing unit of an interrupt.
本発明の通信システムは、従通信装置と、前記従通信装置から送信されたパケットデータをシリアル通信により受信する本発明の通信装置と、を備える。 The communication system of the present invention includes a slave communication device and the communication device of the present invention that receives packet data transmitted from the slave communication device by serial communication.
本発明の通信処理プログラムは、本発明の通信装置の書込手段及び割込制御手段の少なくとも一方としてコンピュータを機能させるためのものである。 The communication processing program of the present invention is for causing a computer to function as at least one of writing means and interrupt control means of the communication apparatus of the present invention.
請求項1、請求項4、及び請求項5に記載の発明によれば、記憶部のデータ更新が終了するまで待って割込処理を実施する場合に比べて、中央処理装置の負荷を低減することができる。 According to the first, fourth, and fifth aspects of the present invention, the load on the central processing unit is reduced as compared with the case where the interruption process is performed after the data update in the storage unit is completed. be able to.
請求項2に記載の発明によれば、本構成を有しない場合と比較して、中央処理装置の付加をより低減することができる。 According to the second aspect of the present invention, the addition of the central processing unit can be further reduced as compared with the case where the present configuration is not provided.
請求項3に記載の発明によれば、比較回路により比較を行わない場合に比べて、中央処理装置の付加をより低減することができる。 According to the third aspect of the present invention, the addition of the central processing unit can be further reduced as compared with the case where the comparison is not performed by the comparison circuit.
以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。 Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.
まず、本発明の通信装置である主制御装置及び本発明のその他の通信装置または従制御装置である機器制御装置を有する制御装置を備えた画像形成装置について説明する。図1には、画像形成装置10の一例の概略構成を表す構成図を示す。画像形成装置10は、通信装置である主制御装置12及び機器制御装置14がシリアルバス40を介して接続された制御装置11と、機器制御装置14に接続された各種機器を含む機器群16とを備えている。シリアルバス40は、主制御装置12から見た場合には送信用となる信号線Tx、及び受信用となる信号線Rxを備えた全二重の伝送路である。
First, an image forming apparatus provided with a control apparatus having a main control apparatus which is a communication apparatus of the present invention and an apparatus control apparatus which is another communication apparatus or a sub control apparatus of the present invention will be described. FIG. 1 is a configuration diagram illustrating a schematic configuration of an example of the image forming apparatus 10. The image forming apparatus 10 includes a
機器群16に含まれる各機器は、画像形成を行なうための機器であって、例えば、感光体や現像ロール等を回転させるモータ、用紙検出のためのセンサ、或いはトナー濃度を検出するためのセンサ等が含まれる。なお、ここでは画像形成装置10を、電子写真方式で画像形成を行なう画像形成装置として説明したが、インクジェット方式で画像形成を行なう画像形成装置であってもよい。
Each device included in the
主制御装置12は、画像形成装置10全体、及び機器制御装置14を制御する機能を有している。主制御装置12は、CPU(中央処理装置:Central Processing Unit)20、シリアライザ・デシリアライザ制御部22(以下、「SerDes制御部22」という)、及び複写レジスタ群24を備えている。
The
CPU20は、不揮発性の記憶部(図示省略)に記憶されたプログラムを実行することにより、画像形成装置10全体及び機器制御装置14を制御する。なお、CPU20が実行するプログラムを記憶するための記憶部は、HDD(ハードディスクドライブ)、フレキシブルディスク、DVD(Digital Versatile Disk)、光磁気ディスク、及びUSB(Universal Serial Bus)メモリ等であってもよい。また当該記憶部は、通信IF(Interface)(図示省略)を介して接続された他の装置の記憶媒体であってもよい。
The
CPU20は、CPUバス26を介してSerDes制御部22と接続されている。CPUバス26は、複数の信号線を備えたパラレルバスである。
The
SerDes制御部22は、CPU20からCPUバス26を介して機器制御装置14に送信する情報(パラレル信号)を受け取ると、受け取ったパラレル信号をパケット化し、各パケットをシリアル信号に変換してシリアルバス40を介して機器制御装置14に送信する。また、SerDes制御部22は、機器制御装置14からシリアルバス40を介してシリアル形式のパケットを受信すると、受信したパケットをパラレル形式のパケットに変換し、変換したパラレル形式のパケットをデコードして、該パケットに含まれるデータを取り出す。
When the
複写レジスタ群24は、複数のレジスタ(記憶領域)を含むメモリで構成されている。機器制御装置14に含まれる入出力制御レジスタ群32の各レジスタの記憶内容が、複写レジスタ群24に複写される。ここで、複写とは、入出力制御レジスタ群32からレジスタに記憶されたデータを読出して、読出したデータをシリアルバス40を介して主制御装置12に送信し、複写レジスタ群24の各レジスタに書込む一連の処理をいう。
The
機器制御装置14は、シリアライザ・デシリアライザ制御部30(以下、「SerDes制御部30」という)、入出力制御レジスタ群32、及び駆動・受信回路34を備えている。
The
SerDes制御部30は、主制御装置12からシリアルバス40を介してシリアル形式のパケットを受信すると、受信したパケットをパラレル形式のパケットに変換し、パラレル形式のパケットをデコードして、該パケットに含まれるデータを取り出す。また、SerDes制御部30は、主制御装置12に送信する情報(パラレル信号)をパケット化し、各パケットをシリアル信号に変換してシリアルバス40を介して主制御装置12に送信する。
When the SerDes
入出力制御レジスタ群32は、複数のレジスタ(記憶領域)を含むメモリで構成されている。入出力制御レジスタ群32の複数のレジスタは、入力レジスタと、出力レジスタとを含んでいる。入力レジスタには、各機器の状態を示すデータが書込まれる。出力レジスタには、主制御装置12のCPU20から送信された各機器を制御するデータが書込まれる。また、入出力制御レジスタ群32には、割込の発生を示すデータが書込まれるレジスタ、及び割込要因を示すデータが書込まれるレジスタも含まれる。
The input / output
入出力制御レジスタ群32の各レジスタに記憶された記憶内容は、前述したように、主制御装置12の複写レジスタ群24に複写される。本実施の形態では、CPU20は、複写レジスタ群24に複写されたデータを読み出すことにより、入出力制御レジスタ群32に書込まれたデータと同じデータを参照することができる。この他、本実施の形態では、CPU20は、シリアルバス40を介して入出力制御レジスタ群32に書込まれたデータを読出して取得することもできる。なお、本実施の形態において、複写レジスタ群24のメモリサイズ、及び入出力制御レジスタ群32のメモリサイズは、互いに等しく、入出力制御レジスタ群32から複写レジスタ群24への複写の際には、入出力制御レジスタ群32から読み出されたデータは、当該データが記憶されていた入出力制御レジスタ群32のレジスタに対応する複写レジスタ群24のレジスタに書込まれるものとする。
The contents stored in each register of the input / output
駆動・受信回路34は、画像形成装置10を構成する機器群16の各機器に接続される。駆動・受信回路34は、入出力制御レジスタ群32の出力レジスタに機器を制御するためのデータが書込まれると、そのデータに応じた駆動信号を当該出力レジスタに対応する機器に出力する。機器は出力された駆動信号に応じて駆動される。また、接続された機器から当該機器の状態を示す信号が入力されると、その信号に応じたデータを当該機器の状態を示すデータ用の入力レジスタに書込む。状態を示すデータは、例えば、機器がセンサである場合には、センサの検出結果を示すデータであってもよい。また例えば、機器がモータである場合には、モータの回転状態を示すデータであってもよい。
The drive /
画像形成装置10全体を制御するCPU20は、入力レジスタに書込まれたデータから機器の状態を把握し、出力レジスタに制御用のデータを書込むことにより各機器の駆動を制御している。
The
本実施の形態の主制御装置12のSerDes制御部22では、機器制御装置14から割込の発生を通知する割込パケットを受信すると、複写レジスタ群24の更新状態を監視してCPU20に対して割り込みを通知する処理(以下、「割込通知処理」という)を行う。例えば、本実施の形態では、割込パケットは、予め定められた個数のデータのキャプチャが完了すると機器制御装置14から主制御装置12に送信される。
When the
割込通知処理に関する機能及び動作について詳細に説明する。 The functions and operations related to the interrupt notification process will be described in detail.
機器制御装置14のSerDes制御部30では、入出力制御レジスタ群32からデータを読み出して複写レジスタ群24に複写するときの、データの読出元のアドレスを生成してアドレスカウンタ(図示省略)に出力する。複写レジスタ群24へのデータの複写は、予め定められたサイズのデータを入出力制御レジスタ群32から読み出して順次、主制御装置12に転送することにより行なわれるため、予め定められたサイズのデータが入出力制御レジスタ群32から読み出される毎に、当該サイズ分インクリメントされたアドレスが出力される。アドレスカウンタは、複写レジスタ群24への複写のための入出力制御レジスタ群32からのデータの読出しが終了したとき或いはデータの読出しを開始する際にリセットされる。
The
機器制御装置14のSerDes制御部30は、入出力制御レジスタ群32の各レジスタに書込まれているデータを複写レジスタ群24に複写するため、入出力制御レジスタ群32からデータを読み出して、複写レジスタ群24に書込ませるためのパケット(以下、「複写パケット」という)を生成する。複写パケットは、パラレルシリアル変換回路(図示省略)によりシリアル変換され、シリアルバス40を介して主制御装置12に転送される。
The
また、機器制御装置14のSerDes制御部30は、入出力制御レジスタ群32の割込レジスタに割込の発生を示すデータが書込まれると、割込発生を通知する割込パケットを生成する。生成された割込パケットは、パラレルシリアル変換回路(図示省略)でシリアル形式のパケットに変換されて、主制御装置12に送信される。
In addition, when data indicating the occurrence of an interrupt is written in the interrupt register of the input / output
主制御装置12のSerDes制御部22は、割込パケットを受信すると、割込を通知する割込通知信号を発生する。CPU20は割込通知信号を受け取ると、割込が発生したことを把握し、複写レジスタ群24から割込要因を示すデータを読み出して割込要因に応じた処理(割込処理)を行なう。
When receiving the interrupt packet, the
図2には、主制御装置12の割込通知処理機能に関するSerDes制御部22の構成の一例を示す。本実施の形態のSerDes制御部22は、パケット受信部41、複写レジスタ群制御部42、割込制御部44、レジスタ46、及びCPUバス47を備えている。なお、図2では、図示の便宜上、複写レジスタ群24をSerDes制御部22内に記載しているが、実際には複写レジスタ群24は、SerDes制御部22の外部に設けられている。
FIG. 2 shows an example of the configuration of the
パケット受信部41は、機器制御装置14から受信したシリアル形式のパケットをパラレル形式に変換してデータを取り出す機能を有している。パケット受信部41は、図示を省略したシリアルパラレル変換回路(デシリアライザ)、バッファ、及びパケットデコード回路を備えている。シリアルパラレル変換回路は、機器制御装置14からシリアルバス40を介して受信したシリアル形式のパケットをパラレル形式のパケットに変換する機能を有している。バッファは、シリアルパラレル変換回路で変換されたパラレル形式のパケットを一時的に記憶する機能を有している。パケットデコード回路は、バッファに一時的に記憶されたパラレル形式のパケットをデコードして、当該パケットに含まれるデータを取り出す機能を有している。
The
パケット受信部41は、複写パケットを受信すると、複写パケットから取り出した複写レジスタ群パケットデータを複写レジスタ群制御部42に出力する。また、パケット受信部41は、割込パケットを受信すると、割込パケットデータを割込制御部44に出力する。
When receiving the copy packet, the
複写レジスタ群制御部42は、複写レジスタ群パケットデータを複写レジスタ群24に書き込むための制御を行う機能を有している。複写レジスタ群制御部42は、複写レジスタ群アドレス(該アドレスを示す信号)と、複写レジスタ群ライト信号とを複写レジスタ群24及び割込制御部44に出力する。複写レジスタ群アドレスは、複写レジスタ群パケットデータの書込場所(アドレス)を示す信号である。複写レジスタ群ライト信号は、複写レジスタ群への書込を許可するか否かを示す信号である。複写レジスタ群24には、複写レジスタ群パケットデータが、複写レジスタ群ライト信号に基づいたタイミングで、複写レジスタ群制御部42から指示された複写レジスタ群アドレスに書き込まれる。
The copy register
レジスタ46は、CPUバスインタフェース(図示省略)を介してCPU20とCPUバス47により接続されている。
The
レジスタ46には、CPU20が割込処理を行う際に参照する参照データが書き込み(格納)された複写レジスタ群24の格納場所(参照データ格納アドレス)が、システムの起動時等所定のタイミングにおいて、予めCPU20により設定される。参照データ格納アドレスは、割込制御部44に出力される。
In the
割込制御部44は、複写レジスタ群ライト信号及び割込パケットデータに応じたタイミングで、複写レジスタ群アドレスと参照データ格納アドレスとを比較して一致すると、割込通知をCPU20に出力する機能を有している。本実施の形態の割込制御部44は、比較回路等のハードウエア資源により実現されている。図3には、本実施の形態の割込制御部44の具体的一例の構成図を示す。
The interrupt
図3に示した割込制御部44は、シーケンサ50及び比較器52を備える。
The interrupt
シーケンサ50には、割込パケットデータ及び複写レジスタ群ライト信号が入力される。シーケンサ50は、割込パケットデータが入力されると、比較器52の比較を有効にする(比較を行う)ためのアドレス比較有効信号を比較器52に出力する。
The
比較器52は、比較回路であり、アドレス比較有効信号に基づいて、複写レジスタ群アドレスと参照データ格納アドレスとの比較を行い、比較結果(図3、「比較一致」参照)をシーケンサ50に出力する。
The
シーケンサ50は、当該比較結果に基づいて、複写レジスタ群アドレスと参照データ格納アドレスとが一致する場合は、割込通知をCPU20に出力する。また、複写レジスタ群アドレスと参照データ格納アドレスとが一致した場合は、比較器52の比較を無効にする(比較を終了する)ためのアドレス比較有効信号を比較器52に出力する。
The
なお、割込制御部44の構成は、図3に示したものに限らず、その他の構成であってもよい。図4には、本実施の形態の割込制御部44のその他の具体的一例の構成図を示す。
The configuration of the interrupt
図4に示した割込制御部44は、ラッチ54及び比較器56を備える。
The interrupt
ラッチ54には、割込パケットデータ及び割込通知が入力される。ラッチ54は、割込パケットデータの入力後から割込通知の出力までの期間、比較器56の比較を有効にする(比較を行わる)ためのアドレス比較有効信号を比較器56に出力する。
The
比較器56は、比較回路を備え、アドレス比較有効信号に基づいたタイミングで、複写レジスタ群アドレスと参照データ格納アドレスとの比較を行う。比較器56は、複写レジスタ群アドレスと参照データ格納アドレスとが一致する場合は、複写レジスタ群ライト信号に基づいたタイミングで割込通知をCPU20に出力する。
The
次に本実施の形態のSerDes制御部22における割込通知処理動作について詳細に説明する。図5には、割込通知処理の一例の全体の流れを表すフローチャートを示す。また、図6には、割込通知処理の一例のタイミングチャートを示す。
Next, the interrupt notification processing operation in the
なお、本実施の形態では、CPU20が、予めレジスタ46に、割込要因(もしくはパケットの種類)毎に、割込処理においてCPU20が参照する参照データが書き込まれる複写レジスタ群24のアドレスを格納させておく。図7には、レジスタ46に格納されるアドレスの一例を示す。図7に示すように、本実施の形態では、レジスタ46の格納部46Aには、複写レジスタ群24の更新(書き込み終了)を待って、割込を通知するか否かに関する設定を格納しておく。例えば、主制御装置12は、機器制御装置14から機器群16の測定値等のデータに関して割込パケットを受信した場合は、CPU20は、複写レジスタ群24に書き込まれた参照データを参照せずに割込処理を行う。そのため、このような場合は、複写レジスタ群24の更新を待たずに割込を通知するように設定しておく。
In this embodiment, the
また、レジスタ46の格納部46Bには、割込要因毎に、割込要因の処理に必要なデータを格納する複写レジスタ群アドレスを格納しておく。なお、図7に示した具体的一例では、割込要因0〜割込要因13まで、14種類の割込要因に対応する複写レジスタ群アドレスが格納されている場合を示している。
In addition, the
割込通知処理は、SerDes制御部22のパケット受信部41がパケットデータを受信すると開始される。
The interrupt notification process is started when the
まず、ステップS100では、受信したパケットが割込パケットであるか否か判断する。複写パケット等、割込パケットではない場合は、CPU20に対して割込通知を行わないため、本処理を終了する。一方、割込パケットである場合は、ステップS102へ進む。
First, in step S100, it is determined whether the received packet is an interrupt packet. If the packet is not an interrupt packet, such as a copy packet, the
ステップS102では、割込処理においてCPU20が複写レジスタ群24の参照データを参照するか否か判断する。参照しない場合は、ステップS110へ進む。一方、参照する場合は、ステップS104へ進む。
In step S102, it is determined whether or not the
ステップS104では、複写レジスタ群アドレスと参照データ格納アドレスとの比較を開始する。図6のタイミングチャートに示すように、割込パケットデータを受信すると、割込制御部44は、複写レジスタ群アドレスと参照データ格納アドレスとの比較を行わせるようにHレベル(有効)のアドレス比較有効信号を内部の比較器(図3の比較器52、図4の比較器56参照)に出力する。
In step S104, comparison between the copy register group address and the reference data storage address is started. As shown in the timing chart of FIG. 6, when the interrupt packet data is received, the interrupt
次のステップS106では、割込制御部44により、複写レジスタ群アドレスと受信した割込パケットの割込要因に応じた参照データ格納アドレスとを比較し、一致するか否か判断する。なお、図6では、具体的一例として、参照データ格納アドレスが「N」である場合を示している。
In the next step S106, the interrupt
一致しない場合は、複写レジスタ群アドレスと参照データ格納アドレスとの比較を繰り返す。一方、一致する場合は、ステップS108へ進む。次のステップS108では、割込制御部44は、複写レジスタ群アドレスと参照データ格納アドレスとの比較を終了するようにLレベル(無効)のアドレス比較有効信号を内部の比較器(図3の比較器52、図4の比較器56参照)に出力する。次のステップS110では、割込制御部44がCPU20に割込を通知した後、本処理を終了する。
If they do not match, the comparison between the copy register group address and the reference data storage address is repeated. On the other hand, if they match, the process proceeds to step S108. In the next step S108, the interrupt
本実施の形態の割込制御部44では、図6のタイミングチャートに示すように、複写レジスタ群アドレスと参照データ格納アドレス「N」とが一致すると、複写レジスタ群ライト信号を受信した(複写レジスタ群ライト信号がHレベルからLレベルに立ち下がった)タイミングで、CPU20に割込を通知する。
As shown in the timing chart of FIG. 6, the interrupt
より具体的には、割込制御部44がCPU20に割込を通知するタイミングは、パケット受信部41が割込パケットを受信した際の複写レジスタ群24のアドレス(複写レジスタ群アドレス)によって異なる。以下に三種類の異なる場合の割込を通知するタイミングについて図8〜図10を参照して説明する。なお、図8〜図10は、機器制御装置14の入出力制御レジスタ群32のデータを主制御装置12に転送する周期が1msの場合を示している。また、図8〜図10では、図6と同様に、照データ格納アドレスが「N」である場合を示している。
More specifically, the timing at which the interrupt
まず、割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス未満の場合について説明する。図8には、割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス未満の場合の一例のタイムチャートを示す。 First, the case where the copy register group address when receiving the interrupt packet is less than the reference data storage address will be described. FIG. 8 shows a time chart of an example when the copy register group address when receiving the interrupt packet is less than the reference data storage address.
パケット受信部41が複写パケット(Mirror_PKT、参照)を受信すると、受信した複写パケットの複写レジスタ群24への書き込みに応じて、複写レジスタ群アドレスカウンタ(図示省略)のカウンタ値の増加に伴い、複写レジスタ群アドレスが増加する。複写パケットの受信後、次周期の複写パケットの受信までは、待機状態となり、複写レジスタ群アドレスの値は「0」になる。
When the
予め定められた数のデータのキャプチャが完了すると、パケット受信部41が割込パケット(IRQ_PKT、参照)を受信する。図8では、パケット受信部41が割込パケットを受信した際の複写レジスタ群アドレスのアドレスが「N−x」の場合を示している。当該複写レジスタ群アドレスは、参照データ格納アドレスよりも小さい。複写レジスタ群24への書き込みが進み、複写レジスタ群アドレスの値が「N」になると、複写レジスタ群アドレスと参照データ格納アドレスとが一致し、割込制御部44がCPU20に対して割込(IRQ:Interrupt ReQuest)を通知する。CPU20は、当該割込の通知を受け取ると、複写レジスタ群24から割込処理用の読み出し(参照)を行う。
When the capture of a predetermined number of data is completed, the
次に、割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス以上の場合について説明する。図9には、割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス以上の場合の一例のタイムチャートを示す。 Next, a case where the copy register group address when receiving the interrupt packet is equal to or higher than the reference data storage address will be described. FIG. 9 shows an example time chart when the copy register group address when receiving the interrupt packet is equal to or higher than the reference data storage address.
図9では、パケット受信部41が割込パケットを受信した際の複写レジスタ群アドレスの値が「N+x」の場合を示している。当該複写レジスタ群アドレスは、参照データ格納アドレスよりも大きい。この場合は、現在データの書き込みを行っている複写パケットの書き込みが完了し、複写レジスタ群24の値が「0」に戻り、次周期に受信した複写パケットに応じて複写レジスタ群24の値が増加し「N」になると、複写レジスタ群アドレスと参照データ格納アドレスとが一致する。複写レジスタ群アドレスと参照データ格納アドレスとが一致すると、割込制御部44がCPU20に対して割込(IRQ:Interrupt ReQuest)を通知する。CPU20は、当該割込の通知を受け取ると、複写レジスタ群24から割込処理用の読み出し(参照)を行う。なお、本実施の形態では、割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレスと同じ場合も、同様に、次周期において複写レジスタ群アドレスと参照データ格納アドレスとが一致した後、割込を通知する。
FIG. 9 shows a case where the value of the copy register group address is “N + x” when the
次に、割込パケットを受信した際の複写レジスタ群アドレスの値が、「0」の場合について説明する。図10には、割込パケットを受信した際の複写レジスタ群アドレスが、「0」の場合の一例のタイムチャートを示す。複写レジスタ群アドレスの値が「0」とは、上述したように、SerDes制御部22は、次周期の複写パケットの受信までの待機状態にある。
Next, the case where the value of the copy register group address when receiving the interrupt packet is “0” will be described. FIG. 10 shows an example time chart when the copy register group address when receiving the interrupt packet is “0”. As described above, when the value of the copy register group address is “0”, the
複写レジスタ群24の値が「0」の場合は、次周期に受信した複写パケットに応じて複写レジスタ群24の値が増加し「N」になると、複写レジスタ群アドレスと参照データ格納アドレスとが一致する。複写レジスタ群アドレスと参照データ格納アドレスとが一致すると、割込制御部44がCPU20に対して割込(IRQ:Interrupt ReQuest)を通知する。CPU20は、当該割込の通知を受け取ると、複写レジスタ群24から割込処理用の読み出し(参照)を行う。
When the value of the
以上説明したように、本実施の形態の主制御装置12のSerDes制御部22は、パケット受信部41、複写レジスタ群制御部42、割込制御部44、及びレジスタ46を備えている。レジスタ46には、予めCPU20により、割込処理においてCPU20が参照する参照データが複写レジスタ群24に書き込まれるアドレスが参照データ格納アドレスとして格納される。パケット受信部41が割込パケットを受信すると、割込制御部44が、複写レジスタ群ライト信号と割込パケットデータを受信したタイミングとに基づいたタイミングで、複写レジスタ群アドレスと参照データ格納アドレスとを比較する。複写レジスタ群アドレスと参照データ格納アドレスとが一致すると、割込制御部44は、CPU20に対して割込を通知する。CPU20は当該割込の通知に応じて割込処理を実行する。
As described above, the
このように本実施の形態の主制御装置12では、複写レジスタ群アドレスと参照データ格納アドレスとを比較することにより複写レジスタ群24の更新完了を判断している。これにより、割込パケットを受信した後、複写レジスタ群24の更新完了を待ってから割込制御部44により、CPU20に対して割り込みが通知される。
As described above, the
主制御装置12から機器制御装置14に対して、複写パケットの転送と、割り込みパケットの通知とは、非同期である。そのため、従来の主制御装置では、主制御装置のCPUが割込処理において複写レジスタ群に書き込まれた参照データを参照する場合は、複写レジスタ群のデータ更新の完了を当該CPUで実行されるソフトウエア処理により待ってから割込処理を行っていた。そのため、CPUの負荷が増加する懸念があった。
The transfer of the copy packet and the notification of the interrupt packet from the
これに対して本実施の形態の主制御装置12では、SerDes制御部22の割込制御部44が複写レジスタ群24の複写レジスタ群アドレスを監視し、更新が完了するとCPU20に割込を通知するため、CPU20の負荷を低減することができる。
On the other hand, in the
なお、本実施の形態では、割込制御部44をハードウエア資源で実現しているが、これに限らず、ソフトウエア処理により実現してもよい。なお、本実施の形態のように、割込制御部44をハードウエア資源で実現することにより、CPU20の負荷をより低減することができる。また、ソフトウエア処理により実現する場合は、CPU20とは別途にマイコン等の処理部を設け、当該処理部によって実行されるソフトウエア処理により割込制御部44を実現することがCPU20の負荷の低減の観点から好ましい。
In the present embodiment, the interrupt
また、本実施の形態では、本発明の通信装置を主制御装置12に適用した場合について説明したが、これに限らず、いわゆるマスタとスレイブとの関係にある通信装置のマスタに対して適用すればよく、特に限定されるものではない。同様に、制御装置11以外の通信システムであってもよい。
In the present embodiment, the case where the communication apparatus of the present invention is applied to the
また、上記各実施の形態は本発明の一例であり、本発明の主旨を逸脱しない範囲内において状況に応じて変更可能であることはいうまでもない。本実施の形態で説明した画像形成装置10、制御装置11、主制御装置12、及び機器制御装置14等の構成や動作等は一例であり、本発明の主旨を逸脱しない範囲内において状況に応じて変更可能であることは言うまでもない。
Moreover, each said embodiment is an example of this invention, and it cannot be overemphasized that it can change according to a condition within the range which does not deviate from the main point of this invention. The configurations and operations of the image forming apparatus 10, the
10 画像形成装置
12 主制御装置
14 機器制御装置
20 CPU
22 SerDes制御部
24 複写レジスタ群
40 シリアルバス
41 パケット受信部
42 複写レジスタ群制御部
44 割込制御部
46 レジスタ
52、56 比較器
DESCRIPTION OF SYMBOLS 10
22
Claims (5)
前記他参照データが前記書込手段により書き込まれる前記記憶部のアドレスが格納される格納手段と、
前記他の通信装置から送信された前記割込パケットに基づいて前記書込手段が前記参照データを書き込んだ前記記憶部の書込アドレスと、前記格納手段に格納された前記記憶部のアドレスとが一致した場合に、前記中央処理装置に対して割込を通知する制御を行う割込制御手段と、
を備えた通信装置。 A document for writing in the storage unit reference data to be referred to when the central processing unit performs interrupt processing based on the packet data transmitted from another communication device and the interrupt packet transmitted from the other communication device. Including
Storage means for storing an address of the storage unit to which the other reference data is written by the writing means;
Based on the interrupt packet transmitted from the other communication device, a write address of the storage unit to which the writing unit has written the reference data, and an address of the storage unit stored in the storage unit An interrupt control means for performing control to notify the central processing unit of an interrupt when they match,
A communication device comprising:
請求項1に記載の通信装置。 The interrupt control means, when the central processing unit performs the interrupt processing without referring to the reference data stored in the storage unit, the write address and the storage means stored in the storage means Regardless of whether or not the address of the storage unit matches, control to notify the central processing unit of the interrupt,
The communication apparatus according to claim 1.
請求項2に記載の通信装置。 The interrupt control unit includes a comparison circuit that compares the write address with the address of the storage unit stored in the storage unit, and interrupts the central processing unit based on the comparison result of the comparison circuit. Control to notify
The communication apparatus according to claim 2.
前記従通信装置から送信されたパケットデータをシリアル通信により受信する前記請求項1から前記請求項3のいずれか1項に記載の通信装置と、
を備えた通信システム。 A slave communication device;
The communication device according to any one of claims 1 to 3, wherein the communication device receives packet data transmitted from the slave communication device by serial communication.
A communication system comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013164510A JP6213029B2 (en) | 2013-08-07 | 2013-08-07 | Communication device and communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013164510A JP6213029B2 (en) | 2013-08-07 | 2013-08-07 | Communication device and communication system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015035024A true JP2015035024A (en) | 2015-02-19 |
JP6213029B2 JP6213029B2 (en) | 2017-10-18 |
Family
ID=52543535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013164510A Active JP6213029B2 (en) | 2013-08-07 | 2013-08-07 | Communication device and communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6213029B2 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09244823A (en) * | 1996-03-04 | 1997-09-19 | Ricoh Co Ltd | Printer |
JPH09330305A (en) * | 1996-06-13 | 1997-12-22 | Murata Mach Ltd | System-combined type device |
JP2003281076A (en) * | 2002-03-27 | 2003-10-03 | Nec Microsystems Ltd | Unauthorized access detection circuit of dma controller, unauthorized access detecting method and program thereof |
JP2005100314A (en) * | 2003-08-15 | 2005-04-14 | Ricoh Co Ltd | Usb device controller and printer |
JP2006113906A (en) * | 2004-10-15 | 2006-04-27 | Canon Inc | Bus monitoring device and controller with bus monitoring device |
JP2006289797A (en) * | 2005-04-11 | 2006-10-26 | Canon Inc | Printing controlling apparatus, its controlling method and program |
JP2008225694A (en) * | 2007-03-09 | 2008-09-25 | Ricoh Co Ltd | Semiconductor integrated circuit and error analysis method |
-
2013
- 2013-08-07 JP JP2013164510A patent/JP6213029B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09244823A (en) * | 1996-03-04 | 1997-09-19 | Ricoh Co Ltd | Printer |
JPH09330305A (en) * | 1996-06-13 | 1997-12-22 | Murata Mach Ltd | System-combined type device |
JP2003281076A (en) * | 2002-03-27 | 2003-10-03 | Nec Microsystems Ltd | Unauthorized access detection circuit of dma controller, unauthorized access detecting method and program thereof |
JP2005100314A (en) * | 2003-08-15 | 2005-04-14 | Ricoh Co Ltd | Usb device controller and printer |
JP2006113906A (en) * | 2004-10-15 | 2006-04-27 | Canon Inc | Bus monitoring device and controller with bus monitoring device |
JP2006289797A (en) * | 2005-04-11 | 2006-10-26 | Canon Inc | Printing controlling apparatus, its controlling method and program |
JP2008225694A (en) * | 2007-03-09 | 2008-09-25 | Ricoh Co Ltd | Semiconductor integrated circuit and error analysis method |
Also Published As
Publication number | Publication date |
---|---|
JP6213029B2 (en) | 2017-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1764703B1 (en) | A system for providing access to multiple data buffers of a data retaining and processing device | |
JP6629215B2 (en) | Method and apparatus for multi-master bus protocol | |
US10503239B2 (en) | Electronic device and power management method | |
US9201623B2 (en) | Control device and image forming apparatus with two controllers | |
JP2011197952A (en) | Information processing apparatus, image forming apparatus, and information processing program | |
JP2007058787A (en) | Bridge and error notification method thereof | |
JP6213029B2 (en) | Communication device and communication system | |
JP6112412B2 (en) | I / O control circuit and synchronization control method in I / O control circuit | |
JP6136754B2 (en) | Communication control apparatus and image forming apparatus | |
US20170091601A1 (en) | Control device, image forming apparatus, and control method | |
JP4431768B2 (en) | Portable electronic device, reading method and writing method | |
JP6163941B2 (en) | Control device and image forming apparatus | |
JP6213003B2 (en) | Communication control device, image processing device, communication control program | |
JP3970728B2 (en) | Data communication device | |
JP5713136B2 (en) | Control device, first control device, second control device, image forming apparatus | |
JP5913454B2 (en) | Control device, first control device, second control device, image forming apparatus | |
US9413355B2 (en) | Information processing apparatus and control method therefor | |
JP5334173B2 (en) | Data transfer system and retry control method | |
JP6217206B2 (en) | Communication control device, image processing device, transfer control program | |
JP5845767B2 (en) | Power supply control device, management control device, image processing device, power supply control program | |
JP6107499B2 (en) | Communication control apparatus and image forming apparatus | |
JP2020035337A (en) | Bridge device and control method of bridge device, and information processor having the bridge device | |
JP2003281087A (en) | Memory target device and data transfer system | |
JP2005115464A (en) | Data processor and data control unit | |
JP2020035336A (en) | Bridge device and control method of bridge device, and information processor having the bridge device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160513 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170228 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170314 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170512 |
|
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: 20170822 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170904 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6213029 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |