JP2005217720A - Switch reader and terminal having the same - Google Patents
Switch reader and terminal having the same Download PDFInfo
- Publication number
- JP2005217720A JP2005217720A JP2004021102A JP2004021102A JP2005217720A JP 2005217720 A JP2005217720 A JP 2005217720A JP 2004021102 A JP2004021102 A JP 2004021102A JP 2004021102 A JP2004021102 A JP 2004021102A JP 2005217720 A JP2005217720 A JP 2005217720A
- Authority
- JP
- Japan
- Prior art keywords
- switch
- reading
- circuit
- data
- output
- 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.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 1
Images
Landscapes
- Electronic Switches (AREA)
Abstract
Description
本発明はスイッチの設定状態を読み取るスイッチ読み取り装置に関し、特に、ディップスイッチのような端末装置のIDを設定するためのスイッチの読み取りに好適なスイッチ読み取り装置に関する。 The present invention relates to a switch reading device that reads a setting state of a switch, and more particularly to a switch reading device suitable for reading a switch for setting an ID of a terminal device such as a dip switch.
従来、このようなディップスイッチの設定状態を読み取るための構成としては、特許文献1に記載された端末機器がある。この端末機器は、図3に示すように、8個のスイッチS1〜S8から構成されたディップスイッチ11のそれぞれの一端をマイコン10の8個の入力ポートP1〜P8に接続するとともに、スイッチS1〜S8の他端をアースに接続し、入力ポートP1〜P8のそれぞれをプルアップ抵抗R1〜R8を介して電源に接続している。
Conventionally, as a configuration for reading the setting state of such a dip switch, there is a terminal device described in
そして、ディップスイッチ11を構成する8個のスイッチS1〜S8がオン(導通状態)しているかオフ(遮断状態)しているかに応じてマイコン10の入力ポートP1〜P8にはローレベル又はハイレベルの信号が現れるので、マイコン10は8個のスイッチS1〜S8がオンであるかオフであるかを把握し、8ビットの2進数で設定されている端末装置のIDを認識できる。
しかしながら、前記従来の端末機器では、「電源→プルアップ抵抗→オンに設定されているスイッチ(図3の場合、スイッチS1)→アース」の経路で電流が常時流れるため、無駄な電力が消費されており、特に電池駆動の端末機器の場合には電池の消耗が大きな問題となる。 However, in the conventional terminal device, current always flows through a path of “power supply → pull-up resistor → switch set to ON (in the case of FIG. 3, switch S1) → ground”, and therefore, wasteful power is consumed. In particular, in the case of a battery-driven terminal device, battery consumption becomes a serious problem.
本発明はこのような問題点を解決するためになされたもので、スイッチの設定状態を読み取るスイッチ読み取り装置において、無駄な消費電力をなくすことを目的とする。また、本発明は、スイッチの設定とその設定状態の読み取りが必要な端末機器において、無駄な消費電力をなくすことを目的とする。 The present invention has been made to solve such a problem, and an object of the present invention is to eliminate wasteful power consumption in a switch reading device that reads a set state of a switch. Another object of the present invention is to eliminate wasteful power consumption in a terminal device that requires setting of a switch and reading of the setting state.
請求項1に係る発明は、一端が電源に接続され、他端が可変電位出力手段の出力側に接続されたスイッチと、前記スイッチの一端と制御装置との間に接続されたデータ伝送線と、前記データ伝送線上に設けられたデータ読み出し手段と、前記データ読み出し手段をオンオフ制御する読み出し制御手段とを備え、前記可変電位出力手段は、前記データ読み出し手段がオフに制御されている期間は前記電源の電位を出力し、前記データ読み出し手段がオンに制御されている期間は前記電源の電位とは異なる電位を出力することを特徴とするスイッチ読み取り装置である。
請求項2に係る発明は、請求項1に記載のスイッチ読み取り装置において、前記データ読み出し手段はゲート回路であり、前記データ読み出し制御手段はゲート開閉制御手段であることを特徴とするスイッチ読み取り装置である。
請求項3に係る発明は、請求項1に記載のスイッチ読み取り装置において、前記読み出し制御手段と前記可変電位出力手段とは1つの共通な手段であることを特徴とするスイッチ読み取り装置である。
請求項4に係る発明は、請求項3に記載のスイッチ読み取り装置において、前記読み出し制御手段及び前記可変電位出力手段は、前記制御装置で生成されたアドレスをデコードしたチップセレクト信号及び前記制御装置で生成された読み出し信号が入力されるアンド回路であり、その出力側は前記データ読み出し手段の入力側に接続されていることを特徴とするスイッチ読み取り装置である。
請求項5に係る発明は、請求項1〜4のいずれかに記載のスイッチ読み取り装置を備えたことを特徴とする端末機器である。
According to a first aspect of the present invention, there is provided a switch having one end connected to a power source and the other end connected to the output side of the variable potential output means, and a data transmission line connected between one end of the switch and the control device. And a data reading means provided on the data transmission line, and a read control means for controlling on / off of the data reading means, and the variable potential output means is configured so that the period during which the data reading means is controlled to be off is The switch reading device is characterized in that it outputs a potential of a power source and outputs a potential different from the potential of the power source during a period in which the data reading means is controlled to be on.
According to a second aspect of the present invention, in the switch reading device according to the first aspect, the data reading means is a gate circuit, and the data reading control means is a gate opening / closing control means. is there.
The invention according to claim 3 is the switch reading device according to
According to a fourth aspect of the present invention, in the switch reading device according to the third aspect, the read control means and the variable potential output means are a chip select signal obtained by decoding an address generated by the control device and the control device. The switch reading device is an AND circuit to which the generated read signal is input, and its output side is connected to the input side of the data reading means.
An invention according to
本発明に係るスイッチ読み取り装置によれば、スイッチに電流が流れるのはスイッチの設定状態を読み取る時のみであるため、無駄な消費電力をなくすことができる。
また、本発明に係る端末機器によれば、スイッチの設定及びその読み取りに係わる無駄な消費電力を無くすことができる。
According to the switch reading device of the present invention, the current flows through the switch only when the setting state of the switch is read, so that wasteful power consumption can be eliminated.
In addition, according to the terminal device according to the present invention, it is possible to eliminate wasteful power consumption related to setting and reading of the switch.
以下、図面を参照しながら本発明の実施形態について説明する。
図1は本発明を適用した端末機器の要部構成を示すブロック図であり、図2はそのスイッチ読み取り動作を示すタイミングチャートである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a main part configuration of a terminal device to which the present invention is applied, and FIG. 2 is a timing chart showing the switch reading operation.
図1に示すように、本実施形態の端末機器1は、端末機器1全体の制御等を行うCPU2と、CPU2のアドレスバスに出力されるアドレスをデコードするアドレスデコーダ3と、CPU2の制御バスから出力される読み出し信号(RD)と、アドレスデコーダから出力されるチップセレクト信号(CS)とが入力される負論理のアンド回路4と、この端末機器1のIDを設定するためのディップスイッチ5を備えている。ディップスイッチ5は8個のスイッチS1〜S8からなり、それぞれの一端はプルアップ抵抗群6のプルアップ抵抗R1〜R8を介して電源(+V)に接続されており、他端はアンド回路4の出力側に接続されている。また、端末機器1は、入力側がスイッチS1〜S8の一端に接続され、出力側がCPU2のデータバス7に接続され、さらにアンド回路4の出力信号がゲート制御端子(G)に入力されるゲート回路8を備えている。さらに、端末機器1は、その各部に動作電力を供給するための電源としての電池9を備えている。なお、各プルアップ抵抗R1〜R8の抵抗値は同一である。
As shown in FIG. 1, the
以上の構成を有する端末装置1において、ディップスイッチ5の8個のスイッチS1〜S8をオン(導通状態)又はオフ(遮断状態)に設定することにより、8ビットの2進数からなる端末IDを設定する。次に、図2を参照しながら、スイッチS1〜S8の設定状態を読み取るときの端末機器1の動作を説明する。
In the
CPU2は、図示されていない操作部からユーザが入力した読み取り指令、又は遠隔地からユーザが無線機器を用いて送信した読み取り指令を検出すると、アドレスバスにゲート回路8のアドレスを出力するとともに、ローレベルの読み出し信号(RD)を制御バスを介してアンド回路4の一方の入力端子に供給する。アドレスデコーダ3は、アドレスバスに出力されたゲート回路8のアドレスをデコードし、ローレベルのチップセレクト信号(CS)をアンド回路4の他方の入力端子に供給する。
When the
ここで、読み出し信号(RD)及びチップセレクト信号(CS)の双方がローレベルの期間にアンド回路4の出力はローレベルとなり、それ以外の期間はハイレベル(電源電圧+V)となる。従って、読み出し信号(RD)及びチップセレクト信号(CS)の双方がローレベルの期間は、「電源→プルアップ抵抗群→オンに設定されているスイッチ(図1の場合、スイッチS1)→アンド回路4の出力側」の経路でV/Rの電流(V:電源電圧、R:オンに設定されているスイッチに接続されているプルアップ抵抗の抵抗値。複数のスイッチがオンに設定されている場合は複数のプルアップ抵抗の合成抵抗値)が流れるが、それ以外の期間はアンド回路4の出力側と電源とが同電位であるため、電流は流れない。また、上記の経路で電流が流れている間、オンに設定されているスイッチの一端(プルアップ抵抗側)の電位はローレベルに下がっているが、オフに設定されているスイッチ(図1の場合、S2〜S8)には電流が流れないため、それらの一端の電位は常時ハイレベルである。そして、ゲート回路8は、アンド回路4の出力がローレベルの期間、スイッチS1〜S8の一端の電位を入力側(IN)から出力側(OUT)へ転送し、データバス7へ送出するので、スイッチS1〜S8のオン又はオフの設定状態に応じたローレベル又はハイレベルの電圧がゲート回路8を通り、データバス7を通ってCPU2に入力される。以上により、CPU2はスイッチS1〜S8のオン又はオフの設定状態を把握することができる。
Here, the output of the
以上のように、従来の端末装置では、オンに設定されているスイッチには常時電流が流れているのに対し、本実施形態によれば、オンに設定されているスイッチに電流が流れるのは、CPU2が読み出し信号(RD)を出力している僅かな時間のみであるため、無駄な消費電力をなくし、その結果、電池9の寿命を大幅に延ばすことが可能となる。
As described above, in the conventional terminal device, current always flows through the switch set to ON, whereas according to the present embodiment, current flows through the switch set to ON. Since it is only a short time during which the
1・・・端末機器、4・・・アンド回路、5・・・スイッチ、7・・・データバス、8・・・ゲート回路。
DESCRIPTION OF
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004021102A JP4362865B2 (en) | 2004-01-29 | 2004-01-29 | Switch reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004021102A JP4362865B2 (en) | 2004-01-29 | 2004-01-29 | Switch reader |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005217720A true JP2005217720A (en) | 2005-08-11 |
JP4362865B2 JP4362865B2 (en) | 2009-11-11 |
Family
ID=34904844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004021102A Expired - Fee Related JP4362865B2 (en) | 2004-01-29 | 2004-01-29 | Switch reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4362865B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020087946A (en) * | 2018-11-14 | 2020-06-04 | 株式会社トヨタプロダクションエンジニアリング | Electronic equipment module |
JP2020123886A (en) * | 2019-01-31 | 2020-08-13 | パナソニックIpマネジメント株式会社 | Communication terminal and address setting method thereof |
-
2004
- 2004-01-29 JP JP2004021102A patent/JP4362865B2/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020087946A (en) * | 2018-11-14 | 2020-06-04 | 株式会社トヨタプロダクションエンジニアリング | Electronic equipment module |
JP2020123886A (en) * | 2019-01-31 | 2020-08-13 | パナソニックIpマネジメント株式会社 | Communication terminal and address setting method thereof |
JP7149460B2 (en) | 2019-01-31 | 2022-10-07 | パナソニックIpマネジメント株式会社 | Communication terminal device and its address setting method |
Also Published As
Publication number | Publication date |
---|---|
JP4362865B2 (en) | 2009-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100999774B1 (en) | Single wire serial interface | |
KR101260307B1 (en) | Power supply apparatus | |
JP2007068282A (en) | Power supply circuit | |
JP2004336986A (en) | System and method for preemptively controlling power supply device | |
JP2007257289A5 (en) | ||
JP2006301423A (en) | Controller and device for driving light emitting element | |
JP2000108407A5 (en) | Drive circuit and printer and LED head using the same | |
JP5020625B2 (en) | Interface circuit | |
US6404172B1 (en) | Method and apparatus for providing integrated buck or boost conversion | |
JP4362865B2 (en) | Switch reader | |
US9087573B2 (en) | Memory device and driving method thereof | |
JPH0944277A (en) | Microcomputer | |
JP2005266843A (en) | Input device | |
JP4510498B2 (en) | Semiconductor integrated circuit | |
JP3543364B2 (en) | Microcomputer input / output circuit | |
WO2023136158A1 (en) | In-vehicle system, management device, and management method | |
JP2004208043A (en) | Digital input signal processing device | |
JP2007140908A (en) | Power supply control unit | |
KR100728944B1 (en) | Wide voltage type input buffer circuit | |
JP2007293578A (en) | Electronic apparatus | |
JP2009060690A (en) | Power supply controller | |
JP3092551B2 (en) | D / A converter | |
JP2009094888A (en) | Ternary input circuit and power source management circuit using the same | |
JP2009271816A (en) | Semiconductor integrated circuit device | |
JP2005269837A (en) | Power supply switching circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20051031 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061030 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081215 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090107 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090309 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090727 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090809 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120828 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4362865 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120828 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130828 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |