JPH02243025A - Parallel/serial data converter - Google Patents

Parallel/serial data converter

Info

Publication number
JPH02243025A
JPH02243025A JP6332989A JP6332989A JPH02243025A JP H02243025 A JPH02243025 A JP H02243025A JP 6332989 A JP6332989 A JP 6332989A JP 6332989 A JP6332989 A JP 6332989A JP H02243025 A JPH02243025 A JP H02243025A
Authority
JP
Japan
Prior art keywords
data
input
output
prohibition
multiplexer
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.)
Granted
Application number
JP6332989A
Other languages
Japanese (ja)
Other versions
JP2664239B2 (en
Inventor
Mitsuaki Kagawa
香川 光明
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP6332989A priority Critical patent/JP2664239B2/en
Publication of JPH02243025A publication Critical patent/JPH02243025A/en
Application granted granted Critical
Publication of JP2664239B2 publication Critical patent/JP2664239B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To eliminate an undesired data caused at the initial state of data output by providing a parallel data inhibit circuit and an output circuit before and after a multiplexer respectively and excluding an undesired data from the multiplexer in advance. CONSTITUTION:When a new serial data output command is inputted externally, a parallel data inhibit circuit 23 and an output circuit 24 are operated to inhibit the input of a new parallel data to the multiplexer 23 and the signal level of the serial data outputted from the multiplexer 3 is attenuated. That is, an undesired data of a maximum n-digit stored in a register of each digit of the multiplexer 8 is excluded from the multiplexer 3 by n-set of clock signal inputs for a data excluding time. When a prescribed preparation time elapses, the input of the clock signal is started and the inputted parallel data is converted into a correct serial data by the multiplexer 3 and outputted.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はパラレルデータを高速のシリアルデータへ変換
する並列/直列データ変換装置に係わり、特に、データ
出力初期に発生する不要なデータを確実に除去できるよ
うにした並列/直列データ変換装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a parallel/serial data conversion device that converts parallel data into high-speed serial data, and in particular, the present invention relates to a parallel/serial data conversion device that converts parallel data into high-speed serial data, and in particular, it is a device that reliably eliminates unnecessary data generated at the initial stage of data output. The present invention relates to a parallel/serial data conversion device that can be removed.

〔従来の技術] 近年、PCM(パルス符号変調)やLAN (企業内情
報通信)およびスーパーコンピュータの分野において、
入力されたデータを極めて高速に処理するデータ処理装
置が増加している。一般に一定以上の距離を有して配設
されたデータ処理装置相互間におけるデータ伝送は、送
信側でパラレルデータを並列/直列データ変換装置を用
いて一部シリアルデータに変換して、シリアルデータの
状態でデータ伝送路へ送出する。そして、受信側では入
力されたシリアルデータを直列/並列データ変換装置を
用いてパラレルデータへ変換した後、種々のデータ処理
を実行する。
[Prior Art] In recent years, in the fields of PCM (pulse code modulation), LAN (corporate information communication), and supercomputers,
The number of data processing devices that process input data at extremely high speeds is increasing. In general, data transmission between data processing devices located at a distance greater than a certain distance involves converting some of the parallel data into serial data using a parallel/serial data converter on the transmitting side. The state is sent to the data transmission path. Then, on the receiving side, the input serial data is converted into parallel data using a serial/parallel data conversion device, and then various data processing is executed.

したがって、上述のような高速で処理を実行するデータ
処理装置に組込まれる並列/直列データ変換装置におい
ても、高速にパラレルデータをシリアルデータに変更す
る機能が要求されている。
Therefore, a parallel/serial data conversion device incorporated in a data processing device that executes processing at high speed as described above is also required to have a function of converting parallel data into serial data at high speed.

通常、上記のように高速にパラレルデータをシリアルデ
ータに変換する並列/直列データ変換装置は第5図に示
すいわゆるインクリーブ方式の回路が採用されている。
Normally, the parallel/serial data conversion device that converts parallel data into serial data at high speed as described above employs a so-called incremental type circuit shown in FIG.

第5図において、1は送信側のデータ処理装置の一部を
構成するCPU (中央処理装置)であり、このCPU
Iから出力される送信すべき例えば0桁のパラレルデー
タはデータメモリ2への各アドレス領域へ順次格納され
る。また、クロック端子から入力されるクロック信号a
はマルチプレクサ3へ入力されるとともに分周器4で1
 / nに分周される。分周器4から出力された分周信
号すはマルチプレクサ3へ入力されるとともにアドレス
カウンタ5へ入力される。
In FIG. 5, 1 is a CPU (central processing unit) that constitutes a part of the data processing device on the sending side.
For example, 0-digit parallel data to be transmitted outputted from I is sequentially stored in each address area of the data memory 2. Also, the clock signal a input from the clock terminal
is input to multiplexer 3 and divided into 1 by frequency divider 4.
/ n. The frequency-divided signal output from the frequency divider 4 is input to the multiplexer 3 and also to the address counter 5.

このアドレスカウンタ5は分周信号すが入力される毎に
、データメモリ2内の次に読出しすべきn個分のアドレ
ス値をデータメモリ2へ印加する。
This address counter 5 applies n address values to be read next in the data memory 2 to the data memory 2 every time the frequency division signal is input.

データメモリ2はアドレスカウンタ5にて指定されたア
ドレス領域に格納されているn個の各データDO、DI
 、D2、−Dn−1をマルチプレクサ3へ出力する。
The data memory 2 stores n pieces of data DO and DI stored in the address area designated by the address counter 5.
, D2, -Dn-1 to the multiplexer 3.

マルチプレクサ3は入力された0桁(nビット)のパラ
レルデータを0桁のシリアルデータCに変換して出力回
路6へ印加する。出力回路6は入力したシリアルデータ
Cの信号レベルを例えば2v等の規定の信号レベルに増
幅して、出力端子7へ送出する。
The multiplexer 3 converts the input 0-digit (n bits) parallel data into 0-digit serial data C and applies it to the output circuit 6. The output circuit 6 amplifies the signal level of the input serial data C to a specified signal level, such as 2V, and sends it to the output terminal 7.

このような並列/直列データ変換装置のマルチプレクサ
3は一般に第6図に示すように構成されている。なお、
説明を簡単にするためにn−w4の場合について説明す
る。
The multiplexer 3 of such a parallel/serial data conversion device is generally constructed as shown in FIG. In addition,
In order to simplify the explanation, the case of n-w4 will be explained.

すなわち、このマルチプレクサ3はp型のフリップフロ
ップで構成された4個のレジスタ8a。
That is, this multiplexer 3 includes four registers 8a each composed of p-type flip-flops.

3b、8c、8dを縦列接続したシフトレジスタからな
り、前記データメモリ2から出力される4桁のパラレル
データのうちのデータDl、D2゜D3.は各アンドゲ
ート9 b 、  9 c r  9 dおよび各オア
ゲート10b、10c、10dを介して各レジスタ8b
、8c、8dのデータ端子りへ印加される。また、最下
位桁のデータDOはアンドゲート9aを介して直接レジ
スタ8aのデータ端子りへ印加される。各レジスタ8a
、8b、8cの出力端子Qの各出力信号は各アンドゲー
ト11b。
It consists of a shift register in which 3b, 8c, and 8d are connected in cascade, and of the four-digit parallel data output from the data memory 2, data D1, D2, D3, . is connected to each register 8b via each AND gate 9b, 9cr9d and each OR gate 10b, 10c, 10d.
, 8c, and 8d. Further, the data DO of the least significant digit is directly applied to the data terminal of the register 8a via the AND gate 9a. Each register 8a
, 8b, 8c, each output signal of the output terminal Q is connected to each AND gate 11b.

11c、lidおよび前記各オアゲート10b。11c, lid and each of the or gates 10b.

lQc、10dを介して次段の各レジスタ8b。Each register 8b in the next stage via lQc and 10d.

8c、8dのデータ端子りへ印加される。そして、最上
位桁のレジスタ8dの出力端子QからシリアルデータC
が出力される。
It is applied to the data terminals 8c and 8d. Then, the serial data C is output from the output terminal Q of the most significant register 8d.
is output.

また、各レジスタ8a〜8dの各トリガ端子Tには前記
クロック信号aが印加される。また、前記分周信号すは
ロード信号発生回路12へ入力される。ロード信号発生
回路12は分周信号すが入力されると、各アンドゲート
9a〜9dの他方の入力端子にHレベルのロード信号d
を印加する。
Further, the clock signal a is applied to each trigger terminal T of each register 8a to 8d. Further, the frequency-divided signal is input to the load signal generation circuit 12. When the load signal generation circuit 12 receives the frequency-divided signal d, the load signal d at the H level is sent to the other input terminal of each AND gate 9a to 9d.
Apply.

また、このロード信号dは各アンドゲート11b。Further, this load signal d is applied to each AND gate 11b.

lie、lidの反転入力端子へ印加される。It is applied to the inverting input terminals of lie and lid.

このようなマルチプレクサ3において、ロード信号発生
回路12にクロック信号aより4倍長い周期を有する分
周信号すが印加されると、Hレベルのロード信号dがク
ロックサイクルの間出力され、各アンドゲート9a〜9
dは導通され、各レジスタ8 a’〜8dに各データD
O〜D3がクロック信号に同期して取込まれる。なお、
その時点では各アンドゲート11b〜lldは遮断され
るので、下位桁のレジスタ8a〜8cの出力データが上
位桁のレジスタ8b〜8dに取込まれることはない。ロ
ード信号dがクロックサイクル後L(ロー)レベルにも
どると、各アンドゲート9a〜9dは遮断され、逆に各
アンドゲート11b〜11dが導通する。
In such a multiplexer 3, when a divided signal having a cycle four times longer than the clock signal a is applied to the load signal generation circuit 12, an H level load signal d is output during the clock cycle, and each AND gate 9a-9
d is made conductive, and each data D is stored in each register 8a' to 8d.
O to D3 are captured in synchronization with the clock signal. In addition,
At that point, each AND gate 11b-lld is shut off, so the output data of the lower-order registers 8a-8c is not taken into the upper-order registers 8b-8d. When the load signal d returns to the L (low) level after a clock cycle, each AND gate 9a-9d is cut off, and conversely, each AND gate 11b-11d becomes conductive.

そして、分周信号すの・1/4の周期を有するクロック
信号aが入力する度に、下位桁のレジスタ8a〜8cに
取込まれた各データDO〜D2が上位桁の各レジスタ8
b〜8dヘシフトされる。しかして、4個のクロック信
号aが入力されると、最上位桁のレジスタ8dから4桁
(D3−D2−Dl −DO)からなるシリアルデータ
Cが出力される。
Then, each time a clock signal a having a period of 1/4 of the frequency-divided signal is input, each of the data DO to D2 taken into the registers 8a to 8c of the lower digits is transferred to each register of the upper digits.
Shifted from b to 8d. When four clock signals a are input, serial data C consisting of four digits (D3-D2-Dl-DO) is output from the most significant register 8d.

4桁のシリアルデータCが出力されると、次の分周信号
すが入力されて、次の4桁のパラレルデータDO〜D3
がクロック信号に同期して各レジスタ8a〜8dに取込
まれる。
When the 4-digit serial data C is output, the next divided signal is input, and the next 4-digit parallel data DO to D3 are input.
is taken into each register 8a to 8d in synchronization with the clock signal.

しかして、第5図に示す並列/直列データ変換装置は、
CPUIにてデータメモリ2に格納された口折のパラレ
ルデータを0桁のシリアルデータCに変換して例えば高
速PCM伝送路へ送出する。
Therefore, the parallel/serial data conversion device shown in FIG.
The parallel parallel data stored in the data memory 2 is converted into 0-digit serial data C by the CPU and sent to, for example, a high-speed PCM transmission line.

[発明が解決しようとする課題] しかしながら、第5図および第6図のように構成された
並列/直列ブーツ食換装置においてもまだ解消すべき次
のような問題があった。すなわち、前述したように、高
速でデータ変換を実施する必要があるので、マルチプレ
クサ3の構成を必要最少限まで簡素化して、小型に形成
する必要がある。
[Problems to be Solved by the Invention] However, even in the parallel/series boot feeding device configured as shown in FIGS. 5 and 6, the following problems still remain to be solved. That is, as described above, since it is necessary to perform data conversion at high speed, it is necessary to simplify the configuration of the multiplexer 3 to the minimum necessary and make it compact.

したがって、−窓以上の高周波特性を得るためには、例
えば各レジスタ8a〜8dにリセット端子(よ設けられ
ていない。ちなみに、リセット端子を、設けると各レジ
スタ8a〜8dが大型化するのみならず、リセット端子
に対する配線が必要になり、その配線が浮遊容量を発生
させ、周波数特性が低下する。
Therefore, in order to obtain high frequency characteristics of -window or higher, for example, each register 8a to 8d is not provided with a reset terminal. Incidentally, if a reset terminal is provided, not only will each register 8a to 8d become larger; , wiring to the reset terminal is required, and the wiring generates stray capacitance, which deteriorates frequency characteristics.

しかし、各レジスタ8a〜8dにリセット端子を設けな
いと、次のような問題が発生する。
However, if each register 8a to 8d is not provided with a reset terminal, the following problem will occur.

先ず第1に、装置の電源投入後、最初のシリアルデータ
送出時に、マルチプレクサ3の各レジスタ88〜8d内
に残留している最大1桁の不要データがデータメモリ2
に記憶された正しいデータによる正しいシリアルデータ
Cの出力前に出力される。したがって、このシリアルデ
ータを受信する側に誤った不要データが入力される問題
が生じる。
First of all, when the device is powered on and the first serial data is transmitted, up to one digit of unnecessary data remaining in each register 88 to 8d of the multiplexer 3 is transferred to the data memory 2.
It is output before outputting the correct serial data C based on the correct data stored in . Therefore, a problem arises in which erroneous unnecessary data is input to the side receiving this serial data.

次に、CPUIがデータメモリ1の記憶内容を書替えて
、新しいデータを送信する場合においては、書替え前の
最大nビットの旧データがマルチプレクサ3の各レジス
タ8a〜8dに記憶されている。したがって、前述と同
゛様に、新しいシリアルデータCが出力される前に、不
要な旧データに対応するシリアルデータが出力される問
題がある。
Next, when the CPU rewrites the storage contents of the data memory 1 and transmits new data, the old data of up to n bits before being rewritten is stored in each register 8a to 8d of the multiplexer 3. Therefore, as described above, there is a problem in that the serial data corresponding to unnecessary old data is output before the new serial data C is output.

本発明はこのような事情に鑑みてなされたものであり、
マルチブレクの前後にパラレルデータ禁止回路および出
力回路を設けてマルチプレクサの各レジスタに記憶され
ている不要なデータを前もって排除することによって、
たとえ各レジスタにリセット端子が設けられていなかっ
たとしても正しいデータの出力に先だって不要なデータ
が出力されることを確実に防止でき、周波数特性を低下
させるることなく装置の信頼性を大幅に向上できる並列
/直列データ変換措置を提供することを目的とする。
The present invention was made in view of these circumstances, and
By providing a parallel data inhibition circuit and an output circuit before and after the multiplexer to eliminate unnecessary data stored in each register of the multiplexer in advance,
Even if each register does not have a reset terminal, it is possible to reliably prevent unnecessary data from being output before correct data is output, greatly improving device reliability without degrading frequency characteristics. The purpose is to provide parallel/serial data conversion measures that can be used.

[課題を解決するための手段] 上記課題を解消するために本発明は、クロック信号発生
源から出力されたクロック信号の周波数を1 / nに
分周する分周器と、n段構成のシフトレジスタで構成さ
れ、分周器から出力された分周信号入力に応動して、外
部から入力されたn(n≧2)桁のパラレルデータにお
ける各桁のデータを0桁の各レジスタへ取込み、クロッ
ク信号入力に応動して、各桁のレジスタに取込まれた各
桁のデータを最上位桁のレジスタから順次デジタル多重
を行ない1本のシリアルデータとして出力するマルチプ
レクサとを備えた並列/llIll−タ変換装置におい
て、 クロック禁止指令入力に応動して、クロック信号の分周
器への入力を禁止するクロック禁止回路と、データ入力
禁止指令に応動してパラレルデータのマルチプレクサへ
の入力を禁止するパラレルデータ禁止回路と、マルチプ
レクサから出力されるシリアルデータの信号レベルを調
整する出力回路と、シリアルデータ出力指令入力に応動
して、パラレルデータ禁止回路へデータ入力禁止指令を
送出するとともに出力回路へ出力レベル減衰指令を送出
するデータ入出力禁止制御手段と、データ入力禁止指令
送出時刻からクロック信号がnパルス分入力するに要す
る時間より長い不要データ排出時間経過後にクロック禁
止回路へクロック禁止指令を送出するクロック禁止制御
手段と、不要データ排出時間経過後にデータ入力禁止指
令および出力レベル低減指令を解除するデータ入出力禁
止解除制御手段と、データ入力禁止指令送出時刻から不
要データ排出時間より長い準備時間経過後にクロック禁
止指令を解除すクロック禁止解除制御手段とを備えたも
のである。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides a frequency divider that divides the frequency of a clock signal output from a clock signal generation source to 1/n, and a shifter having an n-stage configuration. Consisting of registers, in response to the frequency division signal input output from the frequency divider, each digit of n (n≧2) digit parallel data input from the outside is taken into each 0-digit register, In response to a clock signal input, the data of each digit taken into the register of each digit is sequentially digitally multiplexed starting from the register of the most significant digit and is output as one serial data. In a data converter, there is a clock inhibit circuit that inhibits input of a clock signal to a frequency divider in response to a clock inhibit command input, and a parallel circuit that inhibits input of parallel data to a multiplexer in response to a data input inhibit command. A data inhibit circuit, an output circuit that adjusts the signal level of serial data output from the multiplexer, and a data input inhibit command that responds to the serial data output command input to the parallel data inhibit circuit and output level to the output circuit. A data input/output prohibition control means that sends an attenuation command, and a clock that sends a clock prohibition command to a clock prohibition circuit after an unnecessary data discharge time that is longer than the time required for inputting n pulses of a clock signal from the data input prohibition command sending time has elapsed. a prohibition control means, a data input/output prohibition release control means for canceling the data input prohibition command and the output level reduction command after the unnecessary data discharge time has elapsed; and clock inhibition release control means for canceling the inhibition command.

[作 用] このように構成された並列/直列データ変換装置によれ
ば、例えば外部から新たなシリアルデータ出力指令が入
力されると、パラレルデータ禁止回路および出力回路が
作動して、マルチプレクサに対する新たなパラレルデー
タの入力を禁止するとともにマルチプレクサから出力さ
れるシリアルデータの信号レベルが減衰される。しかし
て、その作動期間中、すなわちデータ排出時間中にマル
チプレクサの各桁のレジスタに記憶されている最大0桁
の不要データはn個のクロック信号入力によってマルチ
プレクサから排出される。その後、クロック禁止回路に
よってクロック信号入力が停止され、同時にパラレルデ
ータ禁止回路および出力回路の上記動作が解除される。
[Function] According to the parallel/serial data converter configured in this way, when a new serial data output command is input from the outside, for example, the parallel data prohibition circuit and the output circuit are activated, and the new serial data output command is input to the multiplexer. The input of parallel data is prohibited, and the signal level of serial data output from the multiplexer is attenuated. Therefore, during the operation period, that is, during the data discharge time, the maximum 0-digit unnecessary data stored in the register of each digit of the multiplexer is discharged from the multiplexer by inputting n clock signals. Thereafter, the clock signal input is stopped by the clock prohibition circuit, and at the same time, the above operations of the parallel data prohibition circuit and the output circuit are canceled.

そして、所定の準備時間が経過した時点でクロック信号
の入力が開始され、入力されたパラレルデータはマルチ
プレクサによりて正しいシリアルデータに変換されて出
力される。
Then, when a predetermined preparation time has elapsed, input of a clock signal is started, and the input parallel data is converted into correct serial data by a multiplexer and output.

すなわち、正しいシリアルデータに先だって不要データ
に起因するシリアルデータが出力されることはない。
That is, serial data caused by unnecessary data is not output before correct serial data.

〔実施例〕〔Example〕

以下本発明の一実施例を図面を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は実施例の並列/直列データ変換装置が組込まれ
たデータ処理装置を示すブロック図である。第5図と同
一部分には同一符号が付しである。
FIG. 1 is a block diagram showing a data processing device incorporating a parallel/serial data conversion device according to an embodiment. The same parts as in FIG. 5 are given the same reference numerals.

すなわち、送信側のデータ処理装置の一部を構成するC
PU21から出力される送信すべき例えば0桁のパラレ
ルデータはアドレスバス、データバスを介してデータメ
モリ2への各アドレス領域へ順次格納される。また、図
示しないクロック信号発生源のクロック端子から入力さ
れるクロック信号aはクロック禁止回路22を介してマ
ルチプレクサ3へ入力されるとともに分周器4へ入力さ
れる。分周器4へ入力されたクロック信号aは1/nに
分周され、分周信号すとしてマルチプレクサ3へ入力さ
れるとともにアドレスカウンタ5へ入力される。
In other words, C forming part of the data processing device on the sending side
For example, 0-digit parallel data to be transmitted outputted from the PU 21 is sequentially stored in each address area of the data memory 2 via an address bus and a data bus. Further, a clock signal a inputted from a clock terminal of a clock signal generation source (not shown) is inputted to the multiplexer 3 via the clock inhibiting circuit 22 and also inputted to the frequency divider 4. The clock signal a input to the frequency divider 4 is frequency-divided by 1/n, and is input to the multiplexer 3 as a frequency-divided signal, and is also input to the address counter 5.

このアドレスカウンタ5はCPU21から一度に読出す
べきパラレルデータの個数(−n)に対応するデータメ
モリ2内のアドレス領域長が指定される。そして、1個
の分周信号すが入力される毎に、データメモリ2内の次
に読出すべきn個分のアドレス値をデータメモリ2へ印
加する。データメモリ2はアドレスカウンタ5にて指定
されたアドレス領域に格納されているn個の各データD
o 、DI 、D2 、 ・ Dn−1をパラレルデー
タ禁止回路23を介してマルチプレクサ3へ出力する。
The address counter 5 is designated by the CPU 21 with the address area length in the data memory 2 corresponding to the number (-n) of parallel data to be read at one time. Then, each time one frequency-divided signal is input, n address values to be read next in the data memory 2 are applied to the data memory 2. The data memory 2 has n pieces of data D stored in the address area designated by the address counter 5.
o, DI, D2, .Dn-1 are output to the multiplexer 3 via the parallel data inhibition circuit 23.

このマルチプレクサ3は第6図と同一構成を有しており
、入力された0桁(nビット、実施例ではn−4)のパ
ラレルデータを0桁のシリアルデータCに変換して出力
回路24へ印加する。出力回路6は入力したシリアルデ
ータCの信号レベルを制御端子Gにシーケンス制御回路
25から出力されているLレベルの出力レベル減衰指令
eが印加されると、入力されたシリアルデータCの信号
レベルをほぼ0レベルまで減衰させる。出力レベル減i
im令eが入力されていなければ、入力されたシリアル
データCを例えば2v等の規定の信号レベルに増幅して
、出力端子7へ送出する。
This multiplexer 3 has the same configuration as that shown in FIG. Apply. The output circuit 6 changes the signal level of the input serial data C to the control terminal G when the L level output level attenuation command e outputted from the sequence control circuit 25 is applied. Attenuate to almost 0 level. Output level reduction i
If the im command e is not input, the input serial data C is amplified to a prescribed signal level, such as 2V, and sent to the output terminal 7.

前記シーケンス制御回路25は一種のマイクロコンピュ
ータで構成されており、必要に応じて出力回路24に出
力レベル減衰指令eを送出するとともに、クロック禁止
回路22およびパラレルデータ禁止回路23の各制御端
子Gヘクロック禁止指令fおよびデータ入力禁止指令g
を送出する。
The sequence control circuit 25 is composed of a type of microcomputer, and sends an output level attenuation command e to the output circuit 24 as necessary, and also sends a clock signal to each control terminal G of the clock prohibition circuit 22 and the parallel data prohibition circuit 23. Prohibition command f and data input prohibition command g
Send out.

クロック禁止指令fが入力されたクロック禁止回路22
はクロック信号aを遮断し、入力データ禁止指令gが入
力されたパラレルデータ禁止回路23はパラレルデータ
DO〜D n−1を遮断する。
Clock prohibition circuit 22 to which clock prohibition command f is input
blocks the clock signal a, and the parallel data prohibition circuit 23 to which the input data prohibition command g is input blocks the parallel data DO to Dn-1.

さらに、シーケンス制御回路25は分周器4およびアド
レスレジスタ5のリセット端子Rヘリセット信号りを送
出する。また、シーケンス制御回路25には前記クロッ
ク信号aの周期のn倍より若干長い不要データ排出時間
Tlや準備時間T2(’l’2 >”I’、 )を計時
するタイマ回路26が接続されている。
Further, the sequence control circuit 25 sends a reset signal to the reset terminal R of the frequency divider 4 and the address register 5. Further, a timer circuit 26 is connected to the sequence control circuit 25, which measures an unnecessary data discharge time Tl and a preparation time T2 ('l'2>"I',) which is slightly longer than n times the cycle of the clock signal a. There is.

また、前記CPU21はシーケンス制御回路25へ出力
開始指令lを出力するとともに、図示しない受信側のデ
ータ処理装置に対してストローブ信号を送出する。
Further, the CPU 21 outputs an output start command 1 to the sequence control circuit 25, and also sends a strobe signal to a receiving side data processing device (not shown).

しかして、前記CPU21は第2図に示すメインルーチ
ンを実行するようにプログラム構成されている。
The CPU 21 is programmed to execute the main routine shown in FIG.

すなわち、S(ステップ)1にて外部から例えばインタ
フェースを介してシリアルデータのデータ出力要求指令
が入力されると、データメモリ2に対してデータ送信す
べきパラレルデータをデータメモリ2内の各アドレス領
域に格納する。次に、アドレスカンフ5へ出力端子7か
ら出力される各シリアルデータCに含まれるデータ数で
示されるデータ長DLを、データメモリ2の一度に読出
すべき各データが格納されているアドレス領域長として
設定する。そして、シーケンス制御回路25へ出力開始
指令iを送出する。
That is, when a data output request command for serial data is input from the outside via, for example, an interface in S (step) 1, parallel data to be transmitted to the data memory 2 is sent to each address area in the data memory 2. Store in. Next, the data length DL indicated by the number of data included in each serial data C output from the output terminal 7 to the address counter 5 is determined as the length of the address area in the data memory 2 in which each data to be read at a time is stored. Set as . Then, an output start command i is sent to the sequence control circuit 25.

なお、S2にてその他の処理要求が発生すれば、該当処
理を実行する。
Note that if other processing requests occur in S2, the corresponding processing is executed.

また、シーケンス制御回路25は、電源が投入されたり
、シリアルデータの出力要求が発生すると、第3図の流
れ図を実行する。
Further, the sequence control circuit 25 executes the flowchart shown in FIG. 3 when the power is turned on or when a serial data output request occurs.

すなわち、S3にてクロック禁止回路22ヘクロツク開
止指令fを送出して、クロック信号aが分周器4へ入力
するのを禁止する。次に、S4にてCPU21から出力
開始指令iが入力されると、S5にて分周器4およびア
ドレスカウンタ5ヘリセット信号りを送出して分周″a
4およびアドレスカンフ5をリセットする。次に86に
てパラレルデータ禁止回路23へデータ入力禁止指令g
を送出して、マルチプレクサ3ヘパラレルデータが入力
するのを禁止する。さらに、S7にて出力回路24へ出
力レベル減衰指令eを送出して、出力回路24から出力
されるシリアルデータCの信号レベルをほぼ0に制御す
る。
That is, in S3, a clock opening command f is sent to the clock inhibiting circuit 22 to inhibit input of the clock signal a to the frequency divider 4. Next, when an output start command i is input from the CPU 21 in S4, a reset signal is sent to the frequency divider 4 and address counter 5 in S5, and the frequency is divided by "a".
4 and address counter 5 are reset. Next, at 86, a data input prohibition command g is sent to the parallel data prohibition circuit 23.
, and prohibits parallel data from being input to multiplexer 3. Furthermore, in S7, an output level attenuation command e is sent to the output circuit 24 to control the signal level of the serial data C output from the output circuit 24 to approximately zero.

以上の処理が終了すると、S8にてタイマ回路26を起
動する。そして、S9にてクロック禁止回路22に印加
していたクロック禁止指令fを解除して、クロック信号
aを分周器4へ導く。すなわち、マルチプレクサ3には
クロック信号aおよ分周信号すが入力されるので、この
マルチプレクサ3は正常に動作して、各レジスタ8a〜
8dに残留している不要データがシリアルデータCとし
て、出力回路24へ送出される。またこの間に各レジス
タ88〜8dには論理0のデータが取込まれる。しかし
、出力回路24には出力レベル減衰指令eが印加されて
いるので、不要データを含むシリアルデータCは出力端
子7へ出力されることはない。
When the above processing is completed, the timer circuit 26 is activated in S8. Then, in S9, the clock prohibition command f applied to the clock prohibition circuit 22 is released, and the clock signal a is guided to the frequency divider 4. That is, since the clock signal a and the frequency-divided signal S are input to the multiplexer 3, the multiplexer 3 operates normally and each register 8a to
The unnecessary data remaining in 8d is sent to the output circuit 24 as serial data C. Also, during this time, logic 0 data is taken into each register 88-8d. However, since the output level attenuation command e is applied to the output circuit 24, the serial data C including unnecessary data is not output to the output terminal 7.

しかして、SIOにてタイマ回路26が起動時刻から不
要データ排出時間T1を計時すると、Sllにてクロッ
ク禁止回路22ヘクロツク禁止指令fを出力して、再度
クロック信号aを遮断する。次に、S12にてパラレル
データ禁止回路23へ印加していたデータ入力禁止指令
gを解除し、S13にて分周器4.アドレスカンフ5を
再度リセットする。さらに、S14にて出力回路24に
印加していた出力レベル減衰指令eを解除する。
When the timer circuit 26 in the SIO measures the unnecessary data discharge time T1 from the startup time, the S11 outputs a clock prohibition command f to the clock prohibition circuit 22 to interrupt the clock signal a again. Next, in S12, the data input prohibition command g applied to the parallel data prohibition circuit 23 is canceled, and in S13, the data input prohibition command g applied to the frequency divider 4. Reset address count 5 again. Further, in S14, the output level attenuation command e applied to the output circuit 24 is canceled.

しかして、S15にてタイマ回路26が88におけるタ
イマ起動時刻から準備時間T2を計時すると、S16に
てクロック禁止回路22に印加していたクロック禁止指
令fを解除するとともにストローブパルスを送出する。
When the timer circuit 26 measures the preparation time T2 from the timer activation time 88 in S15, the clock prohibition command f applied to the clock prohibition circuit 22 is canceled and a strobe pulse is sent out in S16.

しかして、データメモリ2から0桁(nビット)の正し
いパラレルデータが同時に読出されて、マルブレクサ3
へ入力され、このマルチプレクサ3にてシリアルデータ
Cに変換されて、出力回路24で例えば5V等の規定の
信号レベルに増幅されたのち、出力端子7から図示しな
いデータ伝送路へ送出される。
Thus, correct parallel data of 0 digits (n bits) is read out from the data memory 2 at the same time, and the multiplexer 3
The data is input to the multiplexer 3, converted into serial data C, and amplified to a prescribed signal level, such as 5V, by the output circuit 24, and then sent from the output terminal 7 to a data transmission path (not shown).

次に、以上のように構成された並列/直列データ変換装
置の動作を第4図に示すタイムチャートで説明する。
Next, the operation of the parallel/serial data converter configured as above will be explained with reference to the time chart shown in FIG.

すなわち、時刻toにて外部からデータ出力指令が入力
されると、CPU21から伝送すべきパラレルの各デー
タがデータメモリ2へ格納され、時刻t1にて格納処理
が終了すると、出力開始指令・iがシーケンス制御回路
25へ印加される。しかして、クロック信号aおよびパ
ラレルデータが遮断され、分周器4およびアドレスカウ
ンタ5がリセットされる。また、出力回路24の出力信
号レベルが減衰される。
That is, when a data output command is input from the outside at time to, each parallel data to be transmitted from the CPU 21 is stored in the data memory 2, and when the storage process is finished at time t1, an output start command i is input. The signal is applied to the sequence control circuit 25. Thus, clock signal a and parallel data are cut off, and frequency divider 4 and address counter 5 are reset. Furthermore, the output signal level of the output circuit 24 is attenuated.

時刻t2にて以上の処理が終了すると、タイマ回路26
が起動され、クロック信号aの遮断が解除される。しか
して、時刻t3にて不要データ排出時間T1が経過する
までの期間内に、マルチプレクサ3の各レジスタ8a〜
8dに記憶されている不要なデータはシリアルデータC
として排出される。なお、この期間は新たなパラレルデ
ータがマルチプレクサ3へ入力することはなく、また、
不要データを含むシリアルデータCは出力回路24で減
衰されて、出力端子7から出力されることはない。
When the above processing is completed at time t2, the timer circuit 26
is activated, and the cutoff of clock signal a is released. Therefore, each register 8a to 8 of the multiplexer 3 is
The unnecessary data stored in 8d is serial data C.
It is discharged as. Note that no new parallel data is input to multiplexer 3 during this period, and
The serial data C including unnecessary data is attenuated by the output circuit 24 and is not output from the output terminal 7.

時刻t3にて不要データ排出期間T、が経過すると、再
度クロック信号aが遮断されるとともに、パラレルデー
タが入力可能になり、出力回路24の出力レベルも元の
正常値に復帰する。そして、時刻t4にて準備時間T2
が経過すると、クロック信号aの遮断が解除され、スト
ローブ信号が送出される。しかして、それ以降、分周信
号すが入力される毎に0桁(nビット)構成のシリアル
データCが出力端子7から順次出力される。
When the unnecessary data discharge period T has elapsed at time t3, the clock signal a is cut off again, parallel data can be input, and the output level of the output circuit 24 returns to its original normal value. Then, at time t4, preparation time T2
When the period elapses, the cutoff of the clock signal a is released and the strobe signal is sent out. From then on, serial data C consisting of 0 digits (n bits) is sequentially output from the output terminal 7 every time the frequency-divided signal is input.

このように構成された並列/直列データ変換装置によれ
ば、新たにシリアルデータを出力する場合においては、
正しいパラレルデータがマルチプレクサ3に入力される
のを一定時間T1 (不要データ排出時間)だけ停止し
、その期間内にマルチプレクサ3の各レジスタ8a〜8
dに残留している不要な各データを排出し、かつ出力回
路24で減衰させている。したがって、正しいデータの
出力に先だって不要なデータが出力されるのが確実に防
止される。
According to the parallel/serial data converter configured in this way, when newly outputting serial data,
The input of correct parallel data to the multiplexer 3 is stopped for a certain period of time T1 (unnecessary data discharge time), and each register 8a to 8 of the multiplexer 3 is
The unnecessary data remaining in d is discharged and attenuated by the output circuit 24. Therefore, unnecessary data is reliably prevented from being output before correct data is output.

よって、このシリアルデータを受信する受信側のデータ
処理装置に不要なデータに起因するデータ処理誤りが発
生するのを防止できる。
Therefore, it is possible to prevent data processing errors caused by unnecessary data from occurring in the data processing device on the receiving side that receives this serial data.

したがって、マルチプレクサ3の各レジスタ8a〜8d
にリセット端子を設ける必要がないので、並列/直列デ
ータ変換装置としての高周波特性が低下することはない
Therefore, each register 8a to 8d of multiplexer 3
Since there is no need to provide a reset terminal in the parallel/serial data converter, the high frequency characteristics of the parallel/serial data converter do not deteriorate.

なお、本発明は上述した実施例に限定されるものではな
い。実施例においては、説明を簡単にするために、マル
チプレクサ3として4桁構成のシフトレジスタを用いた
が、実際の装置においては、8段又は16段等の多段の
シフトレジスタを用いる。
Note that the present invention is not limited to the embodiments described above. In the embodiment, a four-digit shift register is used as the multiplexer 3 to simplify the explanation, but in an actual device, a multi-stage shift register such as eight stages or 16 stages is used.

また、実施例においては、マルチプレクサ回路として第
6図の回路例を示し、この回路において、外部よりクロ
ック信号とl/4クロック信号を入力しているが、クロ
ックのみを入力し、ロード信号発生回路でl/4に分周
してロードパルスを発生させるものであってもよい。
In addition, in the embodiment, the circuit example shown in FIG. 6 is shown as a multiplexer circuit, and in this circuit, a clock signal and a 1/4 clock signal are input from the outside, but only a clock is input, and the load signal generation circuit Alternatively, the load pulse may be generated by dividing the frequency by 1/4.

[発明の効果] 以上説明したように本発明の並列/直列データ変換装置
によれば、マルチブレクの前後にパラレルデータ禁止回
路および出力回路を設け、パラレルデータがマルチプレ
クサに入力していない間にマルチプレクサの各レジスタ
に記憶されている不要なデータを排除している。したが
って、たとえマルチプレクサの各レジスタにリセッ、ト
端子が設けられていなかったとしても正しいデータの出
力に先だって不要なデータが出力されることを確実に防
止できる。その結果、データ変換装置としての周波数特
性を低下させることなく装置全体の信頼性を大幅に向上
できる。
[Effects of the Invention] As explained above, according to the parallel/serial data conversion device of the present invention, a parallel data inhibition circuit and an output circuit are provided before and after multiplexing, and the multiplexer is disabled while parallel data is not input to the multiplexer. Eliminates unnecessary data stored in each register. Therefore, even if each register of the multiplexer is not provided with a reset terminal, it is possible to reliably prevent unnecessary data from being output before correct data is output. As a result, the reliability of the entire data conversion device can be significantly improved without degrading the frequency characteristics of the data conversion device.

【図面の簡単な説明】 第1図は実施例の並列/直列データ変換装置が組込まれ
たデータ処理装置全体を示すブロック図、第2図および
第3図は同実施例の動作を示す流れ図、第4図は同実施
例の動作を示すタイムチャート、第5図は従来の並列/
直列データ変換装置が組込まれたデータ処理装置全体を
示すブロック図、第6図は同装置におけるマルチプレク
サを示すブロック図である。 2・・・データメモリ、3・・・マルチプレクサ、4・
・・分周器、5・・・アドレスカンフ、21・・・CP
U、22・・・クロック禁止囲路、23・・・パラレル
データ禁止回路、24・・・出力回路、25・・・シー
ケンス制御回路、
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a block diagram showing the entire data processing device incorporating the parallel/serial data conversion device of the embodiment, and FIGS. 2 and 3 are flow charts showing the operation of the embodiment. Fig. 4 is a time chart showing the operation of the same embodiment, and Fig. 5 is a conventional parallel/
FIG. 6 is a block diagram showing the entire data processing device incorporating the serial data converter, and FIG. 6 is a block diagram showing the multiplexer in the same device. 2...Data memory, 3...Multiplexer, 4...
...Frequency divider, 5...Address Kampf, 21...CP
U, 22... Clock prohibition circuit, 23... Parallel data prohibition circuit, 24... Output circuit, 25... Sequence control circuit,

Claims (1)

【特許請求の範囲】 クロック信号発生源から出力されたクロック信号の周波
数を1/nに分周する分周器(4)と、n段構成のシフ
トレジスタで構成され、前記分周器から出力された分周
信号入力に応動して、外部から入力されたn(n≧2)
桁のパラレルデータにおける各桁のデータを前記n桁の
各レジスタ(8a〜8d)へ取込み、前記クロック信号
入力に応動して、前記各桁のレジスタに取込まれた各桁
のデータを最上位桁のレジスタから順次デジタル多重を
行ない1本のシリアルデータとして出力するマルチプレ
クサ(3)とを備えた並列/直列データ変換装置におい
て、 クロック禁止指令入力に応動して、前記クロック信号の
前記分周器への入力を禁止するクロック禁止回路(22
)と、データ入力禁止指令に応動して前記パラレルデー
タの前記マルチプレクサへの入力を禁止するパラレルデ
ータ禁止回路(23)と、前記マルチプレクサから出力
されるシリアルデータの信号レベルを調整する出力回路
(24)と、シリアルデータ出力指令入力に応動して、
前記パラレルデータ禁止回路へデータ入力禁止指令を送
出するとともに出力回路へ出力レベル減衰指令を送出す
るデータ入出力禁止制御手段(S6,S7)と、前記デ
ータ入力禁止指令送出時刻から前記クロック信号がnパ
ルス分入力するに要する時間より長い不要データ排出時
間経過後に前記クロック禁止回路へクロック禁止指令を
送出するクロック禁止制御手段(S11)と、前記不要
データ排出時間経過後に前記データ入力禁止指令および
前記出力レベル低減指令を解除するデータ入出力禁止解
除制御手段(S12,S14)と、前記データ入力禁止
指令送出時刻から前記不要データ排出時間より長い準備
時間経過後に前記クロック禁止指令を解除すクロック禁
止解除制御手段(S16)とを備えた並列/直列データ
変換装置。
[Claims] Consisting of a frequency divider (4) that divides the frequency of the clock signal output from the clock signal generation source by 1/n, and a shift register with n stages, the output from the frequency divider is n (n≧2) input from the outside in response to the frequency division signal input
The data of each digit in the parallel data of digits is taken into each of the n-digit registers (8a to 8d), and in response to the input of the clock signal, the data of each digit taken into the register of each digit is transferred to the topmost register. In a parallel/serial data conversion device comprising a multiplexer (3) that sequentially performs digital multiplexing from a digit register and outputs it as a single serial data, the frequency divider of the clock signal responds to a clock prohibition command input. Clock prohibition circuit (22
), a parallel data prohibition circuit (23) that prohibits input of the parallel data to the multiplexer in response to a data input prohibition command, and an output circuit (24) that adjusts the signal level of the serial data output from the multiplexer. ), and in response to the serial data output command input,
data input/output prohibition control means (S6, S7) that sends a data input prohibition command to the parallel data prohibition circuit and an output level attenuation command to the output circuit; a clock prohibition control means (S11) that sends a clock prohibition command to the clock prohibition circuit after an unnecessary data discharge time longer than the time required to input the pulses has elapsed; data input/output prohibition release control means (S12, S14) for canceling the level reduction command; and clock prohibition release control for canceling the clock prohibition command after a preparation time longer than the unnecessary data discharge time has elapsed from the data input prohibition command sending time. A parallel/serial data conversion device comprising means (S16).
JP6332989A 1989-03-15 1989-03-15 Parallel / serial data converter Expired - Lifetime JP2664239B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6332989A JP2664239B2 (en) 1989-03-15 1989-03-15 Parallel / serial data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6332989A JP2664239B2 (en) 1989-03-15 1989-03-15 Parallel / serial data converter

Publications (2)

Publication Number Publication Date
JPH02243025A true JPH02243025A (en) 1990-09-27
JP2664239B2 JP2664239B2 (en) 1997-10-15

Family

ID=13226104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6332989A Expired - Lifetime JP2664239B2 (en) 1989-03-15 1989-03-15 Parallel / serial data converter

Country Status (1)

Country Link
JP (1) JP2664239B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526360A (en) * 1992-06-29 1996-06-11 Dade International Inc. High speed N-to-1 burst time-multiplexed data transmission system and method
JP4846788B2 (en) * 2006-03-31 2011-12-28 アンリツ株式会社 Data signal generator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526360A (en) * 1992-06-29 1996-06-11 Dade International Inc. High speed N-to-1 burst time-multiplexed data transmission system and method
JP4846788B2 (en) * 2006-03-31 2011-12-28 アンリツ株式会社 Data signal generator

Also Published As

Publication number Publication date
JP2664239B2 (en) 1997-10-15

Similar Documents

Publication Publication Date Title
EP0487743A1 (en) Microcomputer provided with built-in converter
US5459855A (en) Frequency ratio detector for determining fixed frequency ratios in a computer system
US4829302A (en) Analog/digital converter using the weighing method
EP0068678A2 (en) Comparator circuit and method
JPH02243025A (en) Parallel/serial data converter
US5325341A (en) Digital timer apparatus and method
US5675271A (en) Extended chip select reset apparatus and method
JP2847604B2 (en) IC with built-in counter circuit and one-chip microcomputer
JPH0721103A (en) Data transfer device
JPH06188872A (en) Synchronization protective circuit
US4011436A (en) Multiple level predetermining system
RU2037958C1 (en) Frequency divider
US4326251A (en) Monitoring system for a digital data processor
JPH04101535A (en) Interface circuit
SU980279A1 (en) Time interval-to-digital code converter
SU1451691A2 (en) Modulo-m adding and subtracting device
SU1531172A1 (en) Parallel asynchronous register
SU940310A1 (en) Counter frequency divider
SU1561203A1 (en) Code converter
JPH0683066B2 (en) Counter circuit
SU1621140A2 (en) Counting device with check
SU877543A1 (en) Device with dynamic priority change
SU1070555A1 (en) Device for sequential selecting of ones from binary code
SU1367153A1 (en) Frequency divider with fractional countdown ratio
RU1805472C (en) Device for memory addressing