JP2015035024A - Communication device, communication system, and communication processing program - Google Patents

Communication device, communication system, and communication processing program Download PDF

Info

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
Application number
JP2013164510A
Other languages
Japanese (ja)
Other versions
JP6213029B2 (en
Inventor
滋和 山岸
Shigekazu Yamagishi
滋和 山岸
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2013164510A priority Critical patent/JP6213029B2/en
Publication of JP2015035024A publication Critical patent/JP2015035024A/en
Application granted granted Critical
Publication of JP6213029B2 publication Critical patent/JP6213029B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a communication device, a communication system, and a communication processing program that can reduce a load on a central processing unit compared with the case where interrupt processing is performed after waiting for completion of data update in a storage unit.SOLUTION: A SerDes control unit 22 of a main control device 12 comprises a packet receiving unit 41, a copy register group control unit 42, an interrupt control unit 44, and a register 46. The register 46 has stored, as a reference data storage address, an address where reference data which a CPU 20 refers to in interrupt processing is written in the copy register group 24 by the CPU 20 in advance. When the packet receiving unit 41 receives an interrupt packet, the interrupt control unit 44 compares a copy register group address with the reference data storage address at a timing based on a copy register group write signal and the timing of reception of the interrupt packet data, and if they accord, the interrupt control unit 44 notifies the CPU 20 of an interrupt.

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 Patent Document 1, at least one device is connected, and each of the data for controlling the driving of the device and the data indicating the state of the device is stored in the first storage unit and the first storage unit. A device control unit having a reading and transmitting unit for reading and transmitting each data, a central processing unit, a second storage unit, and a writing unit for writing the data transmitted from the device control unit into the second storage unit A full-duplex serial bus that connects the main control unit and the device control unit, and the reading and transmitting means and the writing means are connected to the central processing unit. A control device is described that operates so that each data stored in the first storage unit is read out, transmitted, and written into the second storage unit at a period equal to or less than a count period of a system timer serving as an operation reference. ing.

特願2012−135920号公報Japanese Patent Application No. 2012-135920

本発明は、記憶部のデータ更新が終了するまで待って中央処理装置が割込処理を実施する場合に比べて、中央処理装置の負荷を低減することができる通信装置、通信システム、及び通信処理プログラムを提供することを目的とする。   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.

本実施の形態の画像形成装置の一例の概略構成を表す構成図である。1 is a configuration diagram illustrating a schematic configuration of an example of an image forming apparatus according to an exemplary embodiment. 本実施の形態の主制御装置の割込通知処理機能に関するSerDes制御部22の構成の一例を示す構成図である。It is a block diagram which shows an example of a structure of the SerDes control part 22 regarding the interruption notification process function of the main controller of this Embodiment. 本実施の形態の割込制御部の具体的一例を示す構成図である。It is a block diagram which shows a specific example of the interruption control part of this Embodiment. 本実施の形態の割込制御部のその他の具体的一例を示す構成図である。It is a block diagram which shows the other specific example of the interruption control part of this Embodiment. 本実施の形態の主制御装置のSerDes制御部で実行される割込通知処理の一例の全体の流れを表すフローチャートである。It is a flowchart showing the whole flow of an example of the interruption notification process performed in the SerDes control part of the main control apparatus of this Embodiment. 本実施の形態の主制御装置のSerDes制御部で実行される割込通知処理の一例のタイミングチャートである。It is a timing chart of an example of the interrupt notification process performed in the SerDes control part of the main controller of this embodiment. 本実施の形態のレジスタに格納されるアドレスの一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the address stored in the register | resistor of this Embodiment. 本実施の形態の主制御装置のSerDes制御部が割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス未満の場合の一例のタイムチャートである。It is a time chart of an example when the copy register group address when the SerDes control unit of the main controller of the present embodiment receives the interrupt packet is less than the reference data storage address. 本実施の形態の主制御装置のSerDes制御部が割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス以上の場合の一例のタイムチャートである。It is a time chart of an example when the copy register group address when the SerDes control unit of the main controller of the present embodiment receives the interrupt packet is equal to or greater than the reference data storage address. 本実施の形態の主制御装置のSerDes制御部が割込パケットを受信した際の複写レジスタ群アドレスが、「0」の場合の一例のタイムチャートである10 is a time chart of an example when the copy register group address is “0” when the SerDes control unit of the main control device of the present embodiment receives an interrupt packet;

以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。   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 control device 11 to which a main control device 12 and a device control device 14, which are communication devices, are connected via a serial bus 40, and a device group 16 including various devices connected to the device control device 14. It has. The serial bus 40 is a full-duplex transmission line provided with a signal line Tx for transmission and a signal line Rx for reception when viewed from the main controller 12.

機器群16に含まれる各機器は、画像形成を行なうための機器であって、例えば、感光体や現像ロール等を回転させるモータ、用紙検出のためのセンサ、或いはトナー濃度を検出するためのセンサ等が含まれる。なお、ここでは画像形成装置10を、電子写真方式で画像形成を行なう画像形成装置として説明したが、インクジェット方式で画像形成を行なう画像形成装置であってもよい。   Each device included in the device group 16 is a device for forming an image. For example, a motor that rotates a photosensitive member or a developing roll, a sensor for detecting paper, or a sensor for detecting toner concentration Etc. are included. Here, the image forming apparatus 10 has been described as an image forming apparatus that forms an image by an electrophotographic method, but may be an image forming apparatus that forms an image by an inkjet method.

主制御装置12は、画像形成装置10全体、及び機器制御装置14を制御する機能を有している。主制御装置12は、CPU(中央処理装置:Central Processing Unit)20、シリアライザ・デシリアライザ制御部22(以下、「SerDes制御部22」という)、及び複写レジスタ群24を備えている。   The main control device 12 has a function of controlling the entire image forming apparatus 10 and the device control device 14. The main controller 12 includes a CPU (Central Processing Unit) 20, a serializer / deserializer controller 22 (hereinafter referred to as “SerDes controller 22”), and a copy register group 24.

CPU20は、不揮発性の記憶部(図示省略)に記憶されたプログラムを実行することにより、画像形成装置10全体及び機器制御装置14を制御する。なお、CPU20が実行するプログラムを記憶するための記憶部は、HDD(ハードディスクドライブ)、フレキシブルディスク、DVD(Digital Versatile Disk)、光磁気ディスク、及びUSB(Universal Serial Bus)メモリ等であってもよい。また当該記憶部は、通信IF(Interface)(図示省略)を介して接続された他の装置の記憶媒体であってもよい。   The CPU 20 controls the entire image forming apparatus 10 and the device control apparatus 14 by executing a program stored in a non-volatile storage unit (not shown). The storage unit for storing a program executed by the CPU 20 may be an HDD (Hard Disk Drive), a flexible disk, a DVD (Digital Versatile Disk), a magneto-optical disk, a USB (Universal Serial Bus) memory, or the like. . In addition, the storage unit may be a storage medium of another device connected via a communication IF (Interface) (not shown).

CPU20は、CPUバス26を介してSerDes制御部22と接続されている。CPUバス26は、複数の信号線を備えたパラレルバスである。   The CPU 20 is connected to the SerDes control unit 22 via the CPU bus 26. The CPU bus 26 is a parallel bus provided with a plurality of signal lines.

SerDes制御部22は、CPU20からCPUバス26を介して機器制御装置14に送信する情報(パラレル信号)を受け取ると、受け取ったパラレル信号をパケット化し、各パケットをシリアル信号に変換してシリアルバス40を介して機器制御装置14に送信する。また、SerDes制御部22は、機器制御装置14からシリアルバス40を介してシリアル形式のパケットを受信すると、受信したパケットをパラレル形式のパケットに変換し、変換したパラレル形式のパケットをデコードして、該パケットに含まれるデータを取り出す。   When the SerDes control unit 22 receives information (parallel signal) to be transmitted from the CPU 20 to the device control device 14 via the CPU bus 26, the SerDes control unit 22 converts the received parallel signal into packets, converts each packet into a serial signal, and converts the serial bus 40 to the serial bus 40. Is transmitted to the device control apparatus 14 via. When the SerDes control unit 22 receives a serial packet from the device control device 14 via the serial bus 40, the SerDes control unit 22 converts the received packet into a parallel packet, decodes the converted parallel packet, Data included in the packet is extracted.

複写レジスタ群24は、複数のレジスタ(記憶領域)を含むメモリで構成されている。機器制御装置14に含まれる入出力制御レジスタ群32の各レジスタの記憶内容が、複写レジスタ群24に複写される。ここで、複写とは、入出力制御レジスタ群32からレジスタに記憶されたデータを読出して、読出したデータをシリアルバス40を介して主制御装置12に送信し、複写レジスタ群24の各レジスタに書込む一連の処理をいう。   The copy register group 24 includes a memory including a plurality of registers (storage areas). The stored contents of each register of the input / output control register group 32 included in the device control device 14 are copied to the copy register group 24. Here, copying refers to reading out data stored in the register from the input / output control register group 32 and transmitting the read data to the main controller 12 via the serial bus 40 to each register of the copy register group 24. A series of processing to write.

機器制御装置14は、シリアライザ・デシリアライザ制御部30(以下、「SerDes制御部30」という)、入出力制御レジスタ群32、及び駆動・受信回路34を備えている。   The device control device 14 includes a serializer / deserializer controller 30 (hereinafter referred to as “SerDes controller 30”), an input / output control register group 32, and a drive / receiver circuit 34.

SerDes制御部30は、主制御装置12からシリアルバス40を介してシリアル形式のパケットを受信すると、受信したパケットをパラレル形式のパケットに変換し、パラレル形式のパケットをデコードして、該パケットに含まれるデータを取り出す。また、SerDes制御部30は、主制御装置12に送信する情報(パラレル信号)をパケット化し、各パケットをシリアル信号に変換してシリアルバス40を介して主制御装置12に送信する。   When the SerDes control unit 30 receives a serial packet from the main controller 12 via the serial bus 40, the SerDes control unit 30 converts the received packet into a parallel packet, decodes the parallel packet, and includes the packet in the packet. Data to be retrieved. In addition, the SerDes control unit 30 packetizes information (parallel signal) to be transmitted to the main controller 12, converts each packet into a serial signal, and transmits the serial signal to the main controller 12 via the serial bus 40.

入出力制御レジスタ群32は、複数のレジスタ(記憶領域)を含むメモリで構成されている。入出力制御レジスタ群32の複数のレジスタは、入力レジスタと、出力レジスタとを含んでいる。入力レジスタには、各機器の状態を示すデータが書込まれる。出力レジスタには、主制御装置12のCPU20から送信された各機器を制御するデータが書込まれる。また、入出力制御レジスタ群32には、割込の発生を示すデータが書込まれるレジスタ、及び割込要因を示すデータが書込まれるレジスタも含まれる。   The input / output control register group 32 includes a memory including a plurality of registers (storage areas). The plurality of registers of the input / output control register group 32 includes an input register and an output register. Data indicating the state of each device is written in the input register. In the output register, data for controlling each device transmitted from the CPU 20 of the main controller 12 is written. The input / output control register group 32 includes a register to which data indicating the occurrence of an interrupt is written and a register to which data indicating an interrupt factor is written.

入出力制御レジスタ群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 control register group 32 are copied to the copy register group 24 of the main controller 12 as described above. In the present embodiment, the CPU 20 can refer to the same data as the data written to the input / output control register group 32 by reading the data copied to the copy register group 24. In addition, in the present embodiment, the CPU 20 can also read out and acquire data written in the input / output control register group 32 via the serial bus 40. In the present embodiment, the memory size of the copy register group 24 and the memory size of the input / output control register group 32 are equal to each other, and when copying from the input / output control register group 32 to the copy register group 24, It is assumed that the data read from the input / output control register group 32 is written to the register of the copy register group 24 corresponding to the register of the input / output control register group 32 in which the data is stored.

駆動・受信回路34は、画像形成装置10を構成する機器群16の各機器に接続される。駆動・受信回路34は、入出力制御レジスタ群32の出力レジスタに機器を制御するためのデータが書込まれると、そのデータに応じた駆動信号を当該出力レジスタに対応する機器に出力する。機器は出力された駆動信号に応じて駆動される。また、接続された機器から当該機器の状態を示す信号が入力されると、その信号に応じたデータを当該機器の状態を示すデータ用の入力レジスタに書込む。状態を示すデータは、例えば、機器がセンサである場合には、センサの検出結果を示すデータであってもよい。また例えば、機器がモータである場合には、モータの回転状態を示すデータであってもよい。   The drive / reception circuit 34 is connected to each device of the device group 16 constituting the image forming apparatus 10. When data for controlling the device is written in the output register of the input / output control register group 32, the drive / reception circuit 34 outputs a drive signal corresponding to the data to the device corresponding to the output register. The device is driven according to the output drive signal. When a signal indicating the state of the device is input from the connected device, data corresponding to the signal is written into a data input register indicating the state of the device. For example, if the device is a sensor, the data indicating the state may be data indicating the detection result of the sensor. Further, for example, when the device is a motor, it may be data indicating the rotation state of the motor.

画像形成装置10全体を制御するCPU20は、入力レジスタに書込まれたデータから機器の状態を把握し、出力レジスタに制御用のデータを書込むことにより各機器の駆動を制御している。   The CPU 20 that controls the entire image forming apparatus 10 grasps the state of the device from the data written in the input register, and controls the drive of each device by writing control data in the output register.

本実施の形態の主制御装置12のSerDes制御部22では、機器制御装置14から割込の発生を通知する割込パケットを受信すると、複写レジスタ群24の更新状態を監視してCPU20に対して割り込みを通知する処理(以下、「割込通知処理」という)を行う。例えば、本実施の形態では、割込パケットは、予め定められた個数のデータのキャプチャが完了すると機器制御装置14から主制御装置12に送信される。   When the SerDes control unit 22 of the main control device 12 of the present embodiment receives an interrupt packet notifying the occurrence of an interrupt from the device control device 14, it monitors the update status of the copy register group 24 and sends it to the CPU 20. Processing for notifying interruption (hereinafter referred to as “interrupt notification processing”) is performed. For example, in the present embodiment, the interrupt packet is transmitted from the device control apparatus 14 to the main control apparatus 12 when the capture of a predetermined number of data is completed.

割込通知処理に関する機能及び動作について詳細に説明する。   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 SerDes control unit 30 of the device control device 14 generates an address from which data is read when data is read from the input / output control register group 32 and copied to the copy register group 24, and is output to an address counter (not shown). To do. Copying of data to the copy register group 24 is performed by reading data of a predetermined size from the input / output control register group 32 and sequentially transferring the data to the main controller 12, so that data of a predetermined size is stored. Is read from the input / output control register group 32, an address incremented by the size is output. The address counter is reset when reading of data from the input / output control register group 32 for copying to the copy register group 24 is completed or reading of data is started.

機器制御装置14のSerDes制御部30は、入出力制御レジスタ群32の各レジスタに書込まれているデータを複写レジスタ群24に複写するため、入出力制御レジスタ群32からデータを読み出して、複写レジスタ群24に書込ませるためのパケット(以下、「複写パケット」という)を生成する。複写パケットは、パラレルシリアル変換回路(図示省略)によりシリアル変換され、シリアルバス40を介して主制御装置12に転送される。   The SerDes control unit 30 of the device control device 14 reads the data from the input / output control register group 32 and copies the data written in each register of the input / output control register group 32 to the copy register group 24. A packet to be written in the register group 24 (hereinafter referred to as “copy packet”) is generated. The copy packet is serially converted by a parallel-serial conversion circuit (not shown) and transferred to the main controller 12 via the serial bus 40.

また、機器制御装置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 control register group 32, the SerDes control unit 30 of the device control device 14 generates an interrupt packet that notifies the occurrence of the interrupt. The generated interrupt packet is converted into a serial packet by a parallel-serial conversion circuit (not shown) and transmitted to the main controller 12.

主制御装置12のSerDes制御部22は、割込パケットを受信すると、割込を通知する割込通知信号を発生する。CPU20は割込通知信号を受け取ると、割込が発生したことを把握し、複写レジスタ群24から割込要因を示すデータを読み出して割込要因に応じた処理(割込処理)を行なう。   When receiving the interrupt packet, the SerDes control unit 22 of the main control device 12 generates an interrupt notification signal for notifying the interrupt. When the CPU 20 receives the interrupt notification signal, the CPU 20 grasps that the interrupt has occurred, reads data indicating the interrupt factor from the copy register group 24, and performs processing corresponding to the interrupt factor (interrupt process).

図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 SerDes control unit 22 related to the interrupt notification processing function of the main control device 12. The SerDes control unit 22 of this embodiment includes a packet reception unit 41, a copy register group control unit 42, an interrupt control unit 44, a register 46, and a CPU bus 47. In FIG. 2, for convenience of illustration, the copy register group 24 is shown in the SerDes control unit 22, but actually, the copy register group 24 is provided outside the SerDes control unit 22.

パケット受信部41は、機器制御装置14から受信したシリアル形式のパケットをパラレル形式に変換してデータを取り出す機能を有している。パケット受信部41は、図示を省略したシリアルパラレル変換回路(デシリアライザ)、バッファ、及びパケットデコード回路を備えている。シリアルパラレル変換回路は、機器制御装置14からシリアルバス40を介して受信したシリアル形式のパケットをパラレル形式のパケットに変換する機能を有している。バッファは、シリアルパラレル変換回路で変換されたパラレル形式のパケットを一時的に記憶する機能を有している。パケットデコード回路は、バッファに一時的に記憶されたパラレル形式のパケットをデコードして、当該パケットに含まれるデータを取り出す機能を有している。   The packet receiving unit 41 has a function of converting the serial format packet received from the device control apparatus 14 into a parallel format and extracting the data. The packet receiving unit 41 includes a serial-parallel conversion circuit (deserializer), a buffer, and a packet decoding circuit (not shown). The serial-parallel conversion circuit has a function of converting a serial packet received from the device control device 14 via the serial bus 40 into a parallel packet. The buffer has a function of temporarily storing a parallel packet converted by the serial / parallel conversion circuit. The packet decoding circuit has a function of decoding a parallel packet temporarily stored in a buffer and extracting data contained in the packet.

パケット受信部41は、複写パケットを受信すると、複写パケットから取り出した複写レジスタ群パケットデータを複写レジスタ群制御部42に出力する。また、パケット受信部41は、割込パケットを受信すると、割込パケットデータを割込制御部44に出力する。   When receiving the copy packet, the packet receiving unit 41 outputs the copy register group packet data extracted from the copy packet to the copy register group control unit 42. Further, when receiving the interrupt packet, the packet receiving unit 41 outputs the interrupt packet data to the interrupt control unit 44.

複写レジスタ群制御部42は、複写レジスタ群パケットデータを複写レジスタ群24に書き込むための制御を行う機能を有している。複写レジスタ群制御部42は、複写レジスタ群アドレス(該アドレスを示す信号)と、複写レジスタ群ライト信号とを複写レジスタ群24及び割込制御部44に出力する。複写レジスタ群アドレスは、複写レジスタ群パケットデータの書込場所(アドレス)を示す信号である。複写レジスタ群ライト信号は、複写レジスタ群への書込を許可するか否かを示す信号である。複写レジスタ群24には、複写レジスタ群パケットデータが、複写レジスタ群ライト信号に基づいたタイミングで、複写レジスタ群制御部42から指示された複写レジスタ群アドレスに書き込まれる。   The copy register group control unit 42 has a function of performing control for writing copy register group packet data to the copy register group 24. The copy register group control unit 42 outputs a copy register group address (a signal indicating the address) and a copy register group write signal to the copy register group 24 and the interrupt control unit 44. The copy register group address is a signal indicating a write location (address) of the copy register group packet data. The copy register group write signal is a signal indicating whether or not writing to the copy register group is permitted. In the copy register group 24, the copy register group packet data is written to the copy register group address designated by the copy register group control unit 42 at a timing based on the copy register group write signal.

レジスタ46は、CPUバスインタフェース(図示省略)を介してCPU20とCPUバス47により接続されている。   The register 46 is connected to the CPU 20 and the CPU bus 47 via a CPU bus interface (not shown).

レジスタ46には、CPU20が割込処理を行う際に参照する参照データが書き込み(格納)された複写レジスタ群24の格納場所(参照データ格納アドレス)が、システムの起動時等所定のタイミングにおいて、予めCPU20により設定される。参照データ格納アドレスは、割込制御部44に出力される。   In the register 46, the storage location (reference data storage address) of the copy register group 24 in which reference data to be referred to when the CPU 20 performs an interrupt process is written (stored) is at a predetermined timing such as when the system is started. It is set by the CPU 20 in advance. The reference data storage address is output to the interrupt control unit 44.

割込制御部44は、複写レジスタ群ライト信号及び割込パケットデータに応じたタイミングで、複写レジスタ群アドレスと参照データ格納アドレスとを比較して一致すると、割込通知をCPU20に出力する機能を有している。本実施の形態の割込制御部44は、比較回路等のハードウエア資源により実現されている。図3には、本実施の形態の割込制御部44の具体的一例の構成図を示す。   The interrupt control unit 44 compares the copy register group address with the reference data storage address at the timing according to the copy register group write signal and the interrupt packet data, and outputs an interrupt notification to the CPU 20 when they match. Have. The interrupt control unit 44 of the present embodiment is realized by hardware resources such as a comparison circuit. FIG. 3 shows a block diagram of a specific example of the interrupt control unit 44 of the present embodiment.

図3に示した割込制御部44は、シーケンサ50及び比較器52を備える。   The interrupt control unit 44 illustrated in FIG. 3 includes a sequencer 50 and a comparator 52.

シーケンサ50には、割込パケットデータ及び複写レジスタ群ライト信号が入力される。シーケンサ50は、割込パケットデータが入力されると、比較器52の比較を有効にする(比較を行う)ためのアドレス比較有効信号を比較器52に出力する。   The sequencer 50 receives interrupt packet data and a copy register group write signal. When the interrupt packet data is input, the sequencer 50 outputs an address comparison valid signal for validating (comparing) the comparison of the comparator 52 to the comparator 52.

比較器52は、比較回路であり、アドレス比較有効信号に基づいて、複写レジスタ群アドレスと参照データ格納アドレスとの比較を行い、比較結果(図3、「比較一致」参照)をシーケンサ50に出力する。   The comparator 52 is a comparison circuit, compares the copy register group address with the reference data storage address based on the address comparison valid signal, and outputs the comparison result (see “Comparison match” in FIG. 3) to the sequencer 50. To do.

シーケンサ50は、当該比較結果に基づいて、複写レジスタ群アドレスと参照データ格納アドレスとが一致する場合は、割込通知をCPU20に出力する。また、複写レジスタ群アドレスと参照データ格納アドレスとが一致した場合は、比較器52の比較を無効にする(比較を終了する)ためのアドレス比較有効信号を比較器52に出力する。   The sequencer 50 outputs an interrupt notification to the CPU 20 when the copy register group address matches the reference data storage address based on the comparison result. If the copy register group address matches the reference data storage address, an address comparison valid signal for invalidating the comparison of the comparator 52 (ending the comparison) is output to the comparator 52.

なお、割込制御部44の構成は、図3に示したものに限らず、その他の構成であってもよい。図4には、本実施の形態の割込制御部44のその他の具体的一例の構成図を示す。   The configuration of the interrupt control unit 44 is not limited to that shown in FIG. FIG. 4 shows a configuration diagram of another specific example of the interrupt control unit 44 of the present embodiment.

図4に示した割込制御部44は、ラッチ54及び比較器56を備える。   The interrupt control unit 44 illustrated in FIG. 4 includes a latch 54 and a comparator 56.

ラッチ54には、割込パケットデータ及び割込通知が入力される。ラッチ54は、割込パケットデータの入力後から割込通知の出力までの期間、比較器56の比較を有効にする(比較を行わる)ためのアドレス比較有効信号を比較器56に出力する。   The latch 54 receives interrupt packet data and an interrupt notification. The latch 54 outputs an address comparison valid signal for validating (comparing) the comparison of the comparator 56 to the comparator 56 during the period from the input of the interrupt packet data to the output of the interrupt notification.

比較器56は、比較回路を備え、アドレス比較有効信号に基づいたタイミングで、複写レジスタ群アドレスと参照データ格納アドレスとの比較を行う。比較器56は、複写レジスタ群アドレスと参照データ格納アドレスとが一致する場合は、複写レジスタ群ライト信号に基づいたタイミングで割込通知をCPU20に出力する。   The comparator 56 includes a comparison circuit, and compares the copy register group address with the reference data storage address at a timing based on the address comparison valid signal. When the copy register group address matches the reference data storage address, the comparator 56 outputs an interrupt notification to the CPU 20 at a timing based on the copy register group write signal.

次に本実施の形態のSerDes制御部22における割込通知処理動作について詳細に説明する。図5には、割込通知処理の一例の全体の流れを表すフローチャートを示す。また、図6には、割込通知処理の一例のタイミングチャートを示す。   Next, the interrupt notification processing operation in the SerDes control unit 22 of the present embodiment will be described in detail. FIG. 5 is a flowchart showing the overall flow of an example of the interrupt notification process. FIG. 6 shows a timing chart of an example of the interrupt notification process.

なお、本実施の形態では、CPU20が、予めレジスタ46に、割込要因(もしくはパケットの種類)毎に、割込処理においてCPU20が参照する参照データが書き込まれる複写レジスタ群24のアドレスを格納させておく。図7には、レジスタ46に格納されるアドレスの一例を示す。図7に示すように、本実施の形態では、レジスタ46の格納部46Aには、複写レジスタ群24の更新(書き込み終了)を待って、割込を通知するか否かに関する設定を格納しておく。例えば、主制御装置12は、機器制御装置14から機器群16の測定値等のデータに関して割込パケットを受信した場合は、CPU20は、複写レジスタ群24に書き込まれた参照データを参照せずに割込処理を行う。そのため、このような場合は、複写レジスタ群24の更新を待たずに割込を通知するように設定しておく。   In this embodiment, the CPU 20 stores in advance the address of the copy register group 24 to which the reference data referred to by the CPU 20 in the interrupt processing is written for each interrupt factor (or packet type) in the register 46. Keep it. FIG. 7 shows an example of addresses stored in the register 46. As shown in FIG. 7, in the present embodiment, the storage unit 46A of the register 46 stores the setting regarding whether or not to notify the interrupt after waiting for the update (write end) of the copy register group 24. deep. For example, when the main control device 12 receives an interrupt packet regarding data such as measurement values of the device group 16 from the device control device 14, the CPU 20 does not refer to the reference data written in the copy register group 24. Perform interrupt processing. Therefore, in such a case, the interrupt is notified without waiting for the update of the copy register group 24.

また、レジスタ46の格納部46Bには、割込要因毎に、割込要因の処理に必要なデータを格納する複写レジスタ群アドレスを格納しておく。なお、図7に示した具体的一例では、割込要因0〜割込要因13まで、14種類の割込要因に対応する複写レジスタ群アドレスが格納されている場合を示している。   In addition, the storage unit 46B of the register 46 stores, for each interrupt factor, a copy register group address for storing data necessary for processing the interrupt factor. In the specific example shown in FIG. 7, a case is shown in which copy register group addresses corresponding to 14 types of interrupt factors from interrupt factor 0 to interrupt factor 13 are stored.

割込通知処理は、SerDes制御部22のパケット受信部41がパケットデータを受信すると開始される。   The interrupt notification process is started when the packet receiving unit 41 of the SerDes control unit 22 receives packet data.

まず、ステップ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 CPU 20 is not notified of the interrupt, and the process is terminated. On the other hand, if it is an interrupt packet, the process proceeds to step S102.

ステップS102では、割込処理においてCPU20が複写レジスタ群24の参照データを参照するか否か判断する。参照しない場合は、ステップS110へ進む。一方、参照する場合は、ステップS104へ進む。   In step S102, it is determined whether or not the CPU 20 refers to the reference data of the copy register group 24 in the interrupt process. When not referring, it progresses to step S110. On the other hand, when referring, it progresses to step S104.

ステップ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 control unit 44 compares the copy register group address with the reference data storage address to compare the H level (valid) address. The valid signal is output to an internal comparator (see the comparator 52 in FIG. 3 and the comparator 56 in FIG. 4).

次のステップS106では、割込制御部44により、複写レジスタ群アドレスと受信した割込パケットの割込要因に応じた参照データ格納アドレスとを比較し、一致するか否か判断する。なお、図6では、具体的一例として、参照データ格納アドレスが「N」である場合を示している。   In the next step S106, the interrupt control unit 44 compares the copy register group address with the reference data storage address corresponding to the interrupt factor of the received interrupt packet, and determines whether or not they match. FIG. 6 shows a case where the reference data storage address is “N” as a specific example.

一致しない場合は、複写レジスタ群アドレスと参照データ格納アドレスとの比較を繰り返す。一方、一致する場合は、ステップ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 control unit 44 sends an L level (invalid) address comparison valid signal to the internal comparator (comparison in FIG. 3) so as to finish the comparison between the copy register group address and the reference data storage address. Output to the comparator 52 and the comparator 56 in FIG. In the next step S110, the interrupt control unit 44 notifies the CPU 20 of the interrupt, and then ends the present process.

本実施の形態の割込制御部44では、図6のタイミングチャートに示すように、複写レジスタ群アドレスと参照データ格納アドレス「N」とが一致すると、複写レジスタ群ライト信号を受信した(複写レジスタ群ライト信号がHレベルからLレベルに立ち下がった)タイミングで、CPU20に割込を通知する。   As shown in the timing chart of FIG. 6, the interrupt control unit 44 of the present embodiment receives a copy register group write signal when the copy register group address matches the reference data storage address “N” (copy register group signal). At the timing when the group write signal falls from the H level to the L level, the CPU 20 is notified of 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 control unit 44 notifies the CPU 20 of the interrupt differs depending on the address of the copy register group 24 (copy register group address) when the packet receiving unit 41 receives the interrupt packet. The timing for notifying interrupts in three different cases will be described below with reference to FIGS. 8 to 10 show a case where the cycle for transferring the data in the input / output control register group 32 of the device control device 14 to the main control device 12 is 1 ms. 8 to 10 show a case where the reference data storage address is “N” as in FIG. 6.

まず、割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス未満の場合について説明する。図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 packet reception unit 41 receives a copy packet (see Mirror_PKT), the copy register group address counter (not shown) increases in response to the received copy packet written to the copy register group 24, and the copy is performed. The register group address increases. After receiving the copy packet, it is in a standby state until the copy packet of the next cycle is received, and the value of the copy register group address becomes “0”.

予め定められた数のデータのキャプチャが完了すると、パケット受信部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 packet receiving unit 41 receives an interrupt packet (IRQ_PKT, see). FIG. 8 shows a case where the address of the copy register group address when the packet receiving unit 41 receives an interrupt packet is “N−x”. The copy register group address is smaller than the reference data storage address. When writing to the copy register group 24 proceeds and the value of the copy register group address becomes “N”, the copy register group address matches the reference data storage address, and the interrupt control unit 44 interrupts the CPU 20 ( IRQ: Interrupt ReQuest). When the CPU 20 receives the interrupt notification, the CPU 20 reads (refers to) the interrupt processing from the copy register group 24.

次に、割込パケットを受信した際の複写レジスタ群アドレスが、参照データ格納アドレス以上の場合について説明する。図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 packet receiving unit 41 receives an interrupt packet. The copy register group address is larger than the reference data storage address. In this case, writing of the copy packet in which data is currently written is completed, the value of the copy register group 24 returns to “0”, and the value of the copy register group 24 is changed according to the copy packet received in the next period. When it increases to “N”, the copy register group address matches the reference data storage address. When the copy register group address matches the reference data storage address, the interrupt control unit 44 notifies the CPU 20 of an interrupt (IRQ: Interrupt ReQuest). When the CPU 20 receives the interrupt notification, the CPU 20 reads (refers to) the interrupt processing from the copy register group 24. In this embodiment, even when the copy register group address when the interrupt packet is received is the same as the reference data storage address, the copy register group address and the reference data storage address coincide in the next cycle. Then, notify the interrupt.

次に、割込パケットを受信した際の複写レジスタ群アドレスの値が、「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 SerDes control unit 22 is in a standby state until reception of a copy packet of the next cycle.

複写レジスタ群24の値が「0」の場合は、次周期に受信した複写パケットに応じて複写レジスタ群24の値が増加し「N」になると、複写レジスタ群アドレスと参照データ格納アドレスとが一致する。複写レジスタ群アドレスと参照データ格納アドレスとが一致すると、割込制御部44がCPU20に対して割込(IRQ:Interrupt ReQuest)を通知する。CPU20は、当該割込の通知を受け取ると、複写レジスタ群24から割込処理用の読み出し(参照)を行う。   When the value of the copy register group 24 is “0”, the value of the copy register group 24 increases in accordance with the copy packet received in the next period and becomes “N”. Match. When the copy register group address matches the reference data storage address, the interrupt control unit 44 notifies the CPU 20 of an interrupt (IRQ: Interrupt ReQuest). When the CPU 20 receives the interrupt notification, the CPU 20 reads (refers to) the interrupt processing from the copy register group 24.

以上説明したように、本実施の形態の主制御装置12のSerDes制御部22は、パケット受信部41、複写レジスタ群制御部42、割込制御部44、及びレジスタ46を備えている。レジスタ46には、予めCPU20により、割込処理においてCPU20が参照する参照データが複写レジスタ群24に書き込まれるアドレスが参照データ格納アドレスとして格納される。パケット受信部41が割込パケットを受信すると、割込制御部44が、複写レジスタ群ライト信号と割込パケットデータを受信したタイミングとに基づいたタイミングで、複写レジスタ群アドレスと参照データ格納アドレスとを比較する。複写レジスタ群アドレスと参照データ格納アドレスとが一致すると、割込制御部44は、CPU20に対して割込を通知する。CPU20は当該割込の通知に応じて割込処理を実行する。   As described above, the SerDes control unit 22 of the main control device 12 according to the present embodiment includes the packet receiving unit 41, the copy register group control unit 42, the interrupt control unit 44, and the register 46. In the register 46, the CPU 20 stores in advance an address at which the reference data referred to by the CPU 20 in the interrupt processing is written in the copy register group 24 as a reference data storage address. When the packet receiving unit 41 receives the interrupt packet, the interrupt control unit 44 determines the copy register group address, the reference data storage address, and the timing based on the timing when the copy register group write signal and the interrupt packet data are received. Compare When the copy register group address matches the reference data storage address, the interrupt control unit 44 notifies the CPU 20 of the interrupt. The CPU 20 executes an interrupt process in response to the interrupt notification.

このように本実施の形態の主制御装置12では、複写レジスタ群アドレスと参照データ格納アドレスとを比較することにより複写レジスタ群24の更新完了を判断している。これにより、割込パケットを受信した後、複写レジスタ群24の更新完了を待ってから割込制御部44により、CPU20に対して割り込みが通知される。   As described above, the main controller 12 of the present embodiment determines completion of the update of the copy register group 24 by comparing the copy register group address with the reference data storage address. Thus, after receiving the interrupt packet, the interrupt control unit 44 notifies the CPU 20 of an interrupt after waiting for completion of the update of the copy register group 24.

主制御装置12から機器制御装置14に対して、複写パケットの転送と、割り込みパケットの通知とは、非同期である。そのため、従来の主制御装置では、主制御装置のCPUが割込処理において複写レジスタ群に書き込まれた参照データを参照する場合は、複写レジスタ群のデータ更新の完了を当該CPUで実行されるソフトウエア処理により待ってから割込処理を行っていた。そのため、CPUの負荷が増加する懸念があった。   The transfer of the copy packet and the notification of the interrupt packet from the main control device 12 to the device control device 14 are asynchronous. Therefore, in the conventional main control device, when the CPU of the main control device refers to the reference data written in the copy register group in the interrupt processing, the software executed by the CPU for completing the data update of the copy register group Interrupt processing was performed after waiting for the wear processing. For this reason, there is a concern that the load on the CPU increases.

これに対して本実施の形態の主制御装置12では、SerDes制御部22の割込制御部44が複写レジスタ群24の複写レジスタ群アドレスを監視し、更新が完了するとCPU20に割込を通知するため、CPU20の負荷を低減することができる。   On the other hand, in the main controller 12 of the present embodiment, the interrupt control unit 44 of the SerDes control unit 22 monitors the copy register group address of the copy register group 24, and notifies the CPU 20 of the interrupt when the update is completed. Therefore, the load on the CPU 20 can be reduced.

なお、本実施の形態では、割込制御部44をハードウエア資源で実現しているが、これに限らず、ソフトウエア処理により実現してもよい。なお、本実施の形態のように、割込制御部44をハードウエア資源で実現することにより、CPU20の負荷をより低減することができる。また、ソフトウエア処理により実現する場合は、CPU20とは別途にマイコン等の処理部を設け、当該処理部によって実行されるソフトウエア処理により割込制御部44を実現することがCPU20の負荷の低減の観点から好ましい。   In the present embodiment, the interrupt control unit 44 is realized by hardware resources, but is not limited thereto, and may be realized by software processing. Note that the load on the CPU 20 can be further reduced by implementing the interrupt control unit 44 with hardware resources as in the present embodiment. In addition, when realizing by software processing, it is possible to reduce the load on the CPU 20 by providing a processing unit such as a microcomputer separately from the CPU 20 and realizing the interrupt control unit 44 by software processing executed by the processing unit. From the viewpoint of

また、本実施の形態では、本発明の通信装置を主制御装置12に適用した場合について説明したが、これに限らず、いわゆるマスタとスレイブとの関係にある通信装置のマスタに対して適用すればよく、特に限定されるものではない。同様に、制御装置11以外の通信システムであってもよい。   In the present embodiment, the case where the communication apparatus of the present invention is applied to the main control apparatus 12 has been described. However, the present invention is not limited to this, and the present invention may be applied to a master of a communication apparatus having a so-called master-slave relationship. There is no particular limitation. Similarly, a communication system other than the control device 11 may be used.

また、上記各実施の形態は本発明の一例であり、本発明の主旨を逸脱しない範囲内において状況に応じて変更可能であることはいうまでもない。本実施の形態で説明した画像形成装置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 control apparatus 11, the main control apparatus 12, the device control apparatus 14, and the like described in the present embodiment are merely examples, and can be used according to the situation without departing from the gist of the present invention. Needless to say, it can be changed.

10 画像形成装置
12 主制御装置
14 機器制御装置
20 CPU
22 SerDes制御部
24 複写レジスタ群
40 シリアルバス
41 パケット受信部
42 複写レジスタ群制御部
44 割込制御部
46 レジスタ
52、56 比較器
DESCRIPTION OF SYMBOLS 10 Image forming apparatus 12 Main control apparatus 14 Equipment control apparatus 20 CPU
22 SerDes Control Unit 24 Copy Register Group 40 Serial Bus 41 Packet Receiver 42 Copy Register Group Control Unit 44 Interrupt Control Unit 46 Registers 52 and 56 Comparator

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:
前記請求項1から請求項請求項3のいずれか1項に記載の通信装置の書込手段及び割込制御手段の少なくとも一方としてコンピュータを機能させるための通信処理プログラム。   A communication processing program for causing a computer to function as at least one of a writing unit and an interrupt control unit of the communication device according to any one of claims 1 to 3.
JP2013164510A 2013-08-07 2013-08-07 Communication device and communication system Active JP6213029B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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