JP3456912B2 - Data interface circuit - Google Patents

Data interface circuit

Info

Publication number
JP3456912B2
JP3456912B2 JP36589398A JP36589398A JP3456912B2 JP 3456912 B2 JP3456912 B2 JP 3456912B2 JP 36589398 A JP36589398 A JP 36589398A JP 36589398 A JP36589398 A JP 36589398A JP 3456912 B2 JP3456912 B2 JP 3456912B2
Authority
JP
Japan
Prior art keywords
data
input
terminal
clock
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP36589398A
Other languages
Japanese (ja)
Other versions
JP2000196464A (en
Inventor
健二郎 的場
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP36589398A priority Critical patent/JP3456912B2/en
Publication of JP2000196464A publication Critical patent/JP2000196464A/en
Application granted granted Critical
Publication of JP3456912B2 publication Critical patent/JP3456912B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、シリアルデータの
データインターフェース回路に係り、詳細には、シリア
ルデータをパラレルデータに変換する2端子制御による
データインターフェース回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data data interface circuit, and more particularly to a two-terminal control data interface circuit for converting serial data into parallel data.

【0002】[0002]

【従来の技術】シリアルコントローラの基本的機能は、
シリアルデータのパラレルデータ変換、パラレルデータ
のシリアルデータ変換である。一般に、シリアル伝送さ
れた受信データは、シリアルデータ変換によって8ビッ
ト又は16ビット等のデータ幅のパラレルデータに変換
され、内部データバスに取り込まれる。
2. Description of the Related Art The basic function of a serial controller is
These are parallel data conversion of serial data and serial data conversion of parallel data. Generally, serially transmitted received data is converted into parallel data having a data width of 8 bits or 16 bits by serial data conversion, and is taken into an internal data bus.

【0003】上記シリアルデータのパラレルデータ変換
は、所定ビット長(例えば、8ビット)のシフトレジス
タを用いて簡単に実現できる。この目的に用いるシフト
レジスタを主要部として構成されるシリアル/パラレル
データ変換回路を、以下シリアルIN/パラレルOUT
(以下、SI/POという)と呼ぶ。このSI/PO
は、シリアルデータを入力端子SIに入力し、シフトク
ロックSCKをクロック端子CKに供給すると、クロッ
クの立ち上がり時にデータが読み込まれるとともに、デ
ータを順次シフトし、出力端子POにパラレルデータと
して出力する。また、このSI/POは、内部のシフト
レジスタをリセットできるクリア端子や、2つのデータ
入力をNANDゲートを介してデータ入力端子に入力す
る機能を有するものが一般的である。
The parallel data conversion of the serial data can be easily realized by using a shift register having a predetermined bit length (for example, 8 bits). A serial / parallel data conversion circuit mainly composed of a shift register used for this purpose is hereinafter referred to as serial IN / parallel OUT.
(Hereinafter referred to as SI / PO). This SI / PO
When the serial data is input to the input terminal SI and the shift clock SCK is supplied to the clock terminal CK, the data is read at the rising edge of the clock, the data is sequentially shifted, and the parallel data is output to the output terminal PO. Further, this SI / PO generally has a clear terminal capable of resetting an internal shift register and a function of inputting two data inputs to a data input terminal via a NAND gate.

【0004】[0004]

【発明が解決しようとする課題】しかしながらこのよう
な従来の2端子制御によるシリアルデータインターフェ
ース回路にあっては、以下のような問題点があった。
However, the conventional serial data interface circuit under the control of two terminals has the following problems.

【0005】すなわち、外部要因によりシフトクロック
SCKにハザード(細いパルス)が重畳することがあ
り、SCKにハザードが重畳すると回路が誤動作するこ
とが考えられる。ノイズやハザードの発生自体をなくす
ことが望ましいが、いろいろな所で発生するノイズ等を
完全に防止することは難しく、また、このような環境下
で使用せざるを得ない場合も多い。
That is, a hazard (fine pulse) may be superimposed on the shift clock SCK due to an external factor, and it is considered that the circuit malfunctions when the hazard is superimposed on the SCK. It is desirable to eliminate the generation of noise and hazards, but it is difficult to completely prevent noise and the like generated in various places, and in many cases, it is unavoidable to use it in such an environment.

【0006】また、従来の回路は、単にシリアルデータ
を読み込んで順次シフトし、パラレルデータとして出力
するだけであるため、実際に使用するためには、外部と
のデータのやり取りを開始する情報を何等かの方法によ
って与えなければならない。例えば、上記SI/POの
NANDゲートの一方を制御入力とし、データ入力を禁
止する場合はこの制御入力を“L”にすることでデータ
入力の内部取り込みを防ぐ。この制御入力は、チップセ
レクト(CS)信号のように別の制御回路で生成して供
給する必要がある。また、SI/POがこのようなNA
NDゲートを持たない場合には、これに相当するゲート
回路を入力側に設ける必要がある。何れにしても、従来
の回路では、外部とのデータのやり取りを開始するため
のトリガとなり得るものがないため、単にデータを入力
するだけでは使用できず、非常に使いずらいという欠点
があった。
Further, the conventional circuit simply reads serial data, sequentially shifts it, and outputs it as parallel data. Therefore, in order to actually use it, what information is used to start the exchange of data with the outside. You must give it by that method. For example, when one of the NAND gates of the SI / PO is used as a control input and the data input is prohibited, the control input is set to "L" to prevent the internal input of the data input. This control input must be generated and supplied by another control circuit like a chip select (CS) signal. In addition, SI / PO is such NA
If the ND gate is not provided, it is necessary to provide a gate circuit corresponding to this on the input side. In any case, the conventional circuit has a drawback that it cannot be used simply by inputting data because it cannot be a trigger for starting data exchange with the outside and is very difficult to use. .

【0007】本発明は、データを入力するだけでデータ
インターフェースが容易に実現でき、クロックにノイズ
やハザードが重畳することがあっても回路の誤動作を防
止することができるデータインターフェース回路を提供
することを目的とする。
The present invention provides a data interface circuit which can easily realize a data interface only by inputting data and can prevent malfunction of the circuit even if noise or hazard is superimposed on a clock. With the goal.

【0008】[0008]

【課題を解決するための手段】本発明に係るデータイン
ターフェース回路は、データ入力端子に入力されたシリ
アルデータを、クロック端子に入力されるクロックに従
って読み込んで順次シフトし、出力端子にパラレルデー
タとして出力するシフトレジスタと、データ入力端子に
所定時間固定レベル信号が入力されたことを検出する検
出手段と、受信するデータの個数をカウントするカウン
ト手段と、固定レベル信号が検出されると、クロックを
シフトレジスタに入力可能に制御し、カウント手段によ
るカウントが所定のデータ個数に達すると、クロック入
力を不可に制御する制御手段とを備えて構成する。
A data interface circuit according to the present invention reads serial data input to a data input terminal according to a clock input to a clock terminal, sequentially shifts it, and outputs it as parallel data to an output terminal. Shift register, detecting means for detecting that a fixed level signal is input to the data input terminal for a predetermined time, counting means for counting the number of received data, and shifting the clock when the fixed level signal is detected. The control means controls input to the register so that when the count by the count means reaches a predetermined number of data, the control means disables clock input.

【0009】本発明に係るデータインターフェース回路
は、固定レベル信号の検出期間中にパルスが入力された
ことを検出する手段を備え、制御手段は、固定レベル信
号が検出され、かつ固定レベル信号の検出期間中にパル
スが入力されなかったとき、クロックをシフトレジスタ
に入力可能に制御するように構成したものであってもよ
い。
The data interface circuit according to the present invention comprises means for detecting the input of a pulse during the detection period of the fixed level signal, and the control means detects the fixed level signal and also detects the fixed level signal. The clock may be controlled so that it can be input to the shift register when no pulse is input during the period.

【0010】[0010]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。 第1の実施形態 図1は本発明の実施形態に係るデータインターフェース
回路の構成を示す回路図である。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. First Embodiment FIG. 1 is a circuit diagram showing a configuration of a data interface circuit according to an embodiment of the present invention.

【0011】図1において、データインターフェース回
路10は、シリアルIN/パラレルOUTのシフトレジ
スタ(SI/PO)11、データ入力端子DATAが一
定時間(ここでは1μs)“L”レベルであることを検
出する1μs検出器12(検出手段)、受信するデータ
の個数をカウントするカウンタ13(カウント手段)、
ANDゲート14、RSフリップフロップを構成するN
ORゲート15,16、インバータ17、Dフリップフ
ロップ(DFF)18、及びORゲート19から構成さ
れる。
In FIG. 1, a data interface circuit 10 detects that a serial IN / parallel OUT shift register (SI / PO) 11 and a data input terminal DATA are at "L" level for a certain period of time (here, 1 μs). 1 μs detector 12 (detection means), counter 13 (counting means) for counting the number of received data,
AND gate 14, N forming an RS flip-flop
It is composed of OR gates 15 and 16, an inverter 17, a D flip-flop (DFF) 18, and an OR gate 19.

【0012】上記ANDゲート14、NORゲート1
5,16、インバータ17、Dフリップフロップ(DF
F)18及びORゲート19は、全体としてデータ受信
中のみSCK端子からの入力を受け付けるように制御す
る制御手段を構成する。
The AND gate 14 and the NOR gate 1
5, 16, inverter 17, D flip-flop (DF
F) 18 and the OR gate 19 constitute a control means for controlling so as to receive the input from the SCK terminal only during the data reception as a whole.

【0013】データ入力端子DATAは、SI/PO1
1のシリアル入力端子SI及び1μs検出器12の入力
端子INに接続される。また、シフトクロックSCK
は、ANDゲート14の入力端子、1μs検出器12の
リセット端子R及びカウンタ13の入力端子CKBに接
続される。
The data input terminal DATA is SI / PO1.
It is connected to the serial input terminal SI of 1 and the input terminal IN of the 1 μs detector 12. In addition, the shift clock SCK
Is connected to the input terminal of the AND gate 14, the reset terminal R of the 1 μs detector 12, and the input terminal CKB of the counter 13.

【0014】SI/PO11は、シリアルIN/パラレ
ルOUTのシフトレジスタであり、シリアル入力端子S
Iはデータ入力端子DATAに接続され、シフトクロッ
ク端子CKはANDゲート14の出力端子に接続され、
パラレル出力端子POのパラレル出力は内部データバス
に出力される。
The SI / PO 11 is a serial IN / parallel OUT shift register, and has a serial input terminal S.
I is connected to the data input terminal DATA, the shift clock terminal CK is connected to the output terminal of the AND gate 14,
The parallel output from the parallel output terminal PO is output to the internal data bus.

【0015】1μs検出器12は、データ入力端子DA
TAの1μsの“L”レベルを検出するための回路であ
り、データ入力端子DATAは入力端子INに接続さ
れ、シフトクロックSCKはリセット端子Rに接続さ
れ、出力端子OUTはNORゲート15の入力端子に接
続される。1μs検出器12の回路構成の詳細について
は後述する。
The 1 μs detector 12 has a data input terminal DA
This is a circuit for detecting the “L” level of TA for 1 μs. The data input terminal DATA is connected to the input terminal IN, the shift clock SCK is connected to the reset terminal R, and the output terminal OUT is the input terminal of the NOR gate 15. Connected to. Details of the circuit configuration of the 1 μs detector 12 will be described later.

【0016】カウンタ13は、受信するデータの個数だ
けをカウントするもので、入力端子CKBはシフトクロ
ックSCK及び1μs検出器12のリセット端子Rに接
続され、オーバーフロー信号端子COはDFF18のク
ロック入力に接続され、リセット端子RはORゲート1
9の出力端子に接続される。このORゲート19の他方
の入力端子は、リセット端子に接続される。
The counter 13 counts only the number of received data, the input terminal CKB is connected to the shift clock SCK and the reset terminal R of the 1 μs detector 12, and the overflow signal terminal CO is connected to the clock input of the DFF 18. Reset terminal R is OR gate 1
9 output terminals. The other input terminal of the OR gate 19 is connected to the reset terminal.

【0017】DFF18のD入力は“H”レベルに固定
され、Q出力はNORゲート16の入力端子に接続され
る。
The D input of the DFF 18 is fixed to the "H" level, and the Q output is connected to the input terminal of the NOR gate 16.

【0018】NORゲート15,16は、RSフリップ
フロップを構成しており、NORゲート15の出力はイ
ンバータ17の入力端子、NORゲート16の一方の入
力端子及びORゲート19の入力端子に接続され、ま
た、NORゲート16の出力はNORゲート15の他方
の入力端子に接続される。
The NOR gates 15 and 16 form an RS flip-flop, and the output of the NOR gate 15 is connected to the input terminal of the inverter 17, one input terminal of the NOR gate 16 and the input terminal of the OR gate 19. The output of the NOR gate 16 is connected to the other input terminal of the NOR gate 15.

【0019】インバータ17出力SCKEは、ANDゲ
ート14の一方の入力端子に接続され、ANDゲート1
4の他方の入力端子はシフトクロックSCKに接続され
る。
The output SCKE of the inverter 17 is connected to one input terminal of the AND gate 14, and the AND gate 1 outputs
The other input terminal of 4 is connected to the shift clock SCK.

【0020】図2は上記1μs検出器12の構成の一例
を示す回路図であり、図3は図2の回路の各部の波形を
示すタイミングチャートである。
FIG. 2 is a circuit diagram showing an example of the configuration of the 1 μs detector 12, and FIG. 3 is a timing chart showing the waveform of each part of the circuit of FIG.

【0021】図2において、1μs検出器12は、5個
のDフリップフロップ(DFF)101〜105、イン
バータ106及びNANDゲート107から構成され
る。
In FIG. 2, the 1 μs detector 12 is composed of five D flip-flops (DFFs) 101 to 105, an inverter 106 and a NAND gate 107.

【0022】入力データSDは、DFF101のD入力
及びDFF105のクロック入力に接続され、マスター
クロックCLKはDFF101〜103のクロック入力
に接続される。また、リセットは各DFF101〜10
5のリセット端子に接続される。
The input data SD is connected to the D input of the DFF 101 and the clock input of the DFF 105, and the master clock CLK is connected to the clock inputs of the DFFs 101 to 103. In addition, resetting is performed for each DFF 101 to 10
5 reset terminal.

【0023】入力データSDは、DFF101のD入力
に入力され、DFF101の出力Q1が次のDFF10
2のD入力に入力され、DFF102の出力Q2がその
次のDFF103のD入力及びインバータ106に入力
される。インバータ106の出力は、NANDゲート1
07の一方の入力端子に入力され、DFF103の出力
QはNANDゲート107の他方の入力端子に入力され
る。
The input data SD is input to the D input of the DFF 101, and the output Q1 of the DFF 101 is the next DFF 10
The output Q2 of the DFF 102 is input to the D input of the next DFF 103 and the inverter 106. The output of the inverter 106 is the NAND gate 1
07, and the output Q of the DFF 103 is input to the other input terminal of the NAND gate 107.

【0024】DFF104のD入力は“H”レベルに固
定され、NANDゲート107の出力QはDFF104
のクロック入力に接続される。また、DFF104の出
力Q4が次のDFF105のD入力に入力され、DFF
105の出力Qが出力端子OUTに接続される。
The D input of the DFF 104 is fixed to the "H" level, and the output Q of the NAND gate 107 is the DFF 104.
Connected to the clock input of. The output Q4 of the DFF 104 is input to the D input of the next DFF 105,
The output Q of 105 is connected to the output terminal OUT.

【0025】図2に示す回路は、入力されるマスターク
ロックCLKの周期により検出する時間を変えることが
できる。図3に示すように、CLK周期が1μs周期の
時は図2に示す回路は、1μs検出器12となる。ま
た、CLK周期を1ms周期とすれば、1ms検出器と
なる。本実施形態では、1μs周期のCLKを供給して
1μs検出器を構成しているが、これは一例に過ぎず他
の周期を検出する検出器であってもよい。
The circuit shown in FIG. 2 can change the detection time according to the cycle of the input master clock CLK. As shown in FIG. 3, when the CLK cycle is 1 μs cycle, the circuit shown in FIG. 2 becomes the 1 μs detector 12. Further, if the CLK cycle is 1 ms cycle, it becomes a 1 ms detector. In the present embodiment, the 1 μs detector is configured by supplying the CLK of the 1 μs cycle, but this is only an example and a detector that detects another cycle may be used.

【0026】以下、上述のように構成されたデータイン
ターフェース回路10の動作を説明する。ここでは、8
ビットのデータインターフェースについて説明する。
The operation of the data interface circuit 10 configured as described above will be described below. Here, 8
The bit data interface will be described.

【0027】図4は上記データインターフェース回路1
0の動作を示すタイミングチャートである。
FIG. 4 shows the data interface circuit 1 described above.
6 is a timing chart showing the operation of 0.

【0028】まず、図4に示すようにデータ入力端子D
ATAより1μs以上の“L”レベルが入力されると、
1μs検出器12は、この1μsの“L”レベルを検出
して出力端子OUTに“H”を出力する。これにより、
DFF18にはリセットがかかり、NORゲート15,
16はRSフリップフロップを構成しているので、RS
フリップフロップ出力を反転したインバータ17出力S
CKEは“H”レベルとなり、ANDゲート14におい
てシフトクロックSCKを受付可能となる。
First, as shown in FIG. 4, the data input terminal D
When “L” level of 1 μs or more is input from ATA,
The 1 μs detector 12 detects the “L” level of 1 μs and outputs “H” to the output terminal OUT. This allows
The DFF 18 is reset, and the NOR gate 15 and
Since 16 constitutes an RS flip-flop, RS
Inverter 17 output S that has inverted flip-flop output
CKE becomes "H" level, and the AND gate 14 can receive the shift clock SCK.

【0029】次に、SCK端子よりシフトクロックSC
Kが入力され始めたとき、SCKEは“H”レベルであ
るからANDゲート14を介して、SI/PO11のク
ロック端子CKに入力され、SI/PO11ではこのシ
フトクロックの立ち上がり時にデータが読み込まれると
ともに、データを順次シフトし、出力端子POにパラレ
ルデータとして出力する。
Next, the shift clock SC is input from the SCK terminal.
When K starts to be input, since SCKE is at “H” level, it is input to the clock terminal CK of SI / PO11 via the AND gate 14, and SI / PO11 reads data at the rising edge of this shift clock. , Data is sequentially shifted and output as parallel data to the output terminal PO.

【0030】一方、SCK端子よりシフトクロックSC
Kが入力され始めると、1μs検出器12にはリセット
がかかる。このとき、インバータ17出力SCKEはR
Sフリップフロップにより“H”レベルを保持してい
る。さらにこのとき、カウンタ13ではカウント動作を
しており、シフトクロックSCKを0から7までカウン
トすると、オーバーフロー信号端子COにHパルスを出
力する。そして、DFF18では、オーバーフロー信号
端子COから出力されるHパルスの後縁で出力Qから
“H”レベルを出力する。これにより、RSフリップフ
ロップ出力を反転したインバータ17出力SCKEは
“L”レベルとなり、以降ANDゲート14においてシ
フトクロックSCKを受付けなくなる。
On the other hand, from the SCK terminal, the shift clock SC
When K starts to be input, the 1 μs detector 12 is reset. At this time, the inverter 17 output SCKE is R
The S flip-flop holds the "H" level. Further, at this time, the counter 13 is performing the counting operation, and when the shift clock SCK is counted from 0 to 7, the H pulse is output to the overflow signal terminal CO. Then, the DFF 18 outputs the “H” level from the output Q at the trailing edge of the H pulse output from the overflow signal terminal CO. As a result, the inverter 17 output SCKE, which is the inverted RS flip-flop output, becomes "L" level, and the AND gate 14 cannot receive the shift clock SCK thereafter.

【0031】以上説明したように、第1の実施形態に係
るデータインターフェース回路10は、シリアルIN/
パラレルOUTのシフトレジスタ(SI/PO)11、
データ入力端子DATAが一定時間“L”レベルである
ことを検出する1μs検出器12、受信するデータの個
数をカウントするカウンタ13、ANDゲート14、R
Sフリップフロップを構成するNORゲート15,1
6、インバータ17、DFF18及びORゲート19を
備え、1μs検出器12がデータ入力端子DATAの一
定時間“L”レベルを検出すると、それをデータ受信開
始信号とし、カウンタ13が8ビットデータをカウント
するまでシフトクロックSCKをSI/PO11に入力
可能に構成したので、従来例のように外部とのデータの
やり取りを開始するための制御が不要となり、単にデー
タを入力するだけでデータ受信を開始することができ、
非常に使い易いデータインターフェースを実現すること
ができる。
As described above, the data interface circuit 10 according to the first embodiment has the serial IN /
Parallel OUT shift register (SI / PO) 11,
1 μs detector 12 for detecting that data input terminal DATA is at “L” level for a certain period of time, counter 13 for counting the number of received data, AND gate 14, R
NOR gates 15 and 1 forming an S flip-flop
6, the inverter 17, the DFF 18, and the OR gate 19 are provided, and when the 1 μs detector 12 detects the “L” level of the data input terminal DATA for a certain period of time, it is used as a data reception start signal, and the counter 13 counts 8-bit data. Since the shift clock SCK can be input to SI / PO11, the control for starting the exchange of data with the outside as in the conventional example is unnecessary, and the data reception can be started by simply inputting the data. Can
A very easy-to-use data interface can be realized.

【0032】また、上記データ受信開始信号が入力され
るまではSCK端子からの入力を受付けないので、クロ
ックにノイズやハザードが重畳することがあっても回路
の誤動作を確実に防止することができる。 第2の実施形態 図5は本発明の第2の実施形態に係るデータインターフ
ェース回路の全体構成を示す図である。本実施形態の説
明にあたり前記図1の構成と同一部分には同一符号を付
して重複部分の説明を省略する。
Since the input from the SCK terminal is not accepted until the data reception start signal is input, malfunction of the circuit can be surely prevented even if noise or hazard is superimposed on the clock. . Second Embodiment FIG. 5 is a diagram showing an overall configuration of a data interface circuit according to a second embodiment of the present invention. In the description of this embodiment, the same parts as those in the configuration of FIG. 1 are designated by the same reference numerals, and the description of the overlapping parts will be omitted.

【0033】図5において、データインターフェース回
路20は、シリアルIN/パラレルOUTのシフトレジ
スタ(SI/PO)11、データ入力端子DATAの立
ち下がりを検出する立ち下がり検出器21、立ち下がり
検出器21出力を制御端子Eに受けるとともに、データ
入力端子DATAが一定時間(1μs)“L”レベルで
あることを検出する1μs検出器12、1μs検出器1
2出力をデータ入力端子DATAレベル変化に従って保
持するDフリップフロップ(DFF)22、受信するデ
ータの個数をカウントするカウンタ13、ANDゲート
14、RSフリップフロップを構成するNORゲート1
5,16、インバータ17、DFF18、及びORゲー
ト19から構成される。
In FIG. 5, the data interface circuit 20 outputs a shift register (SI / PO) 11 for serial IN / parallel OUT, a fall detector 21 for detecting the fall of the data input terminal DATA, and a fall detector 21. Is received by the control terminal E, and detects that the data input terminal DATA is at the “L” level for a certain period of time (1 μs), the 1 μs detector 12, the 1 μs detector 1
A D flip-flop (DFF) 22 that holds two outputs according to a change in the data input terminal DATA, a counter 13 that counts the number of received data, an AND gate 14, and a NOR gate 1 that constitutes an RS flip-flop.
5, 16, an inverter 17, a DFF 18, and an OR gate 19.

【0034】上記立ち下がり検出器21及びDFF22
は、全体として1μsの“L”レベルの検出期間中にH
パルスが入力されたことを検出する手段を構成する。
The fall detector 21 and the DFF 22
Is H during the detection period of “L” level of 1 μs as a whole.
A means for detecting that a pulse has been input is configured.

【0035】データ入力端子DATAは、SI/PO1
1のシリアル入力端子SI、立ち下がり検出器21の入
力端子IN及び1μs検出器12の入力端子INに接続
される。また、シフトクロックSCKは、ANDゲート
14の入力端子、立ち下がり検出器21のリセット端子
R、1μs検出器12のリセット端子R、DFF22の
リセット端子R及びカウンタ13の入力端子CKBに接
続される。
The data input terminal DATA is SI / PO1.
It is connected to the serial input terminal SI of 1, the input terminal IN of the fall detector 21 and the input terminal IN of the 1 μs detector 12. The shift clock SCK is connected to the input terminal of the AND gate 14, the reset terminal R of the fall detector 21, the reset terminal R of the 1 μs detector 12, the reset terminal R of the DFF 22, and the input terminal CKB of the counter 13.

【0036】立ち下がり検出器21は、データ入力端子
DATAの立ち下がりを検出するもので、例えば2つの
DFF及びNORゲートにより簡単に構成できる。
The falling edge detector 21 detects the falling edge of the data input terminal DATA, and can be simply constructed by, for example, two DFFs and a NOR gate.

【0037】1μs検出器12は、データ入力端子DA
TAの1μsの“L”レベルを検出するための回路であ
り、本実施形態では、さらに1μs検出器12の入力受
付けを制御する端子Eを備える。この制御端子Eは、立
ち下がり検出器21の出力端子OUTに接続される。ま
た、データ入力端子DATAが入力端子INに接続さ
れ、シフトクロックSCKがリセット端子Rに接続さ
れ、出力端子OUTがNORゲート15の入力端子に接
続される。
The 1 μs detector 12 has a data input terminal DA
This is a circuit for detecting the “L” level of TA for 1 μs. In the present embodiment, a terminal E for controlling the input acceptance of the 1 μs detector 12 is further provided. The control terminal E is connected to the output terminal OUT of the fall detector 21. The data input terminal DATA is connected to the input terminal IN, the shift clock SCK is connected to the reset terminal R, and the output terminal OUT is connected to the input terminal of the NOR gate 15.

【0038】DFF22は、1μs検出器12出力を保
持するためのもので、DFF22の入力Dは1μs検出
器12の出力端子OUTに接続され、クロック入力はデ
ータ入力端子DATAに接続され、リセット端子RはS
CK端子に接続され、Q出力はNORゲート15の入力
端子及びDFF18のリセット端子Rに接続される。
The DFF 22 is for holding the output of the 1 μs detector 12, the input D of the DFF 22 is connected to the output terminal OUT of the 1 μs detector 12, the clock input is connected to the data input terminal DATA, and the reset terminal R. Is S
The Q output is connected to the CK terminal, and the Q output is connected to the input terminal of the NOR gate 15 and the reset terminal R of the DFF 18.

【0039】以下、上述のように構成されたデータイン
ターフェース回路20の動作を説明する。ここでは、8
ビットのデータインターフェースについて説明する。
The operation of the data interface circuit 20 configured as described above will be described below. Here, 8
The bit data interface will be described.

【0040】図5は上記データインターフェース回路2
0の動作を示すタイミングチャートである。
FIG. 5 shows the data interface circuit 2 described above.
6 is a timing chart showing the operation of 0.

【0041】まず、図5に示すようにデータ入力端子D
ATAが“H”から“L”に変化すると、立ち下がり検
出器21は、この立ち下がりを検出し出力端子OUTか
ら“H”レベルを出力する。1μs検出器12は、この
“H”レベルを制御端子Eに受けて動作可能状態とな
る。
First, as shown in FIG. 5, the data input terminal D
When ATA changes from "H" to "L", the fall detector 21 detects this fall and outputs "H" level from the output terminal OUT. The 1 μs detector 12 receives the “H” level at the control terminal E and becomes in the operable state.

【0042】そして、データ入力端子DATAより1μ
s以上の“L”レベルが入力されると、1μs検出器1
2は、この1μsの“L”レベルを検出して出力端子O
UTに“H”を出力する。
From the data input terminal DATA, 1 μ
When an “L” level of s or more is input, the 1 μs detector 1
2 detects the “L” level of 1 μs to output terminal O
Output "H" to UT.

【0043】その後、図5に示すようにデータ入力端子
DATAが“L”から“H”に変化すると、DFF22
はこのタイミングで1μs検出器12出力の“H”レベ
ルを保持し、Q端子より“H”レベルを出力する。これ
により、RSフリップフロップ出力を反転したインバー
タ17出力SCKEは“H”レベルとなり、ANDゲー
ト14においてシフトクロックSCKを受付可能とな
る。また、この時DFF18はリセットされ、カウンタ
13のリセットは解除される。
After that, when the data input terminal DATA changes from "L" to "H" as shown in FIG.
Holds the “H” level of the output of the 1 μs detector 12 at this timing, and outputs the “H” level from the Q terminal. As a result, the output SCKE of the inverter 17, which is the inverted output of the RS flip-flop, becomes "H" level, and the AND gate 14 can receive the shift clock SCK. At this time, the DFF 18 is reset and the reset of the counter 13 is released.

【0044】次に、SCK端子よりSCK端子に“H”
が入力されると、立ち下がり検出器21、1μs検出器
12及びDFF22はリセットされるが、インバータ1
7出力SCKEはRSフリップフロップにより“H”レ
ベルを保持している。また、DFF18のリセットは解
除される。
Next, "H" is applied from the SCK terminal to the SCK terminal.
Is input, the falling detector 21, the 1 μs detector 12 and the DFF 22 are reset, but the inverter 1
The 7-output SCKE holds the "H" level by the RS flip-flop. Further, the reset of the DFF 18 is released.

【0045】このとき、カウンタ13ではシフトクロッ
クSCKの後縁でカウント動作を行っており、0から7
までカウントし、SCKが“H”レベルになるとオーバ
ーフロー信号端子COにHパルスを出力する。そして、
オーバーフロー信号端子COから出力されるHパルスの
後縁でDFF18のQ出力は“H”レベルとなり、この
時DFF21のQ出力は“L”レベルであるので、イン
バータ17出力SCKEは“L”レベルとなり、以降A
NDゲート14においてシフトクロックSCKを受付け
なくなる。
At this time, the counter 13 performs the counting operation at the trailing edge of the shift clock SCK, and the count operation is from 0 to 7.
Up to the H level, the H pulse is output to the overflow signal terminal CO. And
At the trailing edge of the H pulse output from the overflow signal terminal CO, the Q output of the DFF 18 becomes "H" level. At this time, the Q output of the DFF 21 is "L" level, so the inverter 17 output SCKE becomes "L" level. , After that A
The ND gate 14 no longer receives the shift clock SCK.

【0046】このように、このデータインターフェース
回路20は、データ入力端子DATAから一度1μs以
上の“L”レベルが入力され、その間にSCK端子から
Hパルスが入力されなければ、動作可能状態となり、ま
た、データ受信中でも上記状態が入力されれば再び最初
からデータ受信を開始することができる。
As described above, the data interface circuit 20 is in the operable state unless the “L” level of 1 μs or more is once input from the data input terminal DATA and the H pulse is not input from the SCK terminal during that time. Even if data is being received, if the above state is input, data reception can be restarted from the beginning.

【0047】以上説明したように、第2の実施形態に係
るデータインターフェース回路20は、データ入力端子
DATAの立ち下がりを検出する立ち下がり検出器2
1、立ち下がり検出器21出力を制御端子Eに受けると
ともに、データ入力端子DATAが一定時間“L”レベ
ルであることを検出する1μs検出器12、1μs検出
器12出力をデータ入力端子DATAレベル変化に従っ
て保持するDFF22を備え、データ入力端子DATA
の一定時間“L”レベルが検出され、その間SCK端子
からHパルスが入力されなかった場合のみデータ受信開
始のトリガとして認識し、シフトクロックSCKをSI
/PO11に入力可能に構成したので、第1の実施形態
と同様の効果を得ることができることに加え、データ受
信中でも再度データを入力し直すことが可能となり、よ
り一層使い易いデータインターフェースを実現すること
ができる。
As described above, the data interface circuit 20 according to the second embodiment includes the fall detector 2 that detects the fall of the data input terminal DATA.
1. The output of the falling detector 21 is received by the control terminal E, and the output of the 1 μs detector 12 and the output of the 1 μs detector 12 that detects that the data input terminal DATA is at the “L” level for a certain period of time changes the data input terminal DATA level. The data input terminal DATA.
Is detected as a trigger for starting data reception only when the "L" level is detected for a certain period of time and the H pulse is not input from the SCK terminal during that period, and the shift clock SCK is set to SI.
Since the input / output is configured to be input to / PO11, the same effect as that of the first embodiment can be obtained, and data can be input again during data reception, and a data interface that is even easier to use is realized. be able to.

【0048】したがって、このような優れた特長を有す
るデータインターフェース回路を、シリアルコントロー
ラ等に適用すれば、ハザードによる誤動作がなく、非常
に使い易い装置が実現可能になる。
Therefore, if the data interface circuit having such excellent features is applied to a serial controller or the like, it is possible to realize a very easy-to-use device without malfunction due to hazard.

【0049】なお、上記各実施形態に係るデータインタ
ーフェース回路を、上述したようなシリアルコントロー
ラ等に適用することもできるが、勿論これには限定され
ず、シリアルデータインターフェース回路であれば全て
の装置に適用可能である。
The data interface circuit according to each of the above-described embodiments can be applied to the serial controller or the like as described above, but the present invention is not limited to this, and any device can be used as long as it is a serial data interface circuit. Applicable.

【0050】また、上記各実施形態では、所定時間固定
レベルを、1μsの“L”レベルとしているが、1μs
以外の任意の時間でもよく、また他の固定レベル(例え
ば“H”レベル)であってもよい。また、8ビットのデ
ータインターフェースについて説明したが、勿論このビ
ット長には限定されず、例えば16ビットのSI/PO
及びカウンタを用いれば16ビットのデータインターフ
ェースとなる。
Further, in each of the above-mentioned embodiments, the fixed level for a predetermined time is the “L” level of 1 μs, but it is 1 μs.
It may be any time other than the above, and may be another fixed level (for example, “H” level). Also, although the 8-bit data interface has been described, it is needless to say that the bit length is not limited to this and, for example, 16-bit SI / PO is used.
If a counter is used, a 16-bit data interface can be obtained.

【0051】さらに、上記データインターフェース回路
及び、1μs検出器等を構成するDFF、ゲート回路、
インバータ等の種類、数などは前述した実施形態に限ら
れない。
Furthermore, the data interface circuit, the DFF, the gate circuit, and the like, which constitute the 1 μs detector and the like,
The type and number of inverters and the like are not limited to those in the above embodiment.

【0052】[0052]

【発明の効果】本発明に係るデータインターフェース回
路では、データ入力端子に入力されたシリアルデータ
を、クロック端子に入力されるクロックに従って読み込
んで順次シフトし、出力端子にパラレルデータとして出
力するシフトレジスタと、データ入力端子に所定時間固
定レベル信号が入力されたことを検出する検出手段と、
受信するデータの個数をカウントするカウント手段と、
固定レベル信号が検出されると、クロックをシフトレジ
スタに入力可能に制御し、カウント手段によるカウント
が所定のデータ個数に達すると、クロック入力を不可に
制御する制御手段とを備えて構成したので、データを入
力するだけでデータインターフェースが容易に実現で
き、クロックにノイズやハザードが重畳することがあっ
ても回路の誤動作を防止することができる。
In the data interface circuit according to the present invention, the serial data input to the data input terminal is read according to the clock input to the clock terminal, sequentially shifted, and output to the output terminal as parallel data. Detecting means for detecting that a fixed level signal is inputted to the data input terminal for a predetermined time,
Counting means for counting the number of received data,
When a fixed level signal is detected, the clock is controlled so that it can be input to the shift register, and when the count by the counting means reaches a predetermined number of data, the control means for controlling the clock input to be disabled is provided. A data interface can be easily realized simply by inputting data, and malfunction of the circuit can be prevented even if noise or hazard is superimposed on the clock.

【0053】本発明に係るデータインターフェース回路
では、固定レベル信号の検出期間中にパルスが入力され
たことを検出する手段を備え、制御手段は、固定レベル
信号が検出され、かつ固定レベル信号の検出期間中にパ
ルスが入力されなかったとき、クロックをシフトレジス
タに入力可能に制御するように構成したので、上記効果
に加え、データ受信中でも再度データを入力し直すこと
が可能となり、より一層使い易いデータインターフェー
スを実現することができる。
The data interface circuit according to the present invention comprises means for detecting the input of a pulse during the detection period of the fixed level signal, and the control means detects the fixed level signal and also detects the fixed level signal. Since the clock is configured to be input to the shift register when no pulse is input during the period, in addition to the above effect, it is possible to input data again during data reception, which is even easier to use. A data interface can be realized.

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

【図1】本発明を適用した第1の実施形態に係るデータ
インターフェース回路の構成を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of a data interface circuit according to a first embodiment to which the present invention is applied.

【図2】上記データインターフェース回路の1μs検出
器の構成の一例を示す回路図である。
FIG. 2 is a circuit diagram showing an example of a configuration of a 1 μs detector of the data interface circuit.

【図3】上記データインターフェース回路の1μs検出
器の各部の波形を示すタイミングチャートである。
FIG. 3 is a timing chart showing a waveform of each part of the 1 μs detector of the data interface circuit.

【図4】上記データインターフェース回路の動作を説明
するためのタイミングチャートである。
FIG. 4 is a timing chart for explaining the operation of the data interface circuit.

【図5】本発明を適用した第2の実施形態に係るデータ
インターフェース回路の構成を示す回路図である。
FIG. 5 is a circuit diagram showing a configuration of a data interface circuit according to a second embodiment of the present invention.

【図6】上記データインターフェース回路の動作を説明
するためのタイミングチャートである。
FIG. 6 is a timing chart for explaining the operation of the data interface circuit.

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

10,20 データインターフェース回路、11 シリ
アルIN/パラレルOUTのシフトレジスタ(SI/P
O)、12 1μs検出器(検出手段)、13カウンタ
(カウント手段)、14 ANDゲート、15,16
NORゲート、17 インバータ、18,22 Dフリ
ップフロップ(DFF)、19 ORゲート、21 立
ち下がり検出器
10, 20 Data interface circuit, 11 Serial IN / Parallel OUT shift register (SI / P
O), 12 1 μs detector (detection means), 13 counter (counting means), 14 AND gate, 15, 16
NOR gate, 17 inverter, 18, 22 D flip-flop (DFF), 19 OR gate, 21 falling detector

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03M 9/00 G06F 5/00 ─────────────────────────────────────────────────── ─── Continuation of front page (58) Fields surveyed (Int.Cl. 7 , DB name) H03M 9/00 G06F 5/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データ入力端子に入力されたシリアルデ
ータを、クロック端子に入力されるクロックに従って読
み込んで順次シフトし、出力端子にパラレルデータとし
て出力するシフトレジスタと、 前記データ入力端子に所定時間固定レベル信号が入力さ
れたことを検出する検出手段と、 受信するデータの個数をカウントするカウント手段と、 前記固定レベル信号が検出されると、前記クロックを前
記シフトレジスタに入力可能に制御し、前記カウント手
段によるカウントが所定のデータ個数に達すると、前記
クロック入力を不可に制御する制御手段とを備えたこと
を特徴とするデータインターフェース回路。
1. A shift register which reads serial data input to a data input terminal according to a clock input to a clock terminal, sequentially shifts the serial data, and outputs parallel data to an output terminal, and a fixed time fixed to the data input terminal for a predetermined time. Detecting means for detecting that a level signal has been input, counting means for counting the number of received data, and controlling the clock so that the clock can be input to the shift register when the fixed level signal is detected, A data interface circuit, comprising: a control unit that disables the clock input when the count by the count unit reaches a predetermined number of data.
【請求項2】 前記固定レベル信号の検出期間中にパル
スが入力されたことを検出する手段を備え、 前記制御手段は、 前記固定レベル信号が検出され、かつ前記固定レベル信
号の検出期間中にパルスが入力されなかったとき、前記
クロックを前記シフトレジスタに入力可能に制御するこ
とを特徴とする請求項1記載のデータインターフェース
回路。
2. A means for detecting input of a pulse during the detection period of the fixed level signal, wherein the control means detects the fixed level signal and during the detection period of the fixed level signal. 2. The data interface circuit according to claim 1, wherein the clock is controlled so that the clock can be input to the shift register when no pulse is input.
JP36589398A 1998-12-24 1998-12-24 Data interface circuit Expired - Fee Related JP3456912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36589398A JP3456912B2 (en) 1998-12-24 1998-12-24 Data interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36589398A JP3456912B2 (en) 1998-12-24 1998-12-24 Data interface circuit

Publications (2)

Publication Number Publication Date
JP2000196464A JP2000196464A (en) 2000-07-14
JP3456912B2 true JP3456912B2 (en) 2003-10-14

Family

ID=18485384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36589398A Expired - Fee Related JP3456912B2 (en) 1998-12-24 1998-12-24 Data interface circuit

Country Status (1)

Country Link
JP (1) JP3456912B2 (en)

Also Published As

Publication number Publication date
JP2000196464A (en) 2000-07-14

Similar Documents

Publication Publication Date Title
JP2595314B2 (en) IC card with erroneous writing prevention function
US8861666B2 (en) Communication protocol method and apparatus for a single wire device
KR100819720B1 (en) Data processing system having an on-chip background debug system and method therefor
KR940002144B1 (en) Data transfer system
JP2695535B2 (en) Timer input control circuit and counter control circuit
JP3456912B2 (en) Data interface circuit
US4380736A (en) Peripheral interface adapter circuit for counter synchronization
JPS6066517A (en) Clock switching circuit
JPH043132B2 (en)
JPH11509658A (en) Extended chip select reset device and method
JPH0721103A (en) Data transfer device
JPS58207648A (en) Setting circuit for test mode of integrated circuit
JPS5823680B2 (en) Storage device control method
JP2001127728A (en) Receiving circuit
JPH0546105Y2 (en)
JPH0727804A (en) Pulse width measurement circuit
JP2810713B2 (en) Timing generator
KR100281136B1 (en) Data lead circuit
JP4122128B2 (en) Edge detection circuit
JPH1155084A (en) Output delay circuit
JP2670905B2 (en) counter
JPS601644B2 (en) Timing pulse generation circuit
JPH03119598A (en) Shift register driving circuit and microcomputer provided with the circuit
JP2508322B2 (en) Serial I / O circuit built-in micro computer
JPS6339938B2 (en)

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030722

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20070801

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080801

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080801

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130801

Year of fee payment: 10

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees