JPH11232243A - Communication control equipment, its method and communication control system - Google Patents

Communication control equipment, its method and communication control system

Info

Publication number
JPH11232243A
JPH11232243A JP10041040A JP4104098A JPH11232243A JP H11232243 A JPH11232243 A JP H11232243A JP 10041040 A JP10041040 A JP 10041040A JP 4104098 A JP4104098 A JP 4104098A JP H11232243 A JPH11232243 A JP H11232243A
Authority
JP
Japan
Prior art keywords
data
communication
storage area
data storage
communication control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10041040A
Other languages
Japanese (ja)
Inventor
Mitsushige Murata
光繁 村田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10041040A priority Critical patent/JPH11232243A/en
Publication of JPH11232243A publication Critical patent/JPH11232243A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Multi Processors (AREA)
  • Facsimiles In General (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute data transfer between plural serial ports without requiring the involvement of a microprocessor to be used for load control in a device by providing the device with a data transfer means from a 1st data storage area to a 2nd data storage area and executing data communication between 1st and 2nd equipments without requiring 1st and 2nd equipment control means. SOLUTION: When data from an equipment connected to a channel(CH) 1 are received by a CH1 shared receiving area in a shared data block area 924 in the case of transmitting data from the equipment connected to the CH1 to an equipment connected to CHs 2, 3 without passing a host, data are automatically transferred to a CH2/CH3 shared transmitting area. It is also available to transfer data from the 1st equipment connected to the CH1 to the 2nd equipment connected to the CH2 and from the 2nd equipment to a 3rd equipment cascade-connected to the 2nd equipment.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の装置間で通
信によりデータの授受を行う通信制御装置、方法および
通信制御システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control device, a method, and a communication control system for exchanging data between a plurality of devices by communication.

【0002】[0002]

【従来の技術】従来、複数の装置間で通信によりデータ
の授受を行うものとして、例えば複写装置と付加装置と
からなる複写システムが知られている。この場合、付加
装置は循環式原稿給送装置(RDF)やソータなどであ
る。
2. Description of the Related Art Conventionally, as a system for exchanging data between a plurality of apparatuses by communication, a copying system including, for example, a copying apparatus and an additional apparatus is known. In this case, the additional device is a recirculating document feeder (RDF) or a sorter.

【0003】複写装置および付加装置はそれぞれ複写装
置および付加装置固有の制御を行う機器制御部を有し、
各装置間の機器制御部はシリアル通信などで接続されて
いる。
Each of the copying apparatus and the additional apparatus has a device control unit for performing control unique to the copying apparatus and the additional apparatus.
The device control units between the devices are connected by serial communication or the like.

【0004】複写システムは、マイクロプロセッサのシ
リアルポートやデータバスに接続されたシリアルコント
ロールICを介して動作開始命令や動作完了通知などの
制御データを授受しながらシステム制御を行う。また、
マイクロプロセッサにおけるシリアルデータの送受信処
理による負荷を軽減するために、内蔵の通信制御専用C
PUで複数のシリアルコントローラを制御する通信制御
用コントローラと呼ばれるチップを導入した複写システ
ムも知られている。
The copying system performs system control while transmitting and receiving control data such as an operation start command and an operation completion notice via a serial control IC connected to a serial port of a microprocessor or a data bus. Also,
In order to reduce the load of serial data transmission / reception processing in the microprocessor, a built-in communication control C
There is also known a copying system in which a chip called a communication control controller for controlling a plurality of serial controllers with a PU is introduced.

【0005】このような複写システムでは、複写装置お
よび各付加装置間は送受信効率アップのためにポイント
ツーポイントで接続されていた。
In such a copying system, the copying apparatus and each additional apparatus are connected point-to-point in order to increase the transmission and reception efficiency.

【0006】また、通信制御装置の中には、カスケード
接続された機器間でのデータ転送のスムーズ性かつ通信
のリアルタイム性を損なわないために、装置の負荷制御
などに使用しているマイクロプロセッサの関与無しにデ
ータの転送を可能にするブリッジ機能を持つものがあ
る。
[0006] Some communication control devices include a microprocessor used for load control of the device in order to maintain smooth data transfer between devices connected in cascade and real-time communication. Some have a bridge function that allows data transfer without involvement.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記前
者の通信制御装置では、各装置間はポイントツーポイン
ト形式で通信可能に接続されているので、特定のシリア
ルポートに接続された装置とのデータ授受を効率よく行
えるが、そのデータを他のシリアルポートに接続された
機器に転送するためには、複写装置内のマイクロプロセ
ッサが関与してシリアルポート間のデータ転送を行わな
ければならず、マイクロプロセッサがモータなどの装置
内の負荷を制御している場合、モータなど装置内の負荷
制御に影響を与えてしまうおそれがあった。
However, in the former communication control device, since each device is communicably connected in a point-to-point format, data transmission / reception with a device connected to a specific serial port is performed. However, in order to transfer the data to a device connected to another serial port, a microprocessor in the copying apparatus must be involved to transfer data between the serial ports. When controlling the load in a device such as a motor, there is a possibility that load control in the device such as a motor may be affected.

【0008】また一方、各装置間で等価的にデータの授
受を行うので、シリアル形式でなくバス形式をとる機器
の場合、バスに接続された全ての機器のデータを授受す
ることになり、データ授受のスループットが落ち、複写
装置のようなリアルタイム性が重視されるものには向か
なかった。
On the other hand, since data is transmitted and received equivalently between each device, in the case of a device which takes a bus format instead of a serial format, data of all devices connected to the bus is transmitted and received. The throughput of the transfer was reduced, and it was not suitable for a device such as a copying machine in which real-time property was emphasized.

【0009】また、カスケード接続された機器間でのデ
ータ転送を可能にするブリッジ機能を持つ上記後者の通
信制御装置では、各装置間の通信経路は直接接続されて
いるものとカスケード接続されているものとで共有され
ているので、ブリッジ機能を利用して各機器に発信され
たデータがそのデータを必要としない装置にも転送され
ることになる。これにより、通信経路が使用されてしま
い直接接続されているデータの授受に支障を来す場合が
あった。
In the latter communication control device having a bridge function for enabling data transfer between cascade-connected devices, the communication paths between the devices are cascade-connected to those directly connected. Since the data is shared with the device, data transmitted to each device using the bridge function is transferred to a device that does not need the data. As a result, a communication path may be used, which may hinder transmission and reception of directly connected data.

【0010】そこで、本発明は複数のシリアルポート間
のデータ転送を装置内の負荷制御などに使用しているマ
イクロプロセッサの関与無しに行うことができると共
に、ブリッジ機能の利用を抑制する機能を併せ持つこと
により直接接続されているデータの授受に支障を来すこ
とを回避できる通信制御装置、方法および通信制御シス
テムを提供することを目的とする。
Therefore, the present invention can perform data transfer between a plurality of serial ports without involvement of a microprocessor used for load control in the apparatus, and has a function of suppressing the use of a bridge function. Accordingly, it is an object of the present invention to provide a communication control device, a communication control system, and a communication control system capable of avoiding a problem in transmission / reception of directly connected data.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1に記載の通信制御装置は、第1機
器を制御する第1機器制御手段によってアクセスされる
データ、および第2機器を制御する第2機器制御手段に
よってアクセスされるデータの通信を、第1通信ポート
を介して前記第1機器との間で行う通信制御装置におい
て、前記第1通信ポートから受信したデータを第1デー
タ記憶領域に記憶するデータ受信手段と、該第1データ
記憶領域に記憶されたデータを第2データ記憶領域に転
送するデータ転送手段と、該第2データ記憶領域に転送
されたデータを、第2通信ポートを介して前記第1機器
に対してカスケード接続された第3機器に送信するデー
タ送信手段と、前記データ転送手段による前記第1デー
タ記憶領域から前記第2データ記憶領域へのデータ転送
を禁止あるいは許可に設定する設定手段とを備え、前記
第1および第2機器制御手段を介在させることなく、前
記第1機器と前記第3機器との間でデータの通信を行う
ことを特徴とする。
In order to achieve the above object, a communication control apparatus according to a first aspect of the present invention comprises: a data control unit for controlling a first device; In a communication control device for communicating data accessed by a second device control means for controlling two devices with the first device via a first communication port, the communication control device transmits data received from the first communication port. Means for receiving data stored in the first data storage area, means for transferring data stored in the first data storage area to the second data storage area, and means for transferring data transferred to the second data storage area. A data transmitting means for transmitting to a third device cascaded to the first device via a second communication port; Setting means for setting data transfer to the second data storage area to be prohibited or permitted, and between the first device and the third device without the first and second device control means interposed therebetween. It is characterized by performing data communication.

【0012】請求項2に記載の通信制御装置は、請求項
1に係る通信制御装置において前記カスケード接続され
た第3機器との通信に使用される第1および第2データ
記憶領域の他に、前記第2機器制御手段によってアクセ
スされるデータの通信だけに使用される第3データ記憶
領域を有することを特徴とする。
According to a second aspect of the present invention, in addition to the first and second data storage areas used for communication with the cascade-connected third device in the communication control apparatus according to the first aspect, It has a third data storage area used only for communication of data accessed by the second device control means.

【0013】請求項3に記載の通信制御装置は、請求項
2に係る通信制御装置において前記第2機器制御手段に
よってアクセスされたことを記憶するアクセス情報記憶
手段を備えたことを特徴とする。
According to a third aspect of the present invention, there is provided a communication control apparatus according to the second aspect, further comprising an access information storage unit for storing the access by the second device control unit.

【0014】請求項4に記載の通信制御装置は、請求項
1に係る通信制御装置において通信を行う際の同期手順
を記憶する同期手順記憶手段を備えたことを特徴とす
る。
According to a fourth aspect of the present invention, there is provided a communication control apparatus including a synchronization procedure storing means for storing a synchronization procedure for performing communication in the communication control apparatus according to the first aspect.

【0015】請求項5に記載の通信制御装置では、請求
項2に係る通信制御装置において前記第1および第2デ
ータ記憶領域は前記第3データ記憶領域に対して選択的
に使用されることを特徴とする。
According to a fifth aspect of the present invention, in the communication control apparatus according to the second aspect, the first and second data storage areas are selectively used with respect to the third data storage area. Features.

【0016】請求項6に記載の通信制御装置は、請求項
1に係る通信制御装置においてシートに画像を形成する
画像形成システムに搭載され、前記第1機器は前記画像
形成システムを制御する制御装置であり、前記第2およ
び第3機器は排出された前記シートの仕分けを行うソー
タであることを特徴とする。
According to a sixth aspect of the present invention, in the communication control apparatus according to the first aspect, the communication control apparatus is mounted on an image forming system for forming an image on a sheet, and the first device controls the image forming system. Wherein the second and third devices are sorters for sorting the discharged sheets.

【0017】請求項7に記載の通信制御方法は、第1機
器を制御する第1機器制御手段によってアクセスされる
データ、および第2機器を制御する第2機器制御手段に
よってアクセスされるデータの通信を、第1通信ポート
を介して前記第1機器との間で行う通信制御方法におい
て、前記第1通信ポートから受信したデータを第1デー
タ記憶領域に記憶し、該第1データ記憶領域に記憶され
たデータを第2データ記憶領域に転送し、該第2データ
記憶領域に転送されたデータを、第2通信ポートを介し
て前記第1機器に対してカスケード接続された第3機器
に送信する際、前記第1データ記憶領域から前記第2デ
ータ記憶領域へのデータ転送を禁止あるいは許可に設定
し、該データ転送が許可に設定された場合、前記第1お
よび第2機器制御手段を介在させることなく、前記第1
機器と前記第3機器との間でデータの通信を行うことを
特徴とする。
According to a seventh aspect of the present invention, there is provided a communication control method for communicating data accessed by first device control means for controlling a first device and data accessed by second device control means for controlling a second device. Is performed between the first device and the first device via the first communication port, the data received from the first communication port is stored in the first data storage area, and the data is stored in the first data storage area The transferred data is transferred to the second data storage area, and the data transferred to the second data storage area is transmitted to a third device cascaded to the first device via a second communication port. In this case, the data transfer from the first data storage area to the second data storage area is set to be prohibited or permitted, and when the data transfer is set to be permitted, the first and second device control are performed. Without an intervening stage, the first
Data communication is performed between a device and the third device.

【0018】請求項8に記載の通信制御システムは、第
1機器を制御する第1機器制御手段によってアクセスさ
れるデータの通信を第1通信ポートを介して第2機器と
間で行う第1通信制御装置と、前記第2機器を制御する
第2機器制御手段によってアクセスされるデータの通信
を前記第1通信ポートを介して前記第1機器との間で行
う第2通信制御装置とを有する通信制御システムにおい
て、前記第2通信制御装置は、前記第1通信ポートから
受信したデータを第1データ記憶領域に記憶するデータ
受信手段と、該第1データ記憶領域に記憶されたデータ
を第2データ記憶領域に転送するデータ転送手段と、該
第2データ記憶領域に転送されたデータを、第2通信ポ
ートを介して前記第1機器に対してカスケード接続され
た第3機器に送信するデータ送信手段と、前記データ転
送手段による前記第1データ記憶領域から前記第2デー
タ記憶領域へのデータ転送を禁止あるいは許可に設定す
る設定手段とを備え、前記第1および第2機器制御手段
を介在させることなく、前記第1機器と前記第3機器と
の間でデータの通信を行うことを特徴とする。
In the communication control system according to the present invention, the first device communicates data accessed by the first device control means for controlling the first device with the second device via the first communication port. A communication comprising: a control device; and a second communication control device for communicating data accessed by a second device control means for controlling the second device with the first device via the first communication port. In the control system, the second communication control device includes: a data receiving unit configured to store data received from the first communication port in a first data storage area; and a second data control unit configured to transfer data stored in the first data storage area to a second data storage area. Data transfer means for transferring the data to the storage area; and transmitting the data transferred to the second data storage area to a third device cascaded to the first device via a second communication port. Data transmission means, and setting means for setting data transfer from the first data storage area to the second data storage area to be prohibited or permitted by the data transfer means, wherein the first and second device control means are provided. Data communication is performed between the first device and the third device without intervening.

【0019】[0019]

【発明の実施の形態】本発明の通信制御装置、方法およ
び通信制御システムの実施の形態について説明する。本
実施の形態における通信制御装置は複写装置に適用され
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the communication control device, method and communication control system of the present invention will be described. The communication control device according to the present embodiment is applied to a copying machine.

【0020】図1は実施の形態における複写装置の内部
構成を示す図である。図において、100は複写装置本
体、300は原稿の自動給送を行う循環式原稿給送装置
(以下、RDFと称する)、400および500は記録
済みの用紙を複数のビンに収納する仕分け装置(以下、
ソータと称する)である。RDF300およびソータ4
00,500は複写装置本体100に対し自在に組み合
わせて使用可能である。複写装置本体100、RDF3
00およびソータ400の構成は、特開平1−2889
50号公報などでよく知られているので、その詳細な説
明を省略する。
FIG. 1 is a diagram showing the internal configuration of the copying apparatus according to the embodiment. In the figure, 100 is a copying apparatus main body, 300 is a circulating original feeding apparatus (hereinafter, referred to as RDF) for automatically feeding an original, and 400 and 500 are sorting apparatuses for storing recorded paper in a plurality of bins. Less than,
(Referred to as a sorter). RDF300 and sorter 4
Reference numerals 00 and 500 can be freely combined with the copying apparatus main body 100 and used. Copying apparatus body 100, RDF3
00 and sorter 400 are disclosed in
Since it is well known in Japanese Patent Publication No. 50 and the like, a detailed description thereof will be omitted.

【0021】図2は通信制御装置を中心とするシステム
の構成を示す図である。マスター側のホストCPUに接
続された通信制御装置(IPC)には3チャネルのシリ
アルポートが設けられており、各シリアルポートにはス
レーブ側のホストCPUに接続されたIPCがそれぞれ
接続されている。本実施形態ではマスター側の機器1は
複写装置本体100内の制御装置800に相当し、スレ
ーブ側の機器2〜5はRDF300、ソータ400,5
00に相当する。図2において機器1のマスター側のI
PCに対し、機器4および機器5のスレーブ側のIPC
はカスケード接続されている。
FIG. 2 is a diagram showing the configuration of a system centered on a communication control device. The communication control device (IPC) connected to the master host CPU is provided with three serial ports, and each serial port is connected to the IPC connected to the slave host CPU. In this embodiment, the master device 1 corresponds to the control device 800 in the copying apparatus main body 100, and the slave devices 2 to 5 are the RDF 300, the sorters 400 and 5, respectively.
Equivalent to 00. In FIG. 2, I on the master side of device 1
IPC on the slave side of device 4 and device 5 to PC
Are cascaded.

【0022】[制御装置800]図3は複写装置本体1
00内の制御装置800の構成を示すブロック図であ
る。制御装置800は通信制御装置(IPC)812を
介してRDF300およびソータ400に接続されてい
る。さらに、ソータ400にはソータ500がIPC4
51を介してカスケード接続されている。図において、
801は演算制御を行う中央処理装置(CPU)であ
る。803は制御プログラムが予め格納された読み取り
専用メモリ(ROM)であり、CPU801はROM8
03に格納された制御プログラムにしたがってバスを介
して接続された各構成装置を制御する。
[Control Device 800] FIG.
FIG. 3 is a block diagram showing a configuration of a control device 800 in 00. The control device 800 is connected to the RDF 300 and the sorter 400 via a communication control device (IPC) 812. Further, the sorter 400 has an IPC4
51 are cascaded. In the figure,
Reference numeral 801 denotes a central processing unit (CPU) for performing arithmetic control. Reference numeral 803 denotes a read-only memory (ROM) in which a control program is stored in advance.
Each component device connected via the bus is controlled in accordance with the control program stored in the device 03.

【0023】805は入力データの記憶や作業用記憶領
域などに用いられる主記憶装置としてのランダムアクセ
スメモリ(RAM)である。807はモータなどの出力
負荷813にCPU801の制御信号を出力する出力イ
ンターフェース(I/O)である。809はセンサなど
の入力負荷814からの信号を入力してCPU801に
送出する入力インターフェース、811は操作パネル
(図示せず)のキー815やディスプレイ816の入出
力を制御するインターフェースである。
Reference numeral 805 denotes a random access memory (RAM) as a main storage device used for storing input data, a working storage area, and the like. An output interface (I / O) 807 outputs a control signal of the CPU 801 to an output load 813 such as a motor. Reference numeral 809 denotes an input interface for inputting a signal from an input load 814 such as a sensor and transmitting the signal to the CPU 801. Reference numeral 811 denotes an interface for controlling input / output of a key 815 of a control panel (not shown) and a display 816.

【0024】812は通信制御装置(通信専用IC、I
PC)である。図4は通信専用IC(IPC)812の
構成を示すブロック図である。尚、IPC351,45
1,551についても図4の構成と同じである。通信専
用IC812はデュアルポートRAM920、複数の相
手との通信が可能なUART部930、コントロール部
910などから構成される。通信専用IC812には、
CPU801がデュアルポートRAM920のデータを
変更すると、コントロール部910がデュアルポートR
AM920の変更データをUART部930を介して送
信する機能、およびUART部930を介して受信した
データを、コントロール部910でのエラーチェックな
どの処理後、デュアルポートRAM920に設定する機
能が設けられている。尚、IPC451のUART部の
2つのチャネルおよび後述するデュアルポートRAMの
共有データ領域を使用して、IPC451にカスケード
接続されているIPC551は、IPC812と双方向
に通信可能である。
Reference numeral 812 denotes a communication control device (communication dedicated IC, I
PC). FIG. 4 is a block diagram showing the configuration of the communication-only IC (IPC) 812. In addition, IPC351, 45
1, 551 is the same as the configuration of FIG. The communication IC 812 includes a dual port RAM 920, a UART section 930 capable of communicating with a plurality of partners, a control section 910, and the like. The communication dedicated IC 812 includes:
When the CPU 801 changes the data in the dual port RAM 920, the control unit 910 sets the dual port R
A function of transmitting the change data of the AM 920 via the UART unit 930 and a function of setting the data received via the UART unit 930 in the dual port RAM 920 after processing such as an error check in the control unit 910 are provided. I have. The IPC 551 cascaded to the IPC 451 can communicate with the IPC 812 bidirectionally using two channels of the UART section of the IPC 451 and a shared data area of a dual port RAM described later.

【0025】また、RDF300およびソータ400は
通信専用IC812と同じ機能を有する通信専用IC3
51、451をそれぞれ有する。通信専用IC812の
デュアルポートRAM920には、ソータ400および
RDF300から送られた動作状況等の最新のコンディ
ションデータが保存されている。CPU801はデュア
ルポートRAM920をアクセスすることでソータ40
0、RDF300の制御状態を把握することが可能とな
る。また、デュアルポートRAM920にはIPC45
1を介してソータ500から送られたコンディションデ
ータも保存されており、CPU801は同様にソータ5
00の制御状態を把握できる。
Further, the RDF 300 and the sorter 400 are communication dedicated ICs 3 having the same function as the communication dedicated IC 812.
51 and 451, respectively. In the dual-port RAM 920 of the communication-dedicated IC 812, the latest condition data such as the operation status sent from the sorter 400 and the RDF 300 is stored. The CPU 801 accesses the dual-port RAM 920 so that the sorter 40
0, it is possible to grasp the control state of the RDF 300. The dual port RAM 920 has an IPC45
The condition data sent from the sorter 500 via the first sorter 500 is also stored.
00 control state can be grasped.

【0026】また、CPU801がソータ400および
RDF300を制御するためのデータをデュアルポート
RAM920に設定すると、制御データはUART部9
30およびTXラインを介してソータ400およびRD
F300のそれぞれの通信専用IC451、351に送
信される。制御プログラムをそれぞれ内蔵するCPU4
50、350は通信専用IC451、351のデュアル
ポートRAMの制御データをアクセスし、制御データに
応じた前述の制御動作を開始する。同様に、CPU80
1はソータ500を制御するためのデータをデュアルポ
ートRAM920に設定すると、制御データはUART
部930およびTXラインを介してIPC451に送信
され、さらにIPC451にカスケード接続されたIP
C551に送信される。ソータ500のCPU550は
IPC551のデュアルポートRAMの制御データをア
クセスし、制御データに応じた制御動作を開始する。
When the CPU 801 sets data for controlling the sorter 400 and the RDF 300 in the dual port RAM 920, the control data is stored in the UART section 9
30 and the sorter 400 and RD via the TX line
The data is transmitted to the communication-specific ICs 451 and 351 of the F300. CPU 4 with a built-in control program
50 and 350 access the control data of the dual port RAM of the communication-dedicated ICs 451 and 351 and start the above-described control operation according to the control data. Similarly, the CPU 80
1 sets data for controlling the sorter 500 in the dual port RAM 920, and the control data is UART.
Transmitted to the IPC 451 via the unit 930 and the TX line, and further cascaded to the IPC 451.
It is transmitted to C551. The CPU 550 of the sorter 500 accesses the control data of the dual port RAM of the IPC 551 and starts the control operation according to the control data.

【0027】[通信専用IC(IPC)812]通信専
用IC(以下、IPC:Intelligent Pr
otocol Controllerと称す)812
は、前述の図4に示すようにCPU、ROM、RAM、
3ch非同期シリアルインターフェース、BUSインタ
ーフェースを1チップに集積し、自動的にRAM上のデ
ータを送信し、受信データをRAM上に展開する機能を
有する高機能通信制御ICである。
[Communication Dedicated IC (IPC) 812] A communication dedicated IC (hereinafter referred to as IPC: Intelligent Pr)
otocol Controller) 812
CPU, ROM, RAM, as shown in FIG.
This is a high-performance communication control IC having a function of integrating a 3ch asynchronous serial interface and a BUS interface on one chip, automatically transmitting data on the RAM, and expanding received data on the RAM.

【0028】IPC812は、前述したように内部制御
用のコントロール部910、デュアルポートRAM92
0、実際の通信制御を実行するUART部930、およ
び外部(ホスト)と接続するためのBUSインターフェ
ース部940から構成されている。尚、前述したように
IPC351、451、551においても同様の構成を
有する。
The IPC 812 includes a control unit 910 for internal control and a dual port RAM 92 as described above.
0, a UART section 930 for executing actual communication control, and a BUS interface section 940 for connecting to the outside (host). Note that the IPCs 351, 451, and 551 have the same configuration as described above.

【0029】[コントロール部910]コントロール部
910は内部制御を実行するためのROM,RAMが内
蔵されたシングルチップCPU911、タイミング制御
を司るタイマ912、および外部メモリ用のポート91
3から構成されている。
[Control Unit 910] The control unit 910 is a single-chip CPU 911 having a built-in ROM and RAM for executing internal control, a timer 912 for controlling timing, and a port 91 for external memory.
3 is comprised.

【0030】[デュアルポートRAM920]デュアル
ポートRAM920は、データブロック領域921、9
24、アクセスフラグ領域922およびコミュニケーシ
ョンレジスタ領域923に分類される。
[Dual-port RAM 920] The dual-port RAM 920 includes data block areas 921, 9
24, an access flag area 922, and a communication register area 923.

