JP2008269008A - Serial communication device - Google Patents
Serial communication device Download PDFInfo
- Publication number
- JP2008269008A JP2008269008A JP2007107172A JP2007107172A JP2008269008A JP 2008269008 A JP2008269008 A JP 2008269008A JP 2007107172 A JP2007107172 A JP 2007107172A JP 2007107172 A JP2007107172 A JP 2007107172A JP 2008269008 A JP2008269008 A JP 2008269008A
- Authority
- JP
- Japan
- Prior art keywords
- data
- serial
- serial communication
- error
- serial data
- 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
Links
Images
Abstract
Description
本発明はシリアル通信方式に関し、特に、エラー検知用データを付加してエラー検知を行うシリアル通信方式に関する。 The present invention relates to a serial communication system, and more particularly to a serial communication system that performs error detection by adding error detection data.
ホストコンピュータに接続されて、ホストコンピュータから送られてきたプリントデータをラスタイメージデータに変換するビデオコントローラと、ラスタイメージを受け取って印刷を行うプリンタエンジン部とに分かれている画像形成装置がある。ラスタイメージデータを高速に転送する方法として、シリアル通信装置が用いられている。 There is an image forming apparatus that is connected to a host computer and is divided into a video controller that converts print data sent from the host computer into raster image data, and a printer engine unit that receives the raster image and prints it. A serial communication device is used as a method for transferring raster image data at high speed.
ビデオコントローラから転送するラスタイメージデータをプリンタエンジンの印刷スピードにあわせてリアルタイム処理する場合、データにエラーがあっても印刷を再送要求しても間に合わない。このような場合は、エラー検知を行うことなくデータ転送を行っている。また、ビデオコントローラとプリンタエンジン間のデータ転送は、ビデオデータ以外のプリンタ制御にかかわる、ビデオコントローラからのコマンド情報やプリンタエンジンからのステータス情報を転送することも必要である。このようなコマンド、ステータス情報は、プリンタの制御に関わるデータであり、エラーが発生した場合は、エラーに基づいた制御を行うことを回避し、プリンタの誤動作を回避することが望ましい。このように、エラー検知を必要としないデータ転送とエラー検知が必要なデータ転送を1つのシリアル通信装置で行う場合、エラー検知を行う必要がある。 When the raster image data transferred from the video controller is processed in real time in accordance with the printing speed of the printer engine, even if there is an error in the data, it is not in time to request retransmission of printing. In such a case, data transfer is performed without error detection. In addition, data transfer between the video controller and the printer engine needs to transfer command information from the video controller and status information from the printer engine related to printer control other than video data. Such commands and status information are data related to printer control. When an error occurs, it is desirable to avoid performing control based on the error and avoid malfunction of the printer. As described above, when data transfer that does not require error detection and data transfer that requires error detection are performed by one serial communication device, it is necessary to perform error detection.
エラー検知の方法として、シリアルデータにパリティビットを付加して送信し、受信側でパリティチェックをすることで通信時にエラーが発生したかどうかを検知する方法がある。 As an error detection method, there is a method of detecting whether or not an error has occurred during communication by adding a parity bit to serial data for transmission and performing a parity check on the reception side.
エラー検知後の処理方法として、通信エラーを検知するとエラー信号を有意にする汎用非同期送受信回路とそのときのデータを格納するレジスタを備えて、通信エラー発生時の状態をエラー処理の段階で識別することができるようにする構成が提案されている。(特許文献1)この発明では、受信手段は、正常に受信したことを送信側に通知する手段(受信フラグ)を備えている。 As a processing method after error detection, a general-purpose asynchronous transmission / reception circuit that makes an error signal significant when a communication error is detected and a register for storing data at that time are identified, and the state at the time of communication error is identified at the stage of error processing A configuration has been proposed to enable this. (Patent Document 1) In the present invention, the receiving means includes means (reception flag) for notifying the transmitting side of normal reception.
また、通信エラーを検知したときに、エラー状態に対応した出力を与える出力ユニットにおいて、リセット端子を設け、エラー状態になったときにはリセット信号が与えられるまで出力を保持する構成が提案されている。(特許文献2)この発明では、受信手段にリセット端子を設け、リセットをかけることにより出力ユニットの出力の保持を解除することができる。 In addition, a configuration has been proposed in which a reset terminal is provided in an output unit that provides an output corresponding to an error state when a communication error is detected, and the output is held until a reset signal is provided when the error state occurs. (Patent Document 2) In the present invention, it is possible to cancel the holding of the output of the output unit by providing a reset terminal in the receiving means and applying a reset.
いずれの場合も、シリアル通信のデータラインとは別系統で、エラーを通知したりエラーを解除したりする信号線を必要とする。
しかしながら、背景技術にて説明したように、エラー検知を必要としないデータ転送とエラー検知が必要なデータ転送を1つのシリアル通信装置で行う場合、エラー検知を行う必要がある。エラーを検出したことを受信側から送信側へ通知する手段や、送信側から受信側へエラー解除を通知する手段を設けるとコストアップになるという課題があった。 However, as described in the background art, when data transfer that does not require error detection and data transfer that requires error detection are performed by one serial communication device, it is necessary to perform error detection. If a means for notifying an error detection from the reception side to the transmission side or a means for notifying the error cancellation from the transmission side to the reception side is provided, there is a problem that the cost increases.
本発明は、上記課題に鑑みてなされたものであり、エラー検知を必要としないデータ転送と必要なデータ転送を混在させるシリアル通信装置において、専用のエラー解除手段を設けることなくエラー解除を行うことができるシリアル通信装置を提供するものである。 The present invention has been made in view of the above problems, and performs error cancellation without providing dedicated error cancellation means in a serial communication device that mixes data transfer that does not require error detection and necessary data transfer. It is intended to provide a serial communication device capable of performing the above.
上記課題を解決するために、請求項1に記載の発明は、シリアルデータにエラー検知用データを付加して送信するシリアルデータ送信手段と、前記シリアルデータを受信するシリアルデータ受信手段と、受信したデータのエラーを検知するエラー検知手段と、前記エラー情報を保持するエラー情報保持手段と、前記エラー情報保持手段を初期化する初期化手段を備えるシリアル通信装置において、前記シリアルデータ受信手段にシリアルデータが送信されていないことを検知する検知手段を備え、シリアルデータが送信されていないことを検知して前記エラー情報初期化手段がエラー情報を初期化することを特徴とするものである。 In order to solve the above-described problem, the invention according to claim 1 is directed to serial data transmission means for adding error detection data to serial data for transmission, serial data reception means for receiving the serial data, and reception. In a serial communication device comprising an error detection means for detecting a data error, an error information holding means for holding the error information, and an initialization means for initializing the error information holding means, serial data is received by the serial data receiving means. And detecting means for detecting that serial data is not transmitted, and the error information initializing means initializes the error information.
請求項2に記載の発明は、請求項1に記載のシリアル通信装置であって、前記エラー検知用データは、パリティビットであることを特徴とするものである。 A second aspect of the present invention is the serial communication device according to the first aspect, wherein the error detection data is a parity bit.
請求項3に記載の発明は、請求項1乃至2に記載のシリアル通信装置であって、前記シリアルデータ送信手段は、データ送信を行わない期間はクロック送信を停止させるデータ同期用のクロック送信手段を備え、前記シリアルデータ受信手段は、前記クロック送信が停止していることを検知することにより、前記シリアルデータが送信されていないことを検知するものである。 A third aspect of the present invention is the serial communication device according to the first or second aspect, wherein the serial data transmission unit stops clock transmission during a period in which data transmission is not performed. The serial data receiving means detects that the serial data is not transmitted by detecting that the clock transmission is stopped.
請求項4に記載の発明は、請求項1乃至2に記載のシリアル通信装置であって、前記シリアル通信装置は、8B/10B変換手段を備えるシリアル通信装置であって、データが所定の期間、HIGHまたはLOWに固定されていることを検知することで、前記シリアルデータが送信されていないことを検知することを特徴とするものである。 Invention of Claim 4 is a serial communication apparatus of Claims 1 thru | or 2, Comprising: The said serial communication apparatus is a serial communication apparatus provided with an 8B / 10B conversion means, Comprising: Data is a predetermined period, By detecting that the serial data is fixed to HIGH or LOW, it is detected that the serial data is not transmitted.
本発明によれば、専用のエラー解除手段を設けることなくエラー解除を行うことができるという効果がある。 According to the present invention, it is possible to perform error cancellation without providing a dedicated error cancellation unit.
また、本発明によれば、クロック同期式のシリアル通信装置において、専用のエラー解除手段を設けることなくエラー解除を行うことができるという効果がある。 In addition, according to the present invention, it is possible to perform error cancellation without providing dedicated error cancellation means in the clock synchronous serial communication device.
また、本発明によれば、同期用クロックを転送しないシリアル通信装置において、専用のエラー解除手段を設けることなくエラー解除を行うことができるという効果がある。 In addition, according to the present invention, an error can be canceled without providing a dedicated error canceling means in a serial communication device that does not transfer a synchronization clock.
(実施例1)
以下、添付図面に従って本発明にかかる実施例1を詳細に説明する。
Example 1
Embodiment 1 according to the present invention will be described below in detail with reference to the accompanying drawings.
図1は、本発明の実施例におけるシリアル通信装置のブロック図を示したものである。シリアルデータ送信手段1は、パラレルシリアル変換手段2で、送信するデータをシリアルデータに変換するとともに、シリアルデータにパリティビットを付加してシリアルデータを送信する。例えば、8ビットのシリアルデータ毎に1ビットのパリティビットを付加するとよい。シリアルデータ送信手段で送信されたシリアルデータは、データライン3を介してシリアルデータ受信手段2に伝送される。そのデータ伝送とタイミングを合わせて、シリアルデータ同期用のクロックがクロックライン4を介してシリアルデータ受信手段5に伝送される。シリアルデータ受信手段2はクロックに同期してシリアルデータを取り込むことによりシリアルデータを受信することができる。シリアルパラレル変換手段6は、受信したパリティビットつきのシリアルデータをパラレルデータに変換する。パラレルデータは、エラー検知手段8とデータ格納手段9に伝送される。パラレルデータのうち、パリティビットを除いた受信データは、データ格納手段9に格納され、後段の機器制御手段11で伝送されたデータとして使用される。エラー検知手段8は、受信したパリティビット付きのパラレルデータからパリティエラーを検知する。パリティエラーが検知された場合は、エラー検知手段8はエラー情報格納手段10に、エラー情報を格納する。機器制御手段11は、前記受信データとエラー情報に基づいて機器を制御することができる。
FIG. 1 is a block diagram of a serial communication device according to an embodiment of the present invention. The serial data transmission unit 1 is a parallel-serial conversion unit 2 that converts data to be transmitted into serial data, and adds serial bits to the serial data and transmits the serial data. For example, one parity bit may be added for each 8-bit serial data. The serial data transmitted by the serial data transmitting unit is transmitted to the serial data receiving unit 2 through the data line 3. In synchronization with the data transmission, a serial data synchronization clock is transmitted to the serial data receiving means 5 via the clock line 4. The serial data receiving means 2 can receive serial data by taking in the serial data in synchronization with the clock. The serial / parallel conversion means 6 converts the received serial data with parity bits into parallel data. The parallel data is transmitted to the error detection unit 8 and the data storage unit 9. Of the parallel data, the received data excluding the parity bit is stored in the data storage unit 9 and used as data transmitted by the device control unit 11 at the subsequent stage. The error detection means 8 detects a parity error from the received parallel data with a parity bit. When a parity error is detected, the error detection unit 8 stores the error information in the error
図2は、上記により検知したエラー情報を初期化する方法を説明するためのタイミングチャートである。図1、図2を用いて、エラー情報を初期化する方法を説明する。図1のクロックライン4は、図2のクロックのような波形をしている。つまり、データ伝送を行っている期間は所定の周波数のクロックを出力し、データ伝送を行っていない期間はクロックラインをLOWに固定している。クロック検知手段7は、クロックが所定の期間(例えば48クロック分の期間)以上の間、LOWに固定されていることを検知すると、データ転送を初期化すると判断する。データ転送が初期化すると判断すると、クロック検知手段はエラー情報格納手段10のエラー情報をクリアする。本実施例ではクロックをLOWに固定する例を示した。しかし、クロックをHIGHに固定してもよい。
FIG. 2 is a timing chart for explaining a method for initializing error information detected as described above. A method for initializing error information will be described with reference to FIGS. The clock line 4 in FIG. 1 has a waveform like the clock in FIG. That is, a clock with a predetermined frequency is output during a period of data transmission, and the clock line is fixed to LOW during a period of no data transmission. When detecting that the clock is fixed to LOW for a predetermined period (for example, a period of 48 clocks) or more, the clock detection unit 7 determines to initialize data transfer. When it is determined that the data transfer is initialized, the clock detection unit clears the error information in the error
本実施例において、データ転送は連続に行われて受信したデータはリアルタイム処理されるので、エラーを検知して再送するという動作は時間的な制約により実現できない。しかし、エラーが起こったということは検知できる。エラー検知結果は、一連のデータ転送が終了した際に、最初からデータ転送をやり直す等の処理に利用することができる。また、エラー情報の初期化のために専用の信号線を持たないので、安価な構成でシリアル受信装置の初期化を行うことができる。 In this embodiment, since data transfer is continuously performed and received data is processed in real time, an operation of detecting and retransmitting an error cannot be realized due to time constraints. However, it can be detected that an error has occurred. The error detection result can be used for processing such as redoing data transfer from the beginning when a series of data transfer is completed. In addition, since there is no dedicated signal line for error information initialization, the serial receiver can be initialized with an inexpensive configuration.
(実施例2)
次に図3および図4を用いて、第二の実施例の説明をする。図3は、本発明の実施例2におけるシリアル通信装置のブロック図を示したものである。実施例1で説明した箇所には図1と同じ番号を付与している。これらの箇所に関しては説明を割愛する。22は、パラレルデータをシリアルデータに変換し、パリティビットを付加するとともに、8B10B変換を行うパラレルシリアル変換手段である。シリアルデータ送信手段1から出力されたシリアルデータはシリアルデータ受信手段2で受信される。シリアルデータ受信手段2内のシリアルパラレル変換手段は、8B10B変換されたシリアルデータからクロックデータリカバリを行うことでクロックを抽出してシリアルデータを受信する。受信したシリアルデータをパラレルデータに変換するとともに、後段のエラー検知手段8とデータ格納手段9に伝送される。以後の処理は実施例1と同様である。
(Example 2)
Next, the second embodiment will be described with reference to FIGS. FIG. 3 shows a block diagram of a serial communication apparatus in Embodiment 2 of the present invention. The same numbers as those in FIG. 1 are assigned to the portions described in the first embodiment. The explanation is omitted for these parts. Reference numeral 22 denotes parallel-serial conversion means for converting parallel data into serial data, adding a parity bit, and performing 8B10B conversion. The serial data output from the serial data transmitting unit 1 is received by the serial data receiving unit 2. The serial-parallel conversion means in the serial data receiving means 2 extracts the clock by performing clock data recovery from the serial data converted by 8B10B, and receives the serial data. The received serial data is converted into parallel data and transmitted to the error detection means 8 and the data storage means 9 at the subsequent stage. The subsequent processing is the same as in the first embodiment.
図4は、上記により検知したエラー情報を初期化する方法を説明するためのタイミングチャートである。図4で、データは8B10B変換されているので、通常のデータ伝送時に、所定の期間(たとえば10ビット)以上続けてHIGHまたはLOWに固定されることはない。本実施例では、データ伝送を行っていない期間はデータラインをLOWに固定する。シリアルデータ検知手段27は、データが所定の期間(例えば48クロック分の期間)以上の間、LOWに固定されていることを検知すると、データ転送を初期化すると判断する。データ転送が初期化すると判断すると、クロック検知手段はエラー情報格納手段10のエラー情報をクリアする。本実施例ではデータをLOWに固定する例を示した。しかし、データをHIGHに固定してもよい。
FIG. 4 is a timing chart for explaining a method for initializing error information detected as described above. In FIG. 4, since the data is 8B10B converted, it is not fixed to HIGH or LOW continuously for a predetermined period (for example, 10 bits) during normal data transmission. In this embodiment, the data line is fixed to LOW during a period when data transmission is not performed. When detecting that the data is fixed to LOW for a predetermined period (for example, a period of 48 clocks) or more, the serial
本実施例では、クロックを伝送しないでシリアルデータ伝送を行うシリアル通信装置において、エラーが起こったということを検知できる。エラー検知結果は、一連のデータ転送が終了した際に、最初からデータ転送をやり直す等の処理に利用することができる。また、エラー情報の初期化のために専用の信号線を持たないので、安価な構成でシリアル受信装置の初期化を行うことができる。 In this embodiment, it is possible to detect that an error has occurred in a serial communication device that transmits serial data without transmitting a clock. The error detection result can be used for processing such as redoing data transfer from the beginning when a series of data transfer is completed. In addition, since there is no dedicated signal line for error information initialization, the serial receiver can be initialized with an inexpensive configuration.
1 シリアルデータ送信手段
2 パラレルシリアル変換手段
3 データライン
4 クロックライン
5 シリアルデータ受信手段
6 シリアルパラレル変換手段
7 クロック検知手段
8 エラー検知手段
9 受信データ格納手段
10 エラー情報格納手段
11 機器制御部
DESCRIPTION OF SYMBOLS 1 Serial data transmission means 2 Parallel serial conversion means 3 Data line 4 Clock line 5 Serial data reception means 6 Serial parallel conversion means 7 Clock detection means 8 Error detection means 9 Received data storage means 10 Error information storage means 11 Equipment control part
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007107172A JP2008269008A (en) | 2007-04-16 | 2007-04-16 | Serial communication device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007107172A JP2008269008A (en) | 2007-04-16 | 2007-04-16 | Serial communication device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008269008A true JP2008269008A (en) | 2008-11-06 |
Family
ID=40048469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007107172A Pending JP2008269008A (en) | 2007-04-16 | 2007-04-16 | Serial communication device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008269008A (en) |
-
2007
- 2007-04-16 JP JP2007107172A patent/JP2008269008A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5160100B2 (en) | Data communication malfunction prevention device, electronic apparatus, data communication malfunction prevention device control method, data communication malfunction prevention device control program, and recording medium recording the program | |
CN107832250B (en) | Master-slave communication time sequence method based on SPI | |
JP5096024B2 (en) | USB controller and USB controller test method | |
JP5217919B2 (en) | Serial communication device, communication control method, communication control program | |
US11023023B2 (en) | Start-and-stop detecting apparatus and method for I3C bus | |
US9710420B2 (en) | System and method for improving the efficiency of a serial interface protocol | |
JP2008269008A (en) | Serial communication device | |
US20230199306A1 (en) | Communication device and communication system | |
JP2008118349A (en) | Communication equipment | |
JP6136754B2 (en) | Communication control apparatus and image forming apparatus | |
JP4086250B2 (en) | Image processing device | |
JP2008131534A (en) | Transmitter and image data transmission system | |
JP4337605B2 (en) | Signal transmission system and image forming apparatus | |
JP2005084792A (en) | Data communication unit | |
JP2005333513A (en) | Communication system | |
US20160139860A1 (en) | Communication system, image forming apparatus and communication method | |
US8291143B1 (en) | Single line communication | |
JP5299443B2 (en) | I2C bus communication control system and I2C bus communication control method | |
US9606857B2 (en) | Electronic control unit | |
JP4108675B2 (en) | Data transfer apparatus and failure recovery method used for the data transfer apparatus | |
JP2001162894A (en) | Data communication system and method | |
JP2008012864A (en) | Data transfer device and data transfer method | |
JP6107119B2 (en) | Image data transfer system | |
JP6107499B2 (en) | Communication control apparatus and image forming apparatus | |
JP2022182021A (en) | Serial communication device and serial communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20100201 |