JPS636883B2 - - Google Patents
Info
- Publication number
- JPS636883B2 JPS636883B2 JP55137045A JP13704580A JPS636883B2 JP S636883 B2 JPS636883 B2 JP S636883B2 JP 55137045 A JP55137045 A JP 55137045A JP 13704580 A JP13704580 A JP 13704580A JP S636883 B2 JPS636883 B2 JP S636883B2
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- voltage
- converter
- resistors
- 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.)
- Expired
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/06—Continuously compensating for, or preventing, undesired influence of physical parameters
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Microcomputers (AREA)
- Analogue/Digital Conversion (AREA)
Description
【発明の詳細な説明】
本発明はいわゆるアナログ/デジタルコンバー
タ(以下A/Dコンバータと呼ぶ)を内蔵したマ
イクロコンピユータ(以下マイコンと呼ぶ)の
A/Dコンバータの基準電圧(以下VREFと呼ぶ)
及びアナログ入力回路の駆動電源の供給を制御す
るマイクロコンピユータ制御回路に関するもので
ある。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a reference voltage (hereinafter referred to as V REF ) of an A/D converter of a microcomputer (hereinafter referred to as a microcomputer) that has a built-in so-called analog/digital converter (hereinafter referred to as an A/D converter).
The present invention also relates to a microcomputer control circuit that controls the supply of drive power to an analog input circuit.
以下、NTCサーミスタで検出したアナログ温
度信号を、マイクロコンピユータ(以下、マイコ
ンと称す)に内蔵されたA/Dコンバータを用い
てデジタル温度信号に変換するようにした従来装
置を第1図に示し、第2図を参照して従来のもの
についてて説明する。第1図はこの種の従来の回
路を示したもので、1は交流電源等を整流して得
られる直流電源、12は前記電源1に接続された
A/Dコンバータを具備したマイコン、13は前
記マイコン12のn個の出力で駆動される出力回
路、11は抵抗、9は定電圧ダイオード、10は
ノイズ除去用コンデンサで、前記定電圧ダイオー
ド9、抵抗11とで得た定電圧をマイコン12に
内蔵されたA/Dコンバータの変換基準となる基
準電圧が入力する端子に相当するVREF端子に入力
している。また、3は抵抗、2は定電圧ダイオー
ド、4はノイズ除去用コンデンサであり、前記定
電圧ダイオード2、抵抗3と共にアナログ入力回
路の定電圧電源回路を構成している。5,7は直
列に接続された抵抗で、これら抵抗5,7の直列
回路は前記電圧ダイオード2に並列に接続され
る。6は抵抗7に並列に接続されたNTCサーミ
スタで、例えばルームエアコンの室温制御に使用
される場合は、その室内温度を検出する温度検出
センサに相当するものである。8は前記抵抗7に
並列に接続されたノイズ除去用コンデンサであ
り、前記NTCサーミスタ6と抵抗5の接続点は
前記マイコン12のアナログ温度信号を入力する
K入力端子に接続される。 Figure 1 shows a conventional device that converts an analog temperature signal detected by an NTC thermistor into a digital temperature signal using an A/D converter built into a microcomputer (hereinafter referred to as microcomputer). The conventional device will be explained with reference to FIG. FIG. 1 shows a conventional circuit of this type, in which 1 is a DC power source obtained by rectifying an AC power source, 12 is a microcomputer equipped with an A/D converter connected to the power source 1, and 13 is a DC power source obtained by rectifying an AC power source. An output circuit driven by n outputs of the microcomputer 12, 11 is a resistor, 9 is a constant voltage diode, and 10 is a noise removal capacitor. The reference voltage that is the conversion reference for the A/D converter built into the device is input to the V REF terminal, which corresponds to the input terminal. Further, 3 is a resistor, 2 is a constant voltage diode, and 4 is a noise removal capacitor, which together with the constant voltage diode 2 and resistor 3 constitute a constant voltage power supply circuit of the analog input circuit. 5 and 7 are resistors connected in series, and the series circuit of these resistors 5 and 7 is connected in parallel to the voltage diode 2. Reference numeral 6 denotes an NTC thermistor connected in parallel to the resistor 7, which corresponds to a temperature detection sensor that detects the room temperature when used, for example, to control the room temperature of a room air conditioner. 8 is a noise removal capacitor connected in parallel to the resistor 7, and the connection point between the NTC thermistor 6 and the resistor 5 is connected to the K input terminal of the microcomputer 12 into which an analog temperature signal is input.
上記のような構成に於て、室内温度センサに相
当するNTCサーミスタ6の抵抗値、温度係数等
を考慮して抵抗5及び抵抗7の値を適当に選定す
れば、第2図に示したようにサーミスタの周囲温
度、例えば室内温度とサーミスタ両端の電圧との
関係はほぼ直線的な関係が得られる。更に、マイ
コン12に内蔵されたA/Dコンバータの基準電
圧VREFを与える定電圧ダイオード9の電圧に対し
て、アナログ入力回路の駆動電圧値を定める定電
圧ダイオード2の電圧を適当に定めると、前記第
2図のサーミスタとその周囲温度との直線的な関
係から、A/Dコンバータの1ビツトの変化分に
対して温度の変化分の絶対値を例えばIC/ビツ
トのようにマイコン12で演算処理が容易な値に
することが出来る。即ち、例えばA/Dコンバー
タの出力“00011”が室内温度10℃に対応させる
と、その出力が1ビツト増加した出力“00100”
室内温度11℃に、さらに1ビツト増加した出力
“00101”が室内温度12℃に対応させることが出来
る。 In the above configuration, if the values of resistor 5 and resistor 7 are appropriately selected taking into consideration the resistance value and temperature coefficient of NTC thermistor 6, which corresponds to the indoor temperature sensor, the result as shown in Figure 2 is obtained. An almost linear relationship can be obtained between the ambient temperature of the thermistor, for example, room temperature, and the voltage across the thermistor. Furthermore, if the voltage of the constant voltage diode 2, which determines the drive voltage value of the analog input circuit, is appropriately determined with respect to the voltage of the constant voltage diode 9, which provides the reference voltage V REF of the A/D converter built into the microcomputer 12, From the linear relationship between the thermistor and its ambient temperature in Figure 2, the microcomputer 12 calculates the absolute value of the change in temperature for each bit of change in the A/D converter, such as IC/bit. It can be a value that is easy to process. That is, for example, if the output "00011" of the A/D converter corresponds to an indoor temperature of 10°C, the output will be increased by 1 bit to "00100".
When the indoor temperature is 11°C, the output "00101" which is further increased by 1 bit can correspond to the indoor temperature of 12°C.
このような構成にすることにより、直流電源1
の変動に対して安定に、しかもマイコン12での
アナログ入力の演算処理が容易に出来ていた。 With this configuration, the DC power supply 1
The microcomputer 12 was able to perform arithmetic processing of analog inputs stably against fluctuations in the data.
しかし、このような構成のものは、基準電圧を
与えるための定電圧ダイオード9と、アナログ入
力回路の電圧を定めるための定電圧ダイオード2
と2本の定電圧ダイオードが必要であり、しかも
A/Dコンバータの1ビツトの変化分に対して温
度の変化分を例えばIC/ビツトのようにマイコ
ン12で演算処理が容易な値にするためには、定
電圧ダイオード9の電圧のバラツキに対してそれ
ぞれ適当な定電圧ダイオード2を選定する必要が
あつた。そのため、この回路を量産する上での作
業工程の増加となりコストの上昇をまねく欠点と
なるばかりでなく、市場に出てからの保守、サー
ビス性の点からも障害となる欠点があつた。本発
明は、上述したような欠点を解決するためになさ
れたもので、直流電源の変動に対しても影響を受
けず、しかもA/Dコンバータの1ビツト当りの
アナログ入力の変化分、例えば1℃温度変化分を
任意に設定出来る回路を提供するものである。 However, this configuration has a constant voltage diode 9 for providing a reference voltage and a constant voltage diode 2 for determining the voltage of the analog input circuit.
and two constant voltage diodes are required, and in order to make the change in temperature relative to the change in 1 bit of the A/D converter into a value that can be easily processed by the microcontroller 12, such as IC/bit. In this case, it was necessary to select an appropriate constant voltage diode 2 for each variation in the voltage of the constant voltage diode 9. This not only has the drawback of increasing the number of work steps needed to mass produce this circuit, leading to an increase in costs, but also has the drawback of hindering maintenance and serviceability after it goes on the market. The present invention has been made in order to solve the above-mentioned drawbacks, and is not affected by fluctuations in the DC power supply, and moreover, it is not affected by changes in the analog input per bit of the A/D converter, e.g. This provides a circuit that can arbitrarily set the degree of temperature change in degrees Celsius.
以下、本発明の一実施例を図に示し説明する。
第3図は本発明の一実施例を示す回路図であり、
以下第1図と同一の符号は同一または相当部分を
示す。第3図に於て、16,17,18は直列に
接続された抵抗で、前記抵抗16,17,18の
直列回路は電源1に接続される。14は抵抗16
に並列に接続されたノイズ除去用コンデンサ、1
5は抵抗17及び抵抗18の接続点と電源1の正
側端子との間に接続されたノイズ除去用コンデン
サである。19,20は演算増幅器(以下オペア
ンプと呼ぶ)であり、前記オペアンプ19の非反
転入力端子は抵抗16と抵抗17の接続点に、ま
た、反転入力端子は前記マイコン12のVREF端子
に接続されている出力端子に接続される。また、
オペアンプ20もオペアンプ19と同様の構成で
あり、その非反転入力端子は抵抗17と抵抗18
の接続点に、また、出力端子は抵抗5に接続され
る。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.
FIG. 3 is a circuit diagram showing an embodiment of the present invention,
Hereinafter, the same reference numerals as in FIG. 1 indicate the same or corresponding parts. In FIG. 3, 16, 17, and 18 are resistors connected in series, and the series circuit of the resistors 16, 17, and 18 is connected to the power source 1. 14 is resistance 16
Noise removal capacitor connected in parallel with 1
Reference numeral 5 denotes a noise removal capacitor connected between the connection point of the resistor 17 and the resistor 18 and the positive terminal of the power supply 1. 19 and 20 are operational amplifiers (hereinafter referred to as operational amplifiers); the non-inverting input terminal of the operational amplifier 19 is connected to the connection point between the resistors 16 and 17, and the inverting input terminal is connected to the V REF terminal of the microcomputer 12. connected to the output terminal. Also,
The operational amplifier 20 has the same configuration as the operational amplifier 19, and its non-inverting input terminals are connected to the resistors 17 and 18.
The output terminal is also connected to the resistor 5.
ここでオペアンプ19及オペアンプ20の構成
はいわゆるボルテージフオロワーと呼ばれるもの
で、その入力インピンダンスは極めて大きく、出
力インピーダンスは小さいことが知られている。
即ち、オペアンプ19の出力端子の電圧は抵抗1
6及び抵抗17の接続点の電圧に等しく、また、
オペアンプ20の出力端子の電圧は抵抗17及び
抵抗18の接続点の電圧に等しく、その出力イン
ピーダンスは小さい。このような構成のものに於
て、抵抗16,17及び18の値を適当に選定す
れば、A/Dコンバータの1ビツト当りの温度変
化分を例えば1℃/ビツトのようにすることが出
来るのみでなく、抵抗16及び抵抗17の内、少
くともいずれか1つを可変抵抗にすることによ
り、任意に設定出来る。また、電源1の電圧変動
に対しては、抵抗16と抵抗17の接続点の電圧
及び抵抗17と抵抗18の接続点の電圧も同じ比
率で変動する。即ちマイコン12のVREF端子の電
圧とK入力端子の電圧は同じ比率で変化するの
で、マイコン12のA/Dコンバータの演算結果
は何ら影響を受けない。 Here, the configuration of the operational amplifier 19 and the operational amplifier 20 is what is called a voltage follower, and it is known that the input impedance thereof is extremely large and the output impedance is small.
That is, the voltage at the output terminal of the operational amplifier 19 is
6 and the voltage at the connection point of resistor 17, and
The voltage at the output terminal of the operational amplifier 20 is equal to the voltage at the connection point between the resistors 17 and 18, and its output impedance is small. In such a configuration, if the values of resistors 16, 17, and 18 are appropriately selected, the temperature change per 1 bit of the A/D converter can be set to, for example, 1°C/bit. In addition, by making at least one of the resistors 16 and 17 a variable resistor, it can be set arbitrarily. Furthermore, with respect to voltage fluctuations of the power source 1, the voltage at the connection point between the resistors 16 and 17 and the voltage at the connection point between the resistors 17 and 18 also change at the same rate. That is, since the voltage at the V REF terminal and the voltage at the K input terminal of the microcomputer 12 change at the same rate, the calculation results of the A/D converter of the microcomputer 12 are not affected at all.
以上のように本発明によれば、マイコン12に
内蔵されたA/Dコンバータの1ビツト当りのア
ナログ入力の変化分を任意に設定出来、しかも電
源1の電圧変動に対しても影響を受けない回路を
提供出来る利点がある。 As described above, according to the present invention, it is possible to arbitrarily set the amount of change in analog input per 1 bit of the A/D converter built in the microcomputer 12, and it is not affected by voltage fluctuations of the power supply 1. It has the advantage of being able to provide circuits.
第1図は従来の実施例を示す回路図、第2図は
第1図の動作を説明するための特性図、第3図は
本発明の具体的実施例を示した回路図である。
図に於て、同一符号は同一または相当部分を示
し、1は直流電源、2,9は定電圧ダイオード、
5,7,16,17,18は抵抗、6はNTCサ
ーミスタ、8,14,15はコンデンサ、12は
A/Dコンバータを内蔵したマイコン、13は出
力回路、19,20は演算増幅器を示す。
FIG. 1 is a circuit diagram showing a conventional embodiment, FIG. 2 is a characteristic diagram for explaining the operation of FIG. 1, and FIG. 3 is a circuit diagram showing a specific embodiment of the present invention. In the figure, the same symbols indicate the same or equivalent parts, 1 is a DC power supply, 2 and 9 are constant voltage diodes,
5, 7, 16, 17, and 18 are resistors, 6 is an NTC thermistor, 8, 14, and 15 are capacitors, 12 is a microcomputer with a built-in A/D converter, 13 is an output circuit, and 19 and 20 are operational amplifiers.
Claims (1)
コンバータを内蔵したマイクロコンピユータ、前
記マイクロコンピユータに接続されるアナログ入
力回路及び上記マイクロコンピユータの出力回路
とを具備するものに於て、前記直流電源に2個以
上の抵抗からなる直列回路を接続し、前記抵抗の
接続点からの異なる電圧をそれぞれ演算増幅器で
インピーダンス変換して得られる電圧を前記A/
Dコンバータの基準電圧及びアナログ入力回路の
駆動電圧としたことを特徴とするマイクロコンピ
ユータ制御回路。1 DC power supply, A/D connected to the DC power supply
In a device comprising a microcomputer with a built-in converter, an analog input circuit connected to the microcomputer, and an output circuit of the microcomputer, a series circuit consisting of two or more resistors is connected to the DC power supply, The voltages obtained by impedance conversion of the different voltages from the connection points of the resistors using operational amplifiers are applied to the A/
A microcomputer control circuit characterized in that the reference voltage of a D converter and the drive voltage of an analog input circuit are used.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55137045A JPS5760429A (en) | 1980-09-30 | 1980-09-30 | Microcomputer controlling circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55137045A JPS5760429A (en) | 1980-09-30 | 1980-09-30 | Microcomputer controlling circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5760429A JPS5760429A (en) | 1982-04-12 |
| JPS636883B2 true JPS636883B2 (en) | 1988-02-12 |
Family
ID=15189573
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55137045A Granted JPS5760429A (en) | 1980-09-30 | 1980-09-30 | Microcomputer controlling circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5760429A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0587639U (en) * | 1991-07-02 | 1993-11-26 | タイガー魔法瓶株式会社 | Microcomputer input data resolution variable device |
-
1980
- 1980-09-30 JP JP55137045A patent/JPS5760429A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5760429A (en) | 1982-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4672561A (en) | Enthalpy calculator unit | |
| JPS636883B2 (en) | ||
| JPH0210896B2 (en) | ||
| JP2673074B2 (en) | Humidity detection circuit | |
| JPS6223415B2 (en) | ||
| JPS5844330Y2 (en) | drive circuit | |
| JPS6134615A (en) | Air conditioner | |
| JPH01150850A (en) | Logarithmic converting method for sensor resistance | |
| KR930006302B1 (en) | Method and apparatus for detecting precise temperature | |
| KR920007751Y1 (en) | Fermentation time control circuit according to the baking machine's room temperature | |
| JPH04343056A (en) | humidity detection device | |
| JPS5897711A (en) | air conditioner | |
| JPS61294321A (en) | Temperature detecting circuit | |
| JPH08307160A (en) | Temperature compensation circuit | |
| JP3242953B2 (en) | Logarithmic compression level detection circuit | |
| JPH05231955A (en) | Temperature detector | |
| JPS5847518Y2 (en) | low resistance electrical signal converter | |
| JPH01210858A (en) | Humidity detecting circuit | |
| JPS6142194Y2 (en) | ||
| JPS6329217A (en) | Infrared sensor | |
| JPS58201117A (en) | Temperature regulating device of air conditioner or the like | |
| JP2000186970A (en) | Pressure sensor circuit | |
| JP2772962B2 (en) | Constant voltage circuit and DC two-wire sensor using the same | |
| JPS5812086Y2 (en) | conversion device | |
| JPS58148945A (en) | Humidity detector |