JP2001325216A - Communication system switching device and communication system switching method - Google Patents

Communication system switching device and communication system switching method

Info

Publication number
JP2001325216A
JP2001325216A JP2000145446A JP2000145446A JP2001325216A JP 2001325216 A JP2001325216 A JP 2001325216A JP 2000145446 A JP2000145446 A JP 2000145446A JP 2000145446 A JP2000145446 A JP 2000145446A JP 2001325216 A JP2001325216 A JP 2001325216A
Authority
JP
Japan
Prior art keywords
communication
data
communication system
synchronous
communication mode
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
JP2000145446A
Other languages
Japanese (ja)
Inventor
Kenichi Ogino
健一 荻野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000145446A priority Critical patent/JP2001325216A/en
Publication of JP2001325216A publication Critical patent/JP2001325216A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication system switching device for accelerating a data transfer speed and easily switching a synchronous communication mode and an asynchronous communication mode by using a CPU provided with a serial interface coping with both of a synchronous communication system and an asynchronous communication system. SOLUTION: This communication switching device 10 is provided with a setting part 13 for performing initialization, a control part 14 for switching the synchronous communication mode and the asynchronous communication mode and performing communication by either one of the communication modes and a counter 16 for counting the number of the pulse signals of a fixed cycle transmitted from a controller 20 at the time of performing data communication by the synchronous communication system. The communication mode of the control part 14 is set to the asynchronous communication mode by the setting part 13 at the time of activation and the communication mode of the control part 14 is switched to the synchronous communication mode when the prescribed number of pulses are detected by the counter 16.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、同期通信方式およ
び非同期通信方式のデータ通信方式の切り換えを行う通
信方式切換装置に関し、特に、同期式通信のデータ方式
が有するパルス信号を用いて、データ通信方式の切換を
行う通信方式切換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication system switching device for switching between a synchronous communication system and an asynchronous communication system, and more particularly to a data communication system using a pulse signal of the synchronous communication data system. The present invention relates to a communication system switching device that performs system switching.

【0002】[0002]

【従来の技術】従来、カセットデッキ、MDプレーヤお
よびCDプレーヤなどの機器(以下、非制御機器とい
う)は、通常、直列伝送方式(以下、シリアル伝送方式
という)による同期通信方式を採用しており、これらの
非制御機器をキーコントローラなどの外部制御装置によ
って制御する場合には、図6に示すように、非制御機器
に、データ受信部1と、データ送信部2と、同期をとる
クロック信号入力部3とを備えた通信装置4を組み込
み、データ受信部1と、データ送信部2と、クロック信
号送信部5を備えた外部制御装置6によって、データを
送信して各制御するようになっている。
2. Description of the Related Art Conventionally, devices such as a cassette deck, an MD player and a CD player (hereinafter referred to as non-control devices) generally employ a synchronous communication system using a serial transmission system (hereinafter referred to as a serial transmission system). When these non-control devices are controlled by an external control device such as a key controller, as shown in FIG. 6, the non-control devices are provided with a data receiving unit 1, a data transmitting unit 2, and a clock signal for synchronizing. A communication device 4 including an input unit 3 is incorporated, and data is transmitted and controlled by an external control device 6 including a data receiving unit 1, a data transmitting unit 2, and a clock signal transmitting unit 5. ing.

【0003】また、一方、パーソナルコンピュータ(以
下、パソコンという)などの非同期通信方式によってデ
ータ通信を行う制御装置によって、これら非制御機器を
制御することも行われてきており、このような制御を行
うときのデータ通信の方法としては、特開平9−698
49号に記載されたものが知られている。
On the other hand, control devices such as personal computers (hereinafter referred to as personal computers) which perform data communication by an asynchronous communication system have been also used to control these non-control devices. A method of data communication at the time is disclosed in Japanese Patent Laid-Open No. 9-698.
No. 49 is known.

【0004】この通信方法は、図7に示すように、非制
御機器に組み込まれ、同期通信方式によってデータ通信
を行う通信装置7と、非同期通信方式によってデータ通
信を行う制御装置8との間に、同期通信用データと非同
期通信用データを相互変換する通信方式変換装置9を設
け、通信方式変換装置9に制御装置8からの非同期通信
開始キャラクタ信号が入力されると、通信方式変換装置
9の内部に格納されているプログラムが起動され、受信
した非同期式通信データを同期通信用データに解読し、
この同期通信用データを通信装置7に出力することによ
って行われている。また、通信装置7から入力された同
期通信用データは、同様にして、非同期通信用データに
変換されるとともに、制御装置8に出力されることによ
って、伝送されている。
As shown in FIG. 7, this communication method is incorporated between a non-control device and a communication device 7 for performing data communication by a synchronous communication system and a control device 8 for performing data communication by an asynchronous communication system. A communication system converter 9 for mutually converting synchronous communication data and asynchronous communication data. When an asynchronous communication start character signal is input from the control device 8 to the communication system converter 9, the communication system converter 9 The program stored inside is started, and the received asynchronous communication data is decoded into synchronous communication data,
This is performed by outputting the synchronous communication data to the communication device 7. Similarly, the synchronous communication data input from the communication device 7 is converted to asynchronous communication data and output to the control device 8 to be transmitted.

【0005】また、最近では、シリアルインターフェー
スを有し、同期通信用データと非同期通信用データとの
通信モードを切り換えて直接通信を行うことができる中
央演算処理装置(以下、CPUという)も安価になり、
このCPUを通信装置に組み込み、通信を行うようにも
なってきている。
Recently, a central processing unit (hereinafter referred to as a CPU) having a serial interface and capable of directly communicating by switching the communication mode between synchronous communication data and asynchronous communication data is also inexpensive. Become
This CPU has been incorporated in a communication device to perform communication.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、同期通
信と非同期通信との変換をプログラムによって行う方法
にあっては、入力された非同期通信データを、いちい
ち、データ変換するようになっているので、データの変
換に時間がかかり、データ転送速度が遅くなるという問
題を有していた。
However, in the method of performing the conversion between the synchronous communication and the asynchronous communication by the program, the input asynchronous communication data is converted one by one. Conversion takes a long time, and the data transfer speed is reduced.

【0007】また、同期通信方式および非同期通信方式
の双方に対応したシリアルインターフェースを有するC
PUを使用する場合であっては、同期通信方式および非
同期通信方式の切り換えを行うチップセレクトポートを
設けなくてはならず、このチップセレクトポートによっ
て通信モードを切り換えるとき、チップセレクトポート
を有する基板の抵抗を付け替える付け替え工数が発生
し、基板の品質低下が生じていた。さらに、通信方式を
切り換えるための回路、スイッチなどを設ける必要があ
り、このCPUを搭載する基板の回路が複雑になってい
た。
Further, a C interface having a serial interface compatible with both the synchronous communication system and the asynchronous communication system
In the case of using a PU, a chip select port for switching between a synchronous communication system and an asynchronous communication system must be provided. The man-hour for changing the resistance has to be changed, and the quality of the substrate has deteriorated. Further, it is necessary to provide a circuit, a switch, and the like for switching the communication system, and the circuit of the board on which the CPU is mounted has become complicated.

【0008】本発明は、同期通信方式および非同期通信
方式の双方に対応したシリアルインターフェースを有す
るCPUを使用し、データ転送速度が遅いという問題を
解決するとともに、通信方式を切り換える回路、スイッ
チを設けることなく、容易に同期通信モードと非同期通
信モードとを切り換える通信方式切換装置を提供するも
のである。
The present invention uses a CPU having a serial interface compatible with both the synchronous communication system and the asynchronous communication system, solves the problem of low data transfer speed, and provides a circuit and a switch for switching the communication system. It is another object of the present invention to provide a communication system switching device for easily switching between a synchronous communication mode and an asynchronous communication mode.

【0009】[0009]

【課題を解決するための手段】上記目的を達するため
に、本発明の請求項1記載の通信方式切換装置は、同期
通信方式および非同期通信方式の少なくとも何れか一方
のデータ通信方式によって通信を行う通信手段と、前記
同期方式のデータが有する同期をとるためのパルス信号
を検出するパルス信号検出手段と、前記パルス信号をカ
ウントするカウンタと、前記通信手段を前記非同期通信
方式に設定する設定手段とを備え、前記設定手段によっ
て、前記通信手段が前記非同期通信方式に設定されてい
る場合に、前記カウンタによって所定数の前記パルス信
号を検出したとき、前記通信手段を前記同期方式に切り
換えるようにした構成を有している。
According to a first aspect of the present invention, there is provided a communication system switching apparatus for performing communication by at least one of a synchronous communication system and an asynchronous communication system. Communication means, a pulse signal detection means for detecting a pulse signal for obtaining synchronization of the data of the synchronization method, a counter for counting the pulse signal, and a setting means for setting the communication means to the asynchronous communication method When the communication unit is set to the asynchronous communication system by the setting unit, when the counter detects a predetermined number of the pulse signals, the communication unit is switched to the synchronous system. It has a configuration.

【0010】この構成により、設定手段によって非同期
通信モードに設定できるとともに、非同期通信モードに
設定されている場合に、同期通信方式のデータが入力さ
れたときは、同期通信方式のデータが有するパルス信号
を検出することができるので、容易に、非同期通信モー
ドから同期通信モードに切り換えることができ、どちら
の通信モードでも通信をすることができる。
With this configuration, the asynchronous communication mode can be set by the setting means, and when the synchronous communication mode data is input in the asynchronous communication mode, the pulse signal of the synchronous communication mode data is input. Can be detected, so that the asynchronous communication mode can be easily switched to the synchronous communication mode, and communication can be performed in either communication mode.

【0011】また、通信データを同期式通信用データか
ら非同期式通信用データに変換することなく、通信手段
の通信モードを切り換えて通信を行うことができ、転送
速度を向上させたデータ通信を行うことができる。
In addition, communication can be performed by switching the communication mode of the communication means without converting communication data from synchronous communication data to asynchronous communication data, thereby performing data communication with an improved transfer speed. be able to.