【0031】データブロック領域には非共有データブロ
ック領域921と共有データブロック領域924があ
り、それぞれ後述する各チャネルのTxデータ、Rxデ
ータを格納するための32バイト単位のRAM領域に分
けて使用される。各ブロックとも外部(ホスト)側から
と内部(ローカル)側からの同時アクセス(読み出し・
書き込み)が可能であるが、同一メモリセル(同一バイ
ト)をアクセスした場合、一方がライト動作だとリード
内容は不定となる。
The data block area includes a non-shared data block area 921 and a shared data block area 924. The data block area is divided into 32-byte RAM areas for storing Tx data and Rx data of each channel, which will be described later. You. For each block, simultaneous access (read / read) from external (host) side and internal (local) side
Write) is possible, but if the same memory cell (same byte) is accessed, the read content is undefined if one is a write operation.

【0032】図5は各チャネルで使用するデータブロッ
クの構成を示す図である。各チャネルで使用するデータ
ブロックが3チャネルモードであるとき、および1チャ
ネルモードときの割当ては図示の通りである。共有領域
ではデータブロック間のデータ受け渡しが行われる。
FIG. 5 is a diagram showing a configuration of a data block used in each channel. The assignment when the data block used in each channel is in the 3-channel mode and in the 1-channel mode is as shown in the figure. In the shared area, data transfer between data blocks is performed.

【0033】例えば、チャネル1に接続された機器から
ホストを介さずにチャネル2およびチャネル3に接続さ
れた機器にデータを送信する場合について説明する。図
29はホストを介さずに機器にデータを送信する共有デ
ータ送信処理手順を示すフローチャートである。チャネ
ル1に接続された機器からのデータをCH1共有受信領
域(本実施形態では図7に示すブロック9)で受信する
と(ステップS61)、指定パラメータのRM6、RM
7が値1に設定されている場合(図12(c)参照、ス
テップS61A、S61B)、自動的にCH2、CH3
共有送信領域(本実施形態ではブロック11およびブロ
ック15)にデータが転送される(ステップS62、S
63およびS65、S66)。
For example, a case where data is transmitted from a device connected to channel 1 to a device connected to channels 2 and 3 without going through a host will be described. FIG. 29 is a flowchart showing a shared data transmission processing procedure for transmitting data to a device without going through a host. When data from the device connected to channel 1 is received in the CH1 shared reception area (block 9 shown in FIG. 7 in this embodiment) (step S61), the designated parameters RM6 and RM
When 7 is set to the value 1 (see FIG. 12C, steps S61A and S61B), CH2 and CH3 are automatically set.
The data is transferred to the shared transmission area (blocks 11 and 15 in the present embodiment) (steps S62, S62).
63 and S65, S66).

【0034】その後、ブロックセマフォフラグBS1
1、BS15が“1”にセットされ(ステップS64、
S67)、チャネル2、チャネル3に接続された機器の
共有受信領域への送信処理が自動的に行われる。
Thereafter, the block semaphore flag BS1
1, BS15 is set to "1" (step S64,
S67), the transmission processing of the devices connected to channel 2 and channel 3 to the shared reception area is automatically performed.

【0035】ここで、相手側に接続された他の機器があ
る場合、この処理は開いた側で繰り返される。本実施形
態ではチャネル1からチャネル2、チャネル3へのデー
タ送信だけを示したが、他のチャネル間でホストを介さ
ずにデータの送受信を行う場合も同様である。また同様
に、チャネル1に接続された第1機器からチャネル2に
接続された第2機器へ、さらに第2機器からカスケード
接続された第3機器にデータ転送することも可能であ
る。
Here, if there is another device connected to the other party, this process is repeated on the open side. In the present embodiment, only data transmission from channel 1 to channel 2 and channel 3 has been described, but the same applies to the case where data is transmitted and received between other channels without the intervention of a host. Similarly, it is also possible to transfer data from the first device connected to channel 1 to the second device connected to channel 2, and from the second device to a third device cascade-connected.

【0036】一方、ステップS61A、S61Bで、指
定パラメータのRM6、RM7が値0に設定されている
場合(図12(c)参照)、共有領域へのデータの受け
渡し(受け入れ)が禁止されたデータブロックへの受け
渡しは行われない。すなわち、この場合、チャネル2、
チャネル3へのデータ送信が行われず、処理を終了す
る。
On the other hand, if the designated parameters RM6 and RM7 are set to 0 in steps S61A and S61B (see FIG. 12 (c)), the data transfer (acceptance) to the shared area is prohibited. No delivery is made to the block. That is, in this case, channel 2,
The data transmission to channel 3 is not performed, and the process ends.

【0037】アクセスフラグ領域922はデータブロッ
クの各メモリ番地に対応して1ビットずつ用意されたア
クセスフラグで構成されており、データブロックの最下
位アドレスがアクセスフラグの最下位ビットに対応して
順次上位にビットが割り当てられている。
The access flag area 922 is made up of access flags prepared one bit at a time corresponding to each memory address of the data block, and the lowest address of the data block sequentially corresponds to the lowest bit of the access flag. Bits are assigned to upper bits.

【0038】各アクセスフラグは、対応するメモリ番地
が読み出されると“0”にセットされ、書き込まれると
“1”にセットされる。アクセスフラグは8ビット単位
で読み出されるが、この領域はリードオンリであるの
で、この空間をアクセスしてもアクセスフラグの内容は
変化しない。図6はアクセスフラグ領域を示す図であ
る。
Each access flag is set to "0" when the corresponding memory address is read, and is set to "1" when the corresponding memory address is written. The access flag is read in 8-bit units, but since this area is read-only, even if this space is accessed, the contents of the access flag do not change. FIG. 6 shows an access flag area.

【0039】コミュニケーションレジスタ領域923
は、IPCモード設定レジスタ/IPCエラーレジス
タ、IPC同期レジスタから構成されており、IPCモ
ード設定レジスタ/IPCエラーレジスタはシステムバ
ス上に同一アドレス4バイト分を共有し、前者は書き込
み専用でIPCモード設定(UARTモード設定・UA
RTボーレート設定・動作モード設定)時に使用され、
後者は読み出し専用でIPCに発生したエラー(エラー
チャネル・エラーの種類)判別に使用される。図7はデ
ュアルポートRAM920全体のメモリマッピングを示
す図である。
Communication register area 923
Is composed of an IPC mode setting register / IPC error register and an IPC synchronization register. The IPC mode setting register / IPC error register shares the same address for 4 bytes on the system bus. (UART mode setting / UA
RT baud rate setting / operation mode setting)
The latter is read-only and is used for determining an error (error channel error type) occurring in the IPC. FIG. 7 is a diagram showing the memory mapping of the entire dual port RAM 920.

