JPH03211607A - Three-value output circuit using a microcomputer - Google Patents

Three-value output circuit using a microcomputer

Info

Publication number
JPH03211607A
JPH03211607A JP2007438A JP743890A JPH03211607A JP H03211607 A JPH03211607 A JP H03211607A JP 2007438 A JP2007438 A JP 2007438A JP 743890 A JP743890 A JP 743890A JP H03211607 A JPH03211607 A JP H03211607A
Authority
JP
Japan
Prior art keywords
microcomputer
voltage
signal
voltage dividing
circuit
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
JP2007438A
Other languages
Japanese (ja)
Inventor
Yasuhiro Ueno
康弘 上野
Tadayoshi Seike
清家 忠義
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 Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2007438A priority Critical patent/JPH03211607A/en
Publication of JPH03211607A publication Critical patent/JPH03211607A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、マイクロコンピュータを用いて3つの相互に
異なるレベルを有する信号を導出するようにした3値出
力回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a three-value output circuit that uses a microcomputer to derive signals having three mutually different levels.

従来の技術 従来からのマイクロコンピュータの出力端子からは、ロ
ーレベルであるQVおよびハイレベルである5Vの2つ
のレベルを有する信号が導出されるように構成されてい
る。出力ポートからローレベルおよびハイレベルの間に
あるミドルレベル、たとえば2.5Vを有する信号を導
出することができるようにし、これによって3つの相互
に異なるレベルを有する信号を導出しようとする場合に
は、前記出力端子に積分機能を有するRCフィルタを接
続し、出力端子からの2つのレベルを有する繰返しパル
ス信号のデユーティを変化している。
2. Description of the Related Art Conventional microcomputers are configured so that a signal having two levels, QV, which is a low level, and 5V, which is a high level, is derived from an output terminal of a microcomputer. If we want to be able to derive from the output port a signal with a middle level, for example 2.5V, between the low level and the high level, thereby deriving a signal with three mutually different levels, , an RC filter having an integration function is connected to the output terminal, and the duty of the repetitive pulse signal having two levels from the output terminal is changed.

発明が解決しようとする課題 しかしながら、このような従来の構成では、部品点数が
多くなり、大形化し、またデユーティ制御を行なうため
のプログラムが複雑であって、しかも長い。
Problems to be Solved by the Invention However, in such a conventional configuration, the number of parts is large, the device is large, and the program for performing duty control is complex and long.

本発明の目的は、構成およびプログラムを簡略化して、
3つの相互に異なる出力を得るようにした3値出力回路
を提供することである。
The purpose of the present invention is to simplify the configuration and program,
It is an object of the present invention to provide a three-value output circuit that obtains three mutually different outputs.

課題を解決するための手段 この目的を達成するために本発明は、予め定められた電
工が印QOされ、その印加電圧が一対の直列接続された
分圧抵抗によって分圧され、分圧抵抗の接続点に出力ポ
ートが接続されている分圧回路をNみ、この分圧回路の
分圧抵抗の接続点にマイクロコンピュータの出力ポート
を接続し、マイクロコンピュータから、第1.第2レベ
ルの信号とI\イインピーダンスを有する信号を加える
構成を有している。
Means for Solving the Problems To achieve this object, the present invention provides that a predetermined electrical voltage is applied QO, the applied voltage is divided by a pair of voltage dividing resistors connected in series, and the applied voltage is divided by a pair of voltage dividing resistors connected in series. N is a voltage divider circuit whose output port is connected to the connection point, and the output port of the microcomputer is connected to the connection point of the voltage divider resistor of this voltage divider circuit. It has a configuration in which a second level signal and a signal having an I\I impedance are added.

作用 この構成によって、構成およびプログラムを簡略化して
、3つの相互に異なる出力を得るようにした3値出力回
路を実現することができる5実施例 図面は、本発明の一実施例のブロック図である。マイク
ロコンピュータ1は、出力ポート2を有する。このマイ
クロコンピュータ1内には、出力制御レジスタ3が含ま
れている。このレジスタ3の内容に応じて出力ポート2
は、ローレベルであるOVおよびハイレベルである5V
、ハイインピーダンスを有する3つの信号を導出する。
Operation: With this configuration, it is possible to simplify the configuration and program and realize a ternary output circuit that obtains three mutually different outputs. Embodiment 5 The drawing is a block diagram of an embodiment of the present invention. be. Microcomputer 1 has an output port 2 . This microcomputer 1 includes an output control register 3. Output port 2 depending on the contents of this register 3.
is the low level OV and the high level 5V
, derive three signals with high impedance.

分圧回路4は、一対の直列接続された分圧抵抗RIR2
を有し、この分圧回路4には、予め定めた電圧Vccが
印加される。この実施例では、Vcc=5Vである。分
圧抵抗R1,R2の接続点5には、出力ポート2が接続
される。接続点5からの出力は、演算増幅器6を含む増
幅回路7によって増幅され、電圧計8に与えられる。
The voltage dividing circuit 4 includes a pair of voltage dividing resistors RIR2 connected in series.
A predetermined voltage Vcc is applied to this voltage dividing circuit 4. In this example, Vcc=5V. Output port 2 is connected to connection point 5 between voltage dividing resistors R1 and R2. The output from the connection point 5 is amplified by an amplifier circuit 7 including an operational amplifier 6 and provided to a voltmeter 8 .

出力ポート2はマイクロコンピュータ1のプログラム動
作に従い、OVまたは、5Vのレベルを有する信号が導
出される場合を想定すると、増幅回路7を介して電圧計
8にはOVおよび5Vに対応した電圧が表示される。
Assuming that a signal having a level of OV or 5V is derived from the output port 2 according to the program operation of the microcomputer 1, the voltage corresponding to OV and 5V is displayed on the voltmeter 8 via the amplifier circuit 7. be done.

レジスタ3にストアされたプログラムにより出力ポート
がハイインピーダンスを有する信号を導出する場合を想
定すると、接続点5の電圧v5は第1式で示される値と
なる。
Assuming that the output port derives a signal having high impedance by the program stored in the register 3, the voltage v5 at the connection point 5 has a value expressed by the first equation.

この実施例では、抵抗R1,R2の抵抗値は等しく、前
述のとおりV1=Vcc=5Vであるので、V5=2,
5Vである。電圧計8は、2.5Vに対応した電圧を表
示する。このようにして接続点5からは、QV、5Vお
よび2.5V(7)合計3つのレベルを有する信号を得
ることができる。
In this embodiment, the resistance values of resistors R1 and R2 are equal and V1=Vcc=5V as described above, so V5=2,
It is 5V. Voltmeter 8 displays a voltage corresponding to 2.5V. In this way, a signal having a total of three levels, QV, 5V, and 2.5V (7), can be obtained from the connection point 5.

発明の効果 以上のように本発明によれば、マイクロコンピュータの
出力ポートに一対の分圧抵抗の接続点を接続し、この出
力ポートは第1および第2レベルを有する信号を導出し
、またはハイインピーダンスとし、このように合計3つ
のレベルを有する出力を得ることができる。このような
分圧回路は、構成が簡単である。また3つのレベルを有
する信号を得るためのマイクロコンピュータのプログラ
ムは簡単である。
Effects of the Invention As described above, according to the present invention, a connection point of a pair of voltage dividing resistors is connected to an output port of a microcomputer, and this output port derives a signal having the first and second levels, or outputs a signal having a high level. In this way, an output having a total of three levels can be obtained. Such a voltage dividing circuit has a simple configuration. Also, the microcomputer program to obtain a signal with three levels is simple.

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

図は本発明の一実施例のブロック図である。 ■・・・・・・マイクロコンピュータ、2・・・・・・
出力ポート、3・・・・・・出力制御レジスタ、4・・
・・・・分圧回路、7・・・・・・増幅回路、8−・・
・・・電圧計、R1,R2・・・・・・抵抗5
The figure is a block diagram of one embodiment of the present invention. ■・・・・・・Microcomputer, 2・・・・・・
Output port, 3... Output control register, 4...
...Voltage divider circuit, 7...Amplification circuit, 8-...
...Voltmeter, R1, R2...Resistance 5

Claims (1)

【特許請求の範囲】[Claims] 予めストアされたプログラムに従って、出力ポートに第
1および第2レベルを有する信号とハイインピーダンス
を有する信号とを出力することができるマイクロコンピ
ュータと、予め定めた電圧が印加され、その印加電圧が
一対の直列接続された分圧抵抗によって分圧され、分圧
抵抗の接続点に上記マイクロコンピュータの出力ポート
が接続されている分圧回路とを含むことを特徴とするマ
イクロコンピュータを用いる3値出力回路。
A microcomputer capable of outputting signals having first and second levels and a signal having high impedance to output ports according to a pre-stored program; A three-value output circuit using a microcomputer, characterized in that the voltage is divided by series-connected voltage dividing resistors, and a voltage dividing circuit is connected to a connection point of the voltage dividing resistors to an output port of the microcomputer.
JP2007438A 1990-01-17 1990-01-17 Three-value output circuit using a microcomputer Pending JPH03211607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007438A JPH03211607A (en) 1990-01-17 1990-01-17 Three-value output circuit using a microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007438A JPH03211607A (en) 1990-01-17 1990-01-17 Three-value output circuit using a microcomputer

Publications (1)

Publication Number Publication Date
JPH03211607A true JPH03211607A (en) 1991-09-17

Family

ID=11665866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007438A Pending JPH03211607A (en) 1990-01-17 1990-01-17 Three-value output circuit using a microcomputer

Country Status (1)

Country Link
JP (1) JPH03211607A (en)

Similar Documents

Publication Publication Date Title
JP2667388B2 (en) Automatic power control device
US4060715A (en) Linearized bridge circuitry
US4091333A (en) Transconductance amplifier circuit
JPH0537822A (en) Gamma correction circuit
JPH03211607A (en) Three-value output circuit using a microcomputer
JPS647364Y2 (en)
JPS5942899B2 (en) Control signal generation circuit
JPH02134575A (en) Power supply current measuring circuit
US5621350A (en) Circuit for amplifying a weak dircet voltage signal
JPS587422Y2 (en) Display status reading device for magnetic reversal type display device
JPH01273416A (en) Level shift circuit
JP2699464B2 (en) Color display
JPS6161286B2 (en)
SU987793A1 (en) Dc amplifier
JPS59191913A (en) Differential amplifier
JPS62241411A (en) Current driving amplifier
JPS6341839Y2 (en)
JPS6253962B2 (en)
JP2773504B2 (en) Signal comparison circuit
JPS6333003A (en) Offset correction circuit
JPH0495406A (en) Differential amplifier circuit
JPH05113421A (en) Circuit for measurement
JPH0588566B2 (en)
GB911634A (en) Frequency detectors
JPS6093933U (en) temperature measuring device