【0012】さらに、非同期通信モード時に同期通信モ
ードに切換を行うだけで、通信モードの切換制御を行っ
ているので、付加回路を設けることなく、通信モードの
切換制御を容易にすることができ、動作を安定させるこ
とができる。
Further, since the switching of the communication mode is controlled only by switching to the synchronous communication mode in the asynchronous communication mode, the switching control of the communication mode can be facilitated without providing an additional circuit. Operation can be stabilized.

【0013】上記目的を達するために、本発明の請求項
2記載の通信方式切換装置は、請求項1の発明におい
て、前記カウンタが、前記パルス信号のレベル値の変化
を検出することによって、前記パルス信号数を検出する
ようにした構成を有している。
According to a second aspect of the present invention, there is provided a communication system switching apparatus according to the first aspect, wherein the counter detects a change in the level value of the pulse signal in the first aspect of the invention. It has a configuration for detecting the number of pulse signals.

【0014】この構成により、パルス信号のレベル値の
変化をカウントすることができるので、所定数のパルス
信号を検出することができる。
According to this configuration, a change in the level value of the pulse signal can be counted, so that a predetermined number of pulse signals can be detected.

【0015】上記目的を達するために、本発明の請求項
3記載の通信方式切換装置は、請求項1の発明におい
て、前記カウンタが、一定時間毎に前記パルス信号のレ
ベル値を検出することによって前記パルス信号数を検出
するようにした構成を有している。
According to a third aspect of the present invention, there is provided a communication system switching device according to the first aspect, wherein the counter detects a level value of the pulse signal at regular time intervals. It has a configuration for detecting the number of pulse signals.

【0016】この構成により、一定時間毎に、パルス信
号のレベル値を検出することができるので、所定数のパ
ルス信号を検出することができる。
With this configuration, the level value of the pulse signal can be detected at regular intervals, so that a predetermined number of pulse signals can be detected.

【0017】上記目的を達するために、本発明の請求項
4記載の通信方式切換方法は、通信手段を非同期通信方
式によってデータ通信を行うように設定する設定工程
と、前記設定工程よって前記通信手段が非同期通信方式
に設定されている場合に、同期通信方式のデータが有す
る同期をとるためのパルス信号を検出するとともに、検
出された前記パルス信号の数をカウントする検出工程と
を含み、前記検出工程によって所定数の前記パルス信号
が検出されたとき、前記通信手段を前記同期通信方式に
よって前記データ通信を行うように切り換えるようにし
た構成を有している。
In order to achieve the above object, a communication method switching method according to a fourth aspect of the present invention includes a setting step of setting communication means to perform data communication by an asynchronous communication method, and a step of setting the communication means by the setting step. Detecting the pulse signal for obtaining the synchronization of the data of the synchronous communication system when the asynchronous communication system is set, and counting the number of the detected pulse signal, the detection step, When a predetermined number of the pulse signals are detected in the step, the communication means is switched to perform the data communication by the synchronous communication method.

【0018】この構成により、設定手段によって非同期
通信モードに設定できるとともに、非同期通信モードに
設定されている場合に、同期通信方式のデータが入力さ
れたときは、同期通信方式のデータが有するパルス信号
を検出することができるので、容易に、非同期通信モー
ドから同期通信モードに切り換えることができ、どちら
の通信モードでも通信をすることができる。
According to this configuration, the asynchronous communication mode can be set by the setting means. When the asynchronous communication mode is set and the data of the synchronous communication system is input, the pulse signal included in the data of the synchronous communication system is set. Can be detected, so that the asynchronous communication mode can be easily switched to the synchronous communication mode, and communication can be performed in either communication mode.

【0019】また、通信データを同期式通信用データか
ら非同期式通信用データに変換することなく、通信手段
の通信モードを切り換えて通信を行うことができ、転送
速度を向上させたデータ通信を行うことができる。
Further, communication can be performed by switching the communication mode of the communication means without converting communication data from synchronous communication data to asynchronous communication data, thereby performing data communication with an improved transfer speed. be able to.

【0020】さらに、非同期通信モード時に同期通信モ
ードに切換を行うだけで、通信モードの切換制御を行っ
ているので、付加回路を設けることなく、通信モードの
切換制御を容易にすることができ、動作を安定させるこ
とができる。
Further, since the switching of the communication mode is controlled only by switching to the synchronous communication mode in the asynchronous communication mode, the switching control of the communication mode can be facilitated without providing an additional circuit. Operation can be stabilized.

【0021】[0021]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を用いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0022】図1〜5は、本発明に係る通信方式切換装
置および通信方式切換方法の一実施形態を示す図であ
り、この通信方式切換装置および通信方式切換方法は、
MDプレーヤ、CDプレーヤおよびカセットデッキなど
の非制御機器に組み込まれるマイコンなどの通信装置
に、または、これら非制御機器を通信方式切換装置を介
し外部コントローラおよびパソコンなどにより外部制御
する制御方法に適用される。
FIGS. 1 to 5 show an embodiment of a communication system switching apparatus and a communication system switching method according to the present invention.
It is applied to communication devices such as microcomputers incorporated in non-control devices such as MD players, CD players, and cassette decks, or to a control method in which these non-control devices are externally controlled by an external controller and a personal computer via a communication system switching device. You.

