JP2015026210A - Serial communication device - Google Patents

Serial communication device Download PDF

Info

Publication number
JP2015026210A
JP2015026210A JP2013154930A JP2013154930A JP2015026210A JP 2015026210 A JP2015026210 A JP 2015026210A JP 2013154930 A JP2013154930 A JP 2013154930A JP 2013154930 A JP2013154930 A JP 2013154930A JP 2015026210 A JP2015026210 A JP 2015026210A
Authority
JP
Japan
Prior art keywords
signal
serial
parallel
serial communication
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013154930A
Other languages
Japanese (ja)
Other versions
JP6093263B2 (en
Inventor
田中 康司
Yasushi Tanaka
康司 田中
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.)
Toyo Electric Manufacturing Ltd
Original Assignee
Toyo Electric Manufacturing 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 Toyo Electric Manufacturing Ltd filed Critical Toyo Electric Manufacturing Ltd
Priority to JP2013154930A priority Critical patent/JP6093263B2/en
Publication of JP2015026210A publication Critical patent/JP2015026210A/en
Application granted granted Critical
Publication of JP6093263B2 publication Critical patent/JP6093263B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate a reset signal having high accuracy without deterioration in quality of a reception signal.SOLUTION: The serial communication device comprises: a serial reception unit 1 for receiving a signal on a serial communication line to output a serial signal; a serial/parallel conversion unit 2 for converting the serial signal into a parallel signal and also generating a timing pulse signal; a parallel data accumulation unit 3 for accumulating the parallel signal; a processor 4 for reading the parallel signal from the parallel data accumulation unit 3; and a pulse monitoring unit 5 for monitoring a change of the timing pulse signal and, when the timing pulse signal has not been changed for a predetermined time or longer, outputting a reset signal to the serial reception unit 1, the serial/parallel conversion unit 2, and the processor 4.

Description

本発明は、通信異常を判定するシリアル通信装置に関する。   The present invention relates to a serial communication device that determines a communication abnormality.

一定周期でシリアル通信を行うシステムでは、通信ケーブルがはずれたり通信相手の電源が落とされたりするなどの要因で一定時間信号を受信しない場合、通信異常と判定するものがある。   In a system that performs serial communication at a constant cycle, there is a system that determines a communication error when a signal is not received for a certain period of time due to disconnection of a communication cable or power-off of a communication partner.

このような通信異常を検知する手法として、プロセッサが信号を受信する時間の間隔を測定し、一定時間信号を受信しない場合には受信装置を初期化するという手法が考えられるが、プロセッサの処理が煩雑になってしまう。   As a method for detecting such a communication abnormality, a method may be considered in which the time interval at which the processor receives a signal is measured, and when the signal is not received for a certain period of time, the receiving device is initialized. It becomes complicated.

そこで、シリアル通信線上の信号の変化をウォッチドッグタイマなどの監視手段により監視し、通信異常をプロセッサの処理によらず検知してリセット信号を生成するシリアル通信装置が知られている(特許文献1参照)。   Therefore, there is known a serial communication device that monitors a change in a signal on a serial communication line by a monitoring unit such as a watchdog timer, detects a communication abnormality without processing by a processor, and generates a reset signal (Patent Document 1). reference).

特開2006−172173号公報JP 2006-172173 A

特許文献1に記載のシリアル通信装置では、監視手段に入力される信号は、通信相手と接続されたシリアル通信線上の受信信号又はクロック信号と、ストローブ信号である。これらの信号線を分岐して監視手段への入力としているが、信号の歪みや減衰、反射などの原因となり信号品質上好ましくない。また、信号線は伝送経路上でノイズの影響を強く受けるため、監視手段が誤動作するおそれがある。また、HDLC(High-Level Data Link Control)手順などのクロック信号及びストローブ信号を用いないビット同期通信方式の場合には、監視手段への入力に受信信号を用いるほかない。   In the serial communication device described in Patent Document 1, signals input to the monitoring unit are a reception signal or a clock signal on a serial communication line connected to a communication partner and a strobe signal. Although these signal lines are branched and used as input to the monitoring means, it causes signal distortion, attenuation, reflection, etc., which is not preferable in terms of signal quality. Further, since the signal line is strongly affected by noise on the transmission path, the monitoring unit may malfunction. In the case of a bit synchronous communication system that does not use a clock signal and a strobe signal, such as an HDLC (High-Level Data Link Control) procedure, the received signal must be used as an input to the monitoring means.

かかる事情に鑑みてなされた本発明の目的は、受信信号の品質を低下させず、且つ、精度の高いリセット信号を生成することが可能なシリアル通信装置を提供することにある。   An object of the present invention made in view of such circumstances is to provide a serial communication device capable of generating a highly accurate reset signal without deteriorating the quality of a received signal.

