JPH077438A - Serial-parallel conversion circuit - Google Patents
Serial-parallel conversion circuitInfo
- Publication number
- JPH077438A JPH077438A JP14588593A JP14588593A JPH077438A JP H077438 A JPH077438 A JP H077438A JP 14588593 A JP14588593 A JP 14588593A JP 14588593 A JP14588593 A JP 14588593A JP H077438 A JPH077438 A JP H077438A
- Authority
- JP
- Japan
- Prior art keywords
- data
- flip
- output
- serial
- register
- 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
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Communication Control (AREA)
Abstract
(57)【要約】
【目的】 直並列変換回路において、ノイズの混入を検
出したとき、誤った変換結果を出力しないで前の結果を
保持できるものを得る。
【構成】 シフトレジスタ200によりスタート信号を
シフトし、シフトレジスタ200の並列出力信号により
イネーブルとなるレジスタ201により、直並列変換す
べきデータをラッチし、デコーダ207によりシフトレ
ジスタ200からの並列出力パルスが正しくかつデータ
ロード信号がイネーブル状態となった時を検出し、デコ
ーダ207検出出力によりイネーブルとなるレジスタ2
02によりレジスタ201出力を含むデータをラッチし
パラレルデータに変換する。
(57) [Abstract] [Purpose] To obtain a serial-parallel conversion circuit that can retain the previous result without detecting an erroneous conversion result when detection of noise is detected. [Structure] A shift register 200 shifts a start signal, a register 201 enabled by a parallel output signal of the shift register 200 latches data to be serial-parallel converted, and a decoder 207 outputs a parallel output pulse from the shift register 200. A register 2 that detects when the data load signal is correctly enabled and is enabled by the detection output of the decoder 207
The data including the output of the register 201 is latched by 02 and converted into parallel data.
Description
【0001】[0001]
【産業上の利用分野】本発明は、ディジタル信号処理回
路等において用いられ、シリアルに入力されたデータを
パラレルに変換して出力する直並列変換回路の改良を図
ったものに関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improved serial-parallel conversion circuit used in a digital signal processing circuit or the like for converting serially input data into parallel and outputting it.
【0002】[0002]
【従来の技術】従来の直並列変換回路は、図3のように
構成されており、図中、FF1 〜FF4 はシリアルデー
タを順送りにするためのシフトレジスタ100を構成す
るDフリップフロップであり、DフリップフロップFF
1 のD入力にはシリアルデータ信号が入力されT入力に
はクロックが正相で入力されている。また、Dフリップ
フロップFF2 のD入力にはDフリップフロップFF1
のQ出力が接続されている。以下、同様に、Dフリップ
フロップFF3 ,FF4 のD入力にはDフリップフロッ
プFF2 ,FF3 のQ出力がそれぞれ接続されており、
DフリップフロップFF2 ,FF3 ,FF4 のT入力に
はDフリップフロップFF1 と同様に正相のクロックが
入力されている。2. Description of the Related Art A conventional serial-parallel conversion circuit is constructed as shown in FIG. 3, in which FF1 to FF4 are D flip-flops which form a shift register 100 for sequentially sending serial data. D flip-flop FF
The serial data signal is input to the D input of 1, and the clock is input to the T input in the positive phase. The D input of the D flip-flop FF2 is connected to the D flip-flop FF1.
Q output of is connected. Similarly, the Q outputs of the D flip-flops FF2 and FF3 are connected to the D inputs of the D flip-flops FF3 and FF4, respectively.
Like the D flip-flop FF1, the positive-phase clock is input to the T inputs of the D flip-flops FF2, FF3, and FF4.
【0003】また、FF8 〜FF11は、シフトレジスタ
100によりシリアルデータをパラレル変換した結果を
ラッチするためのレジスタ101を構成するDフリップ
フロップであり、DフリップフロップFF8 ,FF9 ,
FF10,FF11のD入力にはそれぞれ上記シフトレジス
タ100を構成するDフリップフロップFF4 ,FF3
,FF2 ,FF1 のQ出力が接続されている。また、
このレジスタ101を構成するDフリップフロップFF
8 ,FF9 ,FF10,FF11のQ出力にはそれぞれ出力
0,出力1,出力2,出力3が接続されており、このD
フリップフロップFF8 ,FF9 ,FF10,FF11のT
入力には、並列出力すべきデータをロードする旨のデー
タロード信号が逆相で入力されている。Further, FF8 to FF11 are D flip-flops which constitute a register 101 for latching the result of parallel conversion of serial data by the shift register 100. D flip-flops FF8, FF9,
The D inputs of the FF10 and FF11 are respectively provided with the D flip-flops FF4 and FF3 which constitute the shift register 100.
, FF2, FF1 Q outputs are connected. Also,
D flip-flop FF forming this register 101
Output 0, output 1, output 2 and output 3 are connected to the Q outputs of 8, FF9, FF10 and FF11, respectively.
T of flip-flops FF8, FF9, FF10, FF11
A data load signal for loading data to be output in parallel is input to the input in reverse phase.
【0004】図4,図5に、この従来例のタイミング図
を示す。図4において、n1 はクロックに重畳したノイ
ズであり、図5において、n2 はデータロード信号に重
畳したノイズである。FIGS. 4 and 5 show timing charts of this conventional example. In FIG. 4, n1 is noise superimposed on the clock, and in FIG. 5, n2 is noise superimposed on the data load signal.
【0005】次に、図3および図4を用いてクロックに
重畳したノイズの場合の従来回路の動作を説明する。ま
ず始めにシリアルデータをシフトレジスタ100へ入力
すると、クロックに同期してシリアルデータD0 ,D1
,D2 ,D3 がDフリップフロップFF1 からDフリ
ップフロップFF4 に向けて順送りされる。次に、この
ようにクロックが1パルス入力されるごとにデータが順
送りされた結果、データD0 がDフリップフロップFF
4 に、データD1 がDフリップフロップFF3 に、デー
タD2 がDフリップフロップFF2 に、データD3 がD
フリップフロップFF1 にラッチされる。Next, the operation of the conventional circuit in the case of noise superimposed on the clock will be described with reference to FIGS. 3 and 4. First, when serial data is input to the shift register 100, the serial data D0 and D1 are synchronized with the clock.
, D2, D3 are sequentially sent from the D flip-flop FF1 toward the D flip-flop FF4. Next, as a result of the data being forwarded each time one pulse of the clock is input in this way, the data D0 is transferred to the D flip-flop FF.
4, the data D1 is stored in the D flip-flop FF3, the data D2 is stored in the D flip-flop FF2, and the data D3 is stored in D.
It is latched by the flip-flop FF1.
【0006】そして、このDフリップフロップFF1 ,
FF2 ,FF3 ,FF4 のQ出力からレジスタ101を
構成するDフリップフロップFF11,FF10,FF9 ,
FF8 のD入力へデータを転送する配線がそれぞれ設け
られており、シフトレジスタ100を構成するDフリッ
プフロップFF1 ,FF2 ,FF3 ,FF4 に順送りさ
れラッチされたデータがこれらの配線に同時に現れる結
果、シフトレジスタ100からはパラレル変換されたデ
ータがレジスタ101に出力される。The D flip-flop FF1,
D flip-flops FF11, FF10, FF9 forming a register 101 from the Q outputs of FF2, FF3, FF4,
Wirings for transferring data to the D input of FF8 are provided respectively, and as a result of the data sequentially fed to the D flip-flops FF1, FF2, FF3, and FF4 constituting the shift register 100 and latched in these wirings, the shift The parallel-converted data is output from the register 100 to the register 101.
【0007】その後、データD3 に対応するクロック信
号の立ち下がりに同期した図4中の左側の破線で示すタ
イミングで/データロード信号をイネーブルにすること
によって、このシフトレジスタ100によってパラレル
変換されそれぞれDフリップフロップFF8 〜FF11に
ラッチされたデータD0 〜D3 が出力端子0〜3より出
力される。Thereafter, the / data load signal is enabled at the timing shown by the broken line on the left side of FIG. 4 in synchronization with the falling edge of the clock signal corresponding to the data D3, and the parallel conversion is performed by the shift register 100. Data D0 to D3 latched in the flip-flops FF8 to FF11 are output from output terminals 0 to 3.
【0008】ところで、シフトレジスタ100を駆動す
るクロック信号にノイズn1 が混入した時の動作を考え
る。この従来例の場合、クロックのみを用いて、シリア
ルデータを順送りしているので、ノイズが回路の論理レ
ベル、すなわちHigh電圧と認められるレベルをこえてい
ると、ノイズもクロックとみなされ、動作してしまう。
つまり、ノイズの立ち上りエッジによってデータをレジ
スタへ取り込むという誤動作を起こしてしまうことにな
る。Now, consider the operation when noise n1 is mixed in the clock signal for driving the shift register 100. In the case of this conventional example, since serial data is sequentially sent using only the clock, if the noise exceeds the logic level of the circuit, that is, the level recognized as the high voltage, the noise is also regarded as the clock and operates. Will end up.
In other words, a rising edge of noise causes a malfunction of loading data into the register.
【0009】その結果、本来4個のクロック信号が入力
された時の動作を行なうべきものが、ノイズn1 もクロ
ック信号とみなして動作してしまうために、フリップフ
ロップFF1 は入力データD0 ,D1 ,D2 ,D3 に対
しては正規のクロック信号のタイミングでこれをラッチ
するが、入力データD1 ,D2 に対応するクロックの間
で発生したノイズn1 に対してもこれが正規のクロック
信号であるのと同様に動作するために、このノイズn1
の立ち上がりに同期してデータD1 からデータD2 への
遷移期間中の不定なデータDx をラッチしてしまう。以
下、正規のクロック信号に同期してこのシリアルデータ
D0 ,D1 ,Dx ,D2 ,D3 がフリップフロップFF
2 ,FF3 ,FF4 に順送りされ、シフトレジスタ10
0からはパラレル変換されたデータがレジスタ101に
出力される。As a result, the flip-flop FF1 inputs the input data D0, D1, since the noise n1 is regarded as a clock signal and operates, although what should originally be operated when four clock signals are input. For D2 and D3, this is latched at the timing of the regular clock signal, but for noise n1 generated between the clocks corresponding to the input data D1 and D2, this is the same as the regular clock signal. To operate this noise n1
Indefinite data Dx is latched during the transition period from the data D1 to the data D2 in synchronization with the rising edge of the data. Thereafter, the serial data D0, D1, Dx, D2, D3 are flip-flop FF in synchronization with the regular clock signal.
2 and FF3 and FF4 are sequentially fed to the shift register 10
From 0, parallel-converted data is output to the register 101.
【0010】その後、データD3 に対応するクロック信
号の立ち下がりに同期した図4中の右側の破線で示すタ
イミングで/データロード信号をイネーブルにすること
によって、このシフトレジスタ100によってパラレル
変換されそれぞれDフリップフロップFF8 〜FF11に
ラッチされたデータD1 ,Dx ,D2 ,D3 が出力端子
0〜3より出力される。Then, by enabling the / data load signal at the timing shown by the broken line on the right side in FIG. 4 synchronized with the falling edge of the clock signal corresponding to the data D3, the shift register 100 performs parallel conversion and D conversion is performed. The data D1, Dx, D2 and D3 latched in the flip-flops FF8 to FF11 are output from the output terminals 0 to 3.
【0011】次に、図3および図5を用いてデータロー
ド信号にノイズが重畳した場合の従来回路の動作を説明
する。まずクロック信号に同期して入力データD0 ,D
1 ,D2 ,D3 がフリップフロップFF1 ,FF2 ,F
F3 ,FF4 に順送りされラッチされるが、その際、レ
ジスタ101は入力データD1 に対応するクロックとほ
ぼ同時に発生するノイズn2もデータロード信号とみな
して動作するために、このノイズn2の立ち下がりに同
期してフリップフロップFF1 ,FF2 ,FF3 ,FF
4 が出力しているデータをラッチする。このとき、フリ
ップフロップFF1 およびFF2 には、今回のサイクル
のクロックに対応したデータD1 ,D0がラッチされて
いるが、フリップフロップFF3 およびFF4 には、今
回の入力データは順送りされておらず、前回のサイクル
で順送りされたデータをラッチしたままであり、従っ
て、データロード信号にノイズが混入した場合は、シリ
アル−パラレル変換途中でデータをロードしてしまい、
正しい変換データを書き換えてしまう。Next, the operation of the conventional circuit when noise is superimposed on the data load signal will be described with reference to FIGS. 3 and 5. First, the input data D0, D are synchronized with the clock signal.
1, D2, D3 are flip-flops FF1, FF2, F
It is sequentially fed to F3 and FF4 and latched. At this time, the register 101 operates by regarding the noise n2 generated almost at the same time as the clock corresponding to the input data D1 as a data load signal, so that the noise n2 falls. Synchronously flip-flops FF1, FF2, FF3, FF
Latch the data output by 4. At this time, the data D1 and D0 corresponding to the clock of the current cycle are latched in the flip-flops FF1 and FF2, but the current input data is not forwarded to the flip-flops FF3 and FF4, and the previous The data sent sequentially in the cycle is still latched. Therefore, if noise is mixed in the data load signal, the data will be loaded during the serial-parallel conversion.
Rewrite the correct conversion data.
【0012】[0012]
【発明が解決しようとする課題】従来の直並列変換回路
は以上のように構成されており、クロック信号およびデ
ータロード信号にノイズが入ると誤った変換結果を出力
したり、正しい変換結果を書き換えてしまうという問題
があった。The conventional serial-parallel conversion circuit is configured as described above, and outputs an incorrect conversion result when the clock signal and the data load signal contain noise or rewrites the correct conversion result. There was a problem that it would end up.
【0013】本発明は上記のような問題点を解消するた
めになされたもので、クロック信号およびスタート信
号,データロード信号にノイズが入った時であっても、
前の変換結果を保持することができる直並列変換回路を
得ることを目的とする。The present invention has been made to solve the above-mentioned problems, and even when noise is introduced into the clock signal, the start signal, and the data load signal,
An object is to obtain a serial-parallel conversion circuit that can hold the previous conversion result.
【0014】[0014]
【課題を解決するための手段】本発明に係る直並列変換
回路は、直並列変換すべき各サイクルのシリアルデータ
の先頭を示すスタート信号をクロックに同期してシフト
するシフトレジスタと、このシフトレジスタに含まれる
記憶手段の出力信号によりイネーブルとなり、直並列変
換すべき各サイクルに含まれるデータを上記クロックに
同期してラッチする第1のレジスタと、上記シフトレジ
スタから出力される直並列変換するためのパルスが正し
く、かつ、データロード信号がロードイネーブル状態と
なった時を検出するデコーダと、このデコーダの検出出
力によりイネーブルとなり上記第1のレジスタの出力を
含む上記シリアルデータを構成するデータをラッチしパ
ラレルデータに変換して出力する第2のレジスタとを設
け、パルスが誤っているときには、変換結果を出力しな
いように構成したものである。A serial-parallel conversion circuit according to the present invention includes a shift register for shifting a start signal indicating the beginning of serial data of each cycle to be serial-parallel converted in synchronization with a clock, and this shift register. For enabling the output signal of the storage means included in the first register to latch the data included in each cycle to be serial-parallel converted in synchronization with the clock, and for performing the serial-parallel conversion output from the shift register. And a decoder that detects when the pulse is correct and the data load signal is in the load enable state, and the data that constitutes the serial data including the output of the first register that is enabled by the detection output of the decoder is latched. And a second register that converts and outputs parallel data is output. When you are in, which is constituted so as not to output the conversion result.
【0015】[0015]
【作用】本発明においては、上述のような構成とするこ
とにより、直並列変換に用いるパルスが正しく、かつ、
入力されるデータロード信号がロードイネーブル状態に
なった時だけ、パラレル変換結果を出力し、それ以外の
ノイズ混入時には前の変換結果を保持する。In the present invention, with the above-mentioned configuration, the pulse used for serial-parallel conversion is correct, and
The parallel conversion result is output only when the input data load signal is in the load enable state, and the previous conversion result is held when other noise is mixed.
【0016】[0016]
【実施例】実施例1.以下、本発明の一実施例を図につ
いて説明する。図1は本発明の一実施例による直並列変
換回路である。図において、FF21〜FF24は直並列変
換するためのパルスを作るシフトレジスタ200を構成
するDフリップフロップであり、DフリップフロップF
F21のD入力には、直並列変換すべき各サイクルのシリ
アルデータの先頭を示すスタート信号が入力されT入力
にはクロックが正相で入力されている。また、Dフリッ
プフロップFF22のD入力にはDフリップフロップFF
21のQ出力が接続されている。以下、同様に、Dフリッ
プフロップFF23,FF24のD入力にはDフリップフロ
ップFF22,FF23のQ出力が接続されており、Dフリ
ップフロップFF22,FF23,FF24のT入力にはDフ
リップフロップFF21と同相のクロックが入力されてい
る。EXAMPLES Example 1. An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a serial-parallel conversion circuit according to an embodiment of the present invention. In the figure, FF21 to FF24 are D flip-flops that form a shift register 200 that creates a pulse for serial-parallel conversion.
A start signal indicating the beginning of serial data of each cycle to be serial-parallel converted is input to the D input of F21, and a clock is input in the positive phase to the T input. Further, the D input of the D flip-flop FF22 is connected to the D flip-flop FF.
21 Q outputs are connected. Similarly, the D inputs of the D flip-flops FF23 and FF24 are connected to the Q outputs of the D flip-flops FF22 and FF23, and the T inputs of the D flip-flops FF22, FF23, and FF24 are in phase with the D flip-flop FF21. The clock of is input.
【0017】FF25〜FF27は、このシフトレジスタ2
00により作成されたパルスを用いて直並列変換すべき
シリアルデータを順次保持するためのレジスタ201を
構成するDフリップフロップである。このレジスタ20
1を構成するDフリップフロップFF25,FF26,FF
27のD入力にはそれぞれシリアルデータが入力されてお
り、このDフリップフロップFF25,FF26,FF27の
T入力には上記DフリップフロップFF21,FF22,F
F23,FF24のT入力に入力されるのと同相のクロック
が入力されている。また、このDフリップフロップFF
25,FF26,FF27のE入力にはそれぞれ上記Dフリッ
プフロップFF23,FF22,FF21のQ出力が逆相で入
力されている。FF25 to FF27 are the shift register 2
Is a D flip-flop that forms a register 201 for sequentially holding serial data to be serial-parallel converted using the pulse created by 00. This register 20
D flip-flops FF25, FF26, FF that make up 1
Serial data is input to the D input of 27, and the T input of the D flip-flops FF25, FF26, and FF27 is the D flip-flops FF21, FF22, and F.
A clock having the same phase as that input to the T inputs of F23 and FF24 is input. Also, this D flip-flop FF
The Q outputs of the D flip-flops FF23, FF22, and FF21 are input in reverse phase to the E inputs of 25, FF26, and FF27, respectively.
【0018】また、FF28〜FF31はパラレル変換した
結果をラッチするためのレジスタ202を構成するDフ
リップフロップである。このDフリップフロップFF3
0,FF29,FF28のD入力にはDフリップフロップF
F25,FF26,FF27のQ出力がそれぞれ接続されてお
り、また、DフリップフロップFF31のD入力にはシリ
アルデータ信号が入力されている。このDフリップフロ
ップFF28〜FF31のT入力には上記Dフリップフロッ
プFF21,FF22,FF23,FF24のT入力に入力され
るのと同相のクロックが入力されている。また、このD
フリップフロップFF28〜FF31のE入力にはデコーダ
207の出力が接続されている。Further, FF28 to FF31 are D flip-flops which constitute a register 202 for latching the result of parallel conversion. This D flip-flop FF3
0, FF29, and FF28 have D flip-flops F at their D inputs.
The Q outputs of F25, FF26, and FF27 are connected to each other, and the serial data signal is input to the D input of the D flip-flop FF31. Clocks of the same phase as those input to the T inputs of the D flip-flops FF21, FF22, FF23 and FF24 are input to the T inputs of the D flip-flops FF28 to FF31. Also, this D
The output of the decoder 207 is connected to the E inputs of the flip-flops FF28 to FF31.
【0019】207はシフトレジスタ200を用いて作
った直並列変換するためのパルスが正しく、かつ、入力
されるデータロード信号が、ロードイネーブル状態とな
った時だけ、シリアルデータを順次入力したレジスタ2
01の出力をラッチするようにレジスタ202に指示す
るデコーダであり、このデコーダ207はインバータ1
3および5入力ANDゲート12から構成されている。Reference numeral 207 is a register 2 in which serial data is sequentially input only when the pulse for serial-parallel conversion made using the shift register 200 is correct and the input data load signal is in the load enable state.
01 is a decoder for instructing the register 202 to latch the output of 01, and this decoder 207 is an inverter 1
It is composed of a 3- and 5-input AND gate 12.
【0020】このデコーダ207において、13はDフ
リップフロップFF23の出力を反転するインバータ、1
2はこのDフリップフロップFF21,FF22,FF23と
インバータ13の出力およびインバータ11の出力が入
力されるANDゲートである。また、11は並列出力す
べきデータをロードする旨のデータロード信号を反転す
るインバータである。また、図2は本発明の一実施例に
よる直並列変換回路の動作を示すタイミング図である。In this decoder 207, 13 is an inverter for inverting the output of the D flip-flop FF23, 1
Reference numeral 2 is an AND gate to which the outputs of the D flip-flops FF21, FF22, FF23 and the inverter 13 and the output of the inverter 11 are input. Reference numeral 11 is an inverter that inverts a data load signal indicating that data to be output in parallel is loaded. 2 is a timing chart showing the operation of the serial-parallel conversion circuit according to the embodiment of the present invention.
【0021】次に動作について図1,図2を用いて説明
する。まず始めに各サイクル毎に一回発生するスタート
信号をシフトレジスタ200へ入力すると、クロックに
同期して、このスタート信号が順送りされる。これによ
り、まずDフリップフロップFF21の出力がLow になっ
た時、DフリップフロップFF27はイネーブルになり、
データD0 がクロックの立ち上りエッジでDフリップフ
ロップFF27にラッチされる。同様にDフリップフロッ
プFF22の出力がLow になった時、Dフリップフロップ
FF26はイネーブルになり、データD1がDフリップフ
ロップFF26にラッチされる。また、Dフリップフロッ
プFF23の出力がLow になった時、Dフリップフロップ
FF25はイネーブルになり、データD2 がDDフリップ
フロップFF25にラッチされる。Next, the operation will be described with reference to FIGS. First, when a start signal generated once in each cycle is input to the shift register 200, the start signal is forwarded in synchronization with the clock. As a result, first, when the output of the D flip-flop FF21 becomes Low, the D flip-flop FF27 is enabled,
The data D0 is latched in the D flip-flop FF27 at the rising edge of the clock. Similarly, when the output of the D flip-flop FF22 becomes Low, the D flip-flop FF26 is enabled and the data D1 is latched by the D flip-flop FF26. When the output of the D flip-flop FF23 becomes Low, the D flip-flop FF25 is enabled and the data D2 is latched by the DD flip-flop FF25.
【0022】次にデータD3 が入力された時、データロ
ード信号をイネーブル(Low )にすると、インバータ1
1の出力はHighとなり、また、この時Dフリップフロッ
プFF21,FF22,FF23の出力はHigh、FF24の出力
はLow となっており、このFF24の出力が入力されるイ
ンバータ13の出力はHighとなっているので、デコーダ
207のANDゲート12の出力はHighとなり、Dフリ
ップフロップFF28,FF29,FF30,FF31はイネー
ブルとなる。このため、出力されるデータD3はDフリ
ップフロップFF31でラッチされ出力される。また、同
時にDフリップフロップFF25〜FF27の出力もDフリ
ップフロップFF28〜FF30でラッチされ、外部に出力
される。Next, when the data load signal is enabled (Low) when the data D3 is input, the inverter 1
The output of 1 becomes High, the outputs of D flip-flops FF21, FF22, and FF23 are High, and the output of FF24 is Low, and the output of the inverter 13 to which the output of FF24 is input becomes High. Therefore, the output of the AND gate 12 of the decoder 207 becomes High, and the D flip-flops FF28, FF29, FF30, FF31 are enabled. Therefore, the output data D3 is latched and output by the D flip-flop FF31. At the same time, the outputs of the D flip-flops FF25 to FF27 are also latched by the D flip-flops FF28 to FF30 and output to the outside.
【0023】よってシリアルデータがパラレルデータへ
と変換される。またこのとき、デコーダ207によっ
て、直並列変換用のパルスが正しい時のみ、Dフリップ
フロップFF28〜FF31をイネーブル状態にし、データ
をラッチさせる。そして、パルスが正しくないときは、
DフリップフロップFF28〜FF31をディセイブル状態
とし、前のデータを保持させる。Therefore, the serial data is converted into parallel data. At this time, the decoder 207 enables the D flip-flops FF28 to FF31 to latch the data only when the pulse for serial-parallel conversion is correct. And when the pulse is incorrect,
The D flip-flops FF28 to FF31 are set in the disable state to hold the previous data.
【0024】今、データロード信号にノイズn2 が混入
したとすると、このノイズn2 によりインバータ11の
出力はHighになるが、ノイズn2 がいつ混入してもDフ
リップフロップFF21,FF22,FF23の出力およびイ
ンバータ13の出力のいずれか一つは必ずLow となって
いる。従って、データロード信号にノイズn2 が混入し
たとしてもデコーダ207のANDゲート12の出力が
Highになることはなく、レジスタ202を構成するDフ
リップフロップFF28,FF29,FF30,FF31の出力
は前のデータが保持される。Now, assuming that noise n2 is mixed in the data load signal, the output of the inverter 11 becomes High due to this noise n2. However, even if the noise n2 is mixed in, the outputs of the D flip-flops FF21, FF22, FF23 and Any one of the outputs of the inverter 13 is always Low. Therefore, even if noise n2 is mixed in the data load signal, the output of the AND gate 12 of the decoder 207 is
It never becomes High, and the outputs of the D flip-flops FF28, FF29, FF30, FF31 forming the register 202 retain the previous data.
【0025】次に、クロック信号にノイズn1 が混入し
たとすると、DフリップフロップFF21〜FF24の出力
が正しい時とは異なり、このノイズn1 に同期してDフ
リップフロップFF23の出力が本来のクロックとは異な
るタイミングで立ち上がり、このDフリップフロップF
F23の出力に同期してレジスタ201のDフリップフロ
ップFF25が不定のデータDX をラッチするが、ノイズ
n1 がデータD4 〜D6 に対応するクロックのどの間に
混入したとしても、DフリップフロップFF21,FF2
2,FF23のいずれか一つの出力は必ずLow となってい
る。従って、クロック信号にノイズn1 が混入したとし
てもデコーダ207のANDゲート12の出力はディセ
イブル(Low )になり、レジスタ202を構成するDフ
リップフロップFF28,FF29,FF30,FF31の出力
は前のデータが保持される。Next, assuming that the noise n1 is mixed in the clock signal, the output of the D flip-flop FF23 is synchronized with the noise n1 unlike the original clock, unlike when the outputs of the D flip-flops FF21 to FF24 are correct. Rise at different timings, and this D flip-flop F
The D flip-flop FF25 of the register 201 latches the indefinite data DX in synchronization with the output of F23. However, even if the noise n1 is mixed in any of the clocks corresponding to the data D4 to D6, the D flip-flops FF21 and FF2.
The output of either one of 2 and FF23 is always Low. Therefore, even if noise n1 is mixed in the clock signal, the output of the AND gate 12 of the decoder 207 becomes disable (Low), and the output of the D flip-flops FF28, FF29, FF30, FF31 forming the register 202 is the same as the previous data. Retained.
【0026】また、スタート信号にノイズn3 が混入し
たとすると、DフリップフロップFF21〜FF23の出力
のいずれか一つの出力は必ずLow となっている。従っ
て、スタート信号にノイズn3 が混入したとしてもデコ
ーダ207のANDゲート12の出力はディセイブル
(Low )になり、レジスタ202を構成するDフリップ
フロップFF28,FF29,FF30,FF31の出力は前の
データが保持される。If noise n3 is mixed in the start signal, one of the outputs of the D flip-flops FF21 to FF23 is always Low. Therefore, even if noise n3 is mixed in the start signal, the output of the AND gate 12 of the decoder 207 becomes disable (Low), and the output of the D flip-flops FF28, FF29, FF30, FF31 forming the register 202 is the same as the previous data. Retained.
【0027】このように、上記実施例では、シリアルデ
ータ信号の1サイクル毎に入力されるスタート信号をク
ロックに同期してシフトレジスタにより順送りし、その
順送りされたスタート信号に同期してイネーブルになる
レジスタにより1サイクル内の最終データ以外の各デー
タを順次ラッチし、デコーダでシフトレジスタの最終段
のみがLow ,それ以外の各段の出力が全てHighであり、
かつ、データロード信号がLow である旨を確認して、シ
リアルデータ信号の1サイクル内の最後のデータおよび
上記レジスタによりラッチされている1サイクル内の最
終データ以外のデータをラッチするようにしたので、ク
ロック信号およびスタート信号,データロード信号にノ
イズが重畳してもノイズにより誤動作を引き起こすこと
なく、正しく直並列変換動作を行なうことが可能にな
る。As described above, in the above embodiment, the start signal input every one cycle of the serial data signal is sequentially fed by the shift register in synchronization with the clock, and is enabled in synchronization with the forwarded start signal. Each data other than the final data in one cycle is sequentially latched by the register, and only the final stage of the shift register is low by the decoder, and the outputs of all other stages are high.
Also, after confirming that the data load signal is low, the last data in one cycle of the serial data signal and the data other than the last data in one cycle latched by the above register are latched. Even if noise is superimposed on the clock signal, the start signal, and the data load signal, it is possible to correctly perform the serial-parallel conversion operation without causing a malfunction due to the noise.
【0028】なお、上記実施例では4ビットの直並列変
換回路について説明したが、2〜3ビットもしくはこれ
以上の多ビットについても適用でき、多ビットをn(≧
2)ビットとすると、その場合、シフトレジスタ200
をnビット、レジスタ201をn−1ビット、レジスタ
202をnビットとすればよく、上記実施例と同様の効
果を奏する。In the above embodiment, the 4-bit serial-parallel conversion circuit has been described, but the present invention can be applied to multi-bits of 2 to 3 bits or more.
2) If it is a bit, then the shift register 200
Is set to n bits, the register 201 is set to n-1 bits, and the register 202 is set to n bits, and the same effect as that of the above embodiment is obtained.
【0029】[0029]
【発明の効果】以上のように、本発明に係る直並列変換
回路によれば、直並列変換すべき各サイクルのシリアル
データの先頭を示すスタート信号をクロックに同期して
シフトするシフトレジスタと、このシフトレジスタに含
まれる記憶手段の出力信号によりイネーブルとなり、直
並列変換すべき各サイクルに含まれるデータを上記クロ
ックに同期してラッチする第1のレジスタと、上記シフ
トレジスタから出力される直並列変換するためのパルス
が正しく、かつ、データロード信号がロードイネーブル
状態となった時を検出するデコーダと、このデコーダの
検出出力によりイネーブルとなり上記第1のレジスタの
出力を含む上記シリアルデータを構成するデータをラッ
チしパラレルデータに変換して出力する第2のレジスタ
とを設け、パルスが誤っているときには、変換結果を出
力しないようにしたので、誤動作の原因となりうるノイ
ズの混入を検出でき、ノイズが混入したときは、前のデ
ータを保持し、誤った変換結果を出力しないようにでき
るという効果がある。As described above, according to the serial-parallel conversion circuit of the present invention, the shift register for shifting the start signal indicating the beginning of the serial data of each cycle to be serial-parallel converted in synchronization with the clock, A first register that is enabled by an output signal of a storage unit included in the shift register and latches data included in each cycle to be serial-parallel converted in synchronization with the clock, and a serial-parallel output from the shift register A decoder that detects when the pulse for conversion is correct and the data load signal is in the load enable state, and the detection output of this decoder enables the serial data including the output of the first register. A second register that latches data, converts it to parallel data, and outputs it is provided. Since the conversion result is not output when it is incorrect, it is possible to detect the mixing of noise that may cause a malfunction.When the noise is mixed, the previous data is retained and the incorrect conversion result is not output. The effect is that you can do it.
【図1】本発明の一実施例による直並列変換回路を示す
図である。FIG. 1 is a diagram showing a serial-parallel conversion circuit according to an embodiment of the present invention.
【図2】本発明の一実施例による動作タイミングを示す
図である。FIG. 2 is a diagram showing an operation timing according to an embodiment of the present invention.
【図3】従来の直並列変換回路を示す図である。FIG. 3 is a diagram showing a conventional serial-parallel conversion circuit.
【図4】従来例の動作タイミングを示す図である。FIG. 4 is a diagram showing operation timing of a conventional example.
【図5】従来例の動作タイミングを示す図である。FIG. 5 is a diagram showing operation timing of a conventional example.
FF21〜FF31 Dフリップフロップ 11 インバータ 12 ANDゲート 13 インバータ 200 シフトレジスタ 201 レジスタ 202 レジスタ 207 デコーダ FF21 to FF31 D flip-flop 11 inverter 12 AND gate 13 inverter 200 shift register 201 register 202 register 207 decoder
Claims (1)
データの先頭を示すスタート信号をクロックに同期して
シフトするシフトレジスタと、 該シフトレジスタに含まれる記憶手段の出力信号により
イネーブルとなり、上記直並列変換すべき各サイクルに
含まれるシリアルデータを上記クロックに同期してラッ
チする第1のレジスタと、 上記シフトレジスタから出力されるパルス、及び並列出
力すべきデータをロードする旨のデータロード信号に基
づいてロードイネーブル信号を出力するデコーダと、 上記ロードイネーブル信号によりイネーブルとなり上記
第1のレジスタの出力及び上記シリアルデータをラッチ
してパラレルデータに変換して出力する第2のレジスタ
とを備えたことを特徴とする直並列変換回路。1. A shift register for shifting a start signal indicating the beginning of serial data of each cycle to be serial-parallel converted in synchronization with a clock, and an output signal of a storage means included in the shift register to enable the serial signal. A first register that latches serial data included in each cycle to be parallel-converted in synchronization with the clock, a pulse output from the shift register, and a data load signal for loading data to be output in parallel. A decoder for outputting a load enable signal based on the load enable signal; and a second register which is enabled by the load enable signal and which latches the output of the first register and the serial data and converts the serial data into parallel data for output. Serial-parallel conversion circuit characterized by.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14588593A JPH077438A (en) | 1993-06-17 | 1993-06-17 | Serial-parallel conversion circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14588593A JPH077438A (en) | 1993-06-17 | 1993-06-17 | Serial-parallel conversion circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH077438A true JPH077438A (en) | 1995-01-10 |
Family
ID=15395306
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14588593A Pending JPH077438A (en) | 1993-06-17 | 1993-06-17 | Serial-parallel conversion circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH077438A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100340058B1 (en) * | 1998-06-27 | 2002-07-18 | 박종섭 | Transferring apparatus for bus signal |
| US7320097B2 (en) | 2004-03-01 | 2008-01-15 | Nec Electronics Corporation | Serial to parallel conversion circuit having a shift clock frequency lower than a data transfer frequency |
| JP2008060686A (en) * | 2006-08-29 | 2008-03-13 | Oki Electric Ind Co Ltd | Serial interface data input circuit |
| US8572424B2 (en) | 2002-04-10 | 2013-10-29 | Fujitsu Semiconductor Limited | Semiconductor device to select and output data to a data bus |
-
1993
- 1993-06-17 JP JP14588593A patent/JPH077438A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100340058B1 (en) * | 1998-06-27 | 2002-07-18 | 박종섭 | Transferring apparatus for bus signal |
| US8572424B2 (en) | 2002-04-10 | 2013-10-29 | Fujitsu Semiconductor Limited | Semiconductor device to select and output data to a data bus |
| US7320097B2 (en) | 2004-03-01 | 2008-01-15 | Nec Electronics Corporation | Serial to parallel conversion circuit having a shift clock frequency lower than a data transfer frequency |
| JP2008060686A (en) * | 2006-08-29 | 2008-03-13 | Oki Electric Ind Co Ltd | Serial interface data input circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3359668B2 (en) | Flip-flop circuit for controllably copying between slave latch and scan latch | |
| JPH0624356B2 (en) | Data transfer method | |
| JP3080341B2 (en) | Data match detection circuit | |
| JP2550837B2 (en) | Scan path test control circuit | |
| US6898722B2 (en) | Parallel data transfer method and system of DDR divided data with associated transfer clock signal over three signal lines | |
| JPH077438A (en) | Serial-parallel conversion circuit | |
| US8106798B2 (en) | Circuit and method for parallel to serial conversion | |
| US5617433A (en) | Serial data transfer apparatus | |
| JP3134449B2 (en) | Serial / parallel conversion circuit | |
| JP3243138B2 (en) | Data conversion method and decoding method | |
| JP3595310B2 (en) | Semiconductor integrated circuit | |
| JP3388656B2 (en) | Shift register | |
| JP2731881B2 (en) | Mark ratio setting circuit | |
| JPH0378819B2 (en) | ||
| JPH0432823Y2 (en) | ||
| JPS6339938B2 (en) | ||
| JP2709011B2 (en) | Baud rate clock selection protection circuit | |
| KR0186166B1 (en) | Error detecting device for a cd-rom driver | |
| JPH0544685B2 (en) | ||
| JP3115756B2 (en) | Demultiplexer circuit | |
| JPS63184133A (en) | Comparator | |
| JPS5925416A (en) | Waiting circuit | |
| JPH0536292A (en) | Shift register circuit | |
| JPH0730434A (en) | Variable length code decoder | |
| JPH07264076A (en) | Serial-parallel converter |