【0023】まず、構成を説明する。First, the configuration will be described.

【0024】例えば、MDプレーヤにマイコンユニット
として組み込まれ、シリアル伝送方式によって通信を行
う通信方式切換装置10は、図1、図2に示すように、制
御装置20、30のデータ送信部21から出力された通信デー
タを受信するデータ受信部11と、制御装置20、30のデー
タ受信部22に通信データを送信するデータ送信部12と、
初期設定を行う設定部13と、データ受信部11において受
信したデータの処理を行うとともに、処理したデータを
データ送信部12を介して制御装置20、30に送信する制御
部14とを備え、設定部13および制御部14は、本発明の設
定手段および通信手段を構成している。
For example, as shown in FIGS. 1 and 2, a communication mode switching device 10 incorporated in an MD player as a microcomputer unit and performing communication by a serial transmission system outputs data from a data transmission unit 21 of control devices 20 and 30. A data receiving unit 11 for receiving the communication data, a data transmitting unit 12 for transmitting communication data to the data receiving unit 22 of the control devices 20 and 30,
A setting unit 13 for performing initial setting, and a control unit 14 for processing the data received by the data receiving unit 11 and transmitting the processed data to the control devices 20 and 30 via the data transmitting unit 12, The unit 13 and the control unit 14 constitute a setting unit and a communication unit of the present invention.

【0025】図1は、同期通信方式によってデータ通信
を行う制御装置20と、この制御装置20に接続された通信
方式切換装置10とのシステム系統図であり、同期通信方
式のデータが有する同期をとるためのクロック信号、す
なわち一定周期のパルス信号を受信するクロック信号受
信部15と、一定周期のパルス信号数をカウントするカウ
ンタ16とに、制御装置20のクロック信号送信部23から送
信されたクロック信号を入力するようになっている。こ
のクロック信号受信部15は、本発明のパルス信号検出手
段を構成している。
FIG. 1 is a system diagram of a control device 20 for performing data communication by a synchronous communication system and a communication system switching device 10 connected to the control device 20. The clock signal transmitted from the clock signal transmission unit 23 of the control device 20 is supplied to a clock signal receiving unit 15 for receiving a pulse signal of a predetermined period, that is, a clock signal receiving unit 15 for receiving a pulse signal of a predetermined period. A signal is to be input. This clock signal receiving section 15 constitutes a pulse signal detecting means of the present invention.

【0026】また、図2は、非同期通信方式によってデ
ータ通信を行う制御装置30と、この制御装置30に接続さ
れた通信方式切換装置10とのシステム系統図であり、通
信方式切換装置10のクロック信号受信部15およびカウン
タ16は、図1と異なり制御装置30と非接続になってい
る。
FIG. 2 is a system diagram of a control device 30 for performing data communication by the asynchronous communication method and a communication method switching device 10 connected to the control device 30. The signal receiving unit 15 and the counter 16 are not connected to the control device 30 unlike FIG.

【0027】非同期通信方式によって通信を行っている
ときは、図2に示すように、クロック信号受信部15およ
びカウンタ16ともに、プルアップ抵抗により一定のレベ
ル値(例えば、Hi)に固定された状態で変化すること
がない。一方、同期通信用のデータが制御装置20から出
力されると、図1に示すように、カウンタ16にパルス信
号が現れるようになる。この結果、クロック信号受信部
15およびカウンタ16において、パルス信号を検出するこ
とができるようになっている。
When communication is performed by the asynchronous communication method, as shown in FIG. 2, both the clock signal receiving unit 15 and the counter 16 are fixed to a constant level value (eg, Hi) by a pull-up resistor. It does not change with. On the other hand, when the data for synchronous communication is output from the control device 20, a pulse signal appears on the counter 16 as shown in FIG. As a result, the clock signal receiving unit
The pulse signal can be detected in the counter 15 and the counter 16.

【0028】カウンタ16は、入力されたパルス信号を検
出し、所定数のパルス信号が検出されると、このパルス
信号を検出した旨の信号(以下、検出信号という)を制
御部14に出力するようになっている。
The counter 16 detects the input pulse signal, and when a predetermined number of pulse signals are detected, outputs a signal indicating that the pulse signal has been detected (hereinafter, referred to as a detection signal) to the control unit 14. It has become.

【0029】また、このカウンタ16は、高速で伝送され
たパルス信号を取りこぼすことなく受信することができ
るようハードウェアによって構成するようになってい
る。
The counter 16 is configured by hardware so that a pulse signal transmitted at a high speed can be received without being missed.

【0030】設定部13は、図示しないメモリを有し、初
期設定によって設定された設定情報をこのメモリに格納
するとともに、この情報に基づいて、制御部14の通信方
式(以下、通信モードという)の設定をするようになっ
ている。
The setting unit 13 has a memory (not shown), stores setting information set by the initial setting in this memory, and, based on this information, a communication method of the control unit 14 (hereinafter referred to as a communication mode). Is set.