【0040】IPC同期レジスタはホストCPUとロー
カルCPUのハンドシェイクのためのレジスタであり、
ブロックセマフォフラグ18ビット(BS0〜BS1
7)およびレディフラグ1ビット(IPC_RDY)か
ら構成されている。図8はIPC同期レジスタの構成を
示す図である。BS0〜BS17は各UART部の送信
・受信動作と関連しており、BS0,2,4,6,7,
8,10,11,12,14,15,16は各UART
部の送信制御用のセマフォフラグであり、“1”にセッ
トすることで各UARTの送信が開始され、送信終了後
ローカルCPUにより“0”にリセットされる。BS
1,3,5,9,13,17は各UART部の受信制御
用のセマフォフラグであり、各UART部において受信
が完了する度にローカルCPUにより“1”にセットさ
れる。
The IPC synchronization register is a register for handshaking between the host CPU and the local CPU.
Block semaphore flag 18 bits (BS0 to BS1
7) and 1 bit of ready flag (IPC_RDY). FIG. 8 shows the configuration of the IPC synchronization register. BS0 to BS17 are related to the transmission / reception operations of each UART unit, and BS0, 2, 4, 6, 7, and
8, 10, 11, 12, 14, 15, 16 are each UART
This is a semaphore flag for controlling the transmission of the UART. When the semaphore flag is set to "1", transmission of each UART is started. BS
Reference numerals 1, 3, 5, 9, 13, and 17 denote semaphore flags for controlling reception of each UART section, and are set to "1" by the local CPU each time reception is completed in each UART section.

【0041】[UART部930]UART部は3チャ
ネルのUARTを内蔵しており、それぞれの機能は全て
等価である。また、3チャネルのUARTはボーレート
ジェネレータをそれぞれ内蔵しているので、完全に独立
して動作させることが可能である。各チャネルは3つの
外部端子TxD(送信出力)、RxD(受信入力)、コ
ントロール出力と、内部レジスタTxB(送信バッファ
レジスタ)、RxB(受信バッファレジスタ)、STA
TUS(ステータスレジスタ)、MODE(モードレジ
スタ)、CONTROL(制御レジスタ)、BAUDR
ATE(ボーレートジェネレータ)を有し、また、3チ
ャネル共用のCLK端子(ボーレート外部クロック入
力)を有する。
[UART part 930] The UART part has three channels of UARTs, and all functions are equivalent. Further, since the three-channel UART has a built-in baud rate generator, it can be operated completely independently. Each channel has three external terminals TxD (transmission output), RxD (reception input), control output, internal registers TxB (transmission buffer register), RxB (reception buffer register), and STA.
TUS (status register), MODE (mode register), CONTROL (control register), BAUDR
It has an ATE (baud rate generator) and a CLK terminal (baud rate external clock input) shared by three channels.

【0042】前記コントロール出力はチャネル1から順
にINTR、RxRDY、LINEERRとなってい
る。INTRはUARTエラーが発生した場合、割込み
要求を出力し、このとき、エラーレジスタを読み出すこ
とによりエラーを起こしたチャネルおよびその内容を知
ることができる。
The control outputs are INTR, RxRDY, and LINEERR in order from channel 1. When a UART error occurs, the INTR outputs an interrupt request. At this time, by reading the error register, the channel in which the error has occurred and the content thereof can be known.

【0043】図9はRxRDYとブロックセマフォとの
関係を示すタイミングチャートである。図示するよう
に、RxRDYはパケットの受信が完了し、受信用デー
タブロックのBSがセットされると同時に“L”を出力
する。全チャネルの受信ブロックのBSが全て“0”に
なると、RxRDYは“H”に戻るようになっている。
FIG. 9 is a timing chart showing the relationship between RxRDY and the block semaphore. As shown in the drawing, RxRDY outputs "L" at the same time when the reception of the packet is completed and the BS of the reception data block is set. When all the BSs of the reception blocks of all channels become "0", RxRDY returns to "H".

【0044】LINEERRは通信回線エラー出力であ
り、チャネル1,2,3のいずれかで回線エラー(パリ
ティー、フレーミング)が発生したときに約6usのパ
ルスを出力するようになっている。
LINEERR is a communication line error output. When a line error (parity or framing) occurs in one of channels 1, 2, and 3, a pulse of about 6 us is output.

【0045】[BUSインターフェース940]ホスト
側とIPCを結ぶBUSインターフェースは (1)アドレス8ライン (2)データ8ライン (3)制御用CS,WR,RD それぞれ1ラインから構成されている。
[BUS Interface 940] The BUS interface connecting the host and the IPC is composed of (1) eight lines of address, (2) eight lines of data, and (3) control CS, WR, and RD, each one line.

【0046】[システムソフトウェア]IPCのシステ
ムソフトウェアについて説明する。このソフトウェア
は、IPCの内部制御およびUARTによるパケット通
信、ホストCPUとの情報交換、および同期を取るため
ものである。IPCはUARTを介して他のIPCとの
通信においてエラーの回復、初期化を行い、正しいデー
タだけをデュアルポートRAMに格納し、ホストCPU
に渡す機能を有する。
[System Software] The system software of the IPC will be described. This software is for internal control of the IPC and packet communication by the UART, information exchange with the host CPU, and synchronization. The IPC performs error recovery and initialization in communication with another IPC via the UART, stores only correct data in the dual port RAM,
Has the function of passing to

【0047】[パワーオンリセット]電源投入後、各種
ポート、タイマ、レジスタなどの初期化を行い、ホスト
コンピュータからのモード設定の終了後、UARTを起
動して通信処理に入る。
[Power-On Reset] After the power is turned on, various ports, timers, registers, etc. are initialized, and after the mode setting from the host computer is completed, the UART is started to start communication processing.

【0048】[モード設定]モード指定には、次の3種
類がある。
[Mode Setting] There are the following three types of mode designation.

【0049】(1)UARTモード指定 IPCM(IPCモード設定レジスタ)1,2,3への
パラメータの設定でデータ長、パリティ、ストップビッ
トを決定する。図10はパラメータとモードの関係を示
す図である。
(1) UART mode designation The data length, parity, and stop bits are determined by setting parameters in IPCM (IPC mode setting register) 1, 2, and 3. FIG. 10 is a diagram showing the relationship between parameters and modes.

【0050】(2)UARTボーレート指定 同様に、IPCM1,2,3へのパラメータの設定でボ
ーレートを決定する。図11はシステムクロック=9.
216Mzにおけるパラメータとボーレートの関係を示
す図である。
(2) UART baud rate designation Similarly, the baud rate is determined by setting parameters for IPCMs 1, 2, and 3. FIG. 11 shows the system clock = 9.
It is a figure which shows the relationship between a parameter and baud rate in 216Mz.

【0051】(3)IPC動作モード指定 IPCM(IPCモード設定レジスタ)にIPC動作モ
ードコマンドがセットされると、IPCM1にセットさ
れているパラメータにより動作モードを設定し、データ
ブロック全域を“00H”でクリアする。図12は指定
パラメータの値を示す図である。
(3) IPC operation mode designation When the IPC operation mode command is set in the IPCM (IPC mode setting register), the operation mode is set by the parameters set in IPCM1, and the entire data block is set to "00H". clear. FIG. 12 is a diagram showing values of designated parameters.

【0052】RM0=1、RM1=0である場合、1チ
ャネル動作の動作モードである。RM0=1、RM1=
1である場合、3チャネル動作の動作モードである。ま
た、受け渡しモードでは、RM5=0、RM6=0、R
M7=0である場合、それぞれチャネル1、チャネル
2、チャネル3への受け渡し禁止であり、RM5=1、
RM6=1、RM7=1である場合、それぞれチャネル
1、チャネル2、チャネル3への受け渡し許可である。
When RM0 = 1 and RM1 = 0, the operation mode is one-channel operation. RM0 = 1, RM1 =
When it is 1, the operation mode is a three-channel operation mode. In the transfer mode, RM5 = 0, RM6 = 0, R
When M7 = 0, transfer to channel 1, channel 2, and channel 3 is prohibited, and RM5 = 1,
When RM6 = 1 and RM7 = 1, the transfer to channel 1, channel 2, and channel 3 is permitted.

【0053】RM0=1、RM1=0として1チャネル
動作を指定すると、データブロックの0,1,2をTx
用、3,4,5をRx用として使用する。動作モードを
指定すると、動作モードにより該当するTx用データブ
ロックのBSフラグをセットする。モード指定後にイニ
シャル通信を完了した場合、リセットする。
When one-channel operation is designated by setting RM0 = 1 and RM1 = 0, data blocks 0, 1 and 2 are set to Tx
And 3, 4, and 5 are used for Rx. When the operation mode is designated, the BS flag of the Tx data block corresponding to the operation mode is set. Reset when the initial communication is completed after the mode is specified.

【0054】[通信]IPCのパケット通信について説
明する。図13はパケットの構造を示す図である。パケ
ットはヘッダ部H、アドレス部A、データ部Dn、チェ
ックサム部CKで構成されている。図14はヘッダ部H
の構成を示す図である。ヘッダ部Hは上位4ビット(図
中、B7〜B4)でパケットの種類を示し、最終パケッ
トPE、再送要求コードPR、イニシャル通信要求コード
PS、継続パケットP、アイドルパケットPi、キャン
セルコードPcの6種を有する。図15はパケットの種
類を示す図である。
[Communication] IPC packet communication will be described. FIG. 13 shows the structure of a packet. The packet includes a header H, an address A, a data Dn, and a checksum CK. FIG. 14 shows the header H
FIG. 3 is a diagram showing the configuration of FIG. The header portion H indicates the type of the packet by the upper four bits (B7 to B4 in the figure), and includes the last packet PE, retransmission request code PR, initial communication request code PS, continuation packet P, idle packet Pi, and cancel code Pc. Have seeds. FIG. 15 is a diagram showing types of packets.

【0055】下位4ビット(図13中、B3からB0)
でデータ長を示し、データ長は0〜16バイトである。
アドレス部Aはアドレスデータに続いて送出されるデー
タ部(D0)のアドレスを示す。データ部Dnは最大1
6バイトのデータを含むことができる。チェックサム部
CKはパケットの最後に付加されるものであり、その内
容はヘッダ部から最後のデータまでを加算し(桁上げ無
視)、加算した結果を反転したものである。
Lower 4 bits (B3 to B0 in FIG. 13)
Indicates the data length, and the data length is 0 to 16 bytes.
The address part A indicates the address of the data part (D0) transmitted following the address data. Data part Dn is maximum 1
It can include 6 bytes of data. The checksum part CK is added to the end of the packet, and the contents thereof are obtained by adding the data from the header part to the last data (ignoring the carry) and inverting the result of the addition.

