JP2001350675A - Serial interface circuit and its testing method - Google Patents

Serial interface circuit and its testing method

Info

Publication number
JP2001350675A
JP2001350675A JP2000171497A JP2000171497A JP2001350675A JP 2001350675 A JP2001350675 A JP 2001350675A JP 2000171497 A JP2000171497 A JP 2000171497A JP 2000171497 A JP2000171497 A JP 2000171497A JP 2001350675 A JP2001350675 A JP 2001350675A
Authority
JP
Japan
Prior art keywords
data
serial
internal register
read
serial interface
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
JP2000171497A
Other languages
Japanese (ja)
Inventor
Isao Miyazaki
功 宮崎
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.)
Toshiba Corp
Toshiba Development and Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Digital Media Engineering Corp
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 Toshiba Corp, Toshiba Digital Media Engineering Corp filed Critical Toshiba Corp
Priority to JP2000171497A priority Critical patent/JP2001350675A/en
Publication of JP2001350675A publication Critical patent/JP2001350675A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a serial/parallel interface capable of determining at what point of time an error occurred on output data. SOLUTION: The data set on an internal register are temporarily retained on a latch circuit after being read out, and the data retained on the latch circuit are read out. Serial data are read out interlockingly with the lack or excess readout clocks, readout is repeated according to the number of the data on the internal register, and the first readout data are compared with the second and subsequent readout data. If a difference is detected, it is judged that a noise is mixed in readout clocks.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、シリアルインター
フェイス(以下、S/P I/F)に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial interface (S / P I / F).

【0002】[0002]

【従来の技術】一般に、電子機器内部においては、CP
UおよびCPUの制御下にある、機能別に区分された複
数のIC群で構成される。
2. Description of the Related Art Generally, in an electronic device, a CP is used.
It is composed of a plurality of IC groups under the control of the U and the CPU, which are classified according to functions.

【0003】上記CPUとIC群とはデータバスおよび
データバス制御線で接続されており、その入出力方法に
は、パラレルI/F即ち、バイト単位のバス幅で入出力
する方法と、シリアルI/Fと称するビット単位でデー
タの入出力を行う方法に大別される。
The CPU and the IC group are connected by a data bus and a data bus control line. The input / output method includes a parallel I / F, that is, a method of inputting / outputting with a bus width in bytes, and a serial I / F. The method is roughly divided into a method of inputting and outputting data in bit units called / F.

【0004】近年、電子機器開発の傾向として、機器サ
イズ縮小がすすみ、機器内部基板面積の縮小が求めら
れ、データ入出力においても基板上の配線数が少なくて
済む上記後者のシリアルI/F方式が広く採用されるに
至っている。
In recent years, there has been a trend in electronic device development to reduce the size of the device, reduce the area of the substrate inside the device, and reduce the number of wires on the substrate for data input / output. Has been widely adopted.

【0005】図4に従来のS/P I/Fのタイミング
発生部の構成を示す。データイネーブル信号(/EN)
がActive(=“L”)であり、かつリード/ライト信号
(R/W)が書き込み時(=“L”)であるタイミング
に、シリアルデータ(SDIN)の一部として与えられ
るアドレスに対応する内部レジスタに対してSDINの
一部として与えられるデータをS/P変換後書き込む。
これにより、制御ICの内部状態が設定される。その
後、IC内部データの読み出し時(R/W=“H”)に
おいて、上述のアドレスに対応してシリアルクロック
(SCLK)ごとにIC内部データを出力する。
FIG. 4 shows the structure of a timing generator of a conventional S / P I / F. Data enable signal (/ EN)
Are active (= “L”) and the read / write signal (R / W) corresponds to an address given as a part of the serial data (SDIN) at the time of writing (= “L”). Data given as a part of SDIN is written to the internal register after S / P conversion.
Thereby, the internal state of the control IC is set. Thereafter, when reading the internal data of the IC (R / W = “H”), the internal data of the IC is output for each serial clock (SCLK) corresponding to the above address.

【0006】[0006]