【0031】通常、初期設定は、制御部14を非同期通信
方式のデータを処理(以下、非同期通信モードという)
するよう設定するようになっており、このため、通信方
式切換装置10が起動されると、常に、制御部14を非同期
通信モードに設定されるようになっている。
Normally, in the initial setting, the control unit 14 processes data of the asynchronous communication system (hereinafter, referred to as asynchronous communication mode).
Therefore, when the communication mode switching device 10 is started, the control unit 14 is always set to the asynchronous communication mode.

【0032】制御部14は、中央演算処理装置(以下、C
PUという)から構成されており、このCPUによっ
て、データ処理を行うようになっている。
The control unit 14 has a central processing unit (hereinafter referred to as C
PU), and the CPU performs data processing.

【0033】この制御部14は、カウンタ16から出力され
た検出信号に基づき、または、設定部13の指示に基づ
き、同期通信方式のデータの処理(以下、同期通信モー
ドという)および非同期通信モードのどちらか一方の通
信モードに設定するようになっている。
The control unit 14 processes synchronous synchronous data (hereinafter referred to as a synchronous communication mode) and operates in an asynchronous communication mode based on a detection signal output from the counter 16 or based on an instruction from the setting unit 13. One of the communication modes is set.

【0034】また、制御部14は、データ受信部11におい
て受信した通信データを解析して、図示しないMDプレ
ーヤの各処理部にデータを出力および各処理部を制御す
るようになっているとともに、図示しないMDプレーヤ
の各処理部からのデータをデータ送信部12を介して、制
御装置20、30に出力するようになっている。
The control unit 14 analyzes the communication data received by the data receiving unit 11, outputs data to each processing unit (not shown) of the MD player, and controls each processing unit. Data from each processing unit of the MD player (not shown) is output to the control devices 20 and 30 via the data transmission unit 12.

【0035】制御部14は、通信データを出力するとき、
同期通信モードに設定されているときは、同期通信方式
によって、非同期通信モードに設定されているときは、
非同期通信方式によってデータを送信するようになって
いる。
When outputting the communication data, the control unit 14
When set to synchronous communication mode, by synchronous communication method, when set to asynchronous communication mode,
Data is transmitted by an asynchronous communication method.

【0036】また、この制御部14の通信モードが同期通
信モードのとき、制御部14は、クロック信号データ受信
部14において受信した制御装置20のクロック周波数に基
づき、内部動作のクロック信号を同期させ、データの送
受信を行うようになっている。
When the communication mode of the control unit 14 is the synchronous communication mode, the control unit 14 synchronizes the clock signal of the internal operation based on the clock frequency of the control device 20 received by the clock signal data reception unit 14. , For transmitting and receiving data.

【0037】このように、制御装置20が非同期通信方式
のデータを出力するときは、初期設定の状態で対応でき
るとともに、制御装置20が同期通信方式のデータを出力
するときは、カウンタ16にパルス信号が入力されるの
で、制御部14の通信モードを同期通信モードに切り換
え、同期通信モードによって通信を行えるようになって
いる。
As described above, when the control device 20 outputs the data of the asynchronous communication system, it can respond in the initial setting state, and when the control device 20 outputs the data of the synchronous communication system, the counter 16 outputs a pulse to the counter 16. Since the signal is input, the communication mode of the control unit 14 is switched to the synchronous communication mode, and communication can be performed in the synchronous communication mode.

【0038】次に、通信方式切換装置10の通信モードの
切換動作について説明する。ここで、図3は、本動作を
示すフローチャートである。
Next, the operation of switching the communication mode of the communication system switching device 10 will be described. Here, FIG. 3 is a flowchart showing this operation.

【0039】まず、通信方式切換装置10を起動させ、制
御部14の通信モードを非同期通信モードに設定するとと
もに、カウンタ16において、パルス信号の入力を監視す
る(ステップS1)。
First, the communication mode switching device 10 is started, the communication mode of the control unit 14 is set to the asynchronous communication mode, and the input of a pulse signal is monitored by the counter 16 (step S1).

【0040】このとき、パルス信号が未検出であるとと
もに、非同期通信方式のデータが入力されると、この状
態で、非同期通信方式によって、データ通信を行う。
At this time, when the pulse signal has not been detected and the data of the asynchronous communication system is input, data communication is performed by the asynchronous communication system in this state.

【0041】また、この状態において、パルス信号が検
出されると、所定数のパルス信号が検出されたかどうか
判断する(ステップS2)。所定数のパルス信号が検出
されなかったとき、この判断を繰り返し、パルス信号の
監視を続け、所定数のパルス信号が検出されたとき、以
下の動作を行う。
When a pulse signal is detected in this state, it is determined whether a predetermined number of pulse signals have been detected (step S2). When a predetermined number of pulse signals are not detected, this determination is repeated and monitoring of the pulse signals is continued. When a predetermined number of pulse signals are detected, the following operation is performed.

【0042】まず、制御装置20から所定のバイト数で構
成される接続確認コマンドがデータ受信部11を介して制
御部14に入力され、制御部14を同期通信モードに設定す
る(ステップS3)。
First, a connection confirmation command composed of a predetermined number of bytes is input from the control device 20 to the control unit 14 via the data receiving unit 11, and the control unit 14 is set to the synchronous communication mode (step S3).

【0043】次に、再び、制御装置20から所定のバイト
数で構成される接続確認コマンドがデータ入力部11を介
して、制御部14に入力される。この2度目の接続確認コ
マンドが入力されると、制御部14は、データ送信部12か
ら接続確認コマンドに対する応答のステータスを送信す
る(ステップS4)。
Next, a connection confirmation command composed of a predetermined number of bytes is again input from the control device 20 to the control unit 14 via the data input unit 11. When the second connection confirmation command is input, the control unit 14 transmits a status of a response to the connection confirmation command from the data transmission unit 12 (step S4).

【0044】次に、制御装置20は、この応答を確認する
と、データを通信方式切換装置10に送信を開始する(ス
テップS5)。なお、通信方式切換装置10が応答のステ
ータスを返すまで、制御装置20は、接続確認コマンドを
送信し続ける。
Next, upon confirming this response, the control device 20 starts transmitting data to the communication system switching device 10 (step S5). Note that the control device 20 continues to transmit the connection confirmation command until the communication mode switching device 10 returns a response status.

【0045】最後に、制御部14によりデータの受信を検
出したら、カウンタ16の監視を終了させ(ステップS
6)、本動作を終了させる。
Finally, when the control unit 14 detects the reception of data, the monitoring of the counter 16 is terminated (Step S).
6), end this operation.

【0046】このように、同期通信モードと、非同期通
信モードとの切り換えが行われるようになっている。ま
た、同期通信方式によって通信モードを切り換えると
き、接続確認コマンドにより同期通信確立のための確認
処理(ステップS3、ステップS4、ステップS5)を
行うようになっているので、通信方式切換装置10におい
て、非同期通信モードから同期通信モードに切り換わる
とき、制御装置30から出力されたコマンドが無効になら
ないようになっている。
As described above, switching between the synchronous communication mode and the asynchronous communication mode is performed. When the communication mode is switched by the synchronous communication method, the confirmation processing for establishing the synchronous communication (step S3, step S4, step S5) is performed by the connection confirmation command. When switching from the asynchronous communication mode to the synchronous communication mode, the command output from the control device 30 is not invalidated.

【0047】以上説明したように、本実施形態によれ
ば、初期設定によって、通信方式切換装置10の制御部14
を非同期通信モードに設定するとともに、同期通信モー
ドによって制御装置20からデータが送信されたとき、カ
ウンタ16によって所定のパルス信号数を検出することが
できるので、非同期通信用データおよび同期通信用デー
タのどちらかであるか認識することができ、制御部14の
処理動作を切り換えることができる。この結果、同期通
信モードおよび非同期通信モードのどちらの通信モード
においても通信することができ、容易に、かつ、正確
に、通信方式切換装置10を動作させることができるよう
になっている。
As described above, according to the present embodiment, the control unit 14 of the communication system switching apparatus 10
Is set to the asynchronous communication mode, and when data is transmitted from the control device 20 in the synchronous communication mode, the predetermined number of pulse signals can be detected by the counter 16, so that the asynchronous communication data and the synchronous communication data are It is possible to recognize which one is, and the processing operation of the control unit 14 can be switched. As a result, communication can be performed in both the synchronous communication mode and the asynchronous communication mode, and the communication method switching device 10 can be easily and accurately operated.

【0048】また、通信データを同期式通信用データか
ら非同期式通信用データに変換することなく、直接デー
タを通信することができるので、転送速度の速いデータ
通信を行うことができる。
Further, since the data can be directly communicated without converting the communication data from the synchronous communication data to the asynchronous communication data, the data communication with a high transfer rate can be performed.

【0049】また、同期通信モードおよび非同期通信モ
ードの切り換えは、通信方式切換装置10を起動し直すこ
とによって行うことになるが、通常、通信モードの設定
は、制御装置20側の通信モードは固定されているので、
一度行えれば、その動作中には行う必要がない。もし、
同期通信モードから非同期通信モードの切り換えが必要
なときは、制御装置20も通信モードの異なる装置に接続
し直すので、上述のように、通信方式切換装置10を起動
し直すことによって、十分対応できるようになってい
る。また、このように、通信方式切換装置10を起動し直
すことによって、構成およびアルゴリズムをシンプルに
することができ、装置およびシステムにおける不安定動
作を取り除くことができるようになっている。
The switching between the synchronous communication mode and the asynchronous communication mode is performed by restarting the communication system switching device 10. Usually, the communication mode is set by setting the communication mode of the control device 20 to a fixed one. Has been
Once done, there is no need to do it during the operation. if,
When switching from the synchronous communication mode to the asynchronous communication mode is required, the control device 20 is also reconnected to a device having a different communication mode. Therefore, as described above, the control can be sufficiently performed by restarting the communication method switching device 10. It has become. In addition, by restarting the communication system switching device 10 in this manner, the configuration and the algorithm can be simplified, and unstable operations in the device and the system can be eliminated.