【0056】[パケット内容]それぞれのパケットにつ
いて説明する。図16はパケット種類と制御コードの関
係を示す図である。始めに、継続パケットPはこのパケ
ットの後にも送出すべきパケットがあることを示す。パ
ケット長は4〜19バイトである。最終パケットPEは
このパケットの後にはデータパケットが無いことを示
し、パケット長は4〜19バイトである。アイドルパケ
ットPiは送信アドレスのメモリチェックサムD0だけ
を含み、4バイトで構成されている。再送要求コードP
Rはパケットの再送要求で1バイトで構成される。
[Packet Content] Each packet will be described. FIG. 16 is a diagram showing the relationship between packet types and control codes. First, the continuation packet P indicates that there is a packet to be transmitted after this packet. The packet length is 4 to 19 bytes. The last packet PE indicates that there is no data packet after this packet, and the packet length is 4 to 19 bytes. The idle packet Pi includes only the memory checksum D0 of the transmission address and is composed of 4 bytes. Retransmission request code P
R is a packet retransmission request and is composed of one byte.

【0057】イニシャル通信要求コードPSは全データ
の転送要求で1バイトで構成される。キャンセルコード
PCはPRに対する応答であり、送信中または送信したパ
ケットのキャンセルを示し、1バイトで構成される。
The initial communication request code PS is a transfer request for all data and is composed of one byte. The cancel code PC is a response to PR and indicates cancellation of a packet being transmitted or transmitted, and is composed of one byte.

【0058】[通信インターバル]図17は通信時のイ
ンターバルを示す図である。データ間インターバルTD
intは100usから330usであり、パケット間
インターバルTPintは700us(96kbps
時)、または2000us(48kbps未満)であ
る。
[Communication Interval] FIG. 17 is a diagram showing intervals during communication. Data interval TD
int is from 100 us to 330 us, and the interval TPint between packets is 700 us (96 kbps).
Hour) or 2000 us (less than 48 kbps).

【0059】[通信タイミング] 1.イニシャル通信(電源投入時) 図18はイニシャル通信を示すタイミングチャートであ
る。同図中のタイミングで自局IPCが立ち上がると、
Txintの間隔でPsを送信し始める。同図中のタイ
ミングで相手局IPCが立ち上がることで、Psを受信
しかつPsを送信することにより通常通信となる(図に
おいて、TXint=4msである)。
[Communication Timing] Initial communication (when power is turned on) FIG. 18 is a timing chart showing the initial communication. When the own station IPC starts up at the timing shown in FIG.
Start transmitting Ps at intervals of Txint. When the partner station IPC rises at the timing shown in the figure, Ps is received and Ps is transmitted, so that normal communication is established (TXint = 4 ms in the figure).

【0060】2.通常通信 図19は通常通信を示すタイミングチャートである。通
常通信では、3ch独立で通信制御が行われている。イ
ベント(ホストからの送信請求、または相手局からの受
信)が無いとき、Txintの間隔でPiの送受信が行
われており、イベントが発生すると(同図中、a:ホス
トからの送信要求、b:相手局からの受信)、前述した
通りPまたはPEの送受信が実行される。(図におい
て、Txint=4ms,Rxint=12msであ
る)。
2. Normal Communication FIG. 19 is a timing chart showing normal communication. In normal communication, communication control is performed independently for 3 channels. When there is no event (transmission request from the host or reception from the partner station), Pi transmission / reception is performed at intervals of Txint, and when an event occurs (a: transmission request from host, b in the figure) : Reception from the partner station), transmission or reception of P or PE is performed as described above. (In the figure, Txint = 4 ms, Rxint = 12 ms).

【0061】[通信エラー発生と回復]IPCは、各チ
ャネル毎に受信データエラーが生じた場合、自動回復処
理を行う機能を有している。エラーの種類の中には、回
線に起因するものとしてパリティーエラー、チェックサ
ムエラー、フレーミングエラーがあり、その他、通信過
多によるデータ損失、相手側IPCのリセット、電源オ
フ等がある。
[Communication Error Occurrence and Recovery] The IPC has a function of performing an automatic recovery process when a reception data error occurs for each channel. Among the types of errors, there are parity errors, checksum errors, and framing errors as the ones caused by the line. In addition, there are data loss due to excessive communication, reset of the partner IPC, power off, and the like.

【0062】図20は通信エラー発生と自動回復処理を
示すタイミングチャートである。PE,Piパケット受
信(同図中)では、エラーが発生するとそのパケットの
再送を要求するPRを送出し、相手からのPc応答と再
送パケットを待つ(同図A)。
FIG. 20 is a timing chart showing communication error occurrence and automatic recovery processing. In the reception of the PE and Pi packets (in the figure), if an error occurs, a PR requesting retransmission of the packet is sent out, and a Pc response from the other party and a retransmission packet are awaited (A in the figure).

【0063】リセットなどでデータを喪失し、Pパケッ
ト(同図中)でエラーが発生した場合は、Pを送信して
速やかに通信データの回復を行う(同図中B)。
When data is lost due to a reset or the like and an error occurs in a P packet (in the figure), P is transmitted and communication data is immediately recovered (B in the figure).

【0064】エラー回復処理を行っても通信エラーが回
復しない場合、IPCはエラーの生じたチャネルをER
Rレジスタに、そのエラーの種類をERRn(n=1,
2,3、nはエラーチャネルに該当する)にそれぞれセ
ットし、同時に外部に割り込み要求を発生する。
If the communication error is not recovered even after the error recovery processing, the IPC sets the erroneous channel to ER.
In the R register, the type of the error is ERRn (n = 1,
2, 3, and n correspond to error channels), and simultaneously generate an external interrupt request.

【0065】図21はERRレジスタの構造を示す図で
ある。ERRレジスタでは、エラーしたチャネルに該当
するビットを“1”にする(EU1:チャネル1、EU
2:チャネル2、EU3:チャネル3)。ERRnで
は、エラーチャネルに該当するレジスタのエラー種類に
該当するビットをセットする(RXPR3:同一パケッ
トを3回再送、TXPR3:パケット受信中に同一パケ
ットにおいて3回送信、TOUT:受信データエラー、
PIER:相手局Tx用データブロックのチェックサム
と自局Rx用データブロックのチェックサムが不一
致)。
FIG. 21 shows the structure of the ERR register. In the ERR register, the bit corresponding to the erroneous channel is set to “1” (EU1: channel 1, EU
2: channel 2, EU3: channel 3). In ERRn, a bit corresponding to an error type of a register corresponding to an error channel is set (RXPR3: retransmitting the same packet three times, TXPR3: transmitting three times in the same packet during packet reception, TOUT: receiving data error,
PIER: The checksum of the data block for the partner station Tx does not match the checksum of the data block for the own station Rx).

【0066】1.Piパケットによるメモリチェックサ
ムの照合とエラー 前述した通り、Piパケットにはメモリチェックサム
(D0)があり、Piパケットを受信したときには、そ
のパケットのD0と自局受信ブロックのメモリチェック
サムD0を比較し、同一であることを確認する。違って
いた場合、Psを送信し、イニシャル通信を促すことで
相手局Tx用データブロックと自局Rx用データブロッ
クのデータの一致を保つ。
1. Verification and error of memory checksum by Pi packet As described above, a Pi packet has a memory checksum (D0), and when a Pi packet is received, the D0 of the packet is compared with the memory checksum D0 of the own station reception block. And make sure they are the same. If they are different, Ps is transmitted to prompt initial communication, thereby keeping the data block of the partner station Tx and the data block of the own station Rx consistent.

【0067】2.受信データの遅延タイムアウト 受信が12ms以上されなかった場合、タイムアウトエ
ラーとしてイニシャル通信要求Psを送り、相手の復帰
を待つ。
2. If the received data has not been received for 12 ms or longer, an initial communication request Ps is sent as a time-out error, and the partner waits for a return.

【0068】3.通信条件 データ転送は、ホストCPUより送信ブロックのBSが
セットされたことを確認した場合、あるいはホスト側よ
りデータの更新が行われたにもかかわらず、BSフラグ
が約100ms間セットされない場合に開始される(転
送完了2ms後にBSをリセットする)。
3. Communication conditions Data transfer starts when the host CPU confirms that the BS of the transmission block has been set, or when the BS flag has not been set for about 100 ms even though data has been updated from the host. (The BS is reset 2 ms after the completion of the transfer).

【0069】また、何らかの原因によりデータにエラー
が生じ、イニシャル通信要求が発生した場合、または受
信した場合に行われる。
Further, this is performed when an error occurs in the data for some reason and an initial communication request is generated or received.

【0070】前記条件時、即ち送信要求が発生すると、
IPCはTxブロック内の更新されたデータのある位置
を検出し、更新された最上位アドレスから最下位アドレ
スまでの範囲をパケットとして送出することで通信処理
の効率化を図っている。
Under the above conditions, that is, when a transmission request occurs,
The IPC detects the location of the updated data in the Tx block, and sends out the updated range from the highest address to the lowest address as a packet to improve the efficiency of communication processing.

【0071】図22はデータ通信処理の効率化を示す図
である。更新されたデータ(図中、斜線部)を検出し
(アクセスフラグの変化により検出)、検出されたデー
タは08Hから13Hまでの12バイトをデータとする
PEパケットとして送出される。検出されたデータ範囲
が16バイトを越えた場合、16バイトデータのPパケ
ットと残りのデータを含むPEパケットとして送出され
る。また、パケット内のデータは必ず最上位アドレスか
ら送信されるように構成されている。
FIG. 22 shows the efficiency of the data communication process. The updated data (the hatched portion in the figure) is detected (detected by a change in the access flag), and the detected data is transmitted as a PE packet having data of 12 bytes from 08H to 13H. If the detected data range exceeds 16 bytes, it is transmitted as a P packet of 16-byte data and a PE packet containing the remaining data. The data in the packet is always transmitted from the highest address.

【0072】[応用例]ホスト側からのIPCのアクセ
スについて説明する。ハードウェア上は、外部メモリデ
バイス(RAM等)をアクセスする場合と同様に構成さ
れるので、特に詳細に説明しない。ソフトウェアについ
ては順を追って説明する。
[Application Example] Access of the IPC from the host side will be described. The hardware is configured in the same way as when an external memory device (RAM or the like) is accessed, and therefore will not be described in detail. The software will be described step by step.

