JP3479527B2 - Serial communication hardware flow control method - Google Patents

Serial communication hardware flow control method

Info

Publication number
JP3479527B2
JP3479527B2 JP2002048265A JP2002048265A JP3479527B2 JP 3479527 B2 JP3479527 B2 JP 3479527B2 JP 2002048265 A JP2002048265 A JP 2002048265A JP 2002048265 A JP2002048265 A JP 2002048265A JP 3479527 B2 JP3479527 B2 JP 3479527B2
Authority
JP
Japan
Prior art keywords
serial
signal
transmission
reception
serial communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002048265A
Other languages
Japanese (ja)
Other versions
JP2003249976A (en
Inventor
孔明 一ノ関
Original Assignee
株式会社国際電気エンジニアリング
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 株式会社国際電気エンジニアリング filed Critical 株式会社国際電気エンジニアリング
Priority to JP2002048265A priority Critical patent/JP3479527B2/en
Publication of JP2003249976A publication Critical patent/JP2003249976A/en
Application granted granted Critical
Publication of JP3479527B2 publication Critical patent/JP3479527B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Transceivers (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、シリアル通信ハー
ドウェアフロー制御方式に関するものであり、特にその
通信プロトコルに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial communication hardware flow control system and, more particularly, to its communication protocol.

【0002】[0002]

【従来の技術】図18は、従来方式における送受間伝送
路接続図である。表1は、従来方式における信号内容で
ある。 (デバイス1側)SD1は、デバイス1から送出される
シリアル送信データである。RD1は、デバイス1で受
信すべく到来するシリアル受信データである。RS1
は、デバイス1がシリアル受信可能状態であることをデ
バイス2に通知する「デバイス1のシリアル受信許可」
信号である。CS1は、デバイス1に対してシリアル送
信を許可するために到来する信号である。DR1は、デ
バイス1に対してシリアル受信を要求するために到来す
る信号である。SG1は、デバイス1のグランドであ
る。ER1は、デバイス1からシリアル送信を行うこと
をデバイス2に通知する「デバイス1のシリアル送信要
求」信号である。このER1信号は、デバイス1がデバ
イス2を低消費電流モードから復帰させるための制御信
号でもあり(デバイス2ではDR2信号となる)、これ
に対する応答信号が前記のCS1信号である。
2. Description of the Related Art FIG. 18 is a connection diagram of a transmission line between a transmission and a reception in a conventional system. Table 1 shows the signal contents in the conventional method. (Device 1 side) SD1 is serial transmission data transmitted from the device 1. RD1 is serial reception data that is to be received by the device 1. RS1
Notifies the device 2 that the device 1 is in the serial reception enabled state. "Device 1 serial reception permission"
It is a signal. CS1 is a signal that arrives to permit serial transmission to the device 1. DR1 is a signal that arrives to request serial reception from the device 1. SG1 is the ground of the device 1. ER1 is a "serial transmission request of device 1" signal that notifies the device 2 that the device 1 will perform serial transmission. The ER1 signal is also a control signal for the device 1 to return the device 2 from the low current consumption mode (it becomes a DR2 signal in the device 2), and the response signal to this is the CS1 signal.

【0003】[0003]

【表1】 [Table 1]

【0004】(デバイス2側)SD2は、デバイス2か
ら送出されるシリアル送信データである。RD2は、デ
バイス2で受信すべく到来するシリアル受信データであ
る。RS2は、デバイス2がシリアル受信可能状態であ
ることをデバイス1に通知する「デバイス2のシリアル
受信許可」信号である。CS2は、デバイス2に対して
シリアル送信を許可するために到来する信号である。D
R2は、デバイス2に対してシリアル受信を要求するた
めに到来する信号である。SG2は、デバイス2のグラ
ンドである。ER2は、デバイス2からシリアル送信を
行うことをデバイス1に通知する「デバイス2のシリア
ル送信要求」信号である。このER2信号は、デバイス
2がデバイス1を低消費電流モードから復帰させるため
の制御信号でもあり(デバイス1ではDR1信号とな
る)、これに対する応答信号が前記のCS2信号であ
る。
(Device 2 side) SD2 is serial transmission data sent from the device 2. RD2 is serial reception data that is to be received by the device 2. RS2 is a "serial reception permission of device 2" signal that notifies the device 1 that the device 2 is in the serial reception enabled state. CS2 is a signal that arrives to permit serial transmission to the device 2. D
R2 is a signal that arrives to request serial reception from the device 2. SG2 is the ground of the device 2. ER2 is a "serial transmission request of device 2" signal that notifies the device 1 that the device 2 will perform serial transmission. The ER2 signal is also a control signal for the device 2 to return the device 1 from the low current consumption mode (it becomes the DR1 signal in the device 1), and the response signal to this is the CS2 signal.

【0005】図19は従来方法による各デバイスでのフ
ロー制御例を示すフローチャートである。(a)シリアル信号処理 まず、シリアル送信処理の場合には、動作スタート(S
TART)により、シリアル送信要求信号「ER」(E
R1又はER2)を送出する(S1)。次に、シリアル
送信許可信号「CS」(CS1又はCS2)が到来して
いるかをテストし(S2)、そのテストがYESのとき
にシリアル送信データ(SD1又はSD2)を送出する
「データ送出処理」をし(S3)、その処理が終了した
ことを確認して(S4)、シリアル送信要求信号「E
R」(ER1又はER2)の送出を停止し(S5)、動
作を終了する。
FIG. 19 is a flow chart showing an example of flow control in each device according to the conventional method. (A) Serial signal processing First, in the case of serial transmission processing, operation start (S
The serial transmission request signal “ER” (E
R1 or ER2) is transmitted (S1). Next, a "data transmission process" for testing whether the serial transmission permission signal "CS" (CS1 or CS2) has arrived (S2) and transmitting the serial transmission data (SD1 or SD2) when the test is YES. (S3), confirming that the processing is completed (S4), the serial transmission request signal “E
The transmission of "R" (ER1 or ER2) is stopped (S5), and the operation ends.

【0006】(b)シリアル受信処理 シリアル受信処理の場合には、動作スタート(STAR
T)により、シリアル送信要求信号「DR」(DR1又
はDR2)が到来しているかをテストし(S11)、そ
のテストがYESのときにシリアル受信許可信号「R
S」(RS1又はRS2)を送出し(S12)、シリア
ル受信データ「RD」(RD1又はRD2)を受信する
「データ受信処理」をし(S13)、シリアル受信要求
信号「DR」(DR1又はDR2)が到来しているかの
テストをし(S14)、そのテストがYESのときその
「データ受信処理」を続行してそのテストがNOになっ
たときに、シリアル受信許可信号「RS」(RS1又は
RS2)を停止して(S15)、動作を終了する。
(B) Serial Reception Processing In the case of serial reception processing, operation start (STAR
T) tests whether the serial transmission request signal "DR" (DR1 or DR2) has arrived (S11), and when the test is YES, the serial reception enable signal "R"
"S" (RS1 or RS2) is transmitted (S12), "data reception processing" of receiving serial reception data "RD" (RD1 or RD2) is performed (S13), and serial reception request signal "DR" (DR1 or DR2). ) Has arrived (S14), and when the test is YES, the "data reception process" is continued, and when the test is NO, the serial reception enable signal "RS" (RS1 or RS2) is stopped (S15), and the operation ends.

【0007】[0007]

【発明が解決しようとする課題】従来方式の場合、シリ
アル通信ハードウェアフロー制御を行うためには、フロ
ー制御用の信号線が4本必要である。すなわち、従来方
式では、低消費電流モードを有する2つのデバイス(デ
バイス1,デバイス2)間のシリアル通信ハードウェア
フロー制御を行うために必要な信号線の数は、デバイ
ス1がデバイス2を低消費電流モードから復帰させるた
めの制御信号線1本、それに対する応答信号線1本、
デバイス2がデバイス1を低消費電流モードから復帰
させるための制御信号線1本、それに対する応答信号
線1本の合計4本の信号線が必要であった。従来の方式
では、使用可能な信号線が2本の場合、低消費電流モー
ドを有する2つのデバイス間のシリアル通信ハードウェ
アフロー制御を行うことができない。
In the case of the conventional method, four signal lines for flow control are required to perform serial communication hardware flow control. That is, in the conventional method, the number of signal lines required to perform serial communication hardware flow control between two devices (device 1 and device 2) having the low current consumption mode is such that the device 1 consumes the device 2 with low power consumption. One control signal line for returning from the current mode, one response signal line for it,
The device 2 required a total of four signal lines, one control signal line for returning the device 1 from the low current consumption mode and one response signal line for the control signal line. In the conventional method, when the number of usable signal lines is two, serial communication hardware flow control between two devices having the low current consumption mode cannot be performed.

【0008】本発明の目的は、使用可能な信号線が2本
の場合でも、シリアル通信ハードウェアフロー制御が実
現可能な通信プロトコルを確立することができるシリア
ル通信ハードウェアフロー制御方式を提供することであ
る。
An object of the present invention is to provide a serial communication hardware flow control system capable of establishing a communication protocol capable of realizing serial communication hardware flow control even when the number of usable signal lines is two. Is.

【0009】[0009]

【課題を解決するための手段】この目的を達成するため
に、本発明によるシリアル通信ハードウェアフロー制御
方式は、低消費電流モードを有する2つのデバイス(デ
バイス1,デバイス2)間のシリアル通信ハードウェア
フロー制御に必要な4つの信号(デバイス1がデバイ
ス2を低消費電流モードから復帰させるための第1の制
御信号、それに対する第1の応答信号、デバイス2
がデバイス1を低消費電流モードから復帰させるための
第2の制御信号、それに対する第2の応答信号)のう
ち、とを1本の信号路で共用し、とを1本の信
号路で共用することを条件とする。
In order to achieve this object, a serial communication hardware flow control system according to the present invention uses a serial communication hardware between two devices (device 1 and device 2) having a low current consumption mode. Four signals necessary for wear flow control (first control signal for device 1 to return device 2 from the low current consumption mode, first response signal thereto, device 2
Of the second control signal for returning the device 1 from the low current consumption mode and the second response signal thereto) are shared by one signal path and both are shared by one signal path. On condition that you do.

【0010】また、本発明は、以下の条件に従って動作
する。 (1)スタンバイモード(低消費電流モード)からアク
ティブモードへの復帰は、送信要求割込み発生時とCS
信号の状態変化割込み発生時に行われる。 (2)シリアル送受信割込みでは行わない。(スタンバ
イモード時には、シリアル送受信割込みは無視され
る。) (3)また、アクティブモードからスタンバイモードへ
の移行は、そのアクティブモードの期間に発生したもの
を含むシリアル通信処理終了後に行われる。
Further, the present invention operates according to the following conditions. (1) Return from the standby mode (low current consumption mode) to the active mode when the transmission request interrupt occurs and the CS
Signal status change Occurs when an interrupt occurs. (2) Not performed by serial transmission / reception interrupt. (In the standby mode, the serial transmission / reception interrupt is ignored.) (3) Further, the transition from the active mode to the standby mode is performed after the end of the serial communication processing including the ones generated during the active mode period.

【0011】[0011]

【発明の実施の形態】図1は、本発明方式を実施するた
めの送受間伝送路の接続図である。本発明方式の場合、
シリアル通信ハードウェアフロー制御を行うために、フ
ロー制御用の信号路を2本用いる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a connection diagram of a transmission / reception transmission line for carrying out the method of the present invention. In the case of the method of the present invention,
Two signal paths for flow control are used to perform serial communication hardware flow control.

【0012】[0012]

【表2】 [Table 2]

【0013】表2は、本発明方式の信号内容である。表
1の従来例と比較すると、デバイス1側ではシリアル送
信要求「ER1」とシリアル受信要求「DR1」が表1
から削除され、表2では「RS1」信号は、〔デバイス
1がシリアル受信可能状態であることをデバイス2に通
知する「デバイス1のシリアル受信許可」〕信号(第2
の応答信号)と、〔デバイス1からシリアル送信を行う
ことをデバイス2に通知する「デバイス1のシリアル送
信要求」〕信号(第1の制御信号)とに兼用している。
さらに、「CS1」信号は、〔デバイス1に対してシリ
アル送信を許可するために到来する「デバイス1のシリ
アル送信許可」〕信号(第1の応答信号)と、〔デバイ
ス1に対してシリアル受信を要求するために到来する
「デバイス1のシリアル受信要求」〕信号(第2の制御
信号)とに兼用している。
Table 2 shows the signal contents of the method of the present invention. Compared to the conventional example in Table 1, the serial transmission request “ER1” and the serial reception request “DR1” are shown in Table 1 on the device 1 side.
The “RS1” signal in Table 2 is deleted from “[Device 1 serial reception permission” for notifying device 2 that device 1 is in serial reception enabled state] signal (second
Of the device 1) and the signal "a serial transmission request of the device 1 for notifying the device 2 that serial transmission will be performed" from the device 1 (first control signal).
Further, the "CS1" signal includes a "[Device 1 serial transmission permission of device 1" signal (a first response signal)] and a [serial response to the device 1]. Is also used as the "serial reception request of device 1" signal (second control signal).

【0014】また、デバイス2側では、シリアル送信要
求「ER2」とシリアル受信要求「DR2」が表1から
削除され、表2では、「RS2」信号は〔デバイス2が
シリアル受信可能状態であることをデバイス1に通知す
る「デバイス2のシリアル受信許可」〕信号(第1の応
答信号)と、〔デバイス2からシリアル送信を行うこと
をデバイス1に通知する「デバイス2のシリアル送信要
求」〕信号(第2の制御信号)とに兼用している。さら
に、「CS2」信号は、〔デバイス2に対してシリアル
送信を許可するために到来する「デバイス2のシリアル
送信許可」〕信号(第1の応答信号)と、〔デバイス2
に対してシリアル受信を要求するために到来する「デバ
イス2のシリアル受信要求」〕信号(第1の制御信号)
とに兼用している。
On the device 2 side, the serial transmission request "ER2" and the serial reception request "DR2" are deleted from Table 1, and in Table 2, the "RS2" signal indicates that "the device 2 is in the serial reception enabled state. "Device 2 serial reception permission" signal (first response signal) and a "device 2 serial transmission request" which notifies device 1 that serial transmission will be performed. Also serves as (second control signal). Further, the "CS2" signal includes a "[Device 2 serial transmission permission of device 2" that arrives to permit serial transmission] signal (first response signal) and a [Device 2
"Request for serial reception of device 2" signal (first control signal) that arrives to request serial reception
It is also used as.

【0015】すなわち、本発明方式には次の主要な制御
信号が用いられている。 デバイス1がデバイス2を低消費電流モードから復帰
させるための第1の制御信号がRS1(デバイス2では
CS2)である。それに対する第1の応答信号がCS
1(デバイス2ではRS2)である。デバイス2がデ
バイス1を低消費電流モードから復帰させるための第2
の制御信号がCS1(デバイス2ではRS2)である。
それに対する第2の応答信号がRS1(デバイス2で
はCS2)である。
That is, the following main control signals are used in the system of the present invention. The first control signal for the device 1 to return the device 2 from the low current consumption mode is RS1 (CS2 in the device 2). The first response signal to it is CS
1 (RS2 for device 2). Second for device 2 to wake up device 1 from low current consumption mode
Is a control signal CS1 (RS2 in the device 2).
The second response signal to that is RS1 (CS2 in device 2).

【0016】図2は、本発明方式のフロー制御フローチ
ャートである。図19と図2を比較すると、従来欲しき
対して本発明方式では、シリアル送信処理(a)のER
信号がステップS1aとステップS5aにおいてRS信
号に置き換わり、シリアル受信処理(b)のDR信号が
ステップS11aとステップS14aにおいてCS信号
に置き換わっている。
FIG. 2 is a flow control flowchart of the method of the present invention. Comparing FIG. 19 and FIG. 2, in contrast to the conventional method, in the method of the present invention, the ER of the serial transmission process (a) is
The signal is replaced with the RS signal in steps S1a and S5a, and the DR signal in the serial reception process (b) is replaced with the CS signal in steps S11a and S14a.

【0017】図3は、シリアル通信処理手順1である。
デバイス1が送信側、デバイス2が受信側の場合のシリ
アル通信の手順である。 (1)スタンバイ状態であったデバイス1は、「シリア
ル送信要求」が発生すると、アクティブ状態にして、
「デバイス1のシリアル送信要求」信号RS1を出力す
る。 (2)スタンバイ状態であったデバイス2は、到来した
信号RS1は図1に示すように「デバイス2のシリアル
受信要求」信号CS2の到来として検知され、アクティ
ブ状態となり、「デバイス2のシリアル受信許可」信号
RS2が出力され、シリアル通信開始となる。 (3)デバイス1は、到来した信号RS2を「デバイス
1のシリアル送信許可」信号CS1として検知し、シリ
アル通信を開始し、デバイス1からシリアル送信データ
SD1が送出される。 (4)デバイス2では、到来したシリアル送信データS
D1を「デバイス2のシリアル受信データ」RD2とし
て受けとる。 (5)デバイス1では、シリアル送信データSD1の送
出を終了すると、「デバイス1のシリアル送信要求」を
解除するために、「デバイス1のシリアル受信要求」信
号RS1をOFFにする。 (6)デバイス2では、到来していた信号RS1のOF
Fを、「デバイス2のシリアル受信要求」信号CS2の
OFFとして受けとり、「デバイス2のシリアル受信許
可」信号RS2をOFFとしてシリアル通信を終了し、
スタンバイ状態になる。 (7)デバイス1は、到来していた「デバイス2のシリ
アル受信許可」信号RS2のOFFを、「デバイス1の
シリアル送信許可」信号CS1のOFFとして受けと
り、シリアル通信を終了し、スタンバイ状態になる。
FIG. 3 shows a serial communication processing procedure 1.
This is a procedure of serial communication when the device 1 is the transmitting side and the device 2 is the receiving side. (1) When the "serial transmission request" is generated, the device 1 in the standby state is activated and
The "serial transmission request of device 1" signal RS1 is output. (2) In the device 2 in the standby state, the incoming signal RS1 is detected as the arrival of the “serial reception request of device 2” signal CS2 as shown in FIG. The signal RS2 is output to start serial communication. (3) The device 1 detects the incoming signal RS2 as the “serial transmission permission of device 1” signal CS1, starts serial communication, and the device 1 sends out serial transmission data SD1. (4) In device 2, incoming serial transmission data S
D1 is received as "serial received data of device 2" RD2. (5) In the device 1, when the transmission of the serial transmission data SD1 is completed, the “serial reception request of the device 1” signal RS1 is turned off in order to cancel the “serial transmission request of the device 1”. (6) In device 2, the OF of the incoming signal RS1
F is received as the “serial reception request of device 2” signal CS2 is OFF, the “serial reception permission of device 2” signal RS2 is OFF, and the serial communication is terminated,
Enter standby mode. (7) The device 1 receives the incoming "serial reception permission of device 2" signal RS2 as OFF of the "serial transmission permission of device 1" signal CS1, ends the serial communication, and enters the standby state. .

【0018】図4は、シリアル通信処理手順2である。
図5とは逆に、デバイス1が受信側、デバイス2が送信
側の場合のシリアル通信の手順である。 (1)スタンバイ状態であったデバイス2において、
「シリアル送信要求」が発生すると、アクティブ状態に
して、「デバイス2のシリアル送信要求」信号RS2を
出力する。 (2)スタンバイ状態であったデバイス1は、到来した
信号RS2は図1に示すように「デバイス1のシリアル
受信要求」信号CS1の到来として検知され、アクティ
ブ状態となり、「デバイス1のシリアル受信許可」信号
RS1が出力され、シリアル通信開始となる。 (3)デバイス2は、到来した信号RS1を「デバイス
2のシリアル送信許可」信号CS2として検知し、シリ
アル通信を開始し、デバイス2からシリアル送信データ
SD2が送出される。 (4)デバイス1では、到来したシリアル送信データS
D2を「デバイス1のシリアル受信データ」RD1とし
て受けとる。 (5)デバイス2では、シリアル送信データSD2の送
出を終了すると、「デバイス2のシリアル送信要求」を
解除するために、「デバイス2のシリアル受信要求」信
号RS2をOFFにする。 (6)デバイス1では、到来していた信号RS2のOF
Fを、「デバイス1のシリアル受信要求」信号CS1の
OFFとして受けとり、「デバイス1のシリアル受信許
可」信号RS1をOFFとしてシリアル通信を終了し、
スタンバイ状態になる。 (7)デバイス2は、到来していた「デバイス1のシリ
アル受信許可」信号RS1のOFFを、「デバイス2の
シリアル送信許可」信号CS2のOFFとして受けと
り、シリアル通信を終了し、スタンバイ状態になる。
FIG. 4 shows the serial communication processing procedure 2.
Contrary to FIG. 5, the procedure is serial communication when the device 1 is the receiving side and the device 2 is the transmitting side. (1) In the device 2 that was in the standby state,
When the "serial transmission request" is generated, it is activated and the "serial transmission request of device 2" signal RS2 is output. (2) In the device 1 in the standby state, the incoming signal RS2 is detected as the arrival of the “serial reception request of device 1” signal CS1 as shown in FIG. The signal RS1 is output to start serial communication. (3) The device 2 detects the incoming signal RS1 as the "serial transmission permission of device 2" signal CS2, starts serial communication, and the device 2 sends serial transmission data SD2. (4) In device 1, incoming serial transmission data S
D2 is received as "serial received data of device 1" RD1. (5) In the device 2, when the transmission of the serial transmission data SD2 is completed, the “serial reception request of the device 2” signal RS2 is turned off in order to cancel the “serial transmission request of the device 2”. (6) In the device 1, the OF of the incoming signal RS2
F is received as the “serial reception request of device 1” signal CS1 is OFF, the “serial reception permission of device 1” signal RS1 is OFF, and the serial communication is terminated,
Enter standby mode. (7) The device 2 receives the incoming “serial reception permission of device 1” signal RS1 as OFF of the “serial transmission permission of device 2” signal CS2, terminates the serial communication, and enters the standby state. .

【0019】図5は、シリアル通信処理フローチャート
1(動作モード管理処理)である。動作モード管理処理
の主な処理は、スタンバイモードからアクティブモード
への復帰、送信要求割り込みによる送信処理の起動、C
S信号の状態変化割込みによるフロー制御処理の起動で
ある。図5において、動作がスタートしたときに、まず
「動作モード」は「スタンバイ」か「アクティブ」かの
テストをする(S21)。このステップS21でのテス
ト結果が「スタンバイ」であったときには、「送信要
求」の有無のテストをする(S22)。このステップS
22のテスト結果が「無」であったときには、「CS信
号変化」の有無のテストをする(S23)。このステッ
プS23のテスト結果が「無」であったときには、前記
のステップS21に帰る。
FIG. 5 is a serial communication processing flowchart 1 (operation mode management processing). The main processing of the operation mode management processing is the return from the standby mode to the active mode, the start of the transmission processing by the transmission request interrupt, and the C
This is the activation of the flow control process by the state change interrupt of the S signal. In FIG. 5, when the operation starts, a test is first made as to whether the "operation mode" is "standby" or "active" (S21). When the test result in this step S21 is "standby", the presence or absence of "transmission request" is tested (S22). This step S
When the test result of 22 is "absent", the presence or absence of "CS signal change" is tested (S23). If the test result in step S23 is "none", the process returns to step S21.

【0020】ステップS23のテスト結果が「有」であ
ったときには、アクティブモードにし(S24)、フロ
ー制御処理をする(S25)。
When the test result in step S23 is "present", the active mode is set (S24), and the flow control process is performed (S25).

【0021】ステップS22のテスト結果が「有」であ
ったときには、送信要求をクリアし(S26)、送信処
理起動要求をし(S27)、アクティブモードにする
(S28)。
When the test result in step S22 is "Yes", the transmission request is cleared (S26), the transmission process activation request is issued (S27), and the active mode is set (S28).

【0022】ステップS21のテスト結果が「アクティ
ブ」であったときには、「送信要求」の有無のテストを
し(S29)、このステップS29のテスト結果が
「無」でったときには「CS信号変化」の有無のテスト
をする(S30)。このステップS30のテスト結果が
「無」であったときには、前記のステップS21に帰
る。このステップS30のテスト結果が「有」であった
ときには、フロー制御処理をして(S33)、前記のス
テップS21に帰る。ステップS29のテスト結果が
「有」であったときには、「送信要求クリア」をし(S
31)、「送信処理起動要求」をして(S32)、前記
のステップS21に帰る。
When the test result in step S21 is "active", the presence or absence of "transmission request" is tested (S29), and when the test result in step S29 is "no", "CS signal change". The presence / absence test is performed (S30). If the test result in step S30 is "none", the process returns to step S21. If the test result in step S30 is "Yes", the flow control process is performed (S33), and the process returns to step S21. When the test result in step S29 is "Yes", "transmission request clear" is performed (S
31), a "transmission process activation request" is made (S32), and the process returns to step S21.

【0023】図6は、シリアル通信処理フローチャート
2(フロー制御処理)である。フロー制御処理の主な処
理は、CS信号状態変化によるフロー制御状態の遷移、
シリアル通信可/不可の切替、RS信号出力、受信終了
時のアクティブモードからスタンバイモードへの移行で
ある。図6において、動作がスタートしたときに、まず
「フロー制御状態」を判定するテストをする(S4
1)。このステップS41におけるテスト結果が「送受
中」であったときには、フロー制御状態を「受信中」を
設定し(S42)、「シリアル通信中」を設定し(S4
3)、「RS信号」をONにし(S44)、処理を終了
する。ステップS41におけるテスト結果が「送受信無
し」であったときには、フロー制御状態を「送受信無
し」に設定し(S45)、「シリアル通信中」を解除し
(S46)、「RS信号」をOFFにし(S47)、
「送信処理起動要求」の有無のテストをする(S4
8)。このステップS48のテスト結果が「有」のとき
にはそのまま処理を終了し、そのテスト結果が「無」の
ときには、「スタンバイモード」にするステップ(S4
9)の後に処理を終了する。
FIG. 6 is a serial communication processing flowchart 2 (flow control processing). The main processing of the flow control processing is the transition of the flow control status due to the CS signal status change,
These are switching of serial communication enable / disable, RS signal output, and transition from active mode to standby mode at the end of reception. In FIG. 6, when the operation starts, a test for determining the "flow control state" is first performed (S4).
1). When the test result in step S41 is "transmission / reception", the flow control state is set to "reception" (S42), and "serial communication in progress" is set (S4).
3), the "RS signal" is turned on (S44), and the process ends. When the test result in step S41 is "no transmission / reception", the flow control state is set to "no transmission / reception" (S45), "serial communication in progress" is canceled (S46), and "RS signal" is turned off ( S47),
The presence / absence of the "transmission process activation request" is tested (S4).
8). When the test result in step S48 is "present", the process is terminated as it is, and when the test result is "absent", the step is set to "standby mode" (S4).
The process ends after 9).

