JPH05291932A - Electronic circuit - Google Patents
- ️Fri Nov 05 1993
【0001】[0001]
【産業上の利用分野】本発明は、電子回路に関し、特に
集積化された電子回路に関する。FIELD OF THE INVENTION The present invention relates to electronic circuits, and more particularly to integrated electronic circuits.
【0002】[0002]
【従来の技術】小型化が要求される集積回路の開発にお
いて、入出力端子の数はパッケージのサイズやコストな
どに大きく影響するため、できる限り少なくすることが
理想である。2. Description of the Related Art In the development of an integrated circuit which is required to be miniaturized, the number of input / output terminals has a great influence on the size and cost of the package.
【0003】ところが、回路が集積され高機能になれば
なるほど入出力信号の数が増えることが多い、また、回
路に汎用性を持たせて外部から動作モード等を設定でき
るようにすることで設計変更のリスクを減らすようなこ
とも行われているが、このような場合は設定用の外部端
子の追加が必要となる。However, as the circuits are integrated and have higher functions, the number of input / output signals often increases, and the circuits are designed to have versatility so that operation modes and the like can be set from the outside. It is also attempted to reduce the risk of changes, but in such cases it is necessary to add an external terminal for setting.
【0004】そのため、外部端子の数を最小限にとどめ
るために、動作モード等の初期設定データはCPU(中
央処理装置)やメモリなどからシリアルに設定すること
が一般的である。Therefore, in order to keep the number of external terminals to a minimum, the initial setting data such as the operation mode is generally set serially from a CPU (central processing unit) or a memory.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、初期設
定データをシリアルに設定する場合、少なくとも2本
(シリアルデータとシリアルクロック)の外部端子は必
要で、更にCPUやメモリなどの部品追加が必要とな
る。また、データ設定に要する時間だけ回路の起動が遅
れるという欠点もある。However, when the initial setting data is set to be serial, at least two (serial data and serial clock) external terminals are required, and it is also necessary to add parts such as a CPU and a memory. . Further, there is a drawback that the circuit startup is delayed by the time required for data setting.
【0006】本発明の電子回路はこのような課題に着目
してなされたものであり、その目的とするところは、外
部端子の追加を必要とせずに外部からの初期設定が可能
な電子回路を提供することにある。The electronic circuit of the present invention has been made in view of such a problem, and an object thereof is to provide an electronic circuit which can be initialized from the outside without requiring the addition of an external terminal. To provide.
【0007】[0007]
【課題を解決するための手段】上記の目的を達成するた
めに、本発明の電子回路は、所定の初期化信号によって
初期化される内部回路と、この内部回路の出力に接続さ
れ、入力状態と出力状態の2つの状態をとる双方向外部
バッファと、この双方向外部バッファの入力状態におい
て、前記双方向外部バッファの出力端子に外部設定され
る論理レベルを、前記初期化信号のアクティブ期間から
インアクティブ期間への遷移エッジでデータとしてラッ
チし、前記内部回路へ出力するラッチ回路と、前記初期
化信号のアクティブ期間及びアクティブ期間からインア
クティブ期間への遷移後所定の期間は前記双方向外部バ
ッファを入力状態に保持し、その後、出力状態に切り換
える切り換え手段とを具備する。In order to achieve the above object, an electronic circuit of the present invention is connected to an internal circuit initialized by a predetermined initialization signal and an output of the internal circuit, and has an input state. And an output state, and a logic level externally set to the output terminal of the bidirectional external buffer in the input state of the bidirectional external buffer from the active period of the initialization signal. A latch circuit that latches as data at the transition edge to the inactive period and outputs it to the internal circuit, and the bidirectional external buffer for a predetermined period after the active period of the initialization signal and the transition from the active period to the inactive period. To an input state and then to an output state.
【0008】[0008]
【作用】すなわち、本発明の電子回路においては、双方
向外部バッファを用い、初期化信号のアクティブ期間及
びアクティブ期間からインアクティブ期間への遷移後所
定の期間は前記双方向外部バッファを入力状態に保持
し、その後、出力状態に切り換える。That is, in the electronic circuit of the present invention, the bidirectional external buffer is used, and the bidirectional external buffer is kept in the input state for a predetermined period after the active period of the initialization signal and the transition from the active period to the inactive period. Hold and then switch to the output state.
【0009】[0009]
【実施例】以下に本発明の電子回路の一実施例を図面を
参照して説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the electronic circuit of the present invention will be described below with reference to the drawings.
【0010】図1は一実施例を示すブロック図である。
同図において、初期化信号は内部回路2の初期化を目的
とする信号で、外部から入力するか、内部において自己
発生する。FIG. 1 is a block diagram showing an embodiment.
In the figure, an initialization signal is a signal for the purpose of initializing the internal circuit 2 and is either input from the outside or internally generated internally.
【0011】初期化信号は、内部回路2に入力され内部
回路2の初期化を行うと同時に、切り換え手段としての
遅延回路1を介して双方向外部バッファ3の入出力の切
り換えを行う。すなわち、双方向外部バッファ3は、遅
延回路1によって遅延された初期化信号のアクティブ・
レベルで入力、インアクティブ・レベルで出力状態とさ
れる。すなわち、双方向外部バッファ3は、初期化後の
所定の時間(遅延回路1の遅延時間で決定する)までは
入力状態で、その後、出力状態に切り換わる。双方向外
部バッファ3が入力状態にある場合、出力信号はハイイ
ンピーダンス状態となるため、プルアップ抵抗5もしく
はプルダウン抵抗6などを用いて、外部から出力信号を
ハイ・レベルかロー・レベルに固定することができる。The initialization signal is input to the internal circuit 2 to initialize the internal circuit 2 and, at the same time, to switch the input / output of the bidirectional external buffer 3 via the delay circuit 1 as a switching means. That is, the bidirectional external buffer 3 has the active signal of the initialization signal delayed by the delay circuit 1.
It is input at level and output at inactive level. That is, the bidirectional external buffer 3 is in the input state until a predetermined time after initialization (determined by the delay time of the delay circuit 1), and then switched to the output state. When the bidirectional external buffer 3 is in the input state, the output signal is in a high impedance state, so that the output signal is externally fixed to a high level or a low level by using the pull-up resistor 5 or the pull-down resistor 6. be able to.
【0012】外部で設定されたレベルは双方向外部バッ
ファ3を介して回路内に取り込まれ、初期化信号の立ち
上がりエッジでラッチ手段としてのフリップフロップ4
にラッチされて、初期設定データとして内部回路2の制
御に用いる。以下に図1の回路の動作を図2のタイミン
グチャートを参照して説明する。The level set externally is taken into the circuit via the bidirectional external buffer 3, and the flip-flop 4 as a latch means at the rising edge of the initialization signal.
And is used for controlling the internal circuit 2 as initial setting data. The operation of the circuit of FIG. 1 will be described below with reference to the timing chart of FIG.
【0013】この実施例では、初期化信号はロー・アク
ティブ(ロー・レベルで初期化)とする。図2に示すよ
うに、初期化信号は遅延回路1によってΔtだけ遅延さ
れる。この遅延回路1からの出力によって双方向外部バ
ッファ3の状態が制御される。すなわち、遅延回路1の
出力がロー・レベルの期間は双方向外部バッファ3が入
力状態に、遅延回路1の出力がハイ・レベルの期間は双
方向外部バッファ3が出力状態に切り換えられる。In this embodiment, the initialization signal is low active (initialization at low level). As shown in FIG. 2, the initialization signal is delayed by the delay circuit 1 by Δt. The output of the delay circuit 1 controls the state of the bidirectional external buffer 3. That is, the bidirectional external buffer 3 is switched to the input state while the output of the delay circuit 1 is low level, and the bidirectional external buffer 3 is switched to the output state while the output of the delay circuit 1 is high level.
【0014】従って、双方向外部バッファ3は、初期化
信号がロー・レベルからハイ・レベルに変化してΔt遅
れて入力状態から出力状態に切り換わる。双方向外部バ
ッファ3からの出力は、初期化信号の立ち上がりエッジ
でフリップフロップ4にラッチされるため、Δtが十分
であれば、双方向外部バッファ3が入力状態の期間に外
部設定される初期設定データを確実に取り込むことがで
きる。Therefore, in the bidirectional external buffer 3, the initialization signal changes from the low level to the high level and is switched from the input state to the output state with a delay of Δt. The output from the bidirectional external buffer 3 is latched by the flip-flop 4 at the rising edge of the initialization signal. Therefore, if Δt is sufficient, the bidirectional external buffer 3 is externally set during the input state. Data can be captured reliably.
【0015】すなわち、Δtはフリップフロップ4のデ
ータ・ホールド時間を満足するものであればよく(一般
的には数ナノ〜数十ナノ秒)、初期化信号による回路初
期化後、直ちに双方向外部バッファ3は出力状態とな
り、回路を起動することができる。上記実施例におい
て、初期化信号はロー・アクティブとして説明したが、
ハイ・アクティブとした場合も同様である。That is, Δt has only to satisfy the data hold time of the flip-flop 4 (generally, a few nanoseconds to a few tens of nanoseconds), and immediately after the circuit is initialized by the initialization signal, the bidirectional external signal is output. The buffer 3 is in the output state and can start the circuit. Although the initialization signal is described as low active in the above embodiment,
The same applies to the case of high active.
【0016】その場合、双方向外部バッファ3は、遅延
回路1の出力がハイ・レベルのとき入力状態、遅延回路
1の出力がロー・レベルの期間で出力状態に切り換わ
る。また、フリップフロップ4は、初期化信号の立ち下
がりでデータをラッチする。In this case, the bidirectional external buffer 3 switches to the input state when the output of the delay circuit 1 is at the high level and to the output state when the output of the delay circuit 1 is at the low level. The flip-flop 4 latches data at the falling edge of the initialization signal.
【0017】[0017]
【発明の効果】以上詳述したように、本発明において
は、出力端子と初期設定データ用の入力端子を共用する
ことによって、外部端子の追加を必要とせずに外部から
の初期設定を可能としている。また、設定されるデータ
は初期化完了後直ちに有効となるため、初期化完了後速
やかに回路を起動できるという効果をもつ。As described in detail above, according to the present invention, by sharing the output terminal and the input terminal for the initialization data, it is possible to perform the external initialization without adding an external terminal. There is. Further, since the data to be set becomes valid immediately after the initialization is completed, there is an effect that the circuit can be activated immediately after the initialization is completed.
【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】図1に示す回路の動作を説明するためのタイミ
ングチャートである。FIG. 2 is a timing chart for explaining the operation of the circuit shown in FIG.
1…遅延回路、2…内部回路、3…双方向外部バッフ
ァ、4…フリップフロップ、5…プルアップ抵抗、6…
プルダウン抵抗。1 ... Delay circuit, 2 ... Internal circuit, 3 ... Bidirectional external buffer, 4 ... Flip-flop, 5 ... Pull-up resistor, 6 ...
Pull-down resistance.