【0073】[初期化]図23はIPCイニシャライズ
処理手順を示すフローチャートである。コミュニケーシ
ョンレジスタ領域内のレディフラグ(IPC_RDY)
が“1”であることを確認してUARTモード指定、U
ARTボーレート指定、IPC動作モード指定を行う
(ステップS1〜S6)。前述した通り、3ch使用時
にはUARTモード、UARTボーレートのいずれも独
立に設定可能である。モード指定が終了し、使用チャネ
ルのTX用BSが“0”になることで初期化を終了する
(ステップS7、S8)。以後、3チャネルモード時で
は3チャネルとも等価であるので、チャネル1使用時に
ついてだけ説明する。
[Initialization] FIG. 23 is a flowchart showing the procedure of the IPC initialization processing. Ready flag in communication register area (IPC_RDY)
Is "1" and the UART mode is specified.
An ART baud rate and an IPC operation mode are specified (steps S1 to S6). As described above, when using 3 ch, both the UART mode and the UART baud rate can be set independently. When the mode designation is completed and the TX BS of the used channel becomes “0”, the initialization ends (steps S7 and S8). Hereinafter, since all three channels are equivalent in the three-channel mode, only the case where channel 1 is used will be described.

【0074】[送信処理]ホスト側で送信を行いたいデ
ータが生じた場合、BS0が“0”、即ち前回の送信処
理がIPCの方で完了していることを確認した後、この
データをTXブロック内の所望のアドレスに書き込み、
BS0を“1”にセットすることで送信処理が自動的に
行われる。
[Transmission processing] When data to be transmitted occurs on the host side, after confirming that BS0 is "0", that is, that the previous transmission processing has been completed by the IPC, this data is transmitted to the TX. Write to the desired address in the block,
The transmission process is automatically performed by setting BS0 to “1”.

【0075】図24はデータ送信処理手順を示すフロー
チャートである。複写機本体から付加装置に対して動作
の開始指令を送信する場合を示す。この場合、動作を開
始させるために“動作モード”、“動作パラメータ”、
“動作開始指令”の3バイトのデータが必要であるとす
る。
FIG. 24 is a flowchart showing the data transmission processing procedure. A case in which an operation start command is transmitted from the copier body to the additional device will be described. In this case, "operation mode", "operation parameter",
It is assumed that 3-byte data of “operation start command” is required.

【0076】始めに、BS0が“0”であるか否かを確
認し(ステップS11)、肯定であれば、“動作パラメ
ータ”をIPCのTXブロックの06Hに、“動作モー
ド”をTXブロックの05Hに、“動作開始指令”をT
Xブロックの04Hにそれぞれ格納し(ステップS1
2)、送信を開始するためにBS0を“1”にセットす
る(ステップS13)。この場合、BS0をセットしな
くても、前述した通り約100ms後に送信が開始され
る。
First, it is confirmed whether or not BS0 is "0" (step S11). If affirmative, the "operation parameter" is set to 06H of the TX block of the IPC and the "operation mode" is set to the TX block of the TX block. At 05H, the "operation start command"
Each is stored in 04H of the X block (step S1).
2), BS0 is set to "1" to start transmission (step S13). In this case, even if BS0 is not set, transmission starts about 100 ms later as described above.

【0077】前述した通り、TXブロックのデータは上
位アドレスから送信されるので、相手局(付加装置)に
は“動作パラメータ”、“動作モード”、“動作開始指
令”の順にデータが届くことになる。送信側では送信デ
ータの優先順位を考慮してデータのTXブロック内の配
置を決定しておけばよく、実際の送信処理の時に煩わし
い送信データの優先処理等を行う必要がない。したがっ
て、データ量が多くより複雑になるほど、従来の通信I
Cに比べて通信処理にかかるソフトウェアの負担を小さ
くすることができる。
As described above, since the data of the TX block is transmitted from the upper address, the data arrives at the partner station (additional device) in the order of “operation parameter”, “operation mode”, and “operation start command”. Become. The transmission side may determine the arrangement of the data in the TX block in consideration of the priority of the transmission data, and does not need to perform cumbersome transmission data priority processing or the like at the time of actual transmission processing. Therefore, as the amount of data becomes larger and more complicated, the conventional communication I
As compared with C, the load on software for communication processing can be reduced.

【0078】本実施形態ではチャネル1の場合だけを説
明したが、3チャネル独立であるので、同時に3チャネ
ル分の送信を実行する場合でもソフトウェア上では、他
のチャネルとは無関係に処理を行うことができ、効率
化、簡便化を図ることができる。
In this embodiment, only the case of channel 1 has been described. However, since the channels are independent of each other, it is possible to perform processing independently on other channels on software even when transmitting three channels simultaneously. Thus, efficiency and simplification can be achieved.

【0079】ホスト側からチャネル1につながる全ての
チャネルにデータを送信する場合、BS6が“0”すな
わち前回の送信処理がIPCの方で完了していることを
確認した後、このデータをCH1共有送信領域(本実施
形態ではブロック6)に書き込み、BS6を“1”にセ
ットすることで送信処理が自動的に行われる。他チャネ
ルに対して共有データ送信をする場合も同様の操作を行
う。また、相手局にデータが届いた後の他チャネルへの
送信も可能である。
When transmitting data from the host to all the channels connected to channel 1, after confirming that BS6 is "0", that is, the previous transmission processing is completed by the IPC, this data is shared by CH1. By writing to the transmission area (block 6 in the present embodiment) and setting BS6 to "1", transmission processing is automatically performed. The same operation is performed when transmitting shared data to another channel. Further, transmission to another channel after the data reaches the partner station is also possible.

【0080】[受信処理]ホスト側で受信データを読み
込みたい場合、RAMなどから読み込む場合と同様にア
クセスすることでデータを読み込むことができる。但
し、前述した通り、デュアルポートRAMへのIPC側
からの書き込みとホスト側からの読み込みが衝突した場
合、読み込みデータの値が不定となるが、RAMデータ
の二度読みを行うことで前述した問題を解決できる。
[Reception Processing] When the host wants to read the received data, the data can be read by accessing the host in the same manner as when reading from the RAM or the like. However, as described above, when the writing from the IPC side to the dual port RAM and the reading from the host side collide, the value of the read data becomes indefinite, but the above-described problem is caused by reading the RAM data twice. Can be solved.

【0081】図25はデータ受信処理手順を示すフロー
チャートである。例えば、所望のアドレスの内容をアキ
ュムレータAにロードし(ステップS21)、さらに、
続けて同アドレスの内容を他のレジスタBにロードし
(ステップS22)、アキュムレータAの内容と比較す
る(ステップS23)。比較の結果、等しい場合、この
アキュムレータAの内容を受信データとして確定し(ス
テップS25)、違っていた場合、もう一度、アキュム
レータAにロードした内容を受信データとして確定する
ことができる(ステップS24、S25)。
FIG. 25 is a flowchart showing the data reception processing procedure. For example, the contents of a desired address are loaded into the accumulator A (step S21), and further,
Subsequently, the contents of the same address are loaded into another register B (step S22), and compared with the contents of the accumulator A (step S23). As a result of the comparison, if they are equal, the contents of the accumulator A are determined as received data (step S25). If they are different, the contents loaded into the accumulator A can be determined again as received data (steps S24 and S25). ).

【0082】また、別の方法として、BS1が“1”に
セットされたことを確認した後にデータを読み込むこと
でデュアルポートRAMにおける衝突を回避することが
できる。但し、読み込んだ後にホスト側でBS1を
“0”にリセットすることが必要になる。図26は別の
データ受信処理手順を示すフローチャートである。ホス
ト側から共有領域で受信したデータを読み込みたい場
合、上記と同様な方法で共有受信ブロックの内容を読み
込む(ステップS31〜S34)。
As another method, collision can be avoided in the dual port RAM by reading data after confirming that BS1 is set to "1". However, it is necessary to reset BS1 to "0" on the host side after reading. FIG. 26 is a flowchart showing another data reception processing procedure. When it is desired to read data received from the host in the shared area, the contents of the shared reception block are read in the same manner as described above (steps S31 to S34).

【0083】[エラー処理]“INTR”端子、または
エラーレジスタにエラーステータスがセットされた場
合、ホスト側のシステム構成にしたがって自由に処理を
行うことができる。
[Error Processing] When an error status is set in the "INTR" terminal or the error register, processing can be performed freely according to the system configuration on the host side.

【0084】図27はマスター側エラー処理手順を示す
フローチャートである。システム上のマスター機器(複
写機本体)側では、エラー発生後、200msの間にI
PCによってエラーが自動復帰されない場合、システム
エラーとし、ディスプレイ上にその旨を表示する(ステ
ップS41〜S44)。また、図示しないが、1秒間に
3回以上エラーが発生した場合もシステムエラーとして
いる。
FIG. 27 is a flowchart showing a master-side error processing procedure. On the master device (copier body) side of the system, after an error occurs, I
If the error is not automatically reset by the PC, it is regarded as a system error, and that fact is displayed on the display (steps S41 to S44). Although not shown, a system error is also defined when an error occurs three times or more per second.

【0085】図28はスレーブ側エラー処理手順を示す
フローチャートである。送信側の通信ラインが断線した
場合、原則としてIPCはエラーステータスをセットし
ない。故に、マスター機器の送信ラインが断線した場
合、この機器にはエラーステータスが発生しない。但
し、受信側ではタイムアウトエラーとしてエラーが発生
するので、システムの構成上、スレーブ側(本実施形態
ではRDF、ソータ等)でタイムアウトエラーが発生
し、所定時間内(機器動作中は200ms、非動作中は
5000ms)にIPCがエラーより自動復帰しない場
合、IPCの通信ボーレートを切り換えることによっ
て、マスター機器(本実施形態では複写機本体)にエラ
ーを発生させてシステムエラー表示を行う(ステップS
51〜S59)。但し、前述した主従関係は、通信処理
上の主従関係ではなく、あくまでもエラー処理上のもの
である。
FIG. 28 is a flowchart showing the procedure of error processing on the slave side. When the communication line on the transmitting side is disconnected, the IPC does not set an error status in principle. Therefore, if the transmission line of the master device is disconnected, no error status is generated for this device. However, since an error occurs as a timeout error on the receiving side, a timeout error occurs on the slave side (RDF, sorter, etc. in the present embodiment) due to the system configuration, and within a predetermined time (200 ms during device operation, non-operation If the IPC does not automatically recover from the error within 5000 ms), an error is generated in the master device (the copying machine body in this embodiment) by switching the communication baud rate of the IPC and a system error display is performed (step S).
51-S59). However, the master-slave relationship described above is not a master-slave relationship in communication processing, but is only an error process.

【0086】以上示したように、本実施形態では、チャ
ネル1に接続された機器からホストを介さずにチャネル
2およびチャネル3に接続された機器にデータを送信す
る場合、チャネル1に接続された機器からのデータを共
有データブロック領域924のCH1共有受信領域で受
信すると、自動的にCH2、CH3共有送信領域にデー
タが転送される。その後、チャネル2、チャネル3に接
続された機器の共有受信領域への送信処理が自動的に行
われる。また、チャネル1に接続された第1機器からチ
ャネル2に接続された第2機器へ、さらに第2機器から
カスケード接続された第3機器にデータ転送することも
可能である。そして、指定パラメータにより共有領域へ
のデータの受け渡しが禁止されている場合、禁止された
共有データブロック領域へのデータの受け渡しは行われ
ず、チャネル2、チャネル3などにデータが送信されな
い。
As described above, in this embodiment, when data is transmitted from the device connected to channel 1 to the devices connected to channel 2 and channel 3 without passing through the host, the connection to channel 1 occurs. When data from the device is received in the CH1 shared reception area of the shared data block area 924, the data is automatically transferred to the CH2 and CH3 shared transmission areas. Thereafter, the transmission processing to the shared reception area of the devices connected to the channels 2 and 3 is automatically performed. It is also possible to transfer data from the first device connected to channel 1 to the second device connected to channel 2 and from the second device to a third device cascaded. When the transfer of data to the shared area is prohibited by the designated parameter, the transfer of data to the prohibited shared data block area is not performed, and the data is not transmitted to channel 2, channel 3, or the like.

【0087】尚、上記実施の形態では、複写装置とその
付加装置(ソータ、RDF)から構成されるシステムを
例にとって説明したが、本発明はこれに限定されるもの
ではなく、複数の装置間でデータの通信を行うすべての
システムに適用可能なものである。
Although the above embodiment has been described with reference to an example of a system including a copying apparatus and an additional apparatus (sorter, RDF), the present invention is not limited to this. It is applicable to all systems that perform data communication.

【0088】[0088]

【発明の効果】本発明の請求項1に記載の通信制御装置
によれば、第1機器を制御する第1機器制御手段によっ
てアクセスされるデータ、および第2機器を制御する第
2機器制御手段によってアクセスされるデータの通信
を、第1通信ポートを介して前記第1機器との間で行う
際、データ受信手段により前記第1通信ポートから受信
したデータを第1データ記憶領域に記憶し、データ転送
手段により該第1データ記憶領域に記憶されたデータを
第2データ記憶領域に転送し、該第2データ記憶領域に
転送されたデータを、データ送信手段により第2通信ポ
ートを介して前記第1機器に対してカスケード接続され
た第3機器に送信する際、前記データ転送手段による前
記第1データ記憶領域から前記第2データ記憶領域への
データ転送を禁止あるいは許可に設定する設定手段によ
りデータ転送が許可に設定された場合、前記第1および
第2機器制御手段を介在させることなく、前記第1機器
と前記第3機器との間でデータの通信を行うので、複数
のシリアルポート間のデータ転送を、装置の負荷制御な
どに使用しているマイクロプロセッサの関与無しに行う
ことができる。これにより、装置内の負荷制御への影響
をなくすことができる。
According to the communication control device of the present invention, the data accessed by the first device control means for controlling the first device and the second device control means for controlling the second device are provided. When performing communication of data accessed by the first device via the first communication port, the data received from the first communication port by the data receiving means is stored in the first data storage area, The data stored in the first data storage area is transferred to the second data storage area by data transfer means, and the data transferred to the second data storage area is transferred to the second data storage area by the data transmission means via the second communication port. When transmitting to the third device cascaded to the first device, data transfer from the first data storage area to the second data storage area by the data transfer means is prohibited. Or when the data transfer is set to be permitted by the setting device that sets the data transfer between the first device and the third device without intervening the first and second device control devices. Therefore, data transfer between a plurality of serial ports can be performed without involvement of a microprocessor used for load control of the device. Thereby, the influence on the load control in the device can be eliminated.

【0089】また、特定のシリアルポートに接続された
装置間のデータ授受は従来の方式で行われるので、効率
が落ちることなく、複写装置のようにリアルタイム性が
重視される装置に有効である。
Further, since data transmission and reception between devices connected to a specific serial port is performed by a conventional method, it is effective for a device in which real-time performance is important such as a copying device without lowering efficiency.

【0090】さらに、ブリッジ機能の利用を抑制する機
能を併せ持つことにより通信経路が使用されてしまい直
接接続されているデータの授受に支障を来すことを回避
できる。このように、ブリッジ機能により転送されるデ
ータの影響を受けることなく、リアルタイム性が要求さ
れる高精度のシステム制御を行うことができる。尚、請
求項7に記載の通信制御方法および請求項8に記載の通
信制御システムにおいても同様の効果を得ることができ
る。
Further, by having the function of suppressing the use of the bridge function, it is possible to prevent the communication path from being used and hindering the transfer of directly connected data. As described above, it is possible to perform high-accuracy system control that requires real-time performance without being affected by data transferred by the bridge function. The same effect can be obtained in the communication control method according to the seventh aspect and the communication control system according to the eighth aspect.

【0091】請求項2に記載の通信制御装置によれば、
前記カスケード接続された第3機器との通信に使用され
る第1および第2データ記憶領域の他に、前記第2機器
制御手段によってアクセスされるデータの通信だけに使
用される第3データ記憶領域を有するので、通信モード
に適した使用を可能にする。
According to the communication control device of the second aspect,
In addition to the first and second data storage areas used for communication with the third device connected in cascade, a third data storage area used only for communication of data accessed by the second device control means , So that use suitable for the communication mode is enabled.

【0092】請求項3に記載の通信制御装置によれば、
前記第2機器制御手段によってアクセスされたことを記
憶するアクセス情報記憶手段を備えたので、アクセス情
報に基づいて通信を開始できる。
According to the communication control device of the third aspect,
Since the apparatus has the access information storing means for storing the access by the second device control means, the communication can be started based on the access information.

【0093】請求項4に記載の通信制御装置によれば、
通信を行う際の同期手順を記憶する同期手順記憶手段を
備えたので、送信処理などを自動的に行うことができ
る。
According to the communication control device of the fourth aspect,
Since a synchronization procedure storage unit for storing a synchronization procedure for performing communication is provided, transmission processing and the like can be automatically performed.

【0094】請求項5に記載の通信制御装置によれば、
前記第1および第2データ記憶領域は前記第3データ記
憶領域に対して選択的に使用されるので、通信モードに
適したデータ記憶領域を使用することができる。
According to the communication control device of the fifth aspect,
Since the first and second data storage areas are selectively used for the third data storage area, a data storage area suitable for a communication mode can be used.

【0095】請求項6に記載の通信制御装置によれば、
シートに画像を形成する画像形成システムに搭載され、
前記第1機器は前記画像形成システムを制御する制御装
置であり、前記第2および第3機器は排出された前記シ
ートの仕分けを行うソータであるので、複写装置および
ソータなどから構成される画像形成システムの処理効率
を高めることができる。
According to the communication control device of the sixth aspect,
Mounted on an image forming system that forms an image on a sheet,
The first device is a control device for controlling the image forming system, and the second and third devices are sorters for sorting the discharged sheets. Therefore, the image forming system includes a copying device and a sorter. The processing efficiency of the system can be increased.

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

【図1】実施の形態における複写装置の内部構成を示す
図である。
FIG. 1 is a diagram showing an internal configuration of a copying apparatus according to an embodiment.

【図2】通信制御装置を中心とするシステムの構成を示
す図である。
FIG. 2 is a diagram showing a configuration of a system centered on a communication control device.

【図3】複写装置本体100内の制御装置800の構成
を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a control device 800 in the copying apparatus main body 100.

【図4】通信専用IC812の構成を示すブロック図で
ある。
FIG. 4 is a block diagram showing a configuration of a communication-specific IC 812.

【図5】各チャネルで使用するデータブロックの構成を
示す図である。
FIG. 5 is a diagram showing a configuration of a data block used in each channel.

【図6】アクセスフラグ領域を示す図である。FIG. 6 is a diagram showing an access flag area.

【図7】デュアルポートRAM920全体のメモリマッ
ピングを示す図である。
FIG. 7 is a diagram showing memory mapping of the entire dual port RAM 920.

【図8】IPC同期レジスタの構成を示す図である。FIG. 8 is a diagram showing a configuration of an IPC synchronization register.

【図9】RxRDYとブロックセマフォとの関係を示す
タイミングチャートである。
FIG. 9 is a timing chart showing a relationship between RxRDY and a block semaphore.

【図10】パラメータとモードの関係を示す図である。FIG. 10 is a diagram showing a relationship between parameters and modes.

【図11】システムクロック=9.216Mzにおける
パラメータとボーレートの関係を示す図である。
FIG. 11 is a diagram illustrating a relationship between a parameter and a baud rate at a system clock of 9.216 Mz.

【図12】指定パラメータの値を示す図である。FIG. 12 is a diagram illustrating values of designated parameters.

【図13】パケットの構造を示す図である。FIG. 13 is a diagram showing a structure of a packet.

【図14】ヘッダ部Hの構成を示す図である。FIG. 14 is a diagram showing a configuration of a header section H.

【図15】パケットの種類を示す図である。FIG. 15 is a diagram illustrating types of packets.

【図16】パケット種類と制御コードの関係を示す図で
ある。
FIG. 16 is a diagram illustrating a relationship between a packet type and a control code.

【図17】通信時のインターバルを示す図である。FIG. 17 is a diagram showing intervals during communication.

【図18】イニシャル通信を示すタイミングチャートで
ある。
FIG. 18 is a timing chart showing initial communication.

【図19】通常通信を示すタイミングチャートである。FIG. 19 is a timing chart showing normal communication.

【図20】通信エラー発生と自動回復処理を示すタイミ
ングチャートである。
FIG. 20 is a timing chart showing a communication error occurrence and an automatic recovery process.

【図21】ERRレジスタの構造を示す図である。FIG. 21 is a diagram showing the structure of an ERR register.

【図22】データ通信処理の効率化を示す図である。FIG. 22 is a diagram showing the efficiency of data communication processing.

【図23】IPCイニシャライズ処理手順を示すフロー
チャートである。
FIG. 23 is a flowchart illustrating an IPC initialization processing procedure;

【図24】データ送信処理手順を示すフローチャートで
ある。
FIG. 24 is a flowchart showing a data transmission processing procedure.

【図25】データ受信処理手順を示すフローチャートで
ある。
FIG. 25 is a flowchart showing a data reception processing procedure.

【図26】別のデータ受信処理手順を示すフローチャー
トである。
FIG. 26 is a flowchart showing another data reception processing procedure.

【図27】マスター側エラー処理手順を示すフローチャ
ートである。
FIG. 27 is a flowchart showing a master-side error processing procedure.

【図28】スレーブ側エラー処理手順を示すフローチャ
ートである。
FIG. 28 is a flowchart showing a slave-side error processing procedure.

