JP2786732B2 - Serial / parallel conversion circuit - Google Patents

Serial / parallel conversion circuit

Info

Publication number
JP2786732B2
JP2786732B2 JP24590990A JP24590990A JP2786732B2 JP 2786732 B2 JP2786732 B2 JP 2786732B2 JP 24590990 A JP24590990 A JP 24590990A JP 24590990 A JP24590990 A JP 24590990A JP 2786732 B2 JP2786732 B2 JP 2786732B2
Authority
JP
Japan
Prior art keywords
output
data
external
terminal
input terminal
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
Application number
JP24590990A
Other languages
Japanese (ja)
Other versions
JPH04124723A (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.)
Toshiba Corp
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba AVE 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 Toshiba Corp, Toshiba AVE Co Ltd filed Critical Toshiba Corp
Priority to JP24590990A priority Critical patent/JP2786732B2/en
Publication of JPH04124723A publication Critical patent/JPH04124723A/en
Application granted granted Critical
Publication of JP2786732B2 publication Critical patent/JP2786732B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Microcomputers (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、マイクロコンピュータからのシリアルデー
タを受けてパラレルに出力する外部ICを備えたシリアル
・パラレル変換回路に関する。
The present invention relates to a serial / parallel conversion circuit including an external IC that receives serial data from a microcomputer and outputs the data in parallel.

(従来の技術) 従来より、例えば電子レンジの制御回路に組み込まれ
る1チップマイクロコンピュータでは、出力端子数に限
りがあることから、比較的高速性を要求されないデータ
を外部ICを介して出力することが行われている。この場
合マイクロコンピュータから外部ICに対してシリアルデ
ータが与えられ、この外部ICはそのシリアルデータをパ
ラレルに出力するようになっている。
(Prior art) Conventionally, for example, in a one-chip microcomputer incorporated in a control circuit of a microwave oven, since the number of output terminals is limited, data which does not require relatively high speed is output through an external IC. Has been done. In this case, the microcomputer supplies serial data to an external IC, and the external IC outputs the serial data in parallel.

しかして第4図にはその構成を示している。マイクロ
コンピュータ1と外部IC2との接続関係は、同図の通り
であり、マイクロコンピュータ1の電源端子VSS,VDD
は外部IC2の電源端子VSS,VDDが接続され、同様に、マイ
クロコンピュータ1のデータ出力端子DOUT,クロック出
力端子CLKOUT,イネーブル信号出力端子EOUT,ストローブ
信号出力端子STOUTには、それぞれ外部IC2のデータ入力
端子DIN,クロック入力端子CLKIN,イネーブル信号入力端
子EIN,ストローブ信号入力端子STINが接続されている。
FIG. 4 shows the configuration. Connection between the microcomputer 1 and the external IC2 are as in the figure, the power supply terminal V SS of the microcomputer 1, the V DD is a power supply terminal V SS external IC2, V DD is connected, likewise, micro The data output terminal D OUT , clock output terminal CLK OUT , enable signal output terminal E OUT , and strobe signal output terminal ST OUT of the computer 1 are connected to the data input terminal D IN , clock input terminal CLK IN and enable signal input of the external IC 2, respectively. Terminal E IN and strobe signal input terminal ST IN are connected.

外部IC2は、通常第3図に示すように、シフトレジス
タ3とラッチ回路4とスリーステートバッファ5とから
構成されており、シフトレジスタ3はシリアルにデータ
Dが与えられるとクロックのタイミングにてデータDの
内容を判断して1ビットづつシフトし、8ビット分のデ
ータをラッチ回路4に与える。ラッチ回路4は例えばハ
イアクティブ形であり、ストローブ信号入力端子STIN
ロウレベルの期間中は直前の出力データをラッチし、ハ
イレベルの期間中は、上記8ビット分のデータをそのま
ま通過させる。スリーステートバッファ5は、イネーブ
ル信号入力端子EINが例えばロウレベルであるときにデ
ィスイネーブル状態となって各出力端子O1〜O8をハイイ
ンピーダンス状態としイネーブル信号入力端子EINがハ
イレベルであるときにイネーブル状態となってラッチ回
路4の出力を各出力端子O1〜O8からそのまま出力させ
る。上記マイクロコンピュータ1の各出力端子DOUT,CLK
OUT,EOUT,STOUTは内部のプログラムの動作によって、ハ
イインピーダンス,ハイレベル,ロウレベルの3つの状
態をもつことができ、電源投入直後のリセット解除時に
はハイインピーダンスが設定される。
The external IC 2 is generally composed of a shift register 3, a latch circuit 4, and a three-state buffer 5, as shown in FIG. The contents of D are determined and shifted one bit at a time, and 8 bits of data are given to the latch circuit 4. The latch circuit 4 is, for example, of a high active type. The latch circuit 4 latches the immediately preceding output data while the strobe signal input terminal ST IN is at a low level, and passes the 8-bit data as it is while the strobe signal input terminal ST IN is at a high level. Three-state buffer 5, when the enable signal input terminal E IN and the output terminals O 1 ~ O 8 becomes disable state when the enable signal input terminal E IN is, for example, a low level to the high impedance state is at the high level as to output the output of the latch circuit 4 from the output terminals O 1 ~ O 8 becomes enabled state. The output terminals D OUT , CLK of the microcomputer 1
OUT , E OUT , and ST OUT can have three states of high impedance, high level, and low level by the operation of an internal program, and the high impedance is set at the time of reset release immediately after power-on.

しかして、マイクロコンピュータ1から外部IC2への
データ転送について述べる。第5図に示すように、リセ
ット状態ではマイクロコンピュータ1は動作停止状態に
あるが、イネーブル信号出力端子EOUTは図示しない外部
プルダウン抵抗にロウレベル状態とされ、また、ストロ
ーブ信号出力端子STOUTは同じく図示しない外部プルア
ップ抵抗によりハイレベルとされている。
The data transfer from the microcomputer 1 to the external IC 2 will now be described. As shown in FIG. 5, in the reset state, the microcomputer 1 is in an operation stop state, but the enable signal output terminal E OUT is set to a low level state by an external pull-down resistor (not shown), and the strobe signal output terminal ST OUT is similarly set. It is set to a high level by an external pull-up resistor (not shown).

いま、電源が投入されてリセットが解除されると、マ
イクロコンピュータ1内部のプログラムに基づき動作
し、ストローブ信号出力端子STOUTをハイレベル(見掛
上ハイレベル継続)とすると共に、イネーブル出力端子
EOUTをロウレベル(見掛上ロウレベル継続)とし、同時
に、クロック出力端子CLKOUTから8ビット分のクロック
パルスを出力すると共にデータ出力端子DOUTから8ビッ
ト分のデータDが1単位のデータとして出力する。この
間、外部IC2のシフトレジスタ3では、リセット時の不
定データが入力データによってシフトされてゆく。この
ときラッチ回路4の状態は不定状態にあるがスリーステ
ートバッファ5のイネーブル入力端子EINがロウレベル
であってディスイネーブル状態にあり、該スリーステー
トバッファ5はハイインピーダンス状態にある。従って
外部IC2の出力端子O1〜O8はいわゆるオープン状態であ
って上記不定状態の内部データは出力されない。
Now, when the power is turned on and the reset is released, the microcomputer operates based on a program in the microcomputer 1 to set the strobe signal output terminal ST OUT to a high level (apparently continuing to a high level) and to enable an output terminal.
E OUT is set to low level (apparently continuing to be low level), and at the same time, a clock pulse for 8 bits is output from the clock output terminal CLK OUT and 8-bit data D is output as 1 unit data from the data output terminal D OUT. I do. During this time, in the shift register 3 of the external IC 2, undefined data at the time of reset is shifted by the input data. At this time the state of the latch circuit 4 is in the indefinite state is in disable state enable input E IN of the three-state buffer 5 is a low level, but the three-state buffer 5 is in a high impedance state. Therefore, the output terminals O 1 to O 8 of the external IC 2 are in a so-called open state, and the internal data in the undefined state is not output.

この後、マイクロコンピュータ1は、変換したパラレ
ル出力本数分のデータ数である8ビット分のデータDを
出力すると、ストローブ信号出力端子STOUTを一瞬の
間、ハイレベルに反転して、またその後ロウレベルに反
転する(要するに短時間で2度反転する)。これにて外
部IC2のラッチ回路4はシフトレジスタ3の状態をラッ
チして出力する。上記ハイレベルへの瞬時変化は周期的
に行なわれる。
Thereafter, when the microcomputer 1 outputs 8-bit data D corresponding to the number of converted parallel output lines, the microcomputer 1 inverts the strobe signal output terminal ST OUT to the high level for a moment, and then changes the low level to the low level. (That is, twice in a short time). As a result, the latch circuit 4 of the external IC 2 latches and outputs the state of the shift register 3. The instantaneous change to the high level is performed periodically.

次に、マイクロコンピュータ1は、イネーブル信号出
力端子EOUTをハイレベルに変化させる。これにて、スリ
ーステートバッファ5のイネーブル入力端子EINがハイ
レベルに変化してイネーブル状態となって、ラッチ回路
4のラッチ内容がそのまま該スリーステートバッファ5
から出力される。
Next, the microcomputer 1 changes the enable signal output terminal EOUT to a high level. This in, becomes an enable state enable input E IN of the three-state buffer 5 is changed to the high level, the latch contents as is the three-state buffer 5 of the latch circuit 4
Output from

以下、マイクロコンピュータ1のイネーブル信号出力
端子EOUTはハイレベルのままで、1単位のデータDを例
えば1m secの周期にて出力し、その出力完了の都度、ス
トローブ信号出力端子STOUTを瞬間的に立上げてから立
下げて、外部IC2から8ビット分のデータをパラレルに
出力する。
Hereinafter, while the enable signal output terminal E OUT of the microcomputer 1 remains at the high level, one unit of data D is output at a cycle of, for example, 1 msec, and every time the output is completed, the strobe signal output terminal ST OUT is momentarily set. And then falls and outputs 8-bit data in parallel from external IC2.

なお、外部IC2のラッチ回路3としてはハイアクティ
ブ形でなくロウアクティブ形もあり、この場合ストロー
ブ信号は通常ハイレベルで、データ送信後一瞬ロウレベ
ルになる。またスリーステートバッファ4としてもハイ
アクティブ形でなくロウアクティブ形もあり、この場合
イネーブル信号は一回目のデータ送信後までハイレベル
でその後ロウレベルを保つことになる。
Note that the latch circuit 3 of the external IC 2 may be of a low active type instead of a high active type. In this case, the strobe signal is normally at a high level, and temporarily becomes a low level after data transmission. Also, the three-state buffer 4 may be of a low active type instead of a high active type. In this case, the enable signal is at a high level until after the first data transmission, and then maintained at a low level.

(発明が解決しようとする課題) しかしながら、マイクロコンピュータ1の出力端子の
使用数を削減したいという観点からすると、上記従来構
成でも、出力ポート拡張のために出力端子を四つも使用
していることから、さらに該拡張のための使用端子数を
削減し、その分他の使用目的のための端子数を確保した
いという要望がある。
(Problems to be Solved by the Invention) However, from the viewpoint of reducing the number of output terminals used in the microcomputer 1, even in the above-described conventional configuration, since four output terminals are used to expand the output port. Further, there is a demand for reducing the number of terminals used for the expansion and securing the number of terminals for other purposes.

本発明は上記事情に鑑みてなされたものであり、その
目的は、出力ポート拡張のためにマイクロコンピュータ
順で使用する端子の数を削減できるシリアル・パラレル
変換回路を提供するにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a serial / parallel conversion circuit capable of reducing the number of terminals used in the order of microcomputers for expanding an output port.

[発明の構成] (課題を解決するための手段) 本発明のシリアル・パラレル変換回路は、データ出力
端子からシリアルデータを出力すると共に、ストローブ
信号出力端子から前記シリアルデータの変換したいパラ
レル出力本数分のデータ数が出力されたところで信号レ
ベルが短時間で2度反転するストローブ信号を出力する
マイクロコンピュータと、 前記データ出力端子に接続されるデータ入力端子及び
前記ストローブ信号出力端子に接続されるストローブ信
号入力端子を備えると共に、出力ポートの出力信号の許
可または禁止を制御するイネーブル信号の入力を受け付
けるイネーブル信号入力端子を備え、前記シリアルデー
タをパラレルに変換する機能を有し、イネーブル信号が
所定レベルで出力信号の出力を許可し反転レベルで禁止
する外部ICと、 入力側が前記ストローブ信号出力端子に接続されてス
トローブ信号のレベル変化を平滑して出力し、出力側が
前記外部ICのイネーブル信号入力端子に接続された平滑
回路と を備えてなるところに特徴を有する。
[Structure of the Invention] (Means for Solving the Problems) A serial / parallel conversion circuit according to the present invention outputs serial data from a data output terminal and outputs the serial data from a strobe signal output terminal by the number of parallel outputs to be converted. A microcomputer that outputs a strobe signal whose signal level is inverted twice in a short time when the number of data is output, a data input terminal connected to the data output terminal, and a strobe signal connected to the strobe signal output terminal An input terminal, and an enable signal input terminal for receiving an input of an enable signal for controlling permission or prohibition of an output signal of an output port; and a function of converting the serial data into parallel, wherein the enable signal has a predetermined level. Enable output signal output and disable at inverted level An external IC and a smoothing circuit having an input side connected to the strobe signal output terminal for smoothing a level change of the strobe signal and outputting the same, and an output side connected to an enable signal input terminal of the external IC. Has features.

(作用) 外部ICにおけるイネーブル入力端子は、電源投入後の
出力データ不定状態を防止するために1単位のデータが
入力されるまではディスイネーブル状態としておく必要
があり、その後はイネーブル状態とするものである。こ
の点を考慮した場合、マイクロコンピュータにおけるス
トローブ信号出力端子はマイクロコンピュータの電源投
入後最初の1単位のデータが出力完了するまでは一定レ
ベル状態にあり、この一定レベル出力をもってディスイ
ネーブル信号に利用することが可能である。しかるに上
記手段によれば、マイクロコンピュータのストローブ信
号出力端子からの出力を外部ICのイネーブル入力端子を
与える構成としているから、ストローブ端子からの出力
をディスイネーブル信号およびイネーブル信号として利
用できるものである。従って、マイクロコンピュータに
おいて出力ポート拡張のために使用する端子の数を削減
できる ところが、ストローブ信号出力端子は2回目からはそ
の出力を周期的にパルス状に変化させる(2度反転させ
る)から、このパルスが外部ICのイネーブル入力端子に
入力されると該イネーブル入力端子が一時的にディスイ
ネーブル状態となってしまう不都合がある。
(Operation) The enable input terminal of the external IC must be in a disabled state until one unit of data is input in order to prevent an output data indefinite state after power-on, and then to an enabled state. It is. In consideration of this point, the strobe signal output terminal of the microcomputer remains at a constant level until the output of the first unit of data is completed after the microcomputer is turned on, and this constant level output is used as a disable signal. It is possible. However, according to the above means, since the output from the strobe signal output terminal of the microcomputer is provided to the enable input terminal of the external IC, the output from the strobe terminal can be used as a disable signal and an enable signal. Therefore, although the number of terminals used for the expansion of the output port can be reduced in the microcomputer, the output of the strobe signal output terminal periodically changes in the form of a pulse (inverted twice) from the second time. When a pulse is input to the enable input terminal of the external IC, there is a disadvantage that the enable input terminal is temporarily disabled.

この点上記手段によれば、マイクロコンピュータのス
トローブ信号出力端子からの出力のレベル変化を平滑回
路によって平滑するから、外部ICのイネーブル入力端子
にパルス波形信号が与えられることはなく、よって、イ
ネーブル変化後にディスイネーブル状態となることはな
く、外部ICからのデータ出力が異常状態となることはな
い。
According to this point, according to the above means, the level change of the output from the strobe signal output terminal of the microcomputer is smoothed by the smoothing circuit, so that the pulse waveform signal is not given to the enable input terminal of the external IC. There will be no disable state later, and the data output from the external IC will not be in an abnormal state.

(実施例) 以下、本発明の一実施例につき第1図ないし第3図を
参照しながら説明する。
(Embodiment) An embodiment of the present invention will be described below with reference to FIGS.

本実施例においては、外部ICの内部構成には従来と変
更がなく、従って、従来と同一部分には同一符号を付し
ており、また、第3図については、本実施例においても
兼用している。
In this embodiment, the internal configuration of the external IC is the same as that of the conventional IC. Therefore, the same parts as those of the conventional IC are denoted by the same reference numerals, and FIG. 3 is also used in this embodiment. ing.

しかして、外部IC2は、第3図に示したように、シフ
トレジスタ3とラッチ回路4とスリーステートバッファ
5とから構成されている。
Thus, the external IC 2 includes the shift register 3, the latch circuit 4, and the three-state buffer 5, as shown in FIG.

シフトレジスタ3はシリアルにデータDが与えられる
とクロックのタイミングにてデータDの内容を判断して
1ビットづつシフトし、8ビット分のデータをパラレル
にラッチ回路4に与える。ラッチ回路4は例えばハイア
クティブ形であり、ストローブ信号入力端子STINがロウ
レベル(反転レベル)の期間中は直前の出力データをラ
ッチし、ハイレベル(所定レベル)の期間中は、上記8
ビット分のデータをそのまま通過させる。スリーステー
トバッファ5は、イネーブル信号入力端子EINが例えば
ロウレベルであるときにディスイネーブル状態となって
各出力端子O1〜O8をハイインピーダンス状態として出力
を禁止し、イネーブル信号入力端子EINがハイレベルで
あるときにイエーブル状態となってラッチ回路4の出力
を各出力端子O1〜O8からそのまま通過させ、すなわち、
出力を許可する。
When the data D is serially supplied, the shift register 3 determines the content of the data D at the timing of the clock, shifts the data D by 1 bit, and supplies the data of 8 bits to the latch circuit 4 in parallel. The latch circuit 4 is, for example, a high active type. The latch circuit 4 latches the immediately preceding output data during a period when the strobe signal input terminal ST IN is at a low level (inverted level).
The bit data is passed as it is. Three-state buffer 5 prohibits the output disable state and turned to the output terminals O 1 ~ O 8 when the enable signal input terminal E IN is, for example, a low level to a high impedance state, the enable signal input terminal E IN When it is at the high level, it becomes enabled and the output of the latch circuit 4 is passed through each output terminal O 1 to O 8 as it is,
Allow output.

しかして第1図には、マイクロコンピュータ9と外部
IC2との接続関係を示している。マイクロコンピュータ
9の電源端子VSS,VDDには外部IC2の電源端子VSS,VDD
接続され、同様に、マイクロコンピュータ9のデータ出
力端子DOUT,クロック出力端子CLKOUTはそれぞれ外部IC2
のデータ入力端子DIN,クロック入力端子CLKINに接続さ
れている。そしてストローブ信号出力端子STOUTは、外
部IC2のストローブ信号入力端子STINに接続している。
さらに、このストローブ信号出力端子STOUTには、イン
バータ10を介して平滑回路11が接続されており、この平
滑回路11の出力側には、外部IC2のイネーブル信号入力
端子EINに接続されている。なお、インバータ10は、GND
ラインと−5Vラインとの間にPNPトランジスタ10aと抵抗
10bと直列に接続して構成されており、その出力点10c
は、ストローブ信号出力端子STOUTがハイレベル(この
場合GNDレベル)となると、ロウレベル(−5V)なり、
ストローブ信号出力端子STOUTがロウレベルとなると、
ハイレベル(GND)となる。上記出力点10cと−5Vライン
との間に、コンデンサ11aおよび抵抗11bから成るところ
の前記平滑回路11が接続されている。なお、このマイク
ロコンピュータ9において出力端子Oaは従来ではイネー
ブル信号出力端子EOUTとして使用していたものに相当す
るが、本実施例では別の使用目的のために使用してい
る。なお、その他の入力端子として符号P1,P2,…Pnを付
した。
FIG. 1 shows the microcomputer 9 and the external device.
This shows the connection relationship with IC2. Power supply terminal V SS of the microcomputer 9, the power supply terminal V SS external IC2, V DD is connected to V DD, Similarly, the data output terminal D OUT of the microcomputer 9, the clock output terminal CLK OUT respectively external IC2
Are connected to the data input terminal D IN and the clock input terminal CLK IN . The strobe signal output terminal ST OUT is connected to the strobe signal input terminal ST IN of the external IC2.
In addition, this strobe signal output terminal ST OUT, smoothing circuit 11 via the inverter 10 is connected to the output side of the smoothing circuit 11 is connected to the enable signal input terminal E IN external IC2 . The inverter 10 is connected to GND
PNP transistor 10a and resistor between line and −5V line
It is configured to be connected in series with 10b, and its output point 10c
Becomes low level (-5V) when the strobe signal output terminal ST OUT becomes high level (GND level in this case),
When the strobe signal output terminal ST OUT goes low,
High level (GND). The smoothing circuit 11 comprising a capacitor 11a and a resistor 11b is connected between the output point 10c and the -5V line. In the microcomputer 9, the output terminal Oa corresponds to the one conventionally used as the enable signal output terminal E OUT , but is used for another purpose in this embodiment. Reference numeral P 1, P 2 as another input terminal, denoted by ... P n.

しかして、マイクロコンピュータ9から外部IC2への
データ転送について述べる。第2図に示すように、リセ
ット状態ではマイクロコンピュータ9は動作停止状態に
あるが、ストローブ信号出力端子STOUTは第1図の抵抗9
aと抵抗9bとによりプルアップされてハイレベルにあ
る。従って、外部IC2においては、ストローブ信号入力
端子STINがハイレベルとされ、また、イネーブル信号入
力端子EINには、インバータ10にて反転されたロウレベ
ル状態となっている。
The data transfer from the microcomputer 9 to the external IC 2 will now be described. As shown in FIG. 2, the microcomputer 9 is in an operation stop state in the reset state, but the strobe signal output terminal ST OUT is connected to the resistor 9 in FIG.
It is pulled up by a and the resistor 9b and is at a high level. Therefore, in the external IC 2, the strobe signal input terminal ST IN is at a high level, and the enable signal input terminal E IN is at a low level inverted by the inverter 10.

いま、電流が投入されてリセットが解除されると、マ
イクロコンピュータ9が内部のプログラムに基づき動作
し、ストローブ信号出力端子STOUTをハイレベル(見掛
上ハイレベル継続)とし、同時に、クロック出力端子CL
KOUTから8ビット分のクロックパルスを出力すると共に
データ出力端子DOUTから8ビット分のデータDが1単位
のデータとして出力する。
Now, when the current is supplied and the reset is released, the microcomputer 9 operates based on the internal program, and sets the strobe signal output terminal ST OUT to a high level (apparently continuing to a high level), and at the same time, the clock output terminal. CL
An 8-bit clock pulse is output from K OUT and 8-bit data D is output as one unit of data from a data output terminal D OUT .

この間、外部IC2のシフトレジスタ3では、リセット
時に不定データが入力データによってシフトされてゆ
く。このときラッチ回路4の状態は不定状態にあるがス
リーステートバッファ5のイネーブル入力端子EINがロ
ウレジスタであってディスイネーブル状態にあり、該ス
リーステートバッファ5はハイインピーダンス状態にあ
る。従って外部IC2の出力端子O1〜O8はいわゆるオープ
ン状態にあって、不定状態の内部受データは出力されな
い。
During this time, in the shift register 3 of the external IC 2, undefined data is shifted by the input data at the time of reset. At this time the state of the latch circuit 4 is in the indefinite state is in the disable state is a enable input terminal E IN is low register state buffer 5, the three-state buffer 5 is in a high impedance state. Therefore, the output terminals O 1 to O 8 of the external IC 2 are in a so-called open state, and internal reception data in an undefined state is not output.

この後、マイクロコンピュータ9は、8ビット分のデ
ータDの出力を完了すると、ストローブ信号出力端子ST
OUTを一瞬ハイレベルにした後ロウレベルに戻す(スト
ローブ信号出力)。これにて、外部IC2のストローブ信
号入力端子STINがロウレベルに変化して、ラッチ回路4
はシフトレジスタ3の状態をラッチして出力する。ま
た、ストローブ信号出力端子STOUTの出力はインバータ1
0にて反転されるが、平滑回路11によって若干の時間遅
れをもってハイレベル信号として外部IC2のイネーブル
信号入力端子EINに与えられる。これにて、スリーステ
ートバッファ5のイネーブル入力端子EINがハイレベル
に変化してイネーブル状態となり、ラッチ回路4のラッ
チ内容がそのまま該スリーステートバッファ5から出力
される。ここまでの説明から判るように、外部IC2は、
1単位のデータDが入力されるまではディスイネーブル
状態とされており、電源投入後の外部ICの内容が不定状
態でのデータ出力が禁止され、最初正規の1単位のデー
タDが出力される。
Thereafter, when the microcomputer 9 completes outputting the data D for 8 bits, the microcomputer 9 outputs the strobe signal output terminal ST.
Return OUT to high level for a moment and then return to low level (strobe signal output). As a result, the strobe signal input terminal ST IN of the external IC 2 changes to low level, and the latch circuit 4
Latches the state of the shift register 3 and outputs it. The output of the strobe signal output terminal ST OUT is
While being inverted by 0, it is given to the enable signal input terminal E IN external IC2 as a high level signal with a slight time delay by the smoothing circuit 11. This at the enable input terminal E IN of the three-state buffer 5 becomes an enable state changes to the high level, the latch content of the latch circuit 4 is directly outputted from the three-state buffer 5. As can be seen from the description so far, the external IC2 is
It is in a disabled state until one unit of data D is input, data output in a state where the content of the external IC is indefinite after power-on is prohibited, and first normal one unit of data D is output. .

以下、マイクロコンピュータ9は、1単位のデータD
を例えば1m secの周期に出力し、その出力完了の都度、
ストローブ信号出力端子STOUTを瞬間的に立上げて立下
げ、外部IC2におけるストローブ信号入力端子STINを間
欠的にパルス状に変化させ、そのストローブ信号STOUT
の出力によって外部IC2から8ビット分のデータをパラ
レルに出力する。
Hereinafter, the microcomputer 9 stores one unit of data D
Is output at a cycle of, for example, 1 msec, and each time the output is completed,
The strobe signal output terminal ST OUT rises and falls instantaneously, and the strobe signal input terminal ST IN in the external IC 2 is intermittently changed into a pulse shape, and the strobe signal ST OUT
Outputs 8-bit data in parallel from the external IC2.

このとき、仮に、外部IC2のイネーブル信号入力端子E
INにおいてもその入力がパルス状に変化すると、スリー
ステートバッファ5がディスイネーブル状態となってし
まい、該外部IC2からの出力が一時的に禁止されるおそ
れがあるが、本実施例では、マイクロコンピュータ9の
ストローブ信号出力端子STOUTからの出力、特に周期的
なレベル変化を平滑回路11によって平滑するから、外部
IC2のイネーブル入力端子EINにはそれまでと同レベル状
態となり、よって、最初のイネーブル変化後にディスイ
ネーブル状態となることはなく、外部IC2からのデータ
出力が禁止状態となることはない。
At this time, if the enable signal input terminal E of the external IC 2 is
If the input of IN also changes in a pulse shape, the three-state buffer 5 is disabled, and there is a possibility that the output from the external IC 2 may be temporarily inhibited. 9, the output from the strobe signal output terminal ST OUT , particularly the periodic level change, is smoothed by the smoothing circuit 11.
The enable input terminal E IN of IC2 becomes the same level state as before, therefore, not be a disable state after the first enable change, not the data output from the external IC2 becomes disabled.

なお、上記実施例では、外部IC2のラッチ回路4とし
てハイアクティブ形を例示したが、これはハイアクティ
ブ形でなくロウアクティブ形であっても良い。またスリ
ーステートバッファ5としてハイアクティブ形を例示し
たが、これはロウアクティブ形でも良い。しかして、外
部ICにおけるラッチ回路とスリーステートバッファとが
ロウアクティブ形とハイアクティブ形である場合、また
はハイアクティブ形とロウアクティブ形である場合に
は、インバータ10は必要としない。従ってこのインバー
タ10は応じて設ければ良い。
In the above-described embodiment, the high active type is illustrated as the latch circuit 4 of the external IC 2, but this may be a low active type instead of the high active type. Although the three-state buffer 5 is of the high active type, it may be of the low active type. Thus, when the latch circuit and the three-state buffer in the external IC are of the low active type and the high active type, or of the high active type and the low active type, the inverter 10 is not required. Therefore, the inverter 10 may be provided accordingly.

その他、本発明は上記実施例に限定されず要旨を逸脱
しない範囲内で種々変更して実施できるものである。
In addition, the present invention is not limited to the above-described embodiment, and can be implemented with various modifications without departing from the scope of the invention.

[発明の効果] 本発明は以上の説明から明らかなように、マイクロコ
ンピュータのストローブ信号出力端子を外部ICのストロ
ーブ信号出力端子に接続し、そして、入力側がマイクロ
コンピュータのストローブ入力端子に接続されて該マイ
クロコンピュータから出力されるストローブ信号のレベ
ル変化を平滑する平滑回路を設け、この平滑回路の出力
側を、外部ICのイネーブル入力端子に接続したことを特
徴とするものであり、これにて、マイクロコンピュータ
のストローブ信号出力端子を外部ICに対するイネーブル
信号出力端子として兼用することができ、よって、出力
ポート拡張のために使用する端子の数を削減でき、しか
もこのような端子兼用構成としながらも、この外部ICの
イネーブル入力端子がマイクロコンピュータ動作中にデ
ィスイネーブル状態となることがなくて外部ICの出力が
禁止状態となることもなく、また、一回目のデータを送
信する前に不足データが出力されることもないという優
れた効果を奏する。
[Effects of the Invention] As is apparent from the above description, the present invention connects the strobe signal output terminal of the microcomputer to the strobe signal output terminal of the external IC, and connects the input side to the strobe input terminal of the microcomputer. A smoothing circuit for smoothing a level change of a strobe signal output from the microcomputer is provided, and an output side of the smoothing circuit is connected to an enable input terminal of an external IC. The strobe signal output terminal of the microcomputer can also be used as an enable signal output terminal for an external IC, so that the number of terminals used for expanding the output port can be reduced. When the enable input terminal of this external IC is It without which without a Buru state output of the external IC becomes inhibited state, also, an excellent effect that not even the missing data is output prior to transmitting the first-time data.

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

第1図ないし第3図は本発明の一実施例を示すもので、
第1図は全体的な電気回路図、第2図はマイクロコンピ
ュータの各出力端子の出力状況および外部ICの各入力端
子の入力状況を示すタイムチャート、第3図は外部ICの
構成を示すブロック図である。第4図および第5図は従
来例を示し、第4図は第1図相当図、第5図はマイクロ
コンピュータの各出力端子の出力状況を示すタイムチャ
ートである。 図面中、2は外部IC、3はシフトレジスタ、4はラッチ
回路、5はスリーステートバッファ、9はマイクロコン
ピュータ、10はインバータ、11は平滑回路を示す。
1 to 3 show an embodiment of the present invention.
1 is an overall electric circuit diagram, FIG. 2 is a time chart showing the output status of each output terminal of the microcomputer and the input status of each input terminal of the external IC, and FIG. 3 is a block diagram showing the configuration of the external IC. FIG. 4 and 5 show a conventional example, FIG. 4 is a diagram corresponding to FIG. 1, and FIG. 5 is a time chart showing an output state of each output terminal of the microcomputer. In the drawing, 2 is an external IC, 3 is a shift register, 4 is a latch circuit, 5 is a three-state buffer, 9 is a microcomputer, 10 is an inverter, and 11 is a smoothing circuit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データ出力端子からシリアルデータを出力
すると共に、ストローブ信号出力端子から前記シリアル
データの変換したいパラレル出力本数分のデータ数が出
力されたところで信号レベルが短時間で2度反転するス
トローブ信号を出力するマイクロコンピュータと、 前記データ出力端子に接続されるデータ入力端子及び前
記ストローブ信号出力端子に接続されるストローブ信号
入力端子を備えると共に、出力ポートの出力信号の許可
または禁止を制御するイネーブル信号の入力を受け付け
るイネーブル信号入力端子を備え、前記シリアルデータ
をパラレルに変換する機能を有し、イネーブル信号が所
定レベルで出力信号の出力を許可し反転レベルで禁止す
る外部ICと、 入力側が前記ストローブ信号出力端子に接続されてスト
ローブ信号のレベル変化を平滑して出力し、出力側が前
記外部ICのイネーブル信号入力端子に接続された平滑回
路と を備えてなることを特徴とするシリアル・パラレル変換
回路。
1. A strobe in which serial data is output from a data output terminal and a signal level is inverted twice in a short time when the number of data corresponding to the number of parallel outputs to be converted is output from a strobe signal output terminal. A microcomputer that outputs a signal; a data input terminal connected to the data output terminal; and a strobe signal input terminal connected to the strobe signal output terminal, and an enable that controls permission or prohibition of an output signal of an output port. An external IC that has an enable signal input terminal for receiving a signal input, has a function of converting the serial data into parallel, enables an output of an output signal at a predetermined level of the enable signal, and prohibits the output of the output signal at an inverted level; Connected to strobe signal output pin to connect strobe signal And a smoothing circuit whose output side is connected to an enable signal input terminal of the external IC.
JP24590990A 1990-09-14 1990-09-14 Serial / parallel conversion circuit Expired - Lifetime JP2786732B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24590990A JP2786732B2 (en) 1990-09-14 1990-09-14 Serial / parallel conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24590990A JP2786732B2 (en) 1990-09-14 1990-09-14 Serial / parallel conversion circuit

Publications (2)

Publication Number Publication Date
JPH04124723A JPH04124723A (en) 1992-04-24
JP2786732B2 true JP2786732B2 (en) 1998-08-13

Family

ID=17140637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24590990A Expired - Lifetime JP2786732B2 (en) 1990-09-14 1990-09-14 Serial / parallel conversion circuit

Country Status (1)

Country Link
JP (1) JP2786732B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100360584C (en) * 2005-01-07 2008-01-09 吉林大学 Method of synthesizing fluorine containing superbranched light wave conductive material based on A2+B3 type monomer reaction

Also Published As

Publication number Publication date
JPH04124723A (en) 1992-04-24

Similar Documents

Publication Publication Date Title
JPH0319740B2 (en)
JPH04274637A (en) Master-slave data transmission system provided with flexible single wiring bus
US5025414A (en) Serial bus interface capable of transferring data in different formats
JP2778222B2 (en) Semiconductor integrated circuit device
US20040008725A1 (en) Method and an interface circuit configurable in two communication protocol modes
US5463756A (en) Memory control unit and associated method for changing the number of wait states using both fixed and variable delay times based upon memory characteristics
WO2000002134A2 (en) Improved inter-device serial bus protocol
US4999807A (en) Data input circuit having latch circuit
JP2786732B2 (en) Serial / parallel conversion circuit
JPH04323746A (en) Microcontroller unit
CN111221769A (en) Single wire read-write communication method
EP1643652A2 (en) Semiconductor device with circuitry for efficient information exchange
US5617433A (en) Serial data transfer apparatus
US20030053573A1 (en) Microcontroller having a transmission-bus-interface
JPH11219305A (en) Device and method for resetting microcomputer
JP4201375B2 (en) Data transfer device
JPH10200586A (en) Data signal transmission method and signal input circuit for semiconductor device
JP3565603B2 (en) Microcontroller system and microcontroller
JP3246454B2 (en) Simultaneous bidirectional input / output circuit and signal transfer method
JP3266111B2 (en) Clock input buffer circuit
JPH02280263A (en) Microprocessor
JP4221239B2 (en) Clock wiring drive circuit
JPH11273380A (en) Lsi operation mode setting signal fetching method and lsi with mode signal fetching function
JPH0454510Y2 (en)
JPH11316736A (en) Processor and data processor using the same