【発明が解決しようとする課題】上記従来技術の項でも
述べたが、近年の電子機器開発の傾向として、機器サイ
ズの縮小が求められている。これに伴い、内部基板は多
層化および、配線幅、および配線間隔の狭小化が進み、
近接する配線間での信号漏れ込みや干渉といった、いわ
ゆるノイズが生じ、このノイズによる誤動作が生じる可
能性が高まっている。 一例を挙げれば、内部基板にお
いて制御の中枢であるCPUと、各機能別IC間のI/
Fデータに上記ノイズによる誤動作が生じれば、機器の
安定動作に重大な問題を生じる結果となりやすい。
As described above in connection with the prior art, a recent trend in electronic device development demands a reduction in device size. Along with this, the internal substrate has been multi-layered and the wiring width and the wiring interval have been narrowed,
So-called noise such as signal leakage and interference between adjacent wiring lines is generated, and the possibility of malfunction due to this noise is increasing. As an example, an I / O between the CPU, which is the control center of the internal board, and the ICs for each function,
If the malfunction occurs due to the noise in the F data, a serious problem is likely to occur in the stable operation of the device.

【0007】具体的には、SCLKが規定数よりノイズ
混入により1クロック多くなった場合、シリアルデータ
として正常なデータ以外に1ビットだけ無意味なデータ
が付与されることに等しい。
More specifically, when the SCLK is increased by one clock from the prescribed number due to noise, it is equivalent to adding one bit of meaningless data other than normal data as serial data.

【0008】この無意味なデータが付与されたシリアル
データを受信した機能別ICのシリアルI/F部では正
常なデータか否かの判断はつかないのが一般的である。
In general, it is not possible to determine whether or not the data is normal in the serial I / F section of the IC for each function which has received the serial data to which the meaningless data is added.

【0009】受信データが正当か否かの判断を下すに
は、送信されたデータと受信したデータの一対比較を行
うのが一般的であり、上記の場合では送信元のCPUに
おいて送信元データと、受信端のICから読み出された
受信データの比較を行う方法が採られる。しかしなが
ら、出力データの誤りが内部レジスタに書き込まれた段
階で発生したものか、あるいは内部レジスタから読み出
された段階で発生したものかは上記比較では判別できな
いという問題点があった。
In order to determine whether the received data is valid or not, it is general to perform a paired comparison between the transmitted data and the received data. In the above case, the transmission source CPU compares the transmitted data with the transmitted data. And a method of comparing received data read from the IC at the receiving end. However, there is a problem that it cannot be determined by the above-mentioned comparison whether the error of the output data has occurred at the stage of writing to the internal register or at the stage of reading from the internal register.

【0010】本発明は上記問題点に鑑み、出力データの
誤りがどの時点で発生したかを判別し得るS/P I/
Fを提供することを目的とする。
The present invention has been made in consideration of the above problems, and has been described in detail with reference to the accompanying drawings.
F is provided.

【0011】[0011]

【課題を解決するための手段】内部レジスタに設定され
たデータを内部データ読み出し当初にラッチ回路にて一
旦保持し、ラッチ回路に保持されたデータを読み出すこ
とによって読み出しクロックの不足或いは超過に連動し
たシリアルデータ読み出しを行い、内部レジスタのデー
タ数に応じた繰り返し読み出しを行うことによって、1
度目の読み出しと2度目以降の読み出しデータとを比較
し差異を検出した場合には、読み出しクロックにノイズ
混入と判断することを特徴とする。
The data set in the internal register is temporarily held in a latch circuit at the beginning of reading the internal data, and the data held in the latch circuit is read to link the shortage or excess of the read clock. By performing serial data reading and repeatedly reading according to the number of data in the internal register, 1
When the difference between the first read and the second or subsequent read data is detected and a difference is detected, it is determined that noise is mixed in the read clock.

【0012】たとえば、読み出しクロック不足の場合に
は1度目の読み出しと2度目以降の読み出しにおいて、
前よりのデータシフトが生じ、読み出しクロック超過の
場合には、後よりのデータシフトが生じる。
For example, when the read clock is insufficient, in the first read and the second and subsequent read,
A data shift occurs before, and when the read clock is exceeded, a data shift occurs after.

【0013】また、本発明のシリアルインターフェイス
回路では、入力されたシリアルデータをパラレル変換す
るシリアル/パラレル変換回路と、パラレル変換された
データが書き込まれる内部レジスタと、前記内部レジス
タに書き込まれたデータを一時保持するラッチ回路と、
前記ラッチ回路に接続され、前記ラッチ回路に保持され
たデータを繰り返し読み出し、出力するパラレル/シリ
アル変換回路とを具備することを特徴とする。
Further, in the serial interface circuit of the present invention, a serial / parallel conversion circuit for converting input serial data into parallel data, an internal register in which the parallel converted data is written, and data written in the internal register are stored. A latch circuit for temporarily holding,
A parallel / serial conversion circuit that is connected to the latch circuit and repeatedly reads and outputs data held in the latch circuit.

