JPH0726753Y2 - Microcomputer signal input circuit - Google Patents

Microcomputer signal input circuit

Info

Publication number
JPH0726753Y2
JPH0726753Y2 JP1988107147U JP10714788U JPH0726753Y2 JP H0726753 Y2 JPH0726753 Y2 JP H0726753Y2 JP 1988107147 U JP1988107147 U JP 1988107147U JP 10714788 U JP10714788 U JP 10714788U JP H0726753 Y2 JPH0726753 Y2 JP H0726753Y2
Authority
JP
Japan
Prior art keywords
signal
input
input contact
switching transistor
microcomputer
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
JP1988107147U
Other languages
Japanese (ja)
Other versions
JPH0228147U (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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP1988107147U priority Critical patent/JPH0726753Y2/en
Publication of JPH0228147U publication Critical patent/JPH0228147U/ja
Application granted granted Critical
Publication of JPH0726753Y2 publication Critical patent/JPH0726753Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【考案の詳細な説明】 [産業上の利用分野] 本考案は、入力接点のオン、オフ信号を読み取り用タイ
ミング信号に基づいて取り込むマイクロコンピュータの
信号入力回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention relates to a signal input circuit of a microcomputer for fetching ON / OFF signals of input contacts based on a timing signal for reading.

[従来の技術] 従来、入力接点のオン、オフ信号を読み取り用タイミン
グ信号に基づいて取り込むこの種のマイクロコンピュー
タの信号入力回路は、入力接点に抵抗を介して電池電源
電圧を印加して入力接点の両端電圧に基づいてオン、オ
フ状態を検出し、この入力接点の両端電圧を、電池駆動
されるマイクロコンピュータの信号出力端子から出力さ
れる読み取り用タイミング信号によってサンプリングす
るサンプリング回路を介してマイクロコンピュータの信
号入力端子に入力していた。
[Prior Art] Conventionally, a signal input circuit of a microcomputer of this kind, which takes in an ON / OFF signal of an input contact on the basis of a timing signal for reading, uses a battery power source voltage via a resistor to the input contact to The on / off state is detected based on the voltage across both ends of the microcomputer, and the voltage across this input contact is sampled by a timing signal for reading output from the signal output terminal of the battery-driven microcomputer. Was being input to the signal input terminal of.

[考案が解決しようとする課題] しかしながら、上述の従来例にあっては、入力接点がオ
ンしている場合に、常に電池電源から入力接点を介して
検出電流が流れることになるので、平均消費電流が多く
なってしまい、発熱が大きくなるとともに、電池寿命が
短くなるという問題があった。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional example, when the input contact is on, the detection current always flows from the battery power source through the input contact, so that the average consumption is reduced. There is a problem that the current increases, the heat generation increases, and the battery life shortens.

本考案は上記の点に鑑みて為されたものであり、その目
的とするところは、平均消費電流を少なくすることがで
き、発熱が小さく、電池寿命を長くすることができるマ
イクロコンピュータの信号入力回路を提供することにあ
る。
The present invention has been made in view of the above points, and an object thereof is to reduce the average current consumption, generate less heat, and prolong the battery life. To provide a circuit.

[課題を解決するための手段] 本考案のマイクロコンピュータの信号入力回路は、電池
駆動されるマイクロコンピュータの信号出力端子から出
力される読み取り用タイミング信号に基づいて入力接点
状態を検出して信号入力端子に取り込むようにしたマイ
クロコンピュータの信号入力回路において、上記信号出
力端子と上記信号入力端子との間に接続したスイッチン
グトランジスタと、コンデンサと抵抗との直列回路の一
端を上記信号出力端子に接続しコンデンサと抵抗との接
続点よりスイッチングトランジスタにバイアスを与える
バイアス回路と、バイアス回路に直列に接続されオン時
に読み取り用タイミング信号が発生するとバイアス回路
に通電してスイッチングトランジスタを導通させる入力
接点とを備えるものである。
[Means for Solving the Problems] A signal input circuit of a microcomputer of the present invention detects an input contact state based on a reading timing signal output from a signal output terminal of a battery-driven microcomputer, and inputs a signal. In a signal input circuit of a microcomputer adapted to be taken into a terminal, a switching transistor connected between the signal output terminal and the signal input terminal and one end of a series circuit of a capacitor and a resistor are connected to the signal output terminal. A bias circuit that applies a bias to the switching transistor from the connection point of the capacitor and the resistor, and an input contact that is connected in series to the bias circuit and that energizes the bias circuit when the read timing signal is generated to turn on the switching transistor It is a thing.

[作用] 本考案は上述のように構成されており、読み取り用タイ
ミング信号に基づいて入力接点の状態を検出して取り込
むようにしたマイクロコンピュータの信号入力回路にお
いて、マイクロコンピュータの信号出力端子と信号入力
端子との間にスイッチングトランジスタを接続し、コン
デンサと抵抗と入力接点とを直列に接続した直列回路の
コンデンサと抵抗との接続点からスイッチングトランジ
スタにバイアスを与えるようにしたものであり、読み取
り時にのみ入力接点に電流が流れるようになっているの
で、平均消費電流を少なくすることができ、発熱が小さ
く、電池寿命を長くすることができるようになってい
る。
[Operation] The present invention is configured as described above, and in the signal input circuit of the microcomputer which detects and takes in the state of the input contact based on the timing signal for reading, the signal output terminal of the microcomputer and the signal A switching transistor is connected between the input terminal and the switching transistor is biased from the connection point between the capacitor and the resistor in the series circuit in which the capacitor, the resistor and the input contact are connected in series. Since the current flows only through the input contact, the average current consumption can be reduced, heat generation can be reduced, and the battery life can be extended.

また、コンデンサと抵抗との直列回路よりなるバイアス
回路に入力接点を直列に接続しているから、入力接点の
オン時に読み取り用タイミング信号が発生すると、コン
デンサと抵抗との接続点の電圧が微分波形になって入力
接点には瞬間的に大きな電流を流すことができる。すな
わち、上述のように平均消費電流を小さくしながらも、
入力接点に電流が流れ始める瞬間にのみ比較的大きな電
流を流して、入力接点の表面酸化物などを除去すること
ができるのであって、結果的に入力接点の接触不良を防
止することができる。
Also, since the input contact is connected in series to the bias circuit consisting of the series circuit of the capacitor and the resistor, when the timing signal for reading is generated when the input contact is turned on, the voltage at the connection point of the capacitor and the resistor is differentiated. As a result, a large current can be momentarily applied to the input contact. That is, while reducing the average current consumption as described above,
Only when the current starts to flow to the input contact, a relatively large current can be passed to remove the surface oxide and the like of the input contact, and as a result, the contact failure of the input contact can be prevented.

[実施例] 第1図は本考案一実施例を示すもので、電池Eにて駆動
されるマイクロコンピュータのMCの信号出力端子O1から
出力される読み取り用タイミング信号Voに基づいて入力
接点SW状態を検出して信号入力端子K1に取り込むように
したマイクロコンピュータMCの信号入力回路において、
読み取り用タイミング信号Voをバイアス電圧として動作
するスイッチングトランジスタQを用いて形成されるス
イッチング回路SCの入力端に入力接点SWを接続し、上記
スイッチング回路SC出力をマイクロコンピュータMCの信
号入力端子K1に入力したものである。実施例にあって
は、スイッチング回路SCは、スイッチングトランジスタ
Qと、ダイオードDと、コンデンサCと、抵抗R1〜R3
で形成されており、スイッチングトランジスタQのコレ
クタ出力が入力接点SWの状態検出信号Vkとして信号入力
端子K1に入力されている。なお、マイクロコンピュータ
MCは、図示した入出力端子O1,K1の他に、複数個の信号
出力端子および信号入力端子を有している。また、信号
出力端子O1から出力される読み取り用タイミング信号Vo
は、プログラムによって適当に設定されたタイミング信
号である。
[Embodiment] FIG. 1 shows an embodiment of the present invention, in which an input contact SW based on a read timing signal Vo output from a signal output terminal O 1 of an MC of a microcomputer driven by a battery E. In the signal input circuit of the microcomputer MC that detects the state and captures it at the signal input terminal K 1 ,
An input contact SW is connected to an input end of a switching circuit SC formed by using a switching transistor Q that operates by using a reading timing signal Vo as a bias voltage, and the output of the switching circuit SC is connected to a signal input terminal K 1 of a microcomputer MC. It is what you entered. In the embodiment, the switching circuit SC is formed of the switching transistor Q, the diode D, the capacitor C, and the resistors R 1 to R 3, and the collector output of the switching transistor Q is the state of the input contact SW. It is input to the signal input terminal K 1 as the detection signal Vk. Note that a microcomputer
The MC has a plurality of signal output terminals and signal input terminals in addition to the illustrated input / output terminals O 1 and K 1 . Also, the reading timing signal Vo output from the signal output terminal O 1
Is a timing signal appropriately set by the program.

ところで、上記構成では、コンデンサCと抵抗R1とはス
イッチングトランジスタQにバイアスを与えるバイアス
回路を構成し、このバイアス回路にダイオードDを介し
て入力接点SWを接続してある。ダイオードDは、外部か
らのノイズやサージに対する入力保護の目的で設けてあ
る。このようなダイオードDが存在すると、入力接点SW
をオンにしても抵抗R1とコンデンサCとの接続点の電位
Vbが0Vにならず、少なくともダイオードDの順方向降下
電圧(約0.6V)だけ電位Vbが高くなる。また、入力接点
SWのオン抵抗による電圧降下が生じると電位Vbはさらに
上昇することになる。このように、入力保護のためにダ
イオードDを設けると、電位Vbを十分に引き下げること
ができない場合があるが、本実施例では抵抗R1とコンデ
ンサCとの接続点と、pnp型のスイッチングトランジス
タQのベースとの間に抵抗R3を挿入した構成を採用して
いることにより、抵抗R1と抵抗R3とを適宜設定すれば、
入力接点SWのオン時にスイッチングトランジスタQを確
実にオンにすることができる。
By the way, in the above-mentioned configuration, the capacitor C and the resistor R 1 constitute a bias circuit for applying a bias to the switching transistor Q, and the input contact SW is connected to this bias circuit via the diode D. The diode D is provided for the purpose of input protection against noise and surge from the outside. If such a diode D exists, the input contact SW
Even if the switch is turned on, the potential at the connection point between the resistor R 1 and the capacitor C
Vb does not become 0V, but the potential Vb increases by at least the forward voltage drop of the diode D (about 0.6V). Also, the input contact
If a voltage drop occurs due to the ON resistance of SW, the potential Vb will rise further. As described above, when the diode D is provided for input protection, the potential Vb may not be sufficiently lowered, but in the present embodiment, the connection point between the resistor R 1 and the capacitor C and the pnp type switching transistor. By adopting the configuration in which the resistor R 3 is inserted between the base of Q, if the resistors R 1 and R 3 are set appropriately,
The switching transistor Q can be reliably turned on when the input contact SW is turned on.

以下、実施例の動作について説明する。第2図は動作を
示す波形図であり、同図(a)は入力接点SWのオン、オ
フ状態、同図(b)は読み取り用タイミング信号Vo、同
図(c)は入力接点SWの両端電圧Va、同図(d)はスイ
ッチングトランジスタQのベース入力電圧Vb、同図
(e)は状態検出信号Vk(抵抗R2に流れる電流i)を示
すものである。いま、入力接点SWがオフのとき、読み取
り用タイミング信号VoがコンデンサC、抵抗R1およびダ
イオードDを介して入力接点SWの両端に印加されるが、
入力接点SWがオフしているため電流が流れないので、ス
イッチングトランジスタQのエミッタ電位とベース電位
が同じになってスイッチングトランジスタQがオフして
状態検出信号Vkは"L"のままとなる。
The operation of the embodiment will be described below. FIG. 2 is a waveform diagram showing the operation. FIG. 2 (a) is an on / off state of the input contact SW, FIG. 2 (b) is a read timing signal Vo, and FIG. 2 (c) is both ends of the input contact SW. The voltage Va, the figure (d) show the base input voltage Vb of the switching transistor Q, and the figure (e) shows the state detection signal Vk (current i flowing through the resistor R 2 ). Now, when the input contact SW is off, the reading timing signal Vo is applied to both ends of the input contact SW through the capacitor C, the resistor R 1 and the diode D.
Since the input contact SW is off and no current flows, the emitter potential and the base potential of the switching transistor Q become the same, the switching transistor Q turns off, and the state detection signal Vk remains "L".

次に、入力接点SWがオンすると、読み取り用タイミング
信号Voの"H"期間だけ入力接点SWを介して電流が流れ、
この電流による電圧降下によってスイッチングトランジ
スタQのベース電位がエミッタ電位よりも低くなり、ス
イッチングトランジスタQがオンして状態検出信号Vk
が"H"になり、入力接点SWの状態が読み取り用タイミン
グ信号Voに基づいて信号入力接点K1に取り込まれる。
Next, when the input contact SW is turned on, current flows through the input contact SW only during the "H" period of the reading timing signal Vo,
Due to the voltage drop due to this current, the base potential of the switching transistor Q becomes lower than the emitter potential, the switching transistor Q is turned on, and the state detection signal Vk
There "H" becomes, the state of the input contacts SW are incorporated in the signal input contact K 1 based on the timing signal Vo for reading.

ここにおいて、入力接点SWがオンであるときに読み取り
用タイミング信号Voが発生すれば、コンデンサCには抵
抗R1および入力接点SWを通して瞬間的に大きな電流が流
れる。つまり、第2図(d)のように、電位Vbは読み取
り用タイミング信号Voの立ち上がり時に微分波形となる
から、入力接点SWには瞬間的に大きな電流が流れる。そ
の結果、入力接点SWの表面の酸化物皮膜や入力接点SWの
表面に付着した絶縁物などを除去できる。
Here, if the reading timing signal Vo is generated when the input contact SW is on, a large current flows momentarily through the resistor R 1 and the input contact SW in the capacitor C. That is, as shown in FIG. 2 (d), the potential Vb has a differential waveform at the rising of the reading timing signal Vo, so that a large current instantaneously flows through the input contact SW. As a result, the oxide film on the surface of the input contact SW and the insulator attached to the surface of the input contact SW can be removed.

以上のように、実施例にあっては読み取り用タイミング
信号Voをバイアス電圧として動作するスイッチング回路
SCの入力端であるトランジスタQのベースに入力接点SW
のオン、オフ信号を入力し、上記スイッチングトランジ
スタQ出力を状態検出信号Vkとしてマイクロコンピュー
タMCの信号入力端子K1に入力するようにしたものであ
り、読み取り時にのみ入力接点SWに電流が流れるように
なっているので、平均消費電流を少なくすることがで
き、発熱が小さく、電池Eの寿命を長くすることができ
るようになっている。
As described above, in the embodiment, the switching circuit that operates using the read timing signal Vo as the bias voltage
Input contact SW to the base of transistor Q which is the input end of SC
Of the switching transistor Q is inputted to the signal input terminal K 1 of the microcomputer MC as the state detection signal Vk so that the current flows to the input contact SW only at the time of reading. Therefore, the average current consumption can be reduced, the heat generation is small, and the life of the battery E can be extended.

[考案の効果] 本考案は上述のように構成されており、読み取り用タイ
ミング信号に基づいて入力接点の状態を検出して取り込
むようにしたマイクロコンピュータの信号入力回路にお
いて、上記信号出力端子と上記信号入力端子との間に接
続したスイッチングトランジスタと、コンデンサと抵抗
との直列回路の一端を上記信号出力端子に接続しコンデ
ンサと抵抗との接続点よりスイッチングトランジスタに
バイアスを与えるバイアス回路と、バイアス回路に直列
に接続されオン時に読み取り用タイミング信号が発生す
るとバイアス回路に通電してスイッチングトランジスタ
を導通させる入力接点とを備えるものであり、読み取り
時にのみ入力接点に電流が流れるようになっているの
で、平均消費電流を少なくすることができ、発熱が小さ
く、電池寿命を長くすることができるという効果があ
る。
[Advantages of the Invention] The present invention is configured as described above, and in the signal input circuit of the microcomputer for detecting and capturing the state of the input contact based on the timing signal for reading, the signal output terminal and the above A bias circuit, in which a switching transistor connected between a signal input terminal and one end of a series circuit of a capacitor and a resistor is connected to the signal output terminal to apply a bias to the switching transistor from the connection point of the capacitor and the resistor, , And an input contact that energizes the bias circuit to make the switching transistor conductive when a reading timing signal is generated when it is turned on, and a current flows through the input contact only during reading. Average current consumption can be reduced, heat generation is small, This has the effect of extending the battery life.

また、コンデンサと抵抗との直列回路よりなるバイアス
回路に入力接点を直列に接続しているから、入力接点の
オン時に読み取り用タイミング信号が発生すると、コン
デンサと抵抗との接続点の電圧が微分波形になって入力
接点には瞬間的に大きな電流を流すことができ、入力接
点の表面酸化物などを除去することによって、消費電流
を小さくしながらも入力接点の接触不良を防止すること
ができるという効果を奏する。
Also, since the input contact is connected in series to the bias circuit consisting of the series circuit of the capacitor and the resistor, when the timing signal for reading is generated when the input contact is turned on, the voltage at the connection point of the capacitor and the resistor is differentiated. As a result, a large current can be momentarily applied to the input contact, and by removing the surface oxide etc. of the input contact, it is possible to prevent the contact failure of the input contact while reducing the current consumption. Produce an effect.

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

第1図は本発案一実施例の回路図、第2図は同上の動作
説明図である。 Cはコンデンサ,MCはマイクロコンピュータ、O1は信号
出力端子、K1は信号入力端子、Qはスイッチングトラン
ジスタ、R1は抵抗、SWは入力接点、SCはスイッチング回
路である。
FIG. 1 is a circuit diagram of an embodiment of the present invention, and FIG. 2 is an operation explanatory diagram of the same. C is a capacitor, MC is a microcomputer, O 1 is a signal output terminal, K 1 is a signal input terminal, Q is a switching transistor, R 1 is a resistor, SW is an input contact, and SC is a switching circuit.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】電池駆動されるマイクロコンピュータの信
号出力端子から出力される読み取り用タイミング信号に
基づいて入力接点状態を検出して信号入力端子に取り込
むようにしたマイクロコンピュータの信号入力回路にお
いて、上記信号出力端子と上記信号入力端子との間に接
続したスイッチングトランジスタと、コンデンサと抵抗
との接続点よりスイッチングトランジスタにバイアスを
与えるバイアス回路と、バイアス回路に直列に接続され
オン時に読み取り用タイミング信号が発生するとバイア
ス回路に通電してスイッチングトランジスタを導通させ
る入力接点とを備えることを特徴とするマイクロコンピ
ュータの信号入力回路。
1. A signal input circuit of a microcomputer, wherein an input contact state is detected on the basis of a timing signal for reading output from a signal output terminal of a battery-driven microcomputer, and the signal is input to the signal input terminal. A switching transistor connected between the signal output terminal and the signal input terminal, a bias circuit for biasing the switching transistor from the connection point of the capacitor and the resistor, and a timing signal for reading when connected in series to the bias circuit A signal input circuit for a microcomputer, comprising: an input contact for energizing a bias circuit to make a switching transistor conductive when generated.
JP1988107147U 1988-08-12 1988-08-12 Microcomputer signal input circuit Expired - Lifetime JPH0726753Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1988107147U JPH0726753Y2 (en) 1988-08-12 1988-08-12 Microcomputer signal input circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1988107147U JPH0726753Y2 (en) 1988-08-12 1988-08-12 Microcomputer signal input circuit

Publications (2)

Publication Number Publication Date
JPH0228147U JPH0228147U (en) 1990-02-23
JPH0726753Y2 true JPH0726753Y2 (en) 1995-06-14

Family

ID=31341299

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1988107147U Expired - Lifetime JPH0726753Y2 (en) 1988-08-12 1988-08-12 Microcomputer signal input circuit

Country Status (1)

Country Link
JP (1) JPH0726753Y2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5463617A (en) * 1977-10-20 1979-05-22 Nec Corp Input circuit
JPS5884330A (en) * 1981-11-13 1983-05-20 Canon Inc Input circuit of microprocessor

Also Published As

Publication number Publication date
JPH0228147U (en) 1990-02-23

Similar Documents

Publication Publication Date Title
JPH0726753Y2 (en) Microcomputer signal input circuit
JPH0624347U (en) Overcurrent monitoring circuit
JP2974104B2 (en) Circuit for intelligent power switch
JP2583198Y2 (en) Input device
JPH0435714Y2 (en)
JPH0720614Y2 (en) Current detection circuit
JPS607554Y2 (en) Muting drive circuit
KR950002410Y1 (en) Over current protecting circuit
JP3440482B2 (en) Switching circuit
JPS5844669Y2 (en) Schmidt trigger circuit
JPS6114202Y2 (en)
JPS5829546Y2 (en) touch switch device
KR890001943B1 (en) Index bust integration circuit in magnetic device
JPH062345Y2 (en) Proximity switch
JPS605757Y2 (en) DC motor speed control device
JP2548022Y2 (en) Stabilized power supply circuit
JP2526420Y2 (en) Track disconnection detector
JPH01300606A (en) Half wave rectifier circuit
JPH02304372A (en) Electric current detecting circuit
JPS60152288A (en) Current control circuit for motor
JPS6042497Y2 (en) muting circuit
JPH0426899Y2 (en)
JPH048129U (en)
JPH06112792A (en) Reset circuit
JPH0775365B2 (en) Polarity detection circuit