上記課題を解決するため、本発明に係るシリアル通信装置は、シリアル通信線上の信号を受信してシリアル信号を出力するシリアル受信部と、前記シリアル信号をパラレル信号に変換するとともにタイミングパルス信号を生成するシリアル/パラレル変換部と、前記パラレル信号を蓄積するパラレルデータ蓄積部と、前記パラレルデータ蓄積部から前記パラレル信号を読み出すプロセッサと、前記タイミングパルス信号の変化を監視し、該タイミングパルス信号が所定の時間以上変化しない場合に、前記シリアル受信部、前記シリアル/パラレル変換部、及び前記プロセッサにリセット信号を出力するパルス監視部と、を備えることを特徴とする。   In order to solve the above problems, a serial communication device according to the present invention receives a signal on a serial communication line and outputs a serial signal, converts the serial signal into a parallel signal, and generates a timing pulse signal A serial / parallel converter that performs parallel processing, a parallel data storage that stores the parallel signal, a processor that reads the parallel signal from the parallel data storage, and a change in the timing pulse signal is monitored. And a pulse monitoring unit that outputs a reset signal to the processor when the time does not change for more than a predetermined time.

また、本発明に係るシリアル通信装置において、前記プロセッサは、前記リセット信号を割り込み要求とすることを特徴とする。   In the serial communication apparatus according to the present invention, the processor makes the reset signal an interrupt request.

本発明によれば、シリアル通信線上の信号を直接監視するのではなく、シリアル/パラレル変換部が出力するタイミングパルスを監視するため、受信信号の品質を低下させず、且つ、精度の高いリセット信号を生成することができる。   According to the present invention, the signal on the serial communication line is not directly monitored, but the timing pulse output from the serial / parallel converter is monitored, so that the quality of the received signal is not deteriorated and the reset signal is highly accurate. Can be generated.

本発明の一実施形態に係るシリアル通信装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the serial communication apparatus which concerns on one Embodiment of this invention. 本発明の一実施形態に係るシリアル通信装置で用いられる信号のタイミングチャートの一例を示す図である。It is a figure which shows an example of the timing chart of the signal used with the serial communication apparatus which concerns on one Embodiment of this invention.

以下、本発明によるシリアル通信装置の実施形態について、図面を参照して詳細に説明する。   Embodiments of a serial communication device according to the present invention will be described below in detail with reference to the drawings.

図1は、本発明に係るシリアル通信装置の構成例を示すブロック図である。図1に示すように、シリアル通信装置は、シリアル受信部1と、シリアル/パラレル変換部2と、パラレルデータ蓄積部3と、プロセッサ4と、パルス監視部5とを備える。   FIG. 1 is a block diagram showing a configuration example of a serial communication apparatus according to the present invention. As shown in FIG. 1, the serial communication device includes a serial reception unit 1, a serial / parallel conversion unit 2, a parallel data storage unit 3, a processor 4, and a pulse monitoring unit 5.

図2は、本発明の一実施形態に係るシリアル通信装置で用いられる信号のタイミングチャートの一例を示す図である。   FIG. 2 is a diagram illustrating an example of a timing chart of signals used in the serial communication device according to the embodiment of the present invention.

シリアル受信部1は、シリアル通信線上の受信信号100の物理信号変化を論理データであるシリアル信号11に変換し、シリアル/パラレル変換部2に出力する。なお、受信信号100とシリアル信号11は同一の信号であってもよい。   The serial receiver 1 converts a physical signal change of the received signal 100 on the serial communication line into a serial signal 11 that is logical data, and outputs the serial signal 11 to the serial / parallel converter 2. The received signal 100 and the serial signal 11 may be the same signal.

シリアル/パラレル変換部2は、シリアル受信部1から入力されたシリアル信号11をnビット(n≧2)のパラレル信号21に変換してパラレルデータ蓄積部3に出力する。図2ではn=8としている。また、シリアル/パラレル変換部2は、nビットのパラレル信号ごとに1つのパルスを形成するタイミングパルス信号22を生成し、パラレルデータ蓄積部3及びパルス監視部5に出力する。   The serial / parallel converter 2 converts the serial signal 11 input from the serial receiver 1 into an n-bit (n ≧ 2) parallel signal 21 and outputs the parallel signal 21 to the parallel data storage unit 3. In FIG. 2, n = 8. The serial / parallel converter 2 generates a timing pulse signal 22 that forms one pulse for each n-bit parallel signal and outputs the timing pulse signal 22 to the parallel data storage unit 3 and the pulse monitoring unit 5.