【図29】ホストを介さずに機器にデータを送信する共
有データ送信処理手順を示すフローチャートである。
FIG. 29 is a flowchart illustrating a shared data transmission processing procedure for transmitting data to a device without passing through a host.

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

300 RDF 400、500 ソータ 800 制御装置 801 CPU 803 ROM 812、351、451、551 通信専用IC(IP
C、通信制御装置) 920 デュアルポートRAM 921 非共有データブロック領域 924 共有データブロック領域 930 UART部
300 RDF 400, 500 Sorter 800 Controller 801 CPU 803 ROM 812, 351, 451, 551 Communication dedicated IC (IP
C, communication control device) 920 Dual port RAM 921 Non-shared data block area 924 Shared data block area 930 UART section

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 第1機器を制御する第1機器制御手段に
よってアクセスされるデータ、および第2機器を制御す
る第2機器制御手段によってアクセスされるデータの通
信を、第1通信ポートを介して前記第1機器との間で行
う通信制御装置において、 前記第1通信ポートから受信したデータを第1データ記
憶領域に記憶するデータ受信手段と、 該第1データ記憶領域に記憶されたデータを第2データ
記憶領域に転送するデータ転送手段と、 該第2データ記憶領域に転送されたデータを、第2通信
ポートを介して前記第1機器に対してカスケード接続さ
れた第3機器に送信するデータ送信手段と、 前記データ転送手段による前記第1データ記憶領域から
前記第2データ記憶領域へのデータ転送を禁止あるいは
許可に設定する設定手段とを備え、 前記第1および第2機器制御手段を介在させることな
く、前記第1機器と前記第3機器との間でデータの通信
を行うことを特徴とする通信制御装置。
1. Communication between data accessed by first device control means for controlling a first device and data accessed by second device control means for controlling a second device is performed via a first communication port. A communication control device for performing communication with the first device, a data receiving unit configured to store data received from the first communication port in a first data storage area, and a data reception unit configured to transfer data stored in the first data storage area to a first data storage area. (2) data transfer means for transferring data to the second data storage area; and data for transmitting the data transferred to the second data storage area to a third device cascaded to the first device via a second communication port. Transmission means; and setting means for setting data transfer from the first data storage area to the second data storage area by the data transfer means to be prohibited or permitted. It said first and second device control means without intervention of the communication control apparatus characterized by communicating data between the first device and the third device.
【請求項2】 前記カスケード接続された第3機器との
通信に使用される第1および第2データ記憶領域の他
に、前記第2機器制御手段によってアクセスされるデー
タの通信だけに使用される第3データ記憶領域を有する
ことを特徴とする請求項1記載の通信制御装置。
2. The method according to claim 2, wherein the first and second data storage areas used for communication with the third device connected in cascade are used only for communication of data accessed by the second device control means. The communication control device according to claim 1, further comprising a third data storage area.
【請求項3】 前記第2機器制御手段によってアクセス
されたことを記憶するアクセス情報記憶手段を備えたこ
とを特徴とする請求項2記載の通信制御装置。
3. The communication control device according to claim 2, further comprising access information storage means for storing the access by said second device control means.
【請求項4】 通信を行う際の同期手順を記憶する同期
手順記憶手段を備えたことを特徴とする請求項1記載の
通信制御装置。
4. The communication control device according to claim 1, further comprising a synchronization procedure storing means for storing a synchronization procedure for performing communication.
【請求項5】 前記第1および第2データ記憶領域は前
記第3データ記憶領域に対して選択的に使用されること
を特徴とする請求項2記載の通信制御装置。
5. The communication control device according to claim 2, wherein the first and second data storage areas are selectively used for the third data storage area.
【請求項6】 シートに画像を形成する画像形成システ
ムに搭載され、 前記第1機器は前記画像形成システムを制御する制御装
置であり、 前記第2および第3機器は排出された前記シートの仕分
けを行うソータであることを特徴とする請求項1記載の
通信制御装置。
6. An image forming system for forming an image on a sheet, wherein the first device is a control device for controlling the image forming system, and the second and third devices are for sorting the discharged sheets. 2. The communication control device according to claim 1, wherein the communication control device is a sorter that performs the following.
【請求項7】 第1機器を制御する第1機器制御手段に
よってアクセスされるデータ、および第2機器を制御す
る第2機器制御手段によってアクセスされるデータの通
信を、第1通信ポートを介して前記第1機器との間で行
う通信制御方法において、 前記第1通信ポートから受信したデータを第1データ記
憶領域に記憶し、 該第1データ記憶領域に記憶されたデータを第2データ
記憶領域に転送し、 該第2データ記憶領域に転送されたデータを、第2通信
ポートを介して前記第1機器に対してカスケード接続さ
れた第3機器に送信する際、 前記第1データ記憶領域から前記第2データ記憶領域へ
のデータ転送を禁止あるいは許可に設定し、 該データ転送が許可に設定された場合、前記第1および
第2機器制御手段を介在させることなく、前記第1機器
と前記第3機器との間でデータの通信を行うことを特徴
とする通信制御方法。
7. Communication of data accessed by the first device control means for controlling the first device and data accessed by the second device control means for controlling the second device is performed via the first communication port. In the communication control method performed with the first device, data received from the first communication port is stored in a first data storage area, and data stored in the first data storage area is stored in a second data storage area. When the data transferred to the second data storage area is transmitted to a third device cascaded to the first device via a second communication port, the data is transferred from the first data storage area The data transfer to the second data storage area is set to be prohibited or permitted, and when the data transfer is set to be permitted, the data transfer to the second data storage area is performed without the first and second device control means. Communication control method, characterized in that for communicating data between the first device 3 device.
【請求項8】 第1機器を制御する第1機器制御手段に
よってアクセスされるデータの通信を第1通信ポートを
介して第2機器と間で行う第1通信制御装置と、 前記第2機器を制御する第2機器制御手段によってアク
セスされるデータの通信を前記第1通信ポートを介して
前記第1機器との間で行う第2通信制御装置とを有する
通信制御システムにおいて、 前記第2通信制御装置は、 前記第1通信ポートから受信したデータを第1データ記
憶領域に記憶するデータ受信手段と、 該第1データ記憶領域に記憶されたデータを第2データ
記憶領域に転送するデータ転送手段と、 該第2データ記憶領域に転送されたデータを、第2通信
ポートを介して前記第1機器に対してカスケード接続さ
れた第3機器に送信するデータ送信手段と、 前記データ転送手段による前記第1データ記憶領域から
前記第2データ記憶領域へのデータ転送を禁止あるいは
許可に設定する設定手段とを備え、 前記第1および第2機器制御手段を介在させることな
く、前記第1機器と前記第3機器との間でデータの通信
を行うことを特徴とする通信制御システム。
8. A first communication control device for communicating data accessed by a first device control means for controlling a first device with a second device via a first communication port; and A communication control system having a second communication control device for performing communication of data accessed by the second device control means for controlling with the first device via the first communication port; The apparatus includes: data receiving means for storing data received from the first communication port in a first data storage area; data transfer means for transferring data stored in the first data storage area to a second data storage area; Data transmission means for transmitting the data transferred to the second data storage area to a third device cascaded to the first device via a second communication port; Setting means for setting transfer of data from the first data storage area to the second data storage area by the transfer means to be prohibited or permitted; and A communication control system for performing data communication between one device and the third device.
JP10041040A 1998-02-09 1998-02-09 Communication control equipment, its method and communication control system Pending JPH11232243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10041040A JPH11232243A (en) 1998-02-09 1998-02-09 Communication control equipment, its method and communication control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10041040A JPH11232243A (en) 1998-02-09 1998-02-09 Communication control equipment, its method and communication control system

Publications (1)

Publication Number Publication Date
JPH11232243A true JPH11232243A (en) 1999-08-27

Family

ID=12597300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10041040A Pending JPH11232243A (en) 1998-02-09 1998-02-09 Communication control equipment, its method and communication control system

Country Status (1)

Country Link
JP (1) JPH11232243A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1798601A2 (en) 2005-09-06 2007-06-20 Canon Kabushiki Kaisha Image forming system and method of controlling image forming system
US7715735B2 (en) 2005-09-06 2010-05-11 Canon Kabushiki Kaisha Image forming system and control method for the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1798601A2 (en) 2005-09-06 2007-06-20 Canon Kabushiki Kaisha Image forming system and method of controlling image forming system
US7715735B2 (en) 2005-09-06 2010-05-11 Canon Kabushiki Kaisha Image forming system and control method for the same
US7843584B2 (en) 2005-09-06 2010-11-30 Canon Kabushiki Kaisha Image forming system and method of controlling image forming system
US8102555B2 (en) 2005-09-06 2012-01-24 Canon Kabushiki Kaisha Image forming system and method of controlling image forming system
US8284434B2 (en) 2005-09-06 2012-10-09 Canon Kabushiki Kaisha Image forming system and method of controlling image forming system

Similar Documents

Publication Publication Date Title
KR100290597B1 (en) Apparatus and method of implementing a usb endpoint pipe with double buffering support
KR100290943B1 (en) An Apparatus and Method For Handling Universal Serial Bus Control Transfer
JP3340738B2 (en) Method and apparatus for a parallel packet bus
US6157975A (en) Apparatus and method for providing an interface to a compound Universal Serial Bus controller
JP4722357B2 (en) Method for automatically transmitting acknowledge frames in CANopen and other CAN application layer protocols
JP3189727B2 (en) Packet-type memory LSI with built-in coprocessor, memory system using the same, and control method therefor
EP1764703B1 (en) A system for providing access to multiple data buffers of a data retaining and processing device
EP1899830B1 (en) Automated serial protocol target port transport layer retry mechanism
CN1551592B (en) Data transmission control device, electronic device and data transmission control method
JP2006500672A (en) Bus connection system
CN101282224A (en) Communication adapter and data transfer method of communication adapter
JP2008502976A (en) Bus controller for processing split transactions
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
US20090175290A1 (en) Flexray communications module, flexray communications controller, and method for transmitting messages between a flexray communications link and a flexray participant
US20010051994A1 (en) Computer system and a data transfer method thereof
US6263393B1 (en) Bus switch for realizing bus transactions across two or more buses
US6070208A (en) Apparatus and method for implementing a versatile USB endpoint pipe
JPH04328936A (en) Communication system
CN103685578B (en) The data transmission method of master-slave equipment
JP2003509968A (en) Method for writing message ID information back into a match ID register and CAN microcontroller performing this method
JPH11232243A (en) Communication control equipment, its method and communication control system
JPH11112529A (en) Communication control device, its method and communication control system
US20050138236A1 (en) Direct memory access control device and method for automatically updating data transmisson size from peripheral
KR19990061216A (en) Packet bus and method of transmitting packet data using the same
JP2639248B2 (en) Communication interface device