JPH05274065A - Pull-up voltage supply method - Google Patents

Pull-up voltage supply method

Info

Publication number
JPH05274065A
JPH05274065A JP3279140A JP27914091A JPH05274065A JP H05274065 A JPH05274065 A JP H05274065A JP 3279140 A JP3279140 A JP 3279140A JP 27914091 A JP27914091 A JP 27914091A JP H05274065 A JPH05274065 A JP H05274065A
Authority
JP
Japan
Prior art keywords
pull
voltage
processing unit
central processing
voltage supply
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.)
Pending
Application number
JP3279140A
Other languages
Japanese (ja)
Inventor
Yasuaki Mimuro
泰明 三室
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 JP3279140A priority Critical patent/JPH05274065A/en
Publication of JPH05274065A publication Critical patent/JPH05274065A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To reduce the power consumption of an apparatus with a microcomputer by turning on a gate circuit by an output port to supply a pull-up voltage only during the period when it is necessary for an input port to read an input signal by the instruction of a central processing unit. CONSTITUTION:When a central processing unit 1 instructs an output port 3 to turn on a transistor Q, the TR Q as the gate circuit is turned on, and a pull-up voltage Vp is supplied, and respective input terminals of an input port 2 are stabilized to low and high levels corresponding to turning-on/off of switches S. Low and high levels of terminals of the input port 2 are read. Next, the output port 3 is instructed to turn off the TR Q. At this time, the pull-up voltage is outputted and a current flows only in the period when this voltage is necessary, but the pull-up voltage is not supplied and the current does not flow in the other period; and therefore, the current consumption due to the pull-up voltage is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイコン応用機器にお
けるプルアップ電圧供給方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pull-up voltage supply method for microcomputer application equipment.

【0002】[0002]

【従来の技術】図3は従来のプルアップ電圧供給方法を
説明する回路図である。図3に示すように、マイコン応
用機器の中央処理装置1が、例えば、スイッチSのオン
・オフ状態を入力ポート2から読み取るためには、それ
ぞれのスイッチSに対応する入力ポート2のそれぞれの
入力端子を、それぞれのスイッチSのオン・オフ状態に
対応したLow ・High状態にしてから読み取る必要があ
る。そのためにプルアップ電圧Vp とプルアップ(プル
ダウンの場合もある)抵抗Rとが必要となる。
2. Description of the Related Art FIG. 3 is a circuit diagram for explaining a conventional pull-up voltage supply method. As shown in FIG. 3, in order for the central processing unit 1 of the microcomputer application device to read the on / off state of the switch S from the input port 2, for example, each input of the input port 2 corresponding to each switch S is input. It is necessary to set the terminal to Low / High state corresponding to the ON / OFF state of each switch S and then read. Therefore, a pull-up voltage V p and a pull-up (may be pull-down) resistor R are required.

【0003】また、中央処理装置1が、例えば、スイッ
チSのオン・オフ状態を入力ポート2から読み取る場
合、中央処理装置1は入力ポート2を連続して読み取っ
ているのではなく、他のワークを実行しながら合間合間
に必要に応じて間欠的に入力ポート2をアクセスして読
み取っている。
Further, when the central processing unit 1 reads, for example, the on / off state of the switch S from the input port 2, the central processing unit 1 does not continuously read the input port 2 but another work. While executing the above, the input port 2 is intermittently accessed and read as needed between the intervals.

【0004】[0004]

【発明が解決しようとする課題】ところで、近年の急激
なマイコン応用機器の増加、並びに、省エネルギーの必
要性からしてマイコン応用機器の消費電流の低減は急務
である。しかしながら、従来のプルアップ電圧供給方法
にあっては、中央処理装置1が入力ポート2をアクセス
して読み取りを実行する期間・しない期間に係わり無く
連続してプルアップ電圧を供給しており、プルアップ電
圧のための消費電流が常時消費され無駄であると共に、
停電時の停電補償用電源の停電補償時間の向上の面から
も不利であると言う問題点があった。
By the way, there is an urgent need to reduce the current consumption of the microcomputer application equipment due to the rapid increase of the microcomputer application equipment in recent years and the necessity of energy saving. However, in the conventional pull-up voltage supply method, the pull-up voltage is continuously supplied regardless of the period during which the central processing unit 1 accesses the input port 2 to execute the read or not. The current consumption for the up voltage is always consumed and is useless,
There is also a problem that it is disadvantageous from the viewpoint of improving the power failure compensation time of the power failure compensation power supply at the time of power failure.

【0005】本発明は、上記の問題点を改善するために
成されたものでその目的とするところは、マイコン応用
機器の消費電流を低減できるプルアップ電圧供給方法を
提供することにある。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a pull-up voltage supply method capable of reducing the current consumption of a microcomputer application device.

【0006】[0006]

【課題を解決するための手段】本発明は上記の問題点を
解決するため、中央処理装置の命令で入力ポートからプ
ルアップ電圧で処理された入力信号を読み取る場合のプ
ルアップ電圧供給方法であって、前記中央処理装置で命
令される出力ポートと、該出力ポートで前記プルアップ
電圧の供給をオン・オフするゲート回路と、前記入力信
号の読み取りタイミング期間を含む所定期間のみ前記ゲ
ート回路をオンする命令を前記出力ポートに与えるプル
アップ電圧供給タイミング手段とを設け、前記入力信号
を読み取るときのみ前記プルアップ電圧を供給するよう
にしたことを特徴とする。
In order to solve the above problems, the present invention provides a pull-up voltage supply method for reading an input signal processed by a pull-up voltage from an input port by an instruction of a central processing unit. An output port instructed by the central processing unit, a gate circuit for turning on / off the supply of the pull-up voltage at the output port, and turning on the gate circuit only for a predetermined period including a read timing period of the input signal. And a pull-up voltage supply timing means for giving the instruction to the output port, and the pull-up voltage is supplied only when the input signal is read.

【0007】[0007]

【作用】上記のように構成したことにより、中央処理装
置の命令で入力ポートがプルアップ電圧で処理された入
力信号を読み取るのに必要な所定期間のみ、中央処理装
置の命令で出力ポートはゲート回路をオンし、ゲート回
路はプルアップ電圧の供給をするのである。
With the above configuration, the output port is gated by the command of the central processing unit only for a predetermined period required for reading the input signal processed by the input port with the pull-up voltage by the command of the central processing unit. The circuit is turned on and the gate circuit supplies the pull-up voltage.

【0008】[0008]

【実施例】本発明に係るプルアップ電圧供給方法の一実
施例を図1及び図2を用いて詳細に説明する。図1はプ
ルアップ電圧供給方法を説明する回路図、図2はプルア
ップ電圧供給方法を説明するタイミング図であり、図2
の(a)はプルアップ電圧が供給されるタイミングを示
し、図2の(b)は中央処理装置の命令で入力ポートが
読み取るタイミングを示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the pull-up voltage supply method according to the present invention will be described in detail with reference to FIGS. 1 is a circuit diagram illustrating a pull-up voltage supply method, FIG. 2 is a timing diagram illustrating a pull-up voltage supply method, and FIG.
2A shows the timing at which the pull-up voltage is supplied, and FIG. 2B shows the timing at which the input port reads in response to an instruction from the central processing unit.

【0009】図1に示すプルアップ電圧供給方法にあっ
ては、中央処理装置1で命令される入力ポート2と、中
央処理装置1で命令される出力ポート3と、出力ポート
3でプルアップ電圧Vp の供給をオン・オフするゲート
回路に相当するトランジスタQと、中央処理装置1のソ
フトウェアであるプルアップ電圧供給タイミング手段と
から構成されている。
In the pull-up voltage supply method shown in FIG. 1, the input port 2 instructed by the central processing unit 1, the output port 3 instructed by the central processing unit 1, and the pull-up voltage at the output port 3 are used. It is composed of a transistor Q corresponding to a gate circuit for turning on / off the supply of V p , and pull-up voltage supply timing means which is software of the central processing unit 1.

【0010】上記の入力ポート2と出力ポート3とトラ
ンジスタQとは、状態読み取りの目的としているスイッ
チSと次のように接続されている。すなわち、入力ポー
ト2のそれぞれの入力端子は、それぞれのスイッチSの
一方に接続されると共にそれぞれのプルアップ抵抗Rを
介してトランジスタQのエミッタに接続されている。そ
れぞれのスイッチSの他方はそれぞれアースされてい
る。トランジスタQのコレクタはプルアップ電圧Vp
接続し、トランジスタQのベースは出力ポート2の出力
端子と接続している。
The input port 2, the output port 3 and the transistor Q are connected to the switch S, which is the purpose of reading the state, as follows. That is, each input terminal of the input port 2 is connected to one side of each switch S and is also connected to the emitter of the transistor Q via each pull-up resistor R. The other of each switch S is grounded. The collector of the transistor Q is connected to the pull-up voltage V p, and the base of the transistor Q is connected to the output terminal of the output port 2.

【0011】また、中央処理装置1のソフトウェアであ
るプルアップ電圧供給タイミング手段は、次のようにプ
ログラムされている。
Further, the pull-up voltage supply timing means which is software of the central processing unit 1 is programmed as follows.

【0012】すなわち、入力ポート2をアクセスしてそ
れぞれのスイッチSのオン・オフ状態を読み取る直前の
プログラムステップあっては、中央処理装置1が出力ポ
ート3に対して、トランジスタQをオンする命令(出力
ポート3のトランジスタQのベースが接続している出力
端子をHighとする命令)を実行するようにプログラムさ
れている。
That is, in the program step immediately before accessing the input port 2 to read the on / off state of each switch S, the central processing unit 1 instructs the output port 3 to turn on the transistor Q ( The output port 3 is programmed to execute a command for setting the output terminal connected to the base of the transistor Q to be High.

【0013】次のプログラムステップあっては、トラン
ジスタQがオンしプルアップ電圧V p が供給され、入力
ポート2のそれぞれの入力端子がスイッチSのオン・オ
フに応じたLow ・High状態で安定するだけのウエート
を、中央処理装置1がとるようにプログラムされてい
る。
For the next program step,
The transistor Q turns on and the pull-up voltage V pIs supplied and input
The input terminals of port 2 are turned on and off of switch S.
Weight that only stabilizes in the Low / High state according to the
Is programmed to be taken by the central processing unit 1.
It

【0014】次のプログラムステップあっては、中央処
理装置1が入力ポート2に対して、入力ポート2のそれ
ぞれの入力端子のLow ・High状態を読み取る命令を実行
するようにプログラムされている。
In the next program step, the central processing unit 1 is programmed to execute an instruction for the input port 2 to read the Low / High state of each input terminal of the input port 2.

【0015】次のプログラムステップあっては、中央処
理装置1が出力ポート3に対して、トランジスタQをオ
フする命令(出力ポート3のトランジスタQのベースが
接続している出力端子をLow とする命令)を実行するよ
うにプログラムされている。
In the next program step, the central processing unit 1 instructs the output port 3 to turn off the transistor Q (instruction to set the output terminal connected to the base of the transistor Q of the output port 3 to Low). ) Is programmed to run.

【0016】従って、上述したソフトウェアであるプル
アップ電圧供給タイミング手段が中央処理装置1で実行
された場合の、トランジスタQのオン・オフのタイミン
グと入力ポート2の読み取りタイミングとの関係は、図
2に示すようになる。図2の(a)はトランジスタQの
オン・オフのタイミングであり、T1 が読み取りタイミ
ング期間を含む所定期間に相当するトランジスタQのオ
ン期間である。図2の(b)は入力ポート2の読み取り
タイミングであり、T2 が読み取りタイミング期間であ
る。なお、図2にあっては、プルアップ電圧供給タイミ
ング手段が2回実行された場合を示している。
Therefore, the relationship between the on / off timing of the transistor Q and the read timing of the input port 2 when the pull-up voltage supply timing means, which is the software described above, is executed by the central processing unit 1 is shown in FIG. As shown in. 2A shows the on / off timing of the transistor Q, and T 1 is the on period of the transistor Q corresponding to a predetermined period including the read timing period. 2B shows the read timing of the input port 2, and T 2 is the read timing period. Note that FIG. 2 shows the case where the pull-up voltage supply timing means is executed twice.

【0017】上述の説明から明らかのように、プルアッ
プ電圧はプルアップ電圧が必要な期間のみ出力されプル
アップ電圧のための電流が流れるが、、その他の不要期
間にあってはプルアップ電圧の供給はオフされプルアッ
プ電圧のための電流が流れないのである。
As is apparent from the above description, the pull-up voltage is output only during the period when the pull-up voltage is necessary and the current for the pull-up voltage flows, but during the other unnecessary periods, the pull-up voltage remains unchanged. The supply is turned off and no current flows for the pull-up voltage.

【0018】なお、本発明は上記実施例に限定されるも
のではなく、スイッチSは、他の機器からの出力信号で
ドライブされるオープンコレクタのトランジスタであっ
ても良く、ゲート回路で入力ポート2に接続される他の
機器の出力ポートのプルアップ電圧の供給をオン・オフ
しても良いことは言うまでもない。
The present invention is not limited to the above embodiment, and the switch S may be an open collector transistor driven by an output signal from another device, and the input port 2 is a gate circuit. It goes without saying that the supply of the pull-up voltage of the output port of the other device connected to may be turned on / off.

【0019】[0019]

【発明の効果】本発明のプルアップ電圧供給方法は上記
のような方法であるから、従来のように常時プルアップ
電圧が供給されるのではなく、必要な期間のみ供給され
るのみなので、その分プルアップ電圧による消費電流を
低減でき、マイコン応用機器の消費電流を低減できると
共に、時代の要請である省エネルギーを達成でき、停電
補償時間の向上ともなるプルアップ電圧供給方法を提供
できると言う効果を奏する。
Since the pull-up voltage supply method of the present invention is the above-described method, the pull-up voltage is not always supplied as in the conventional case, but is supplied only for a necessary period. The effect that the current consumption due to the pull-up voltage can be reduced, the current consumption of the microcomputer application device can be reduced, the energy saving required by the times can be achieved, and the pull-up voltage supply method that also improves the power failure compensation time can be provided. Play.

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

【図1】本発明のプルアップ電圧供給方法の一実施例を
説明する回路図である。
FIG. 1 is a circuit diagram illustrating an embodiment of a pull-up voltage supply method of the present invention.

【図2】本発明のプルアップ電圧供給方法の一実施例を
説明するタイミング図である。
FIG. 2 is a timing diagram illustrating an embodiment of the pull-up voltage supply method of the present invention.

【図3】従来のプルアップ電圧供給方法を説明する回路
図である。
FIG. 3 is a circuit diagram illustrating a conventional pull-up voltage supply method.

【符号の説明】[Explanation of symbols]

1 中央処理装置 2 入力ポート 3 出力ポート Q ゲート回路 Vp プルアップ電圧 T1 読み取りタイミング期間を含む所定期間 T2 読み取りタイミング期間1 central processing unit 2 input port 3 output port Q gate circuit V p pull-up voltage T 1 predetermined period including read timing period T 2 read timing period

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置の命令で入力ポートからプ
ルアップ電圧で処理された入力信号を読み取る場合のプ
ルアップ電圧供給方法であって、前記中央処理装置で命
令される出力ポートと、該出力ポートで前記プルアップ
電圧の供給をオン・オフするゲート回路と、前記入力信
号の読み取りタイミング期間を含む所定期間のみ前記ゲ
ート回路をオンする命令を前記出力ポートに与えるプル
アップ電圧供給タイミング手段とを設け、前記入力信号
を読み取るときのみ前記プルアップ電圧を供給するよう
にしたことを特徴とするプルアップ電圧供給方法。
1. A pull-up voltage supply method for reading an input signal processed by a pull-up voltage from an input port according to an instruction of a central processing unit, the output port being instructed by the central processing unit, and the output. A gate circuit for turning on / off the supply of the pull-up voltage at the port; and a pull-up voltage supply timing means for giving an instruction to turn on the gate circuit only for a predetermined period including a read timing period of the input signal to the output port. A pull-up voltage supply method, wherein the pull-up voltage is supplied only when the input signal is read.
JP3279140A 1991-10-25 1991-10-25 Pull-up voltage supply method Pending JPH05274065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3279140A JPH05274065A (en) 1991-10-25 1991-10-25 Pull-up voltage supply method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3279140A JPH05274065A (en) 1991-10-25 1991-10-25 Pull-up voltage supply method

Publications (1)

Publication Number Publication Date
JPH05274065A true JPH05274065A (en) 1993-10-22

Family

ID=17606996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3279140A Pending JPH05274065A (en) 1991-10-25 1991-10-25 Pull-up voltage supply method

Country Status (1)

Country Link
JP (1) JPH05274065A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020085947A (en) * 2001-05-10 2002-11-18 씨멘스 오토모티브 주식회사 A reducing circuit of switching current in car

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020085947A (en) * 2001-05-10 2002-11-18 씨멘스 오토모티브 주식회사 A reducing circuit of switching current in car

Similar Documents

Publication Publication Date Title
JPH05274065A (en) Pull-up voltage supply method
KR910014780A (en) Microcontroller for Input Protection
JPS63224078A (en) Magnetic disk device
JPH09319835A (en) Ic card
JP2695547B2 (en) Return input circuit
JPH082894Y2 (en) Power switch circuit
KR930004284Y1 (en) Power save circuit for stepping motor
JP2856211B2 (en) Drive current control device
JPH0653810A (en) Semiconductor integrated circuit
JP2517538Y2 (en) Bistable circuit
JPH0145151Y2 (en)
JPH05143805A (en) Memory card
KR900006306Y1 (en) Audio trap circuit for two audio system
JPS60117820A (en) Input circuit
KR930006280Y1 (en) Lamp controlling circuit for wafer marker
KR0137425Y1 (en) Power saving microphone
KR100539218B1 (en) Spindle motor drive starting device and method
JPH02112032U (en)
JPH0247743A (en) Microcomputer
JPS59148338U (en) thermal printer
JPH09306322A (en) Relay driving device
JPH07311758A (en) Semiconductor integrated circuit and portable electronic equipment using the same
JPH0422218A (en) Input circuit
JPS6138656U (en) Electronic copying machine control device
KR19990018091A (en) Image forming apparatus