パラレルデータ蓄積部3は、タイミングパルス信号22の変化するタイミングで、パラレル信号21を蓄積する。   The parallel data storage unit 3 stores the parallel signal 21 at the timing when the timing pulse signal 22 changes.

プロセッサ4は、パラレルデータ蓄積部3からパラレル信号31を読み出し、所定の処理を行う。   The processor 4 reads the parallel signal 31 from the parallel data storage unit 3 and performs predetermined processing.

パルス監視部5は、タイミングパルス信号22を監視し、タイミングパルス信号22が変化しない時間を検出する。パルス監視部5は、タイミングパルス信号22が所定の時間以上変化しない場合には、リセット信号51を生成し、シリアル受信部1、シリアル/パラレル変換部2、及びプロセッサ4に出力する。シリアル受信部1、シリアル/パラレル変換部2、及びプロセッサ4は、リセット信号51が入力されると、初期化(リセット)処理を行う。   The pulse monitoring unit 5 monitors the timing pulse signal 22 and detects a time during which the timing pulse signal 22 does not change. When the timing pulse signal 22 does not change for a predetermined time or longer, the pulse monitoring unit 5 generates a reset signal 51 and outputs the reset signal 51 to the serial reception unit 1, the serial / parallel conversion unit 2, and the processor 4. When the reset signal 51 is input, the serial reception unit 1, the serial / parallel conversion unit 2, and the processor 4 perform initialization (reset) processing.

上述したように、本発明に係るシリアル通信装置においては、パルス監視部5は、通信線上の受信信号100を分岐した信号ではなく、シリアル/パラレル変換部2が出力するタイミングパルス信号22を監視する。そのため、受信信号100の分岐により受信信号の品質が低下するという問題は生じない。また、パルス監視部5は、受信信号100のノイズの影響を直接受けず、また、仮にタイミングパルス信号22のタイミングが多少ずれたとしてもパルス信号の検知には影響を受けない。よって、誤動作のおそれを軽減し、精度の高いリセット信号を生成することができる。さらに、本発明に係るシリアル通信装置は、簡単なディジタル回路により構成され、システムの処理負荷を低減することができる。   As described above, in the serial communication device according to the present invention, the pulse monitoring unit 5 monitors the timing pulse signal 22 output from the serial / parallel conversion unit 2, not the signal obtained by branching the received signal 100 on the communication line. . Therefore, the problem that the quality of the received signal is deteriorated due to the branching of the received signal 100 does not occur. Further, the pulse monitoring unit 5 is not directly affected by the noise of the received signal 100, and is not affected by the detection of the pulse signal even if the timing pulse signal 22 is slightly deviated. Therefore, the possibility of malfunction can be reduced and a highly accurate reset signal can be generated. Furthermore, the serial communication device according to the present invention is configured by a simple digital circuit, and can reduce the processing load of the system.

ここで、プロセッサ4は、リセット信号51を自身への割り込み要求として入力してもよい。プロセッサ4は、割り込み要求により割り込み処理を起動して通信異常処理を行い、該処理の終了後に再度受信可能な状態となる。このようにすることで、通信異常の発生時にプロセッサ4の初期化プロセスを省略でき、再度受信可能な状態に早期に復帰することができる。   Here, the processor 4 may input the reset signal 51 as an interrupt request to itself. The processor 4 activates interrupt processing in response to an interrupt request, performs communication abnormality processing, and becomes ready to receive again after the processing ends. By doing so, the initialization process of the processor 4 can be omitted when a communication abnormality occurs, and it is possible to quickly return to a receivable state.

上述の実施形態は、代表的な例として説明したが、本発明の趣旨及び範囲内で、多くの変更及び置換ができることは当業者に明らかである。したがって、本発明は、上述の実施形態によって制限するものと解するべきではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。例えば、実施形態に記載の複数の構成ブロックを1つに組み合わせたり、あるいは1つの構成ブロックを分割したりすることが可能である。   Although the above embodiments have been described as representative examples, it will be apparent to those skilled in the art that many changes and substitutions can be made within the spirit and scope of the invention. Therefore, the present invention should not be construed as being limited by the above-described embodiments, and various modifications and changes can be made without departing from the scope of the claims. For example, a plurality of constituent blocks described in the embodiments can be combined into one, or one constituent block can be divided.

本発明は、受信信号の品質を低下させることなく、且つ、精度の高いリセット信号を生成することができるため、シリアル通信の通信異常発生時に装置を初期化する任意の用途に有用である。   The present invention can generate a highly accurate reset signal without degrading the quality of a received signal, and is therefore useful for any application for initializing a device when a serial communication error occurs.

