JPH049640Y2 - - Google Patents

Info

Publication number
JPH049640Y2
JPH049640Y2 JP1984131195U JP13119584U JPH049640Y2 JP H049640 Y2 JPH049640 Y2 JP H049640Y2 JP 1984131195 U JP1984131195 U JP 1984131195U JP 13119584 U JP13119584 U JP 13119584U JP H049640 Y2 JPH049640 Y2 JP H049640Y2
Authority
JP
Japan
Prior art keywords
input
signal
circuit
mode
comparator
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
Application number
JP1984131195U
Other languages
Japanese (ja)
Other versions
JPS6146637U (en
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 filed Critical
Priority to JP13119584U priority Critical patent/JPS6146637U/en
Publication of JPS6146637U publication Critical patent/JPS6146637U/en
Application granted granted Critical
Publication of JPH049640Y2 publication Critical patent/JPH049640Y2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Description

【考案の詳細な説明】[Detailed explanation of the idea]

〔考案の技術分野〕 本考案は、シングルチツプセントラルプロセツ
サユニツト(CPU)、マルチチツプCPUなどの動
作モードプログラミングを必要とするマイクロコ
ンピユータシステムのモードプログラミング回路
に関するものである。 〔考案の技術的背景及びその問題点〕 従来この種の回路として第4図に示すようなも
のがある。図において、1はマイクロコンピユー
タシステム(以下マイコンと略記)、2はシステ
ム電源が入つたとき各部に電源を供給する電源回
路、3はマイコン1をイニシヤルクリアするため
そのリセツト入力RSTに入力するリセツト信号
を発生するイニシヤルクリア回路、4は入力IN
の入力信号波形の整形動作を行うコンパレータ
部、5はアナログスイツチ等からなる入力切換回
路、6はモード設定スイツチである。 以上において、システム電源が入り電源回路2
から各部に電源が供給されると、イニシヤルクリ
ア回路3からマイコン1にリセツト信号が入力さ
れる。このリセツト信号が入力されたマイコン1
はその期間の間にポートPを入力にして動作モー
ドの読込みを行う。 このとき入力切換回路5はモード設定スイツチ
6で予め設定された電位に入力を切換えて出力す
る。図示のようにスイツチ6がオフしているとき
には、X0はH入力、X1は不定であり、リセツト
期間にはXからHが出力される。マイコン1はこ
れをポートPより読込み、リセツト期間の終了後
に、設定動作モードに従つて動作する。このリセ
ツト期間終了時には、入力切換回路5へのリセツ
ト入力がなくなつているため、入力を図示X1
設定し、これをXより出力してマイコン1のポー
トPに送出する。 上述した従来の回路において入力切換回路5に
アナログスイツチなどを用いた場合、該切換回路
部の雑音余裕度、伝搬遅延時間、フイードスル、
クロストークなどの影響を受けるため、これらを
考慮した回路設定が必要になる。また、これを
FETのデイスクリート素子により構成したとき、
スペースメリツトが非常に悪くなる。このような
ことは品種が限られているICでも起る。更に、
図において電源回路2から切換回路5に直接給電
しているが、TTLレベル(0V,5V)を扱う場合
には、このレベルを伝達するのに通常はこのレベ
ルより大きなバイアスが必要になるなどの欠点が
あつた。 〔考案の目的〕 本考案は上述した従来のものの欠点を除去する
ためになされたもので、信号入力ポートをモード
設定時の入力としても利用するようにしたマイク
ロコンピユータシステムにおいて、信号入力端、
基準入力端及び出力端を有し、出力端が前記信号
入力ポートに接続されたコンパレータ手段と、モ
ード設定時に、設定モードに応じて前記信号入力
端の電圧を前記基準入力端の電圧に対して設定し
て前記コンパレータ手段の出力端を所定レベルに
固定させ、モード非設定時に、入力信号を前記信
号入力端に入力し、該入力信号に応じた信号を前
記コンパレータ手段の出力端にそのまま出力させ
るコントロール手段とを備えることにより、上記
欠点のないモードプログラミング回路を提供する
ことを目的としている。 〔考案の実施例〕 以下本考案の実施例を図に基づいて説明する。 第1図は本考案の一実施例を示すブロツク図で
あり、図において、11はマイコン、12は電源
回路、13はイニシヤルクリア回路、14はコン
パレータ部であり、これらは第4図中の1〜4に
それぞれ対応している。17は入力コントロール
回路であり、これはイニシヤルクリア回路13か
らリセツト信号が入力されている期間予め設定し
たレベルの信号を出力し、リセツト信号の入力が
ないときには入力INに入力されている信号を出
力する。 以上の構成において、システム電源が入り、電
源回路12から各部に電源が供給されると、イニ
シヤルクリア回路13からマイコン11にリセツ
ト信号が入力される。このリセツト信号の入力さ
れている期間の間、マイコン11はポートPを入
力として動作モードの読込みを行う。このとき同
時に入力コントロール回路17にもリセツト信号
が加えられ、コンパレータ部14の入力をH又は
Lにシヤントする。そしてこのときのコンパレー
タ部14の出力をマイコン11がポートPから読
込み、動作モードの設定を行う。リセツト信号が
なくなるリセツト期間の終了後、マイコン11は
設定された動作モードに従つて動作する。このと
き、入力コントロール回路17は入力INからの
信号そのままコンパレータ部14に伝送し、コン
パレータ部14はこれを波形整形の後マイコン1
1のポートPに入力させる。 第2図はコンパレータ部14と入力コントロー
ル回路17の具体例を示し、この回路の動作を各
部の波形を示す第3図のタイムチヤート図を参照
して以下説明する。 第2図において、今入力コントロール回路17
中のスイツチSWが接点A側にあるとする。この
ような状態において、時点t1でシステム電源が入
り、電源回路12から各部に供給される電圧Vcc
が第3図aに示すように立上り、これに応じてイ
ニシヤルクリア回路13が第3図bに示すように
リセツト信号を発生すると、これがスイツチSW
の接点A、抵抗R1を介してトランジスタQ1のベ
ースに入力される。このためトランジスタQ1
オンし、入力INに入力されている信号(第3図
c)はコンデンサC1、抵抗R3、及びトランジス
タQ1を通じてアースに落されるようになり、コ
ンパレータ部14のコンパレータ14aの反転入
力は略OVにされる。なお、コンパレータ14a
の非反転入力には、抵抗R4,R5により分圧設定
された一定レベル(R4=R5でVcc/2)が加えら
れているため、非反転入力の方が大きくなり、コ
ンパレータ14aの出力はHレベルに固定され
る。上記リセツト信号のない期間はトランジスタ
Q1はオンしていないため、入力INからの信号が
コンパレータ14aの反転入力にそのまま加えら
れ、コンパレータ14aの出力には波形整形され
たものが出力される(第3図d)。 上述の場合とは逆に、リセツト動作時にポート
PにLレベル入力が必要な場合には、スイツチ
SWを接点B側に倒せばよい。スイツチSWが接
点B側にあると、リセツト信号がインバータ17
aにより反転された後抵抗R2を介してトランジ
スタQ2のベースに入力され、これに応じてトラ
ンジスタQ2がオンされる。このためコンパレー
タ14aの反転入力はHレベル(5V)となるが、
これはVcc/2より大きく、従つてコンパレータ
14aの出力はLレベルに固定される。この場合
には、リセツト期間のポートPの入力は第3図d
に点線で示すようになる。 ところで、動作モード設定とは、例えば下表に
示すようにマイコンのCPUの動作設定を行うこ
とをいう。
[Technical Field of the Invention] The present invention relates to a mode programming circuit for a microcomputer system that requires operational mode programming of a single-chip central processor unit (CPU), a multi-chip CPU, and the like. [Technical background of the invention and its problems] A conventional circuit of this type is shown in FIG. 4. In the figure, 1 is a microcomputer system (hereinafter abbreviated as microcomputer), 2 is a power supply circuit that supplies power to each part when the system power is turned on, and 3 is a reset input to the reset input RST to initial clear the microcomputer 1. Initial clear circuit that generates a signal, 4 is input IN
5 is an input switching circuit consisting of an analog switch and the like, and 6 is a mode setting switch. In the above, the system power is turned on and the power supply circuit 2
When power is supplied to each section, a reset signal is input from the initial clear circuit 3 to the microcomputer 1. Microcomputer 1 to which this reset signal is input
During that period, the port P is input and the operation mode is read. At this time, the input switching circuit 5 switches the input to a potential preset by the mode setting switch 6 and outputs it. As shown in the figure, when the switch 6 is off, X0 is an H input, X1 is undefined, and during the reset period, an H is output from X. The microcomputer 1 reads this from the port P, and after the reset period ends, operates according to the set operation mode. At the end of this reset period, since there is no longer any reset input to the input switching circuit 5, the input is set to X1 shown in the figure, which is output from X and sent to port P of the microcomputer 1. In the conventional circuit described above, when an analog switch or the like is used as the input switching circuit 5, the noise margin, propagation delay time, feedthrough, etc. of the switching circuit section are
Since it is affected by crosstalk and other factors, circuit settings must take these into account. Also, this
When configured with FET discrete elements,
Space benefits will be very poor. This kind of thing also happens with ICs where the variety is limited. Furthermore,
In the figure, power is directly supplied from the power supply circuit 2 to the switching circuit 5, but when handling TTL levels (0V, 5V), a bias larger than this level is normally required to transmit this level. There were flaws. [Purpose of the invention] The present invention has been made in order to eliminate the drawbacks of the conventional ones mentioned above.In a microcomputer system in which the signal input port is also used as an input for mode setting, the signal input terminal,
a comparator means having a reference input terminal and an output terminal, the output terminal of which is connected to the signal input port; and at the time of mode setting, the voltage of the signal input terminal is set relative to the voltage of the reference input terminal according to the setting mode; setting to fix the output terminal of the comparator means at a predetermined level, input an input signal to the signal input terminal when the mode is not set, and output a signal corresponding to the input signal as it is to the output terminal of the comparator means. It is an object of the present invention to provide a mode programming circuit which does not have the above drawbacks by comprising a control means. [Embodiments of the invention] Examples of the invention will be described below based on the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 11 is a microcomputer, 12 is a power supply circuit, 13 is an initial clear circuit, and 14 is a comparator section. 1 to 4 respectively. 17 is an input control circuit, which outputs a signal at a preset level while the reset signal is input from the initial clear circuit 13, and outputs the signal input to the input IN when the reset signal is not input. Output. In the above configuration, when the system power is turned on and power is supplied to each part from the power supply circuit 12, a reset signal is inputted from the initial clear circuit 13 to the microcomputer 11. During the period during which this reset signal is being input, the microcomputer 11 uses the port P as an input to read the operating mode. At this time, a reset signal is also applied to the input control circuit 17 to shunt the input of the comparator section 14 to H or L. Then, the microcomputer 11 reads the output of the comparator section 14 at this time from the port P, and sets the operation mode. After the reset period in which the reset signal disappears, the microcomputer 11 operates according to the set operation mode. At this time, the input control circuit 17 transmits the signal from the input IN to the comparator section 14 as it is, and the comparator section 14 shapes the waveform and then sends the signal to the microcomputer 1.
input to port P of 1. FIG. 2 shows a specific example of the comparator section 14 and the input control circuit 17, and the operation of this circuit will be described below with reference to the time chart of FIG. 3 showing waveforms of each section. In FIG. 2, the current input control circuit 17
Assume that the switch SW inside is on the contact A side. In this state, the system power is turned on at time t1 , and the voltage Vcc supplied from the power supply circuit 12 to each part
rises as shown in FIG. 3a, and in response, the initial clear circuit 13 generates a reset signal as shown in FIG. 3b, which triggers the switch SW.
is input to the base of the transistor Q 1 via the contact A of and the resistor R 1 . Therefore, the transistor Q 1 is turned on, and the signal input to the input IN (FIG. 3 c) is grounded through the capacitor C 1 , the resistor R 3 , and the transistor Q 1 . The inverting input of the comparator 14a is set to approximately OV. Note that the comparator 14a
Since a constant level (R 4 = R 5 = V cc /2) set by the voltage division by resistors R 4 and R 5 is applied to the non-inverting input of the comparator, the non-inverting input becomes larger and the comparator The output of 14a is fixed at H level. During the period without the above reset signal, the transistor
Since Q1 is not turned on, the signal from the input IN is directly applied to the inverting input of the comparator 14a, and the waveform-shaped signal is output from the comparator 14a (Fig. 3d). Contrary to the above case, if L level input is required to port P during reset operation, the switch
Simply move the SW to the contact B side. When the switch SW is on the contact B side, the reset signal is sent to the inverter 17.
After being inverted by a, the signal is input to the base of the transistor Q2 via the resistor R2 , and the transistor Q2 is turned on accordingly. Therefore, the inverting input of the comparator 14a becomes H level (5V),
This is larger than V cc /2, so the output of comparator 14a is fixed at L level. In this case, the input to port P during the reset period is shown in Figure 3d.
as shown by the dotted line. By the way, the operation mode setting refers to setting the operation of the CPU of the microcomputer, as shown in the table below, for example.

〔考案の効果〕[Effect of idea]

上述のように、信号入力ポートをモード設定時
の入力としても利用するようにしたマイクロコン
ピユータシステムにおいて、動作モード設定をコ
ンパレータとその入力をコントロールするコント
ロール回路とにより構成しているため、 信号入力の切換回路(FET、アナログスイ
ツチ等)がなく、これによる雑音、伝搬遅延、
フイードスルー、クロストーク等の影響が除去
され、通常動作時も入出力にコントロール回路
の影響を与えない。 基本的には抵抗、トランジスタ各1ケで構成
可能であるため、スペースメリツトが良い。 コントロール回路に特別なバイアスを与える
等の考慮が不要であり、故障、誤動作の確率も
非常に少なくなる。 等の効果が得られる。
As mentioned above, in a microcomputer system in which the signal input port is also used as an input for mode setting, the operation mode setting is configured by a comparator and a control circuit that controls its input, so the signal input There is no switching circuit (FET, analog switch, etc.), which causes noise, propagation delay,
The effects of feed-through, crosstalk, etc. are eliminated, and the input/output is not affected by the control circuit even during normal operation. Basically, it can be configured with one resistor and one transistor, so it has good space advantages. There is no need to consider giving a special bias to the control circuit, and the probability of failure or malfunction is extremely reduced. Effects such as this can be obtained.

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

第1図は本考案による回路の原理を示すブロツ
ク図、第2図は第1図中の一部の具体的回路を示
す回路図、第3図は第1図及び第2図中の各部の
波形を示すタイムチヤート図、第4図は従来の回
路例を示すブロツク図である。 11……マイクロコンピユータ、13……イニ
シヤルクリア回路、14……コンパレータ部、1
7……入力コントロール回路。
Fig. 1 is a block diagram showing the principle of the circuit according to the present invention, Fig. 2 is a circuit diagram showing a part of the specific circuit in Fig. 1, and Fig. 3 shows the various parts in Figs. 1 and 2. A time chart showing waveforms is shown, and FIG. 4 is a block diagram showing an example of a conventional circuit. 11... Microcomputer, 13... Initial clear circuit, 14... Comparator section, 1
7...Input control circuit.

Claims (1)

【実用新案登録請求の範囲】 信号入力ポートをモード設定時の入力としても
利用するようにしたマイクロコンピユータシステ
ムにおいて、 信号入力端、基準入力端及び出力端を有し、出
力端が前記信号入力ポートに接続されたコンパレ
ータ手段と、 モード設定時に、設定モードに応じて前記信号
入力端の電圧を前記基準入力端の電圧に対して設
定して前記コンパレータ手段の出力端を所定レベ
ルに固定させ、モード非設定時に、入力信号を前
記信号入力端に入力し、該入力信号に応じた信号
を前記コンパレータ手段の出力端にそのまま出力
させるコントロール手段とを備える、 ことを特徴とするモードプログラミング回路。
[Claim for Utility Model Registration] A microcomputer system in which a signal input port is also used as an input when setting a mode, which has a signal input end, a reference input end, and an output end, and the output end is connected to the signal input port. a comparator means connected to a mode; and when setting a mode, the voltage at the signal input terminal is set with respect to the voltage at the reference input terminal according to the setting mode, and the output terminal of the comparator means is fixed at a predetermined level; A mode programming circuit comprising: control means for inputting an input signal to the signal input terminal and outputting a signal corresponding to the input signal as is to the output terminal of the comparator means when not set.
JP13119584U 1984-08-31 1984-08-31 Mode programming circuit Granted JPS6146637U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13119584U JPS6146637U (en) 1984-08-31 1984-08-31 Mode programming circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13119584U JPS6146637U (en) 1984-08-31 1984-08-31 Mode programming circuit

Publications (2)

Publication Number Publication Date
JPS6146637U JPS6146637U (en) 1986-03-28
JPH049640Y2 true JPH049640Y2 (en) 1992-03-10

Family

ID=30689789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13119584U Granted JPS6146637U (en) 1984-08-31 1984-08-31 Mode programming circuit

Country Status (1)

Country Link
JP (1) JPS6146637U (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5474328A (en) * 1977-11-26 1979-06-14 Fujitsu Ltd Data processor
JPS57120138A (en) * 1981-01-19 1982-07-27 Fujitsu Ten Ltd Working mode designating circuit for microprocessor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5474328A (en) * 1977-11-26 1979-06-14 Fujitsu Ltd Data processor
JPS57120138A (en) * 1981-01-19 1982-07-27 Fujitsu Ten Ltd Working mode designating circuit for microprocessor

Also Published As

Publication number Publication date
JPS6146637U (en) 1986-03-28

Similar Documents

Publication Publication Date Title
JPH049640Y2 (en)
JPS62199114A (en) Analog-digital hybrid integrated circuit
JPH0332113Y2 (en)
JPH0363764B2 (en)
KR880000581Y1 (en) Compact disc player
JP2517538Y2 (en) Bistable circuit
JPH0229117A (en) Reset circuit
JPS5937877Y2 (en) Bus driver malfunction prevention circuit
KR860003524Y1 (en) Reset circuit of microprocessor
KR900002156Y1 (en) Driving control circuit for electronic ranges
SU847511A1 (en) Semiconductor relay
JPS60116501U (en) Control signal switching circuit
JPS6115444U (en) Failure monitoring device for control circuits of water heaters, etc.
JPS619931U (en) Reset signal generation circuit
JPH01194713A (en) Semiconductor integrated circuit device
JPS6040132U (en) Phase switching circuit
JPS60125448U (en) Remote controller for water heater
JPS59100332U (en) Power supply voltage control circuit
JPS6088625U (en) Temperature compensated automatic level control circuit
JPH0254694B2 (en)
JPS6162222A (en) Delay circuit
JPS6116634U (en) Microcomputer operation control circuit
JPS6359113A (en) Switch input circuit
KR930017030A (en) Battery backup circuit
JPS5854721A (en) Monostable multivibrator