【0014】上記構成により、データ読み出し時にレジ
スタデータを一旦ラッチしているので、繰り返し読み出
しを行っても1回目、と2回目以降の読み出しデータ間
に差異はあり得ない。従って、繰り返し読み出しでデー
タ誤りがなければ、書き込み時にデータ誤りありきこと
を検出することが可能となる。
According to the above configuration, since the register data is temporarily latched at the time of data reading, there is no difference between the first read data and the second and subsequent read data even if repeated reading is performed. Therefore, if there is no data error in the repeated reading, it is possible to detect that there is a data error at the time of writing.

【0015】[0015]

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

【0016】図1は本発明のシリアルインターフェイス
回路の回路図である。CPUのI/Oポートより入力さ
れたシリアルデータは各機能別ICのシリアルI/F部
内のS/P変換回路によりパラレルデータに変換され、
例えば図1のように8バイトのバス幅のデータバスに送
られる。なお、上記シリアルデータの上位4ビットはア
ドレスデータ、後続の8ビットはレジスタ設定用データ
であり、各々MSBより送出されている。S/P変換回
路によりパラレルデータ(4ビット)となったアドレス
は、アドレスラッチ回路に取りこまれ、デコードされ
て、対応する内部レジスタを指定する。なお、内部レジ
スタ書きこみ動作の場合には(R/W=“L”)となっ
ており、この指定された内部レジスタには先のS/P変
換された8ビット分のデータが入力され、保持される。
以上の一連の動作が書き込み動作である。
FIG. 1 is a circuit diagram of a serial interface circuit according to the present invention. The serial data input from the I / O port of the CPU is converted into parallel data by an S / P conversion circuit in a serial I / F unit of each functional IC.
For example, as shown in FIG. 1, the data is sent to a data bus having a bus width of 8 bytes. The upper 4 bits of the serial data are address data, and the following 8 bits are register setting data, each of which is transmitted from the MSB. The address converted into parallel data (4 bits) by the S / P conversion circuit is taken into an address latch circuit, decoded, and specifies a corresponding internal register. In the case of an internal register write operation, (R / W = “L”), and the specified S / P converted 8-bit data is input to the designated internal register. Will be retained.
The above series of operations is the write operation.

【0017】次に読み出し動作を示す。読み出し動作
は、R/W=“H”、かつ/EN=“L”のモードを指
す。内部レジスタのデータ読み出し動作はタイミング発
生回路から発生される読み出し許可信号に基づき、内部
レジスタから読み出されたデータがラッチ回路Lに出力
される。ラッチ回路Lに保持されたデータはP/S変換
され、シリアルデータとして出力される。
Next, a read operation will be described. The read operation indicates a mode in which R / W = "H" and / EN = "L". In a data read operation of the internal register, data read from the internal register is output to the latch circuit L based on a read permission signal generated from the timing generation circuit. The data held in the latch circuit L is subjected to P / S conversion and output as serial data.

【0018】次に、内部レジスタデータ読み出し時点に
おいてシリアルクロック(SCLK)数が不足、或い
は、超過した場合を図2に示す。なお、内部レジスタに
は予め(d7、d6,d5,d4,d3,d2,d1,
d0)なる正常に書き込まれたデータが格納されている
ものとする。
Next, FIG. 2 shows a case where the number of serial clocks (SCLK) is insufficient or exceeds the number at the time of reading the internal register data. It should be noted that (d7, d6, d5, d4, d3, d2, d1,
It is assumed that normally written data d0) is stored.