1 シリアル受信部
2 シリアル/パラレル変換部
3 パラレルデータ蓄積部
4 プロセッサ
5 パルス監視部
11 シリアル信号
21,31 パラレル信号
22 タイミングパルス信号
51 リセット信号
100 受信信号
DESCRIPTION OF SYMBOLS 1 Serial reception part 2 Serial / parallel conversion part 3 Parallel data storage part 4 Processor 5 Pulse monitoring part 11 Serial signal 21,31 Parallel signal 22 Timing pulse signal 51 Reset signal 100 Reception signal

Claims (2)

シリアル通信線上の信号を受信してシリアル信号を出力するシリアル受信部と、
前記シリアル信号をパラレル信号に変換するとともにタイミングパルス信号を生成するシリアル/パラレル変換部と、
前記パラレル信号を蓄積するパラレルデータ蓄積部と、
前記パラレルデータ蓄積部から前記パラレル信号を読み出すプロセッサと、
前記タイミングパルス信号の変化を監視し、該タイミングパルス信号が所定の時間以上変化しない場合に、前記シリアル受信部、前記シリアル/パラレル変換部、及び前記プロセッサにリセット信号を出力するパルス監視部と、
を備えることを特徴とするシリアル通信装置。
A serial receiver that receives a signal on the serial communication line and outputs a serial signal;
A serial / parallel converter that converts the serial signal into a parallel signal and generates a timing pulse signal;
A parallel data storage unit for storing the parallel signals;
A processor for reading out the parallel signal from the parallel data storage unit;
A pulse monitoring unit that monitors a change in the timing pulse signal and outputs a reset signal to the serial reception unit, the serial / parallel conversion unit, and the processor when the timing pulse signal does not change over a predetermined time;
A serial communication device comprising:
前記プロセッサは、前記リセット信号を割り込み要求とすることを特徴とする、請求項1に記載のシリアル通信装置。
The serial communication device according to claim 1, wherein the processor uses the reset signal as an interrupt request.
JP2013154930A 2013-07-25 2013-07-25 Serial communication device Active JP6093263B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013154930A JP6093263B2 (en) 2013-07-25 2013-07-25 Serial communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013154930A JP6093263B2 (en) 2013-07-25 2013-07-25 Serial communication device

Publications (2)

Publication Number Publication Date
JP2015026210A true JP2015026210A (en) 2015-02-05
JP6093263B2 JP6093263B2 (en) 2017-03-08

Family

ID=52490826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013154930A Active JP6093263B2 (en) 2013-07-25 2013-07-25 Serial communication device

Country Status (1)

Country Link
JP (1) JP6093263B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61123086A (en) * 1984-11-20 1986-06-10 Fujitsu Ltd Magnetic bubble memory device
JPH1051515A (en) * 1996-07-31 1998-02-20 Matsushita Electric Works Ltd Communication abnormality detector

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61123086A (en) * 1984-11-20 1986-06-10 Fujitsu Ltd Magnetic bubble memory device
JPH1051515A (en) * 1996-07-31 1998-02-20 Matsushita Electric Works Ltd Communication abnormality detector

Also Published As

Publication number Publication date
JP6093263B2 (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US9558054B2 (en) Apparatus and method for detecting errors on a transmission path
JP5896602B2 (en) Communication circuit and sampling adjustment method
CN108052473B (en) Serial communication device
JP6093263B2 (en) Serial communication device
US10057524B2 (en) Image capturing apparatus
JP6488710B2 (en) Slave for communication
JP5838817B2 (en) Transmission / reception system and program
JP5915105B2 (en) Data transfer system, receiving circuit, and receiving method
US10566998B2 (en) Data conversion apparatus
JP2012124716A (en) Data receiver, data transmitter, control method
JP2007115036A (en) Asynchronous transfer device and asynchronous transfer method
JP5835627B2 (en) Circuit equipment
KR101110114B1 (en) Method and circuit for synchronization, and data synchronization apparatus having the same
JP6738028B2 (en) Receiver circuit and semiconductor integrated circuit
TWI668970B (en) Measurement system and data transmission interface
JP2011065537A (en) Data receiving system and interruption performing method
KR102016029B1 (en) Apparatus and method for distributing load of vehicle communication
JP6472584B2 (en) Relay device, relay method, and relay program
JP5548744B2 (en) Signal converter
JP5920370B2 (en) Electronic control unit
JP2010213204A (en) Data transmitting/receiving method
KR102225619B1 (en) High-speed serial data receiving apparatus
US9292037B2 (en) Systems and methods for resolving clock time between asynchronous time domains
JP4665744B2 (en) A / D converter and A / D conversion system
JP2019194760A (en) Signal control circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160525

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170131

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170210

R150 Certificate of patent or registration of utility model

Ref document number: 6093263

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150