JPH0370415B2 - - Google Patents
Info
- Publication number
- JPH0370415B2 JPH0370415B2 JP61077424A JP7742486A JPH0370415B2 JP H0370415 B2 JPH0370415 B2 JP H0370415B2 JP 61077424 A JP61077424 A JP 61077424A JP 7742486 A JP7742486 A JP 7742486A JP H0370415 B2 JPH0370415 B2 JP H0370415B2
- Authority
- JP
- Japan
- Prior art keywords
- parallel
- bit
- signal
- shift register
- serial
- 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 - Lifetime
Links
Landscapes
- Shift Register Type Memory (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はシリアル入力をパラレル出力に、パラ
レル入力をシリアル出力に変換する2つの機能を
備えたパラレル・シリアル変換器に関するもので
ある。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a parallel-to-serial converter having two functions: converting a serial input into a parallel output and converting a parallel input into a serial output.
シリアル入力をパラレル出力に変換するシリア
ル/パラレル変換器或いはパラレル入力をシリア
ル出力に変換するパラレル/シリアル変換器は多
くのデイジタル機器に於いて使用されている。と
ころで、これらの変換器としてはパラレル/シリ
アル変換のみを行なうもの、シリアル/パラレル
変換のみを行なうもの、両者を行なうものがあ
り、従来、両者を行なうものとしては特開昭57−
117190号公報に示されるものが存在する。
Serial/parallel converters that convert serial input to parallel output or parallel/serial converters that convert parallel input to serial output are used in many digital devices. By the way, these converters include those that perform only parallel/serial conversion, those that perform only serial/parallel conversion, and those that perform both.
There is one shown in Publication No. 117190.
この従来技術は、CPU間の通信にシリアル伝
送方式を適用したものであり、データ伝送線に直
列に接続され、入力端子と出力端子とデータ取り
込みのタイミングを示すロード信号用の端子を有
するシフトレジスタと、該シフトレジスタの出力
データをロード信号に応答して記憶保持するラツ
チ回路を設けたものであり、他のCPUからのデ
ータを受信する場合にはシフトレジスタによつて
シリアルデータをパラレルデータに変換してラツ
チ回路に記憶保持させ、また他のCPUへデータ
を送信する場合にはシフトレジスタにパラレルデ
ータをセツトしてシリアル伝送するものである。 This conventional technology applies a serial transmission method to communication between CPUs, and is a shift register that is connected in series to a data transmission line and has an input terminal, an output terminal, and a terminal for a load signal indicating the timing of data acquisition. It is equipped with a latch circuit that stores and holds the output data of the shift register in response to a load signal.When receiving data from another CPU, the shift register converts serial data into parallel data. The data is converted and stored in a latch circuit, and when data is to be sent to another CPU, parallel data is set in a shift register and transmitted serially.
しかしながら、この従来技術はシフトレジスタ
の構成としてロード信号に応答してパラレルデー
タを取り込むための回路が必要であるため、シフ
トレジスタの構成が複雑化してコストアツプが生
じるという問題がある。
However, this prior art requires a circuit for taking in parallel data in response to a load signal as a configuration of the shift register, resulting in a problem that the configuration of the shift register becomes complicated and the cost increases.
本発明はこのような問題を解決するものであ
り、パラレルデータの入出力端子の接続を工夫す
ることによつて、構成を簡略化し、もつてコスト
ダウンを図つたパラレル・シリアル変換器を提供
することを目的とする。 The present invention solves these problems, and provides a parallel-to-serial converter whose configuration is simplified and costs are reduced by devising connections between input and output terminals for parallel data. The purpose is to
本発明は前述の如き問題点を解決するため、
直列に接続されたフリツプフロツプによつて各
ビツトが構成されており、クロツク信号に同期し
て前段側のビツトから後段側のビツトへ順次デー
タを伝送するシフトレジスタと、
ストローブ信号に応答して該シフトレジスタの
各ビツトにセツトされたデータをラツチして、出
力端子に出力するラツチ回路と、
ラツチ回路の各出力端子をパラレル出力端子に
接続して該ラツチ回路にラツチされたデータをパ
ラレル信号として出力するか、パラレル入力端子
を前記シフトレジスタの各フリツプフロツプの各
入力端子に接続して入力されたパラレル信号の各
ビツトを前記シフトレジスタの各ビツトにセツト
するかを切り換える切換手段とを備えたことを特
徴とするものである。
In order to solve the above-mentioned problems, the present invention consists of flip-flops connected in series for each bit, and data is transmitted sequentially from the previous bit to the subsequent bit in synchronization with a clock signal. A latch circuit that latches data set in each bit of the shift register in response to a strobe signal and outputs it to an output terminal, and each output terminal of the latch circuit is connected to a parallel output terminal. Either the data latched in the latch circuit is output as a parallel signal, or the parallel input terminal is connected to each input terminal of each flip-flop of the shift register, and each bit of the input parallel signal is input to each bit of the shift register. The present invention is characterized by comprising a switching means for switching between setting and setting.
シリアル/パラレル変換を行なう際には、切換
手段によりパラレル出力端子がラツチ回路の各出
力端子に接続される。そして、クロツク信号に同
期してシフトレジスタヘシリアルデータが入力さ
れて、ラツチ回路ヘストローブ信号が与えられる
と、シフトレジスタの各ビツトのデータがラツチ
回路にラツチされ、そのラツチされたデータがパ
ラレル出力端子へ与えられる。
When performing serial/parallel conversion, the switching means connects the parallel output terminal to each output terminal of the latch circuit. Then, when serial data is input to the shift register in synchronization with the clock signal and a strobe signal is applied to the latch circuit, the data of each bit of the shift register is latched into the latch circuit, and the latched data is transferred to the parallel output terminal. given to.
一方、パラレル/シリアル変換を行なう際に
は、パラレル入力端子がシフトレジスタのビツト
を構成するフリツプフロツプの入力端子に接続さ
れる。そして、シフトレジスタヘクロツク信号が
入力されると、パラレル入力端子から入力された
パラレルデータがシフトレジスタにセツトされ
る。 On the other hand, when performing parallel/serial conversion, the parallel input terminal is connected to the input terminal of a flip-flop that constitutes the bit of the shift register. When a clock signal is input to the shift register, parallel data input from the parallel input terminal is set in the shift register.
第1図は本発明の一実施例のブロツク図であ
り、1は8ビツト構成のシフトレジスタ、2は8
ビツト構成のラツチ回路、3は切換回路、11〜
18はシフトレジスタ1を構成するDフリツプフ
ロツプ、21〜28はラツチ回路2を構成するD
フリツプフロツプ、31〜38は切換回路3を構
成するトライステートバツフア、41はシリアル
信号が入力されるシリアル入力端子、42はクロ
ツク信号が入力されるクロツク端子、43はシリ
アル信号が出力されるシリアル出力端子、44−
1〜44−8はパラレル信号が入力或いは出力さ
れるパラレル出力端子、45は切換信号の入力端
子、46はストローブ信号が入力されるストロー
ブ端子である。
FIG. 1 is a block diagram of an embodiment of the present invention, where 1 is an 8-bit shift register, 2 is an 8-bit shift register, and 2 is an 8-bit shift register.
Bit-configured latch circuit, 3 is a switching circuit, 11-
18 is a D flip-flop that constitutes the shift register 1; 21 to 28 are D flip-flops that constitute the latch circuit 2;
Flip-flop, 31 to 38 are tri-state buffers forming the switching circuit 3, 41 is a serial input terminal to which a serial signal is input, 42 is a clock terminal to which a clock signal is input, 43 is a serial output to which a serial signal is output. Terminal, 44-
1 to 44-8 are parallel output terminals to which parallel signals are input or output, 45 is an input terminal for switching signals, and 46 is a strobe terminal to which strobe signals are input.
同図に示す回路をパラレル/シリアル変換器と
して動作させる場合は切換信号入力端子45に加
える切換信号を“1”とし、シリアル・パラレル
変換器として動作させる場合は切換信号を“0”
とするものであり、それぞれの場合の動作は次の
ようなものとなる。 When operating the circuit shown in the figure as a parallel/serial converter, the switching signal applied to the switching signal input terminal 45 is set to "1", and when operating as a serial/parallel converter, the switching signal is set to "0".
The operation in each case is as follows.
(1) パラレル/シリアル変換器として動作させる
場合
切換信号入力端子45に加える切換信号を
“1”とすることにより切換回路3を構成するト
ライステートバツフア31〜38のb側がオン状
態となるので、パラレル入出力端子44−1〜4
4−8にパラレル信号の各ビツトを加えることに
より、パラレル信号の各ビツトはシフトレジスタ
1を構成するDフリツプフロツプ11〜18にセ
ツトされ、クロツク端子42に加えられるクロツ
ク信号に同期してシフトされ、シリアル出力端子
43より1ビツトずつ出力される。(1) When operating as a parallel/serial converter By setting the switching signal applied to the switching signal input terminal 45 to "1", the b sides of the tri-state buffers 31 to 38 forming the switching circuit 3 are turned on. , parallel input/output terminals 44-1 to 4
By adding each bit of the parallel signal to 4-8, each bit of the parallel signal is set in the D flip-flops 11-18 constituting the shift register 1, and is shifted in synchronization with the clock signal applied to the clock terminal 42. One bit is output from the serial output terminal 43.
(2) シリアル/パラレル変換器として動作させる
場合
切換信号入力端子45に加える切換信号を
“0”とすることにより切換回路3を構成するト
ライステートバツフア31〜38のa側がオン状
態となる。この状態に於いてシリアル入力端子4
1にシリアル信号を加えると、シリアル信号の各
ビツトはシリアル信号に同期したクロツク信号に
より順次シフトされる。そして、シリアル信号の
先頭ビツトがシフトレジスタ1を構成するDフリ
ツプフロツプ18にセツトされたタイミングに於
いてストローブ端子46に加えるストローブ信号
を“1”とすることにより、シフトレジスタ1に
セツトされたシリアル信号の各ビツトがラツチ回
路2を構するDフリツプフロツプ21〜28にセ
ツトされ、そのQ端子出力がトライステートバツ
フア31〜38のa側を介してパラレル入出力端
子44−1〜44−8に出力される。(2) When operating as a serial/parallel converter By setting the switching signal applied to the switching signal input terminal 45 to "0", the a sides of the tristate buffers 31 to 38 forming the switching circuit 3 are turned on. In this state, serial input terminal 4
1 and a serial signal, each bit of the serial signal is sequentially shifted by a clock signal synchronized with the serial signal. Then, by setting the strobe signal applied to the strobe terminal 46 to "1" at the timing when the first bit of the serial signal is set in the D flip-flop 18 constituting the shift register 1, the serial signal set in the shift register 1 is set to "1". Each bit is set in the D flip-flops 21 to 28 that constitute the latch circuit 2, and the Q terminal output thereof is outputted to the parallel input/output terminals 44-1 to 44-8 via the a side of the tristate buffers 31 to 38. be done.
第2図は本発明の他の実施例のブロツク図であ
り、51は8ビツト構成のシフトレジスタ、52
は8ビツト構成のラツチ回路、53,54はスイ
ツチ回路であり、一方がオン状態の時、他方はオ
フ状態となるものである。また、55はシリアル
信号を出力するシリアル出力端子、56はクロツ
ク端子、57はシリアル信号が加えられるシリア
ル入力端子、58は切換信号入力端子、59はス
トローブ端子、60はパラレル出力端子、61は
パラレル入力端子である。 FIG. 2 is a block diagram of another embodiment of the present invention, in which 51 is an 8-bit shift register;
1 is an 8-bit latch circuit, and 53 and 54 are switch circuits, in which when one is in the on state, the other is in the off state. Further, 55 is a serial output terminal that outputs a serial signal, 56 is a clock terminal, 57 is a serial input terminal to which a serial signal is applied, 58 is a switching signal input terminal, 59 is a strobe terminal, 60 is a parallel output terminal, and 61 is a parallel This is an input terminal.
同図に示す回路をパラレル/シリアル変換器と
して動作させる場合は切換信号入力端子58に加
える切換信号を“1”とし、シリアル/パラレル
変換器として動作させる切換信号を“0”とする
ものであり、それぞれの場合の動作は次のように
なる。 When the circuit shown in the figure is operated as a parallel/serial converter, the switching signal applied to the switching signal input terminal 58 is set to "1", and the switching signal for operating the circuit as a serial/parallel converter is set to "0". , the operation in each case is as follows.
(1) パラレル/シリアル変換器として動作させる
場合
切換信号を“1”とすることによりスイツチ回
路54がオン状態となるので、パラレル入力端子
61にパラレル信号を加えることによりパラレル
信号の各ビツトはシフトレジスタ51の各ビツト
にセツトされ、クロツク端子56に加えられるク
ロツク信号に同期してシフトされ、シリアル出力
端子55より1ビツトずつ出力される。(1) When operating as a parallel/serial converter Setting the switching signal to “1” turns on the switch circuit 54, so by applying a parallel signal to the parallel input terminal 61, each bit of the parallel signal is shifted. The bits are set in each bit of the register 51, shifted in synchronization with the clock signal applied to the clock terminal 56, and output one bit at a time from the serial output terminal 55.
(2) シリアル/パラレル変換器として動作させる
場合
切換信号を“0”とすることによりスイツチ回
路53がオン状態となる。この状態に於いてシリ
アル入力端子57にシリアル信号を加えるとシリ
アル信号の各ビツトはシリアル信号に同期したク
ロツク信号により順次シフトされる。そして、シ
リアル信号の先頭ビツトがシフトレジスタ51の
出力段に致達した時点に於いてストローブ端子5
9に加えるストローブ信号を“1”とすることに
より、シフトレジスタ51の各ビツトにセツトさ
れたシフト信号の各ビツトがラツチ回路52にラ
ツチされ、スイツチ回路53を介してパラレル出
力端子60に出力される。(2) When operating as a serial/parallel converter By setting the switching signal to "0", the switch circuit 53 is turned on. In this state, when a serial signal is applied to the serial input terminal 57, each bit of the serial signal is sequentially shifted by a clock signal synchronized with the serial signal. Then, when the first bit of the serial signal reaches the output stage of the shift register 51, the strobe terminal 5
By setting the strobe signal applied to 9 to "1", each bit of the shift signal set in each bit of the shift register 51 is latched by the latch circuit 52, and is outputted to the parallel output terminal 60 via the switch circuit 53. Ru.
以上説明したように、本発明では切換手段によ
りラツチ回路の各出力端子をパラレル出力端子に
接続して該ラツチ回路にラツチされたデータをパ
ラレル信号として出力するか、パラレル入力端子
を前記シフトレジスタの各フリツプフロツプの各
入力端子に接続して入力されたパラレル信号の各
ビツトを前記シフトレジスタの各ビツトにセツト
するかを切り換える構成としたため、シフトレジ
スタはビツトのデータをシフトするために必要な
クロツク信号によつてデータがセツトされること
になり、シフトレジスタにロード信号のための回
路を設けなくてもよく、従つてシフトレジスタの
構成を簡略化でき、コストダウンを図ることがで
きる効果がある。
As explained above, in the present invention, the switching means connects each output terminal of the latch circuit to the parallel output terminal to output the data latched in the latch circuit as a parallel signal, or connects the parallel input terminal to the shift register. The shift register is connected to each input terminal of each flip-flop to switch whether each bit of the input parallel signal is set to each bit of the shift register, so the shift register receives the clock signal necessary to shift the bit data. Since the data is set by , it is not necessary to provide the shift register with a circuit for a load signal, and therefore the structure of the shift register can be simplified and the cost can be reduced.
第1図は本発明の一実施例のブロツク図及び、
第2図は本発明の他の実施例のブロツク図であ
る。
図において、1,51…シフトレジスタ、2,
52…ラツチ回路、3…切換回路、11〜18,
21〜28…Dフリツプフロツプ、31〜38…
トライステートバツフア、53,54…スイツチ
回路。
FIG. 1 is a block diagram of an embodiment of the present invention, and
FIG. 2 is a block diagram of another embodiment of the invention. In the figure, 1, 51...shift register, 2,
52...Latch circuit, 3...Switching circuit, 11-18,
21-28...D flip-flop, 31-38...
Tri-state buffer, 53, 54...switch circuit.
Claims (1)
各ビツトが構成されており、クロツク信号に同期
して前段側のビツトから後段側のビツトへ順次デ
ータを伝送するシフトレジスタと、 ストローブ信号に応答して該シフトレジスタの
各ビツトにセツトされたデータをラツチして、出
力端子に出力するラツチ回路と、 ラツチ回路の各出力端子をパラレル出力端子に
接続して該ラツチ回路にラツチされたデータをパ
ラレル信号として出力するか、パラレル入力端子
を前記シフトレジスタの各フリツプフロツプの各
入力端子に接続して入力されたパラレル信号の各
ビツトを前記シフトレジスタの各ビツトにセツト
するかを切り換える切換手段とを備えたことを特
徴とするパラレル・シリアル変換器。[Scope of Claims] 1. A shift register in which each bit is constituted by flip-flops connected in series and transmits data sequentially from a previous bit to a subsequent bit in synchronization with a clock signal; and a strobe. A latch circuit that latches the data set in each bit of the shift register in response to a signal and outputs it to an output terminal, and a latch circuit that connects each output terminal of the latch circuit to a parallel output terminal so that the data is latched by the latch circuit. A switch for switching between outputting the input data as a parallel signal, or connecting the parallel input terminal to each input terminal of each flip-flop of the shift register and setting each bit of the input parallel signal to each bit of the shift register. A parallel-to-serial converter characterized by comprising means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61077424A JPS62233931A (en) | 1986-04-03 | 1986-04-03 | Parallel serial converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61077424A JPS62233931A (en) | 1986-04-03 | 1986-04-03 | Parallel serial converter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62233931A JPS62233931A (en) | 1987-10-14 |
| JPH0370415B2 true JPH0370415B2 (en) | 1991-11-07 |
Family
ID=13633590
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61077424A Granted JPS62233931A (en) | 1986-04-03 | 1986-04-03 | Parallel serial converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS62233931A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2672607B2 (en) * | 1988-11-22 | 1997-11-05 | 株式会社東芝 | Method for manufacturing semiconductor device |
| JP2501513Y2 (en) * | 1989-04-27 | 1996-06-19 | 日本電気株式会社 | Parallel to serial converter |
| JP2007036869A (en) | 2005-07-28 | 2007-02-08 | Nec Electronics Corp | Serial/parallel conversion, parallel/serial conversion, and fifo integrated circuit |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57117190A (en) * | 1981-01-13 | 1982-07-21 | Toshiba Corp | Shift register circuit with latch function |
| JPS57191746A (en) * | 1981-05-19 | 1982-11-25 | Toshiba Corp | Input and output device |
-
1986
- 1986-04-03 JP JP61077424A patent/JPS62233931A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62233931A (en) | 1987-10-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5596724A (en) | Input/output data port with a parallel and serial interface | |
| JP2501513Y2 (en) | Parallel to serial converter | |
| EP0964526B1 (en) | Data forwarding for communication of serial and parallel data | |
| JPH0370415B2 (en) | ||
| JPH0769996B2 (en) | Simultaneous measurement data transmission method | |
| JP3044817B2 (en) | Code conversion device | |
| JP2565144B2 (en) | Serial-parallel converter | |
| KR950013806B1 (en) | Serial/parallel conversion method and device of data | |
| JP2569498B2 (en) | Flip flop | |
| JPS61193523A (en) | Semiconductor logical integrated device | |
| JP2677274B2 (en) | Variable length serial data communication system | |
| SU1496008A1 (en) | Binary code converter | |
| JPS62168427A (en) | Serial/parallel data converter | |
| JPS61284117A (en) | Successive approximation type A/D converter | |
| KR900000855Y1 (en) | Data diagnostic circuit of system data bus | |
| JPH02129784A (en) | Ic card | |
| JPH1090308A (en) | Signal input device of electric measuring instrument | |
| JPH0581096B2 (en) | ||
| JPS63313919A (en) | Parallel/serial converting device | |
| JPS59187253U (en) | Data transfer adapter | |
| JPH05260029A (en) | Clock exchange circuit | |
| JPS6165625A (en) | Sharing ic for a/d conversion and d/a conversion | |
| JPH05101006A (en) | Serial communication circuit | |
| JPS61224522A (en) | Serial parallel data converting circuit | |
| JPH04264871A (en) | Serial interface control method |