【0024】ステップS41におけるテスト結果が「送
信終了待ち」であったときには、フロー制御状態を「送
信中」に設定し(S50)、「シリアル通信中」に設定
して(S51)、処理を終了する。ステップS41にお
けるテスト結果が「送信待ち」であったときには、フロ
ー制御状態を「送受信無し」に設定し(S52)、「シ
リアル通信中」を解除し(S53)、処理を終了する。
ステップS41におけるテスト結果が「CS異常」であ
ったときには、フロー制御状態を「CS異常」に設定し
処理を終了する。ステップS41におけるテスト結果が
「送信中」であったときには、フロー制御状態を「送信
中」に設定して処理を終了する。
When the test result in step S41 is "waiting for transmission end", the flow control state is set to "transmitting" (S50), set to "serial communication in progress" (S51), and the process is ended. To do. When the test result in step S41 is "waiting for transmission", the flow control state is set to "no transmission / reception" (S52), "serial communication in progress" is canceled (S53), and the process is terminated.
When the test result in step S41 is "CS abnormal", the flow control state is set to "CS abnormal" and the process ends. When the test result in step S41 is "transmitting", the flow control state is set to "transmitting" and the process ends.

【0025】図7は、シリアル通信処理フローチャート
3(送信処理)である。送信処理の主な処理は、送信手
順に従ったフロー制御状態の遷移、RS信号出力、デー
タ送信、シリアル通信可/不可の切替、送信終了時のア
クティブモードからスタンバイモードへの移行である。
図7において、動作がスタートしたとき、まず「送信処
理起動要求」の有無をテストする(S61)。このステ
ップS61におけるテスト結果が「無」のときにはその
テストを繰り返すが、「有」が検知されると「送信処理
起動要求」がクリアされ(S62)、「フロー制御状
態」を判定するテストをする(S63)。このステト結
果が「送受信無し」になったとき「RS信号」を送出し
(S64)、フロー制御状態を「送信待ち」に設定する
(S65)。
FIG. 7 is a serial communication processing flowchart 3 (transmission processing). The main processing of the transmission processing is transition of the flow control state according to the transmission procedure, RS signal output, data transmission, switching of serial communication enable / disable, and transition from active mode to standby mode at the end of transmission.
In FIG. 7, when the operation starts, the presence / absence of the "transmission process activation request" is first tested (S61). When the test result in step S61 is "absent", the test is repeated, but when "present" is detected, the "transmission process activation request" is cleared (S62), and a test for determining the "flow control state" is performed. (S63). When the result of this step is "no transmission / reception", an "RS signal" is transmitted (S64), and the flow control state is set to "waiting for transmission" (S65).

【0026】さらに、「フロー制御状態」を判定するテ
ストをし(S66)、そのテスト結果が「送信中」にな
っとき「データ送信」をし(S67)、「送信終了か」
をテストし(S68)、そのテスト結果がYESのとき
に、次のステップに進む。
Further, a test for determining the "flow control state" is performed (S66), and when the test result is "transmitting", "data transmission" is performed (S67), and "transmission completed?"
(S68), and if the test result is YES, proceed to the next step.

【0027】次に、「フロー制御状態」を判定するテス
トをし(S69)、そのテスト結果が「送信中」であっ
たとき「RS信号」をOFFにし(S70)、フロー制
御状態を「送信終了待ち」を設定する(S71)。
Next, a test for determining the "flow control state" is performed (S69), and when the test result is "transmitting", the "RS signal" is turned off (S70), and the flow control state is "transmitted". “End waiting” is set (S71).

【0028】さらに、「フロー制御状態」を判定するテ
ストをし(S72)、そのテスト結果が「送受信無し」
になったとき、「送信処理起動要求」の有無をテストし
(S73)、「有」のときはそのままステップS61に
帰り、「無」のときには、「スタンバイモード」にし
(S74)、ステップS61に帰る。ステップS69で
のテスト結果が「CS異常」であったとき、「RS信
号」をOFFとし(S75)、フロー制御状態を「送受
信無し」に設定し(S76)、「シリアル通信中」を解
除し(S77)、ステップS73に進む。
Further, a test for judging the "flow control state" is performed (S72), and the test result is "no transmission / reception".
When it becomes, the presence / absence of a "transmission process activation request" is tested (S73). If "present", the process directly returns to step S61. If "no", the "standby mode" is set (S74), and the process goes to step S61. Go home. When the test result in step S69 is "CS abnormality", the "RS signal" is turned off (S75), the flow control state is set to "no transmission / reception" (S76), and the "serial communication in progress" is released. (S77), the process proceeds to step S73.