【0019】図2(a)は、内部レジスタデータ読み出
し時点においてシリアルクロック(SCLK)数が不足
した場合を示す。図に示すとおり、内部レジスタデータ
読み出し時点において、d1読み出しに相当するタイミ
ングでシリアルクロック(SCLK)が入力されなかっ
た場合、この部分に該当するシリアルデータ出力(Se
r−out)においてD0は出力されず、2クロック分
データD1が連続する状態となる。即ち、本来のD0出
力位置にD1が置換出力されることとなり、次に示すシ
リアル出力(Ser−out)が得られる。
FIG. 2A shows a case where the number of serial clocks (SCLK) is insufficient at the time of reading the internal register data. As shown in the figure, when the serial clock (SCLK) is not input at the timing corresponding to the d1 read at the time of reading the internal register data, the serial data output (Se
In (r-out), D0 is not output and data D1 continues for two clocks. That is, D1 is replaced and output at the original D0 output position, and the following serial output (Ser-out) is obtained.

【0020】(d7、d6,d5,d4,d3,d2,
d1,d1)このデータ列を、繰り返し出力させるため
には、意図的にシリアルクロック(SCLK)を追加入
力させればよい。たとえば、追加クロックとして8クロ
ック(=8データ分)を入力すれば、次のようなシリアル
出力(Ser−out)が得られる。
(D7, d6, d5, d4, d3, d2
d1, d1) In order to repeatedly output this data string, an additional serial clock (SCLK) may be intentionally input. For example, if 8 clocks (= 8 data) are input as an additional clock, the following serial output (Ser-out) can be obtained.

【0021】(d0,d7、d6,d5,d4,d3,
d2,d1)これをデータ設定元であるCPUにおいて
前回読み出しデータと比較すれば、データの差異が検出
できる。
(D0, d7, d6, d5, d4, d3
d2, d1) If this is compared with the previously read data in the CPU which is the data setting source, a difference in data can be detected.

【0022】よって、最初のデータ列と次のデータ列の
データの並びを比較すれば異なることがわかるため、読
み出し時にシリアルクロックの異常が発生したことがわ
かるのである。さらに図2(a)では前述の通りデータ
D1に対応するクロックが抜けた状態となっているた
め、本来ならばD1が読み出されるべき時点で読み出さ
れず、読み出しデータの進行が停止するためデータ列が
D1で終わっている。従ってこのような場合は書き込み
時にシリアルクロックの抜け(不足)が発生したと判別
できる。
Therefore, it can be seen that the data arrangement of the first data string is different from the data arrangement of the next data string, so that an abnormality of the serial clock has occurred at the time of reading. Further, in FIG. 2A, since the clock corresponding to the data D1 is lost as described above, the data is not read when D1 should be read, and the progress of the read data is stopped. It ends with D1. Therefore, in such a case, it can be determined that a missing (insufficient) serial clock has occurred during writing.

【0023】また、上記とは逆に、内部レジスタデータ
読み出し時点においてシリアルクロック(SCLK)数
が超過した場合を図2(b)に示す。図に示すとおり、
内部レジスタデータ読み出し時点において、d0の読み
出しに相当するタイミング以降でシリアルクロック(S
CLK)が入力された場合、この部分に該当するシリア
ルデータ出力(Ser−out)においてD7が再度出
力される状態となる。即ち、本来のD0の出力位置の後
にD7が再度出力されることとなり、次に示すシリアル
出力(Ser−out)が得られる。
FIG. 2B shows a case where the number of serial clocks (SCLK) is exceeded at the time of reading the internal register data. As shown in the figure,
At the time of reading the internal register data, the serial clock (S
CLK) is input, D7 is output again at the serial data output (Ser-out) corresponding to this portion. That is, D7 is output again after the original output position of D0, and the following serial output (Ser-out) is obtained.

【0024】(d7、d6,d5,d4,d3,d2,
d1,d0,d7)このデータ列を、繰り返し出力させ
るためには、SCLK不足の場合と同様に、意図的にシ
リアルクロック(SCLK)を追加入力させればよい。
(D7, d6, d5, d4, d3, d2
d1, d0, d7) In order to repeatedly output this data string, a serial clock (SCLK) may be additionally input intentionally as in the case of SCLK shortage.

【0025】たとえば、追加クロックとして8クロック
(=8データ分)を入力すれば、次のようなシリアル出力
(Ser−out)が得られる。
For example, as an additional clock, 8 clocks
(= 8 data), the following serial output (Ser-out) is obtained.

【0026】(d6,d5,d4,d3,d2,d1,
d0,d7)これをデータ設定元であるCPUにおいて
前回読み出しデータと比較すれば、データの差異が検出
できる。
(D6, d5, d4, d3, d2, d1,
d0, d7) If this is compared with the previously read data in the CPU which is the data setting source, a difference in data can be detected.

【0027】以上のようにして、各機能別ICを制御す
るCPU側で各機能別ICに データが正しく設定さ
れているかを判断できるため、確実な動作が期待でき
る。また、以上の手順によれば、改めてデータ読みだし
の手順を踏まずとも連続してデータの確認が行えるの
で、EN、および、R/Wの制御線の再設定やアドレス
設定にかかる冗長時間を削減でき、CPU側で各機能別
ICにデータが正しく設定されているかの判断効率が向
上する。
As described above, since the CPU controlling each function-specific IC can determine whether data is correctly set in each function-specific IC, a reliable operation can be expected. Further, according to the above procedure, data can be continuously confirmed without step of reading data again, so that the redundant time required for resetting the EN and R / W control lines and address setting is reduced. Thus, the CPU can improve the efficiency of determining whether data is correctly set in each function-specific IC.

【0028】なお、上記検出方法以外にも内部レジスタ
読み出し時のSCLK超過についてはより簡易な方法で
も検出が可能である。即ち、F/Fを1bit用意し、
SCLKをクロックとしてシリアル出力(Ser−ou
t)をデータ入力として更新させ、このF/F出力と、
ENがHになった時点におけるシリアル出力(Ser−
out)とを比較し、一致していない場合にデータ列の
内、d0以降にノイズによるSCLKが入ったと検知す
ることも可能である。
In addition to the above detection method, it is possible to detect the excess of SCLK at the time of reading the internal register by a simpler method. That is, one bit of F / F is prepared,
Serial output (Ser-ou) using SCLK as a clock
t) is updated as a data input, and this F / F output is
The serial output (Ser-
out), and if they do not match, it is possible to detect that SCLK due to noise has entered after d0 in the data string.