【0050】なお、本実施形態では、カウンタを通信方
式切換装置10の内部に配設するようになっているが、図
4、5に示すように、カウンタ40を通信方式切換装置10
の外部に配設するようになってもよい。
In this embodiment, the counter is provided inside the communication system switching device 10, but as shown in FIGS.
It may be arranged outside the device.

【0051】この場合、カウンタ40から出力される検出
信号は、通信方式切換装置10の検出信号入力部41に入力
するようになっており、検出信号入力部41は、この検出
信号を制御部14に出力するようになっている。
In this case, the detection signal output from the counter 40 is input to a detection signal input section 41 of the communication system switching device 10, and the detection signal input section 41 outputs the detection signal to the control section 14 Output.

【0052】また、本実施形態において、カウンタ16の
パルス信号数の検出を、入力パルス信号のエッジ割り込
みを検出、すなわち、入力パルス信号のレベル値の変化
を検出、または、タイマー割り込み、すなわち、CPU
のタイマーに基づく一定時間毎の入力パルス信号のレベ
ル値を検出することによって、パルス信号数を検出する
ようにしてもよい。
In the present embodiment, the number of pulse signals of the counter 16 is detected by detecting an edge interrupt of the input pulse signal, that is, detecting a change in the level value of the input pulse signal, or a timer interrupt, that is, by detecting the CPU interrupt.
The number of pulse signals may be detected by detecting the level value of the input pulse signal at regular intervals based on the timer.

【0053】この場合、入力されたパルス信号を検出す
るカウンタ16を有していなくても、パルス信号のレベル
変化、または、一定時間毎のパルス信号のレベル値を検
出できる構成を有していればよい。
In this case, even if it does not have the counter 16 for detecting the input pulse signal, it is possible to have a configuration capable of detecting the level change of the pulse signal or the level value of the pulse signal at regular time intervals. I just need.

【0054】[0054]

【発明の効果】以上説明したように、本発明の通信方式
切換装置は、初期設定によって、非同期通信モードに設
定されるとともに、同期通信モードによってデータが入
力されたとき、非同期通信モードに設定された通信モー
ドを同期通信モードに変換することができるので、同期
通信モードおよび非同期通信モードどちらの通信モード
でも通信することができ、通信データを同期式通信用デ
ータから非同期式通信用データに変換することなく、転
送速度の速いデータ通信を行うことができる。
As described above, the communication mode switching device of the present invention is set to the asynchronous communication mode by the initial setting, and is set to the asynchronous communication mode when data is input in the synchronous communication mode. Communication mode can be converted to a synchronous communication mode, so that communication can be performed in either the synchronous communication mode or the asynchronous communication mode, and communication data is converted from synchronous communication data to asynchronous communication data. Thus, high-speed data communication can be performed.

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

【図1】本発明に係る通信方式切換装置の一実施形態に
おける同期通信方式を説明するための系統図である。
FIG. 1 is a system diagram for explaining a synchronous communication system in an embodiment of a communication system switching device according to the present invention.

【図2】本発明に係る通信方式切換装置の一実施形態に
おける非同期通信方式を説明するための系統図である。
FIG. 2 is a system diagram for explaining an asynchronous communication system in one embodiment of the communication system switching device according to the present invention.

【図3】一実施形態の同期通信および非同期通信の切換
動作原理を示すフローチャートである。
FIG. 3 is a flowchart illustrating a principle of switching operation between synchronous communication and asynchronous communication according to the embodiment;

【図4】一実施形態におけるカウンタを外部に配設した
ときの同期通信方式を説明するための系統図である。
FIG. 4 is a system diagram for explaining a synchronous communication system when a counter according to one embodiment is provided outside.

【図5】一実施形態におけるカウンタを外部に配設した
ときの非同期通信方式を説明するための系統図である。
FIG. 5 is a system diagram for explaining an asynchronous communication system when a counter is provided outside in one embodiment.

【図6】従来の同期通信方式によって行われる通信装置
を説明するための系統図である。
FIG. 6 is a system diagram for explaining a communication device performed by a conventional synchronous communication method.

【図7】従来の同期通信方式および非同期通信方式のデ
ータ変換を行う通信方法を説明するための図である。
FIG. 7 is a diagram for explaining a conventional communication method for performing data conversion between a synchronous communication method and an asynchronous communication method.

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

10 通信方式切換装置 13 設定部(設定手段) 14 制御部(通信手段) 15 クロック信号受信部(パルス信号検出手段) 16、30 カウンタ 10 Communication mode switching device 13 Setting section (setting means) 14 Control section (communication means) 15 Clock signal receiving section (pulse signal detecting means) 16, 30 counter

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 同期通信方式および非同期通信方式の少
なくとも何れか一方の通信方式によってデータ通信を行
う通信手段と、前記同期通信方式のデータが有する同期
をとるためのパルス信号を検出するパルス信号検出手段
と、前記パルス信号をカウントするカウンタと、前記通
信手段を前記非同期通信方式に設定する設定手段とを備
え、前記設定手段によって、前記通信手段が前記非同期
通信方式に設定されている場合に、前記カウンタによっ
て所定数の前記パルス信号を検出したとき、前記通信手
段を前記同期通信方式に切り換えるようにしたことを特
徴とする通信方式切換装置。
A communication means for performing data communication by at least one of a synchronous communication method and an asynchronous communication method, and a pulse signal detection for detecting a pulse signal for obtaining synchronization of data of the synchronous communication method Means, a counter for counting the pulse signal, and a setting means for setting the communication means to the asynchronous communication method, when the communication means is set to the asynchronous communication method by the setting means, A communication system switching device, wherein when the counter detects a predetermined number of the pulse signals, the communication unit is switched to the synchronous communication system.
【請求項2】 前記カウンタが、前記パルス信号のレベ
ル値の変化を検出することによって、前記パルス信号数
を検出するようにしたことを特徴とする請求項1記載の
通信方式切換装置。
2. The communication system switching device according to claim 1, wherein the counter detects the number of the pulse signals by detecting a change in the level value of the pulse signal.
【請求項3】 前記カウンタが、一定時間毎に前記パル
ス信号のレベル値を検出することによって前記パルス信
号数を検出するようにしたことを特徴とする請求項1記
載の通信方式切換装置。
3. The communication system switching device according to claim 1, wherein the counter detects the number of the pulse signals by detecting a level value of the pulse signal at regular time intervals.
【請求項4】 通信手段を非同期通信方式によってデー
タ通信を行うように設定する設定工程と、前記設定工程
よって前記通信手段が非同期通信方式に設定されている
場合に、同期通信方式のデータが有する同期をとるため
のパルス信号を検出するとともに、検出された前記パル
ス信号の数をカウントする検出工程とを含み、前記検出
工程によって所定数の前記パルス信号が検出されたと
き、前記通信手段を前記同期通信方式によって前記デー
タ通信を行うように切り換えるようにしたことを特徴と
するデータ通信方式切換方法。
4. A setting step of setting the communication means to perform data communication by the asynchronous communication method, and, when the communication means is set to the asynchronous communication method by the setting step, data of the synchronous communication method is provided. Detecting a pulse signal for synchronizing, and detecting the number of the detected pulse signals, including a detecting step, when the detection step detects a predetermined number of the pulse signals, the communication means, A data communication system switching method, wherein the data communication is switched so as to be performed by a synchronous communication system.
JP2000145446A 2000-05-17 2000-05-17 Communication system switching device and communication system switching method Pending JP2001325216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000145446A JP2001325216A (en) 2000-05-17 2000-05-17 Communication system switching device and communication system switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000145446A JP2001325216A (en) 2000-05-17 2000-05-17 Communication system switching device and communication system switching method

Publications (1)

Publication Number Publication Date
JP2001325216A true JP2001325216A (en) 2001-11-22

Family

ID=18651954

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000145446A Pending JP2001325216A (en) 2000-05-17 2000-05-17 Communication system switching device and communication system switching method

Country Status (1)

Country Link
JP (1) JP2001325216A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010523387A (en) * 2007-04-06 2010-07-15 エアバス Aircraft maintenance methods and equipment
JP7430327B2 (en) 2020-06-02 2024-02-13 多摩川精機株式会社 serial communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010523387A (en) * 2007-04-06 2010-07-15 エアバス Aircraft maintenance methods and equipment
JP7430327B2 (en) 2020-06-02 2024-02-13 多摩川精機株式会社 serial communication system

Similar Documents

Publication Publication Date Title
EP1638007B1 (en) Serial data transmission between a data processing apparatus and an external storage apparatus
JP2001325216A (en) Communication system switching device and communication system switching method
US7203205B2 (en) Polling device and communication apparatus
JP5304210B2 (en) Control system
CA1270576A (en) Ic device compatible with input signals in the formats for two-line and four-line type bus lines
JPH07168740A (en) Watchdog method
CN110362349B (en) Virtual input management device and management method thereof
JP2001236303A (en) Universal serial bus control circuit
JPH08191319A (en) Data communication system
JPS63164554A (en) Automatic recognizing system for data speed
JP3593882B2 (en) Printing apparatus and interface control method
JP2724323B2 (en) Signal switching device and signal switching method
JPH0993145A (en) Transmission output control system
JP4097377B2 (en) Microcomputer
JP2941266B1 (en) Encoder data output method for bus communication type encoder device
JP2733283B2 (en) Serial transmission control device
JP2661583B2 (en) Clock signal distribution apparatus and method
JP2000035834A (en) Remote resetting device
CN116018588A (en) Error signaling window for phase differential protocol
JPH1196019A (en) Method for controlling interruption
JPH06334668A (en) Multiplexed transmission system
JPH11205396A (en) Serial communication equipment
JPH10200602A (en) Master/slave communication system
JPH08307478A (en) Serial communication equipment
JPH09205469A (en) Data communication system and data communication method