【0029】図8は、シリアル通信処理フローチャート
4(受信処理)である。受信処理の主な処理は、データ
受信、受信データ解析、シリアル通信不可時の受信デー
タ読み捨てである。図8において、動作のスタート後、
「データ受信」の有無をテストする(S81)。このテ
スト結果が「有」になったとき、「シリアル通信中」で
あるかのテストをし(S82)、そのテストの結果がY
ESのときには、「受信データ」を読み込み(S8
3)、「受信データ」を解析して(S84)、ステップ
S81に帰る。ステップS82のテストがNOのときに
は、「受信データ」を読み捨て(S85)、ステップS
81に進む。
FIG. 8 is a serial communication processing flowchart 4 (reception processing). The main processing of the reception processing is data reception, reception data analysis, and reception data discarding when serial communication is not possible. In FIG. 8, after the operation starts,
The presence or absence of "data reception" is tested (S81). When this test result is "present", it is tested whether "serial communication is in progress" (S82), and the result of the test is Y.
In the case of ES, "received data" is read (S8
3), "received data" is analyzed (S84), and the process returns to step S81. When the test in step S82 is NO, the "reception data" is read and discarded (S85), step S82.
Proceed to 81.

【0030】図9は、シリアル送信処理タイミングチャ
ート1(シリアル送信処理:正常動作の場合)である。
RS信号ON(シリアル送信要求)出力後のCS信号O
N(シリアル送信許可)入力で、シリアル通信開始と
し、シリアルデータ送信を開始する。シリアルデータ送
信終了後にRS信号OFF(シリアル送信要求解除)を
出力し、その後のCS信号OFF(シリアル送信禁止)
入力でシリアル通信終了とする。図9には、次の事象
〜が示されている。 事象:(シリアル送信要求発生により、スタンバイ状
態からアクティブ状態に復帰する。)シリアル送信要求
(RS1 ON)出力。 事象:シリアル送信許可(CS1 ON)入力。(シ
リアル通信開始と判断する。) 事象:シリアル送信データ(SD1)出力開始。 事象:シリアル送信データ(SD1)出力終了。 事象:シリアル送信要求解除(RS1 OFF)出
力。 事象:シリアル送信禁止(CS1 OFF)入力。
(シリアル通信終了と判断し、アクティブ状態からスタ
ンバイ状態にする。)
FIG. 9 is a timing chart 1 of serial transmission processing (serial transmission processing: normal operation).
CS signal O after RS signal ON (serial transmission request) output
When N (serial transmission permission) is input, serial communication is started, and serial data transmission is started. RS signal OFF (serial transmission request cancellation) is output after the completion of serial data transmission, and then CS signal OFF (serial transmission prohibition)
Input ends the serial communication. In FIG. 9, the following events ~ are shown. Phenomenon: (When the serial transmission request is generated, the standby state is returned to the active state.) Serial transmission request (RS1 ON) output. Event: Serial transmission permission (CS1 ON) input. (It is determined that the serial communication is started.) Event: The serial transmission data (SD1) output is started. Event: Output of serial transmission data (SD1) ends. Event: Serial transmission request release (RS1 OFF) output. Event: Serial transmission prohibited (CS1 OFF) input.
(It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0031】図10は、シリアル送信処理タイミングチ
ャート2(シリアル送信処理:CS信号異常動作の場合
1)である。シリアルデータ送信中にCS信号OFF
(シリアル送信禁止)を入力しても、シリアルデータ送
信は停止しない。シリアルデータ送信終了後にRS信号
OFF(シリアル送信要求解除)を出力する時に、シリ
アル通信終了とする。図10には、次の事象〜が示
されている。 事象:(シリアル送信要求発生により、スタンバイ状
態からアクティブ状態に復帰する。)シリアル送信要求
(RS1 ON)出力。 事象:シリアル送信許可(CS1 ON)入力。(シ
リアル通信開始と判断する。) 事象:シリアル送信データ(SD1)出力開始。 事象:シリアル送信禁止(CS1 OFF)入力。
(シリアル送信データ(SD1)出力は停止しない。) 事象:シリアル送信データ(SD1)出力終了。 事象:シリアル送信要求解除(RS1 OFF)出
力。(シリアル通信終了と判断し、アクティブ状態から
スタンバイ状態にする。)
FIG. 10 is a serial transmission processing timing chart 2 (serial transmission processing: 1 in case of abnormal CS signal operation). CS signal OFF during serial data transmission
Inputting (Prohibit serial transmission) does not stop serial data transmission. When the RS signal OFF (serial transmission request cancellation) is output after the serial data transmission is completed, the serial communication is completed. In FIG. 10, the following events ~ are shown. Phenomenon: (When the serial transmission request is generated, the standby state is returned to the active state.) Serial transmission request (RS1 ON) output. Event: Serial transmission permission (CS1 ON) input. (It is determined that the serial communication is started.) Event: The serial transmission data (SD1) output is started. Event: Serial transmission prohibited (CS1 OFF) input.
(The serial transmission data (SD1) output does not stop.) Event: The serial transmission data (SD1) output ends. Event: Serial transmission request release (RS1 OFF) output. (It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0032】図11は、シリアル送信処理タイミングチ
ャート3(シリアル送信処理:CS信号異常動作の場合
2)である。シリアルデータ送信中にCS信号OFF
(シリアル送信禁止)を入力しても、シリアルデータ送
信は停止しない。その後CS信号ON(シリアル送信許
可)を入力したら、シリアルデータ送信終了後にRS信
号OFF(シリアル送信要求解除)を出力し、その後の
CS信号OFF(シリアル送信禁止)入力でシリアル通
信終了とする。図11には、次の事象〜が示されて
いる。 事象:(シリアル送信要求発生により、スタンバイ状
態からアクティブ状態に復帰する。)シリアル送信要求
(RS1 ON)出力。 事象:シリアル送信許可(CS1 ON)入力。(シ
リアル通信開始と判断する。) 事象:シリアル送信データ(SD1)出力開始。 事象:シリアル送信禁止(CS1 OFF)入力。
(シリアル送信データ(SD1)出力は停止しない。) 事象:シリアル送信許可(CS1 ON)入力。 事象:シリアル送信データ(SD1)出力終了。 事象:シリアル送信要求解除(RS1 OFF)出
力。 事象:シリアル送信禁止(CS1 OFF)入力。
(シリアル通信終了と判断し、アクティブ状態からスタ
ンバイ状態にする。)
FIG. 11 is a timing chart 3 of serial transmission processing (serial transmission processing: 2 in case of abnormal CS signal operation). CS signal OFF during serial data transmission
Inputting (Prohibit serial transmission) does not stop serial data transmission. After that, when the CS signal ON (serial transmission permission) is input, the RS signal OFF (serial transmission request cancellation) is output after the serial data transmission is completed, and the serial communication is completed by the subsequent CS signal OFF (serial transmission inhibition) input. The following events ~ are shown in FIG. 11. Phenomenon: (When the serial transmission request is generated, the standby state is returned to the active state.) Serial transmission request (RS1 ON) output. Event: Serial transmission permission (CS1 ON) input. (It is determined that the serial communication is started.) Event: The serial transmission data (SD1) output is started. Event: Serial transmission prohibited (CS1 OFF) input.
(The serial transmission data (SD1) output is not stopped.) Phenomenon: Serial transmission permission (CS1 ON) input. Event: Output of serial transmission data (SD1) ends. Event: Serial transmission request release (RS1 OFF) output. Event: Serial transmission prohibited (CS1 OFF) input.
(It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0033】図12は、シリアル受信処理タイミングチ
ャート1(シリアル受信処理:正常動作の場合)であ
る。CS信号ON(シリアル受信要求)入力後のRS信
号ON(シリアル受信許可)出力時に、シリアル通信開
始とする。CS信号OFF(シリアル受信要求解除)入
力後のRS信号OFF(シリアル受信禁止)を出力する
時に、シリアル通信終了とする。シリアルデータ受信は
シリアル通信中(シリアル通信開始とした後から、シリ
アル通信終了とする前まで)に行われる。図12には、
次の事象〜が示されている。 事象:シリアル受信要求(CS1 ON)入力。(シ
リアル受信要求発生により、スタンバイ状態からアクテ
ィブ状態に復帰する。) 事象:シリアル受信許可(RS1 ON)出力。(シ
リアル通信開始と判断する。) 事象:シリアル受信データ(RD1)入力開始。 事象:シリアル受信データ(RD1)入力終了 事象:シリアル受信要求解除(CS1 OFF)入
力。 事象:シリアル受信禁止(RS1 OFF)出力。
(シリアル通信終了と判断し、アクティブ状態からスタ
ンバイ状態にする。)
FIG. 12 is a serial reception process timing chart 1 (serial reception process: normal operation). When the RS signal is ON (serial reception permission) after the CS signal is ON (serial reception request), the serial communication is started. When the RS signal OFF (serial reception prohibition) is output after the CS signal OFF (serial reception request cancellation) is input, the serial communication is terminated. Serial data reception is performed during serial communication (from the start of serial communication to the end of serial communication). In FIG.
The following events ~ are shown. Event: Serial reception request (CS1 ON) input. (When the serial reception request is generated, the standby state is returned to the active state.) Event: Serial reception permission (RS1 ON) output. (It is determined that the serial communication is started.) Event: The serial reception data (RD1) input is started. Event: Serial reception data (RD1) input end event: Serial reception request release (CS1 OFF) input. Event: Serial reception prohibited (RS1 OFF) output.
(It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0034】図13は、シリアル受信処理タイミングチ
ャート2(シリアル受信処理:RD信号異常動作の場
合)である。シリアル通信開始とする前に受信したシリ
アル受信データは読み捨てる。図13には、次の事象
〜が示されている。 事象:シリアル受信要求(CS1 ON)入力。(シ
リアル受信要求発生により、スタンバイ状態からアクテ
ィブ状態に復帰する。) 事象:シリアル受信データ(RD1)入力開始。(シ
リアル受信データは読み捨てる。) 事象:シリアル受信許可(RS1 ON)出力。(シ
リアル通信開始と判断し、シリアル受信データの読み込
みを開始する。) 事象:シリアル受信データ(RD1)入力終了 事象:シリアル受信要求解除(CS1 OFF)入
力。 事象:シリアル受信禁止(RS1 OFF)出力。
(シリアル通信終了と判断し、アクティブ状態からスタ
ンバイ状態にする。)
FIG. 13 is a serial reception process timing chart 2 (serial reception process: RD signal abnormal operation). The serial reception data received before starting the serial communication is discarded. The following events ~ are shown in FIG. Event: Serial reception request (CS1 ON) input. (When the serial reception request is generated, the standby state is returned to the active state.) Event: The serial reception data (RD1) input starts. (Serial reception data is read and discarded.) Event: Serial reception enable (RS1 ON) output. (It is judged that the serial communication has started and the reading of the serial reception data is started.) Event: Serial reception data (RD1) input end event: Serial reception request cancellation (CS1 OFF) input. Event: Serial reception prohibited (RS1 OFF) output.
(It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0035】図14は、シリアル受信処タイミングチャ
ート3(シリアル受信処理:CS信号異常動作の場合)
である。シリアル通信終了とした後に受信したシリアル
受信データは読み捨てる。図14には、次の事象〜
が示されている。 事象:シリアル受信要求(CS1 ON)入力。(シ
リアル受信要求発生により、スタンバイ状態からアクテ
ィブ状態に復帰する。) 事象:シリアル受信許可(RS1 ON)出力。(シ
リアル通信開始と判断する。) 事象:シリアル受信データ(RD1)入力開始。 事象:シリアル受信要求解除(CS1 OFF)入
力。 事象:シリアル受信禁止(RS1 OFF)出力。
(シリアル通信終了と判断し、以降のシリアル受信デー
タは読み捨てる。アクティブ状態からスタンバイ状態に
する。) 事象:シリアル受信データ(RD1)入力終了。
FIG. 14 is a timing chart 3 of serial reception processing (serial reception processing: in case of abnormal CS signal operation)
Is. The serial reception data received after the end of serial communication is discarded. In FIG. 14, the following events ~
It is shown. Event: Serial reception request (CS1 ON) input. (When the serial reception request is generated, the standby state is returned to the active state.) Event: Serial reception permission (RS1 ON) output. (It is determined that the serial communication is started.) Event: The serial reception data (RD1) input is started. Phenomenon: Serial reception request release (CS1 OFF) input. Event: Serial reception prohibited (RS1 OFF) output.
(It is determined that the serial communication has ended, and the subsequent serial received data is discarded. The active state is changed to the standby state.) Event: The serial received data (RD1) input is completed.

【0036】図15は、シリアル送受信処理タイミング
チャート1(シリアル送受信処理:受信処理中に送信要
求が発生した場合)である。受信処理中に送信要求が発
生した場合は、受信処理終了後に送信処理を行う。受信
処理終了時のスタンバイモードへの移行は行わない。図
15には、次の事象〜13が示されている。 事象:シリアル受信要求(CS1 ON)入力。(シ
リアル受信要求発生により、スタンバイ状態からアクテ
ィブ状態に復帰する。) 事象:シリアル受信許可(RS1 ON)出力。(シ
リアル通信開始と判断する。) 事象:シリアル受信データ(RD1)入力開始。 事象:シリアル受信データ(RD1)入力終了。 事象:(シリアル送信要求発生。) 事象シリアル受信要求解除(CS1 OFF)入力。 事象:シリアル受信禁止(RS1 OFF)出力。
(シリアル通信終了と判断する。) 事象:(シリアル送信要求が発生しているので、)シ
リアル送信要求(RS1 ON)出力。 事象:シリアル送信許可(CS1 ON)入力。(シ
リアル通信開始と判断する。) 事象10:シリアル送信データ(SD1)出力開始。 事象11:シリアル送信データ(SD1)出力終了。 事象12:シリアル送信要求解除(RS1 OFF)出
力。 事象13:シリアル送信禁止(CS1 OFF)入力。
(シリアル通信終了と判断し、アクティブ状態からスタ
ンバイ状態にする。)
FIG. 15 is a serial transmission / reception processing timing chart 1 (serial transmission / reception processing: when a transmission request is generated during the reception processing). When a transmission request is generated during the reception process, the transmission process is performed after the reception process is completed. It does not shift to the standby mode at the end of reception processing. In FIG. 15, the following events 13 are shown. Event: Serial reception request (CS1 ON) input. (When the serial reception request is generated, the standby state is returned to the active state.) Event: Serial reception permission (RS1 ON) output. (It is determined that the serial communication is started.) Event: The serial reception data (RD1) input is started. Event: Serial reception data (RD1) input end. Event: (Serial transmission request is generated.) Event Serial reception request release (CS1 OFF) input. Event: Serial reception prohibited (RS1 OFF) output.
(It is determined that the serial communication is completed.) Event: (Since a serial transmission request is generated), a serial transmission request (RS1 ON) is output. Event: Serial transmission permission (CS1 ON) input. (It is determined that serial communication has started.) Event 10: Output of serial transmission data (SD1) starts. Event 11: Output of serial transmission data (SD1) ends. Event 12: Serial transmission request release (RS1 OFF) output. Event 13: Serial transmission prohibition (CS1 OFF) input.
(It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0037】図16は、シリアル送受信処理タイミング
チャート2(シリアル送受信処理:送信処理中に受信し
た場合1)である。送信処理中はシリアル通信中なの
で、シリアルデータ受信を行う。図16には、次の事象
〜が示されている。 事象:(シリアル送信要求発生により、スタンバイ状
態からアクティブ状態に復帰する。)シリアル送信要求
(RS1 ON)出力。 事象:シリアル送信許可(CS1 ON)入力。(シ
リアル通信開始と判断する。) 事象:シリアル送信データ(SD1)出力開始。 事象:シリアル受信データ(RD1)入力開始。 事象:シリアル送信データ(SD1)出力終了。 事象シリアル送信要求解除(RS1 OFF)出力。 事象:シリアル受信データ(RD1)入力終了。 事象:シリアル送信禁止(CS1 OFF)入力。
(シリアル通信終了と判断し、アクティブ状態からスタ
ンバイ状態にする。)
FIG. 16 is a serial transmission / reception processing timing chart 2 (serial transmission / reception processing: 1 when received during transmission processing). Since serial communication is in progress during the transmission process, serial data reception is performed. In FIG. 16, the following events ~ are shown. Phenomenon: (When the serial transmission request is generated, the standby state is returned to the active state.) Serial transmission request (RS1 ON) output. Event: Serial transmission permission (CS1 ON) input. (It is determined that the serial communication is started.) Event: The serial transmission data (SD1) output is started. Event: Start of serial reception data (RD1) input. Event: Output of serial transmission data (SD1) ends. Event Serial transmission request release (RS1 OFF) output. Event: Serial reception data (RD1) input end. Event: Serial transmission prohibited (CS1 OFF) input.
(It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0038】図17は、シリアル送受信処理タイミング
チャート3(シリアル送受信処理:送信処理中に受信し
た場合2)である。送信処理中はシリアル通信中なの
で、シリアルデータ受信を行う。シリアル通信終了とし
た後に受信したシリアル受信データは読み捨てる。図1
7には、次の事象〜が示されている。 事象:(シリアル送信要求発生により、スタンバイ状
態からアクティブ状態に復帰する。)シリアル送信要求
(RS1 ON)出力。 事象:シリアル送信許可(CS1 ON)入力。(シ
リアル通信開始と判断する。) 事象:シリアル送信データ(SD1)出力開始。 事象:シリアル受信データ(RD1)入力開始。 事象:シリアル送信データ(RD1)入力終了。 事象シリアル送信禁止(CS1 OFF)入力。(シ
リアル送信データ(SD1)出力は停止しない。) 事象:シリアル送信データ(SD1)出力終了。 事象:シリアル送信要求解除(RS1 OFF)出
力。(シリアル通信終了と判断し、アクティブ状態から
スタンバイ状態にする。)
FIG. 17 is a serial transmission / reception processing timing chart 3 (serial transmission / reception processing: 2 when received during transmission processing). Since serial communication is in progress during the transmission process, serial data reception is performed. The serial reception data received after the end of serial communication is discarded. Figure 1
At 7, the following events are shown. Phenomenon: (When the serial transmission request is generated, the standby state is returned to the active state.) Serial transmission request (RS1 ON) output. Event: Serial transmission permission (CS1 ON) input. (It is determined that the serial communication is started.) Event: The serial transmission data (SD1) output is started. Event: Start of serial reception data (RD1) input. Event: Input of serial transmission data (RD1) ends. Event Serial transmission prohibition (CS1 OFF) input. (The serial transmission data (SD1) output does not stop.) Event: The serial transmission data (SD1) output ends. Event: Serial transmission request release (RS1 OFF) output. (It is judged that the serial communication is completed, and the active state is changed to the standby state.)

【0039】[0039]

【発明の効果】以上詳細に説明したように、本発明によ
れば、低消費電流モードを有する2つのデバイス間のシ
リアル通信ハードウェアフロー制御を実現するために必
要な信号路の数が、従来の4本から2本に削減されるこ
とにより、コネクタの省スペース化等の効果が得られ
る。
As described in detail above, according to the present invention, the number of signal paths required to realize serial communication hardware flow control between two devices having a low current consumption mode is conventionally reduced. By reducing the number from 4 to 2, the effects such as space saving of the connector can be obtained.

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

【図1】本発明方式に用いる信号伝送路を示す装置接続
図である。
FIG. 1 is a device connection diagram showing a signal transmission path used in the system of the present invention.

【図2】本発明方式におけるシリアル送信処理(a)と
シリアル受信処理(b)のフロー制御例を示すフローチ
ャートである。
FIG. 2 is a flowchart showing a flow control example of a serial transmission process (a) and a serial reception process (b) in the method of the present invention.

【図3】本発明方式に用いるシリアル通信処理手順1
(デバイス1:送信,デバイス2:受信)を示すフロー
チャートである。
FIG. 3 is a serial communication processing procedure 1 used in the method of the present invention.
It is a flowchart which shows (device 1: transmission, device 2: reception).

【図4】本発明方式に用いるシリアル通信処理手順2
(デバイス1:受信、デバイス2:送信)を示すフロー
チャートである。
FIG. 4 is a serial communication processing procedure 2 used in the method of the present invention.
It is a flowchart which shows (device 1: reception, device 2: transmission).

【図5】本発明方式における動作モード管理処理例を示
すフローチャートである。
FIG. 5 is a flowchart showing an example of operation mode management processing in the method of the present invention.

【図6】本発明方式におけるフロー制御処理例を示すフ
ローチャートである。
FIG. 6 is a flowchart showing an example of flow control processing in the method of the present invention.

【図7】本発明方式における送信処理例を示すフローチ
ャートである。
FIG. 7 is a flowchart showing an example of transmission processing in the method of the present invention.

【図8】本発明方式における受信処理例を示すフローチ
ャートである。
FIG. 8 is a flowchart showing an example of receiving processing in the method of the present invention.

【図9】本発明方式におけるシリアル送信処理例(正常
動作の場合)を示すタイミングチャートである。
FIG. 9 is a timing chart showing an example of serial transmission processing (in the case of normal operation) in the method of the present invention.

【図10】本発明方式におけるシリアル送信処理例(C
S信号異常動作の場合1)を示すタイミングチャートで
ある。
FIG. 10 shows an example of serial transmission processing (C
6 is a timing chart showing 1) in the case of an S signal abnormal operation.

【図11】本発明方式におけるシリアル送信処理例(R
D信号異常動作の場合2)を示すタイミングチャートで
ある。
FIG. 11 is an example of serial transmission processing (R
7 is a timing chart showing 2) in the case of a D signal abnormal operation.

【図12】本発明方式におけるシリアル受信処理例(正
常動作の場合)を示すタイミングチャートである。
FIG. 12 is a timing chart showing an example of serial reception processing (in the case of normal operation) in the method of the present invention.

【図13】本発明方式におけるシリアル受信処理例(R
D信号異常動作の場合)を示すタイミングチャートであ
る。
FIG. 13 shows an example of serial reception processing (R
7 is a timing chart showing a case of a D signal abnormal operation).

【図14】本発明方式におけるシリアル受信処理例(C
S信号異常動作の場合)を示すタイミングチャートであ
る。
FIG. 14 is an example of serial reception processing in the method of the present invention (C
7 is a timing chart showing a case of S signal abnormal operation).

【図15】本発明方式におけるシリアル送受信処理例
(受信処理中に送信要求が発生した場合)を示すタイミ
ングチャートである。
FIG. 15 is a timing chart showing an example of serial transmission / reception processing (when a transmission request occurs during reception processing) in the system of the present invention.

【図16】本発明方式におけるシリアル送受信処理例
(送信処理中に受信した場合1)を示すタイミングチャ
ートである。
FIG. 16 is a timing chart showing an example of serial transmission / reception processing (case 1 during reception during transmission processing) in the system of the present invention.

【図17】本発明方式におけるシリアル送受信処理例
(送信処理中に受信した場合2)を示すタイミングチャ
ートである。
FIG. 17 is a timing chart showing an example of serial transmission / reception processing (case 2 when receiving during transmission processing) in the method of the present invention.

【図18】従来方式における送受間伝送路接続図であ
る。
FIG. 18 is a transmission line connection diagram between the transmission and reception in the conventional method.

【図19】従来方式におけるシリアル送信処理(a)と
シリアル受信処理(b)のフロー制御例を示すフローチ
ャートである。
FIG. 19 is a flowchart showing an example of flow control of serial transmission processing (a) and serial reception processing (b) in the conventional method.

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

1 第1のデバイス 2 第2のデバイス RS1(CS2) 第1の制御信号 RS2(CS1) 第2の制御信号 CS1(RS2) 第1の応答信号 CS2(RS1) 第2の応答信号 1st device 2 Second device RS1 (CS2) First control signal RS2 (CS1) Second control signal CS1 (RS2) first response signal CS2 (RS1) second response signal

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 おのおのが、アクティブモードの外に低
消費電力モードであるスタンバイモードを有する第1の
デバイスと第2のデバイス間のシリアル通信の制御のた
めに、 前記第1のデバイスが前記第2のデバイスを前記スタン
バイモードから前記アクティブモードに復帰させるため
に該第1のデバイスから該第2のデバイスへ伝送される
第1の制御信号と、該第1の制御信号に対する応答とし
て該第2のデバイスから該第1のデバイスへ伝送される
第1の応答信号と、前記第2のデバイスが前記第1のデ
バイスを前記スタンバイモードから前記アクティブモー
ドに復帰させるために該第2のデバイスから該第1のデ
バイスへ伝送される第2の制御信号と、該第2の制御信
号に対する応答として該第1のデバイスから該第2のデ
バイスへ伝送される第2の応答信号とのうち、 前記第1の制御信号と前記第2の応答信号とは一つの信
号路を共用して伝送され、 前記第2の制御信号と前記第1の応答信号とは前記一つ
の信号路と異なる他の一つの信号路を共用して伝送され
るように構成されたことを特徴とするシリアル通信ハー
ドウェアフロー制御方式。
1. Each of the first devices is configured to control the serial communication between a first device and a second device that have a standby mode that is a low power consumption mode in addition to an active mode. A second control signal transmitted from the first device to the second device to return the second device from the standby mode to the active mode, and the second control signal in response to the first control signal. A first response signal transmitted from the first device to the first device, and the second device from the second device to return the first device from the standby mode to the active mode. A second control signal transmitted to the first device and a transmission from the first device to the second device in response to the second control signal. Of the second response signal to be transmitted, the first control signal and the second response signal are transmitted by sharing one signal path, and the second control signal and the first response signal are transmitted. Is a serial communication hardware flow control method characterized in that it is configured to be transmitted by sharing one signal path different from the one signal path.
【請求項2】 前記スタンバイモードから前記アクティ
ブモードへの復帰は、送出側となる前記第1のデバイス
又は前記第2のデバイスにおいて、前記第1の制御信号
又は前記第2の制御信号を送出する送信要求割り込みが
発生した時に行われるように構成されたことを特徴とす
る請求項1に記載のシリアル通信ハードウェアフロー制
御方式。
2. When returning from the standby mode to the active mode, the first control signal or the second control signal is transmitted from the first device or the second device on the transmission side. The serial communication hardware flow control system according to claim 1, wherein the serial communication hardware flow control system is configured to be executed when a transmission request interrupt occurs.
【請求項3】 前記スタンバイモードから前記アクティ
ブモードへの復帰は、受信側となる前記第1のデバイス
又は前記第2のデバイスにおいて、前記第1の制御信号
又は前記第2の制御信号の状態変化を検知したときに行
われるように構成されたことを特徴とする請求項1に記
載のシリアル通信ハードウェアフロー制御方式。
3. The return from the standby mode to the active mode is performed by changing the state of the first control signal or the second control signal in the first device or the second device on the receiving side. The serial communication hardware flow control method according to claim 1, wherein the serial communication hardware flow control method is configured to be performed when the above is detected.
【請求項4】 前記アクティブモードから前記スタンバ
イモードへの復帰は、当該アクティブモードの期間に発
生したものを含む前記シリアル通信の処理が終了した後
に行われるように構成されたことを特徴とする請求項1
乃至3のいずれかに記載のシリアル通信ハードウェアフ
ロー制御方式。
4. The return from the active mode to the standby mode is configured to be performed after the processing of the serial communication including the one that occurred during the active mode is completed. Item 1
4. A serial communication hardware flow control method according to any one of 3 to 3.
JP2002048265A 2002-02-25 2002-02-25 Serial communication hardware flow control method Expired - Fee Related JP3479527B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002048265A JP3479527B2 (en) 2002-02-25 2002-02-25 Serial communication hardware flow control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002048265A JP3479527B2 (en) 2002-02-25 2002-02-25 Serial communication hardware flow control method

Publications (2)

Publication Number Publication Date
JP2003249976A JP2003249976A (en) 2003-09-05
JP3479527B2 true JP3479527B2 (en) 2003-12-15

Family

ID=28661110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002048265A Expired - Fee Related JP3479527B2 (en) 2002-02-25 2002-02-25 Serial communication hardware flow control method

Country Status (1)

Country Link
JP (1) JP3479527B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008263281A (en) * 2007-04-10 2008-10-30 Nippon Telegr & Teleph Corp <Ntt> Power-saving control method between communication terminals, power-saving control system, and communication terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5344174B2 (en) * 2009-10-28 2013-11-20 日本電気株式会社 Hardware flow control method in information processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008263281A (en) * 2007-04-10 2008-10-30 Nippon Telegr & Teleph Corp <Ntt> Power-saving control method between communication terminals, power-saving control system, and communication terminal

Also Published As

Publication number Publication date
JP2003249976A (en) 2003-09-05

Similar Documents

Publication Publication Date Title
CN101018228B (en) A port convergence method and device
JPH08202469A (en) Microcontroller unit equipped with universal asychronous transmitting and receiving circuit
JP3479527B2 (en) Serial communication hardware flow control method
CN101256519A (en) Isomerization multicore system as well as serial port control automatic switch method based on said system
JP4073411B2 (en) Communication device and low power consumption mode selection method of the communication device
JP2919057B2 (en) Non-response monitoring method in multi-job system
JPH10222324A (en) Network system
JPH0983556A (en) Communication network and detection of fault
JP2003348107A (en) Two-way linked network, route selecting method used therefor, and program thereof
JPH0358644A (en) Method for detecting fault location
KR950008212B1 (en) Node state activation detection method and virtual transmission method of message in the switching communication node
JP2826774B2 (en) Data transfer device
JP3505540B2 (en) Data transfer device
JP2895878B2 (en) Modem device
JP3119028B2 (en) Calling device of communication device
JP2000322370A (en) Data outputting circuit
JP4257995B2 (en) Half-duplex communication control method
JP2880021B2 (en) Station number duplication state / connection order state confirmation method in programmable controller network system
JPH05136825A (en) Bypass route search device and bypass route search system
JP2845918B2 (en) Transmission system
JPH0865329A (en) Transmission control system
JPH04111561A (en) Communication system
JPH04337946A (en) Data transmission method
JPH06291772A (en) Operating state transition method for multiplex transmission system
JPH0767159A (en) Key telephone system

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081003

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081003

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091003

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees