[go: up one dir, main page]

JPH02307775A - Operating switch control circuit of printer - Google Patents

Operating switch control circuit of printer

Info

Publication number
JPH02307775A
JPH02307775A JP12919589A JP12919589A JPH02307775A JP H02307775 A JPH02307775 A JP H02307775A JP 12919589 A JP12919589 A JP 12919589A JP 12919589 A JP12919589 A JP 12919589A JP H02307775 A JPH02307775 A JP H02307775A
Authority
JP
Japan
Prior art keywords
switches
control circuit
printer
resistors
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.)
Pending
Application number
JP12919589A
Other languages
Japanese (ja)
Inventor
Saichi Morikawa
森川 佐一
Fujimasa Yaegashi
八重樫 富士勝
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP12919589A priority Critical patent/JPH02307775A/en
Publication of JPH02307775A publication Critical patent/JPH02307775A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To reduce the number of control signal lines controlled by a microcomputer by connecting switches in parallel or in series to an analog port input terminal equipped with a microprocessor and monitoring the state of switches using a 1 to 2-bit analog port. CONSTITUTION:A control panel circuit 2 consists of resistors 2g to 2l and operat ing switches 2a to 2l, and a voltage divided by each half of the total resistors, for example, the resistor 3a and resistors 2g to 2i connected in parallel using a power supply voltage connected to a terminal A, generates at a terminal K, and a voltage divided by the resistor 3b and resistors 2j to 2l generates at a terminal K. If this voltage value is entered from analog ports AN1, AN2 on microcomputer of a control circuit 1, the ON/OFF state of the operating switches 2a to 2c, 2d to 2f can be determined using the analog/digital conversion function of the microcomputer.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプリンタの操作スイッチ制御回路に関し、特に
操作盤の複数のスイッチを管理するためのプリンタの操
作スイッチ制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer operation switch control circuit, and more particularly to a printer operation switch control circuit for managing a plurality of switches on an operation panel.

〔従来の技術〕[Conventional technology]

従来、この種のプリンタの操作スイッチ制御回路は、第
2図に示すように操作盤回路2の操作スイッチ2a〜2
fの数と同数の制御信号を制御回路1のマイクロプロセ
ッサの入力ポート等により入力し、操作スイッチ2a〜
2fの状態を監視していたり、あるいは第3図に示すよ
うに、操作盤回路2の操作スイッチ2a〜2fと同数の
制御信号を制御回路1のマイクロプロセッサからシリア
ル−パラレル変換回路4を介してパラレル−シリアル変
換することにより、数ビットの制御信号に集約している
Conventionally, an operation switch control circuit for this type of printer has been configured to include operation switches 2a to 2 of an operation panel circuit 2, as shown in FIG.
The same number of control signals as f are input through the input port of the microprocessor of the control circuit 1, and the operation switches 2a to 2a are input.
2f or, as shown in FIG. By performing parallel-to-serial conversion, the control signals are reduced to several bits.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプリンタの操作スイッチ制御回路は、第
2図に示した例では回路は単純であるが、制御信号の数
が多く、マイクロプロセッサの人カポ−)B−Gの数を
数多く占有するので、人出力ポート回路の増設を必要と
したり、あるいは操作盤からの信号線ケーブルの本数が
多くなり、ケーブル及び接続コネクタの価格が高価にな
る欠点がある。また、第3図に示した例では、接続信号
の数は少なくなるが回路が複雑になり、マイクロプロセ
ッサの制御プログラムも複雑になるので、回路の価格が
高価になったり、制御プログラム容量が増加したりする
という欠点がある。
The conventional printer operation switch control circuit described above has a simple circuit in the example shown in FIG. Therefore, it is necessary to add a human output port circuit, or the number of signal line cables from the operation panel increases, which has the disadvantage that the cables and connecting connectors become expensive. In addition, in the example shown in Figure 3, although the number of connection signals is reduced, the circuit becomes more complex and the control program for the microprocessor also becomes more complex, resulting in an increase in the cost of the circuit and an increase in the capacity of the control program. There is a drawback that it can be done.

本発明の目的は、かかるマイクロコンピュータから制御
する制御信号線を減少させるとともに、回路も単純化し
て安価に実現できるプリンタの操作スイッチ制御回路を
提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a printer operation switch control circuit that can reduce the number of control signal lines controlled by such a microcomputer, simplify the circuit, and realize it at low cost.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプリンタの操作スイッチ制御回路は記録媒体に
印字を行うにあたり各種の状態を設定し制御する操作盤
を有したプリンタの操作スイッチ制御回路において、前
記操作盤に設けた複数のスイッチと前記複数のスイッチ
の状態を入力し且つその状態により各種機能の設定及び
動作制御を行うマイクロプロセッサを中心とする制御回
路とを有し、前記マイクロプロセッサに備えたアナログ
ポート入力に前記複数のスイッチを並列あるいは直列に
接続し、1乃至2ビットのアナログポートで複数のスイ
ッチの状態を監視するように構成される。
The operation switch control circuit for a printer of the present invention includes a plurality of switches provided on the operation panel and a plurality of switches provided on the operation panel. and a control circuit centered on a microprocessor that inputs the state of the switches and sets various functions and controls operations based on the state, and connects the plurality of switches in parallel or in parallel to the analog port input provided in the microprocessor. It is configured to connect in series and monitor the status of multiple switches using a 1- to 2-bit analog port.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すプリンタの操作スイッ
チ制御回路である。
FIG. 1 shows an operation switch control circuit for a printer showing an embodiment of the present invention.

第1図に示すように、本実施例は操作盤回路2における
複数のスイッチ2a〜2fを並列又は直列に接続する手
段と、端子Aか゛ら供給される電源電圧を分圧するため
の分圧抵抗3 a、 3 bおよび2g〜21と、アナ
ログ−デジタル変換機能を有し、アナログポート入力A
N1.AN2を持つマイクロプロセッサからなる制御回
路1とを有している。
As shown in FIG. 1, this embodiment includes means for connecting a plurality of switches 2a to 2f in a control panel circuit 2 in parallel or series, and a voltage dividing resistor 3 for dividing the power supply voltage supplied from a terminal A. a, 3 b and 2g to 21, and has analog-to-digital conversion function, analog port input A
N1. The control circuit 1 includes a microprocessor having an AN2.

すなわち、操作盤回路2は抵抗器2g〜21と操作スイ
ッチ2a〜2fで構成され、それぞれ半数ずつ並列に接
続し、端子Aに供給する電源電圧が抵抗器3aと抵抗器
2g〜21によって分圧される電圧が端子Jに、また抵
抗器3bと抵抗器2J〜21によって分圧される電圧が
端子Kに発生させる。この電圧値を制御回路1のマイク
ロコンピュータのアナログポートAN1.AN2より入
力すれば、このマイクロコンピュータのアナログ−デジ
タル変換機能により、操作スイッチ2a〜2C及び2d
〜2 f(7)ONloFFの状態を識別することがで
きる。
That is, the operation panel circuit 2 is composed of resistors 2g to 21 and operation switches 2a to 2f, half of each of which are connected in parallel, and the power supply voltage supplied to terminal A is divided by the resistors 3a and 2g to 21. A voltage is generated at terminal J, and a voltage divided by resistor 3b and resistors 2J to 21 is generated at terminal K. This voltage value is applied to the analog port AN1 of the microcomputer of the control circuit 1. When input from AN2, the analog-to-digital conversion function of this microcomputer converts the operation switches 2a to 2C and 2d.
~2 f(7) The state of ONloFF can be identified.

尚、本実施例の回路は操作スイッチが6個で構成され且
つその半数ずつを並列に接続した例を示したが、操作ス
イッチの数は任意であり、また並列に接続する回路数も
任意であり、これらはマイクロコンピュータのアナロ゛
グーデジタル変換a能の分解能により決定されるもので
ある。
Although the circuit of this embodiment is composed of six operating switches and half of them are connected in parallel, the number of operating switches and the number of circuits connected in parallel are arbitrary. These are determined by the resolution of the analog-to-digital conversion capability of the microcomputer.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明のプリンタ操作スイッチ制
御回路は、操作スイッチを並列あるいは直列に接続し、
操作スイッチの0N10F’Fにより接続された抵抗値
を変えて分圧比を変化させ、その電圧値をマイクロコン
ピュータのアナログ−デジタル変換機能によってあらか
じめマイクロコンピュータに登録された電圧値と操作ス
イッチの関係を示すテーブルから常に操作スイッチの状
態を監視することにより、マイクロコンピュータの制御
する制御信号線数を減少させ、しかも付加回路を不要に
するとともに、安価に実現できるという効果がある。
As explained above, the printer operation switch control circuit of the present invention connects operation switches in parallel or series,
The voltage division ratio is changed by changing the resistance value connected by the 0N10F'F of the operation switch, and the voltage value is converted into a voltage value registered in advance in the microcomputer by the analog-to-digital conversion function of the microcomputer.The relationship between the voltage value and the operation switch is shown below. By constantly monitoring the state of the operation switch from the table, the number of control signal lines controlled by the microcomputer can be reduced, additional circuitry is unnecessary, and the system can be realized at low cost.

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

第1図は本発明の一実施例を示すプリンタの操作スイッ
チ制御回路図、第2図および第3図はそれぞれ従来の一
例および他の例を示すプリンタの操作スイッチ制御回路
図である。 1・・・・・・制御回路(マイクロコンピュータ)、2
・・・・・・操作盤回路、2a〜2f・・・・・・操作
スイッチ、2g〜21・・・・・・抵抗器、3 a、 
3 b・・・・・・抵抗器、A・・・・・・電源電圧供
給端子、J、K・・・・・・アナログ入力端子、H・・
・・・・グランド端子。
FIG. 1 is a printer operation switch control circuit diagram showing one embodiment of the present invention, and FIGS. 2 and 3 are printer operation switch control circuit diagrams showing one conventional example and another example, respectively. 1... Control circuit (microcomputer), 2
......Operation panel circuit, 2a-2f...Operation switch, 2g-21...Resistor, 3a,
3 b...Resistor, A...Power voltage supply terminal, J, K...Analog input terminal, H...
...Ground terminal.

Claims (1)

【特許請求の範囲】[Claims] 記録媒体に印字を行うにあたり各種の状態を設定し制御
する操作盤を有したプリンタの操作スイッチ制御回路に
おいて、前記操作盤に設けた複数のスイッチと前記複数
のスイッチの状態を入力し且つその状態により各種機能
の設定及び動作制御を行うマイクロプロセッサを中心と
する制御回路とを有し、前記マイクロプロセッサに備え
たアナログポート入力に前記複数のスイッチを並列ある
いは直列に接続し、1乃至2ビットのアナログポートで
複数のスイッチの状態を監視することを特徴とするプリ
ンタの操作スイッチ制御回路。
In an operation switch control circuit of a printer having an operation panel for setting and controlling various states when printing on a recording medium, a plurality of switches provided on the operation panel and the states of the plurality of switches are inputted and the states thereof It has a control circuit centered on a microprocessor that sets various functions and controls operations, and the plurality of switches are connected in parallel or in series to an analog port input provided in the microprocessor, and a 1- to 2-bit control circuit is provided. A printer operation switch control circuit characterized by monitoring the states of multiple switches using an analog port.
JP12919589A 1989-05-22 1989-05-22 Operating switch control circuit of printer Pending JPH02307775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12919589A JPH02307775A (en) 1989-05-22 1989-05-22 Operating switch control circuit of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12919589A JPH02307775A (en) 1989-05-22 1989-05-22 Operating switch control circuit of printer

Publications (1)

Publication Number Publication Date
JPH02307775A true JPH02307775A (en) 1990-12-20

Family

ID=15003495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12919589A Pending JPH02307775A (en) 1989-05-22 1989-05-22 Operating switch control circuit of printer

Country Status (1)

Country Link
JP (1) JPH02307775A (en)

Similar Documents

Publication Publication Date Title
US6160354A (en) LED matrix current control system
US5633637A (en) Digital-to-analog converter circuit
JPH02307775A (en) Operating switch control circuit of printer
JPS58103226A (en) Resistance string type load circuit
JP2615890B2 (en) Input device for control equipment
CN218735080U (en) External power regulating circuit and device and constant current driving equipment
JPS6136859A (en) Interface controller
JP2510088Y2 (en) Matrix switch circuit
JP2002333906A (en) Analog module for programmable controller
JP2743662B2 (en) Matrix switcher
JPH0413682Y2 (en)
JPH0434630Y2 (en)
JPH01177103A (en) Controller for air conditioner
JPH02116206A (en) Voltage/current converting circuit
JPH02206908A (en) Operational amplifier circuit
JPS58172340U (en) Switch with multiple operation parts
JPS6041307A (en) Sound signal switching device
JPS59220658A (en) Digital level meter driving apparatus
JPH0224643U (en)
JPS61199102A (en) Temperature control circuit
JPS61144110A (en) Voltage control circuit
JPS63288598A (en) Operating switch input device
JPH05259916A (en) Current addition type D / A converter
ITTO960625A1 (en) MOTOR VEHICLE HEADLIGHT ADJUSTMENT SYSTEM
JPH036390U (en)