【0029】次に書き込み時のクロック過不足によるデ
ータ誤りが発生した場合の動作について説明する。図3
は予め内部レジスタにデータを書きこむ際にクロックが
過不足あった場合に内部レジスタに書き込まれたデータ
を読み出した場合、Ser−outにどのように現れる
かを示したタイミング図である。
Next, the operation when a data error occurs due to an excess or deficiency of the clock at the time of writing will be described. FIG.
FIG. 4 is a timing chart showing how the data written to the internal register appears in Ser-out when the data written to the internal register is read when the clock is excessive or insufficient when writing data to the internal register in advance.

【0030】図3(a)は、予め内部レジスタにデータ
を書き込む際にSCLKが不足していた場合に、データ
を読み出した場合のタイミングを、図3(b)は、SC
LKが内部レジスタにデータを書き込む際にSCLKが
超過していた場合に、データを読み出した場合のタイミ
ングを示す。
FIG. 3A shows the timing when data is read out when SCLK is insufficient when writing data in the internal register in advance, and FIG.
The timing when the data is read out when the SCLK exceeds the time when the LK writes the data to the internal register is shown.

【0031】図3(a)では、予めデータ書き込み時
(R/W="L")にてSCLKが不足していたため、内
部レジスタには(a0,d7、d6,d5,d4,d
3,d2,d1)なる8bitデータが既に書き込まれ
ている。これは、S/P−I/Fのデータ入力端子(S
DIN)に受信されるべきシリアルデータの転送順序が
アドレス、データの順に、かつ、MSB先頭になってお
り、S/P変換用のクロックとして用いているいるため
クロックの不足によって内部レジスタのMSBにアドレ
スの最下位ビットが残留してしまったからに他ならな
い。
In FIG. 3A, since SCLK was insufficient at the time of data writing (R / W = “L”), (a0, d7, d6, d5, d4, d) is stored in the internal register.
8, d2, d1) have already been written. This is the S / P-I / F data input terminal (S
DIN), the transfer order of the serial data to be received is in the order of the address and the data, and the MSB first. Since the clock is used as the clock for S / P conversion, the shortage of the clock causes the MSB of the internal register to shift. It is nothing but the least significant bit of the address.

【0032】さて、上記の通り内部レジスタに(a0,
d7、d6,d5,d4,d3,d2,d1)なる格納
されたデータを読みだした場合、(a0,d7、d6,
d5,d4,d3,d2,d1)がそのまま読み出さ
れ、Ser−out端子に出力される。あたかも読み出
しデータの最初が化け、最後が欠けたようにも見える。
As described above, (a0,
When the stored data d7, d6, d5, d4, d3, d2, d1) is read, (a0, d7, d6,
d5, d4, d3, d2, d1) are read out as they are and output to the Ser-out terminal. It looks as if the beginning of the read data is garbled and the end is missing.

【0033】図3(b)では、予めデータ書き込み時
(R/W="L")にてSCLKがd0時点書き込み時に
超過していたため、内部レジスタには(d6,d5,d
4,d3,d2,d1,d0,d0)なる8bitデー
タが既に書き込まれていた場合を指している。これは、
S/P−I/Fのデータ入力端子(SDIN)に受信さ
れるべきシリアルデータの転送順序がアドレス、データ
の順に、かつ、MSB先頭になっており、S/P変換用
のクロックとして用いているいるためクロックの超過に
よって内部レジスタのLSBにアドレスの最下位ビット
が重複残留してしまったからに他ならない。
In FIG. 3B, since the SCLK has previously exceeded the time of d0 writing at the time of data writing (R / W = “L”), (d6, d5, d
4, d3, d2, d1, d0, d0) have already been written. this is,
The transfer order of serial data to be received at the data input terminal (SDIN) of the S / P-I / F is in the order of address and data, and at the head of the MSB, and is used as a clock for S / P conversion. This is because the least significant bit of the address remains redundantly in the LSB of the internal register due to the clock excess.

【0034】次に、上記の通り内部レジスタに(d6,
d5,d4,d3,d2,d1,d0,d0)なる格納
されたデータを読みだした場合、(d6,d5,d4,
d3,d2,d1,d0,d0)がそのまま読み出さ
れ、Ser−out端子に出力される。あたかも読み出
しデータの最初が化け、最後が重複したようにも見え
る。 但し、上述の例は実際に起こりうる現象のごく一
部を示しているにすぎない。ノイズによるSCLKの不
足あるいは超過は書き込み或いは読み出しにおいて、何
れのタイミングで発生しうるかは通常は特定困難であ
る。
Next, as described above, (d6,
When the stored data d5, d4, d3, d2, d1, d0, d0) is read, (d6, d5, d4,
d3, d2, d1, d0, d0) are read as they are and output to the Ser-out terminal. It looks as if the beginning of the read data is garbled and the end is duplicated. However, the above example shows only a small part of the phenomena that can actually occur. It is generally difficult to specify at what timing the shortage or excess of SCLK due to noise can occur in writing or reading.

【0035】従って、読み出したデータ列の最初或いは
最後のデータでのみ比較を行いシリアルデータ転送中の
データ誤りを検出することも一部の例では可能ではある
が、元々シリアルI/F回路は2値記述の論理回路であ
るので、元々設定したデータ列が"FFh"、"00h"の
ような、隣接するデータが同一である場合には検出はお
よそ不可能である。
Therefore, although it is possible in some cases to compare only the first or last data of the read data string and detect a data error during serial data transfer, the serial I / F circuit originally has 2 bits. Since the logic circuit is a value description logic circuit, it is almost impossible to detect when adjacent data is the same, such as "FFh" or "00h" in the originally set data string.

【0036】なお、上記一部の例とは、"5Ah"、"A
5h"などのような検出パターンを設定すればデータ列
前半、およびデータ列後半での隣接データが異なるため
データ誤り検出が可能となることを指している。
The above examples are "5Ah", "A
If a detection pattern such as 5h "is set, adjacent data in the first half of the data string and the second half of the data string are different, so that data error detection can be performed.

【0037】上述のシリアルI/F部における確認方法
以外にも、内部レジスタに書き込み(EN="L"、W/
R="L")後、EN="L"としたまま、W/R="H"と
し、即ち読み出しモードとして、直ちにデータ検出に移
行することも可能である。この場合、書き込みモードか
ら改めて読み出しモードへ移行する冗長な時間が更に削
減できるため、より高速な設定データの確認を行うこと
が可能である。ここで言う冗長な時間とは、 ・書き込み終了処理(SCLK="H"、EN="H") ・読み出し開始処理(SCLK="H"、EN="L") ・読み出しアドレス設定(アドレス4bit設定、SC
LK4クロック) を指す。
In addition to the above-described confirmation method in the serial I / F section, writing to an internal register (EN = “L”, W /
After R = “L”), W / R = “H” with EN = “L”, that is, it is also possible to immediately shift to data detection in the read mode. In this case, since the redundant time for shifting from the write mode to the read mode again can be further reduced, it is possible to check the setting data at higher speed. Here, the redundant time is as follows: write end processing (SCLK = “H”, EN = “H”) read start processing (SCLK = “H”, EN = “L”) read address setting (address 4 bits) Settings, SC
LK4 clock).

【0038】以上、本発明の実施の形態によれば、Se
r−outのデータ列を調べることにより、CPUから
各機能別ICまでのデータ設定/読み出し過程において
生ずるデータ誤りについての原因を簡易に判別すること
が可能となる。
As described above, according to the embodiment of the present invention, Se
By examining the data sequence of r-out, it is possible to easily determine the cause of a data error that occurs in the process of setting / reading data from the CPU to each functional IC.

【0039】[0039]

【発明の効果】本発明により、S/P変換されたデータ
に誤りが発生した場合、シリアルデータ出力のデータ列
の並びを調べることにより、データ誤りについての原因
を簡単に判別することが可能となる。また、Ser−o
utデータ読み出しの設定にかかる冗長時間の削減が可
能であるため、データの正当性確認のための効率化に寄
与する。
According to the present invention, when an error occurs in S / P-converted data, it is possible to easily determine the cause of the data error by checking the arrangement of the serial data output data sequence. Become. Also, Ser-o
Since it is possible to reduce the redundant time required for the setting of the ut data reading, it contributes to the efficiency of data validity confirmation.

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

【図1】本発明の第1の実施の形態であるシリアルイン
ターフェイス回路を示す。
FIG. 1 shows a serial interface circuit according to a first embodiment of the present invention.

【図2】データ読み出しの際のシリアルクロックの異常
がSer−outにどのように現れるかを示したタイミ
ングチャートである。
FIG. 2 is a timing chart showing how an abnormality of a serial clock at the time of data reading appears in Ser-out.

【図3】データ書きこみの際のシリアルクロックの異常
がSer−outにどのように現れるかを示したタイミ
ングチャートである。
FIG. 3 is a timing chart showing how an abnormality of a serial clock at the time of writing data appears in Ser-out.

【図4】従来のシリアルインターフェイス回路を示す。FIG. 4 shows a conventional serial interface circuit.

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H03M 9/00 H03M 9/00 A Fターム(参考) 5B014 EA04 GC01 GE05 HA09 HB25 5B048 AA05 5B077 AA01 GG03 MM02 NN02 NN08 5B083 BB06 CC06 CC07 EE06 Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat II (reference) H03M 9/00 H03M 9/00 A F term (reference) 5B014 EA04 GC01 GE05 HA09 HB25 5B048 AA05 5B077 AA01 GG03 MM02 NN02 NN08 5B083 BB06 CC06 CC07 EE06

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 少なくともシリアル/パラレル変換回路
と内部レジスタを有するシリアルインターフェース回路
において、 内部レジスタに保持されたデータを複数回読みだし比較
した結果、読み出された最初のデータ列と以降に読み出
されたデータ列のデータ並びが異なる場合に読み出しデ
ータ転送誤りが発生したと判断し、 前記データ転送誤りの発生を判断し得ない場合に、該シ
リアルインターフェース回路に書き込むべくシリアルイ
ンターフェース回路外より送出されたデータとシリアル
インターフェース回路の内部レジスタに書き込まれたデ
ータに基づいて読み出されたデータを比較し、両者のデ
ータ列の少なくとも一部が異なる場合にシリアルインタ
ーフェース書き込み時データ転送誤りが発生したと判断
することを特徴とするシリアルインターフェース回路の
試験方法。
1. A serial interface circuit having at least a serial / parallel conversion circuit and an internal register. As a result of reading and comparing data held in the internal register a plurality of times, the first data string read out and the data read out thereafter are read out. It is determined that a read data transfer error has occurred when the data sequence of the data sequence thus obtained is different, and when the occurrence of the data transfer error cannot be determined, the data is sent from outside the serial interface circuit to write to the serial interface circuit. Comparing the read data with the data read based on the data written to the internal register of the serial interface circuit, and determines that a data transfer error has occurred at the time of writing to the serial interface when at least a part of the data strings of the two are different. Is characterized by The method of testing Le interface circuit.
【請求項2】 前記内部レジスタに保持されたデータを
ラッチ回路に一時保持し、このラッチ回路から前記デー
タを複数回読み出すことを特徴とする請求項1記載のシ
リアルインターフェイス回路の試験方法。
2. The method according to claim 1, wherein the data held in the internal register is temporarily held in a latch circuit, and the data is read from the latch circuit a plurality of times.
【請求項3】 入力されたシリアルデータをパラレル変
換するシリアル/パラレル変換回路と、 パラレル変換されたデータが書き込まれる内部レジスタ
と、 前記内部レジスタに書き込まれたデータを一時保持する
ラッチ回路と、 前記ラッチ回路に接続され、前記ラッチ回路に保持され
たデータを繰り返し読み出し、かつ1つ以上のデータ列
の並びを調べることによりデータの誤りが書き込み時に
発生しているか、読みだし時に発生しているかを判別す
ることが可能である判断手段とを具備することを特徴と
するシリアルインターフェイス回路。
3. A serial / parallel conversion circuit that converts input serial data into parallel data, an internal register into which the parallel-converted data is written, a latch circuit that temporarily holds data written into the internal register, It is connected to a latch circuit and repeatedly reads the data held in the latch circuit, and checks the arrangement of one or more data strings to determine whether a data error has occurred at the time of writing or at the time of reading. A serial interface circuit, comprising: a determination unit capable of determining.
JP2000171497A 2000-06-08 2000-06-08 Serial interface circuit and its testing method Pending JP2001350675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000171497A JP2001350675A (en) 2000-06-08 2000-06-08 Serial interface circuit and its testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000171497A JP2001350675A (en) 2000-06-08 2000-06-08 Serial interface circuit and its testing method

Publications (1)

Publication Number Publication Date
JP2001350675A true JP2001350675A (en) 2001-12-21

Family

ID=18674037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000171497A Pending JP2001350675A (en) 2000-06-08 2000-06-08 Serial interface circuit and its testing method

Country Status (1)

Country Link
JP (1) JP2001350675A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8823576B2 (en) 2006-09-29 2014-09-02 Fanuc Ltd Encoder communication circuit
CN111562490A (en) * 2019-02-14 2020-08-21 深圳市汇顶科技股份有限公司 Test method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8823576B2 (en) 2006-09-29 2014-09-02 Fanuc Ltd Encoder communication circuit
CN111562490A (en) * 2019-02-14 2020-08-21 深圳市汇顶科技股份有限公司 Test method and system

Similar Documents

Publication Publication Date Title
US20030035473A1 (en) Self test circuit for evaluating a high-speed serial interface
JP2000013414A (en) Intra-device supervisory and control system
US6516430B1 (en) Test circuit for semiconductor device with multiple memory circuits
US20020066053A1 (en) Trace control circuit
US7363565B2 (en) Method of testing apparatus having master logic unit and slave logic unit
KR100445042B1 (en) Single-chip microcomputer with dynamic burn-in test function and dynamic burn-in testing method therefor
US6587996B1 (en) Device and method for increased fault coverage using scan insertion techniques around synchronous memory
JP2001350675A (en) Serial interface circuit and its testing method
US20070168850A1 (en) Connection verification apparatus for verifying interconnection between multiple logic blocks
JP3537087B2 (en) Semiconductor device and method of inspecting semiconductor device
KR100894504B1 (en) Memory self test comparative circuit and System On Chip including the circuit
JP4394438B2 (en) Apparatus and method for converting diagnostic interface to standard SPI
JP2561032B2 (en) Semiconductor integrated circuit test method
US20080109092A1 (en) System for Elevator Electronic Safety Device
JPH04148258A (en) Bus line test method and device for executing the method
WO2000031638A1 (en) Method of testing integrated circuits
JP2003121471A (en) Bus trigger circuit and waveform measuring device using it
KR100830958B1 (en) Apparatus and Method for Decision of Test Result of Semiconductor Memory Device
JPH08129510A (en) Memory data correcting device
KR100480561B1 (en) Micro-rom having check sum part
JP3528770B2 (en) Synchronization circuit having synchronization abnormality detection function, semiconductor integrated circuit, and information processing device
JP2808303B2 (en) IC device test equipment
JPH01209502A (en) Checking device for extension bus of programmable controller
JPH05334202A (en) Check method for ram
JPH06274360A (en) Error check circuit

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050428

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050606