JPH03218123A - A/D conversion circuit - Google Patents

A/D conversion circuit

Info

Publication number
JPH03218123A
JPH03218123A JP1444190A JP1444190A JPH03218123A JP H03218123 A JPH03218123 A JP H03218123A JP 1444190 A JP1444190 A JP 1444190A JP 1444190 A JP1444190 A JP 1444190A JP H03218123 A JPH03218123 A JP H03218123A
Authority
JP
Japan
Prior art keywords
conversion circuit
circuit
signal voltage
charging
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.)
Pending
Application number
JP1444190A
Other languages
Japanese (ja)
Inventor
Hironobu Kajiwara
宏信 梶原
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.)
Fujitsu General Ltd
Original Assignee
Fujitsu General 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 Fujitsu General Ltd filed Critical Fujitsu General Ltd
Priority to JP1444190A priority Critical patent/JPH03218123A/en
Publication of JPH03218123A publication Critical patent/JPH03218123A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はアナログ信号電圧をデジタル信号電圧に変換す
るA/D変換回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an A/D conversion circuit that converts an analog signal voltage into a digital signal voltage.

〔従来の技術〕[Conventional technology]

温度変化に伴うサーミスタの抵抗値の変化を利用した温
度検出手段等からのアナログ信号電圧をマイクロコンピ
ュータ(マイコン)で処理するためには、アナログ信号
電圧をデジタル信号電圧に変換するA/D変換回路が必
要であるが、前記アナログ信号電圧の大小を区分判定す
る場合には、例えば、第3図に示すように、複数の比較
器6a〜6dと抵抗R2〜R9とから成るA/D変換回
路が設けられていた. 〔発明が解決しようとする課題〕 しかしながら、前述のようなA/D変換回路の場合、取
り込まれるデータの大小を区分判定する数が多くなれば
、A/D変換回路の数も増え、高価なものとなる。
In order for a microcomputer to process an analog signal voltage from a temperature detection means that uses changes in the resistance value of a thermistor due to temperature changes, an A/D conversion circuit is required to convert the analog signal voltage into a digital signal voltage. However, when determining the magnitude of the analog signal voltage, for example, as shown in FIG. 3, an A/D conversion circuit consisting of a plurality of comparators 6a to 6d and resistors R2 to R9 was set up. [Problems to be Solved by the Invention] However, in the case of the above-mentioned A/D conversion circuit, if the number of times to classify and judge the size of captured data increases, the number of A/D conversion circuits will also increase, resulting in expensive and expensive Become something.

また、マイコンに内蔵されているA/D変換回路を用い
る場合は量子化ステップが固定されるため、微小な変化
幅の信号に対しては、これを増幅して量子化の単位値よ
りも大きくなるようにしなければならず、また、変化幅
が十分に大きい場合には量子化ステップが大きい方が雑
音に対して有利であるが、これも調整できない等の課題
を有しでいる. したがって、本発明においては、これらの課題を解決し
、安価で容易にできるA/D変換回路を提供することを
目的としている。
In addition, when using the A/D conversion circuit built into the microcontroller, the quantization step is fixed, so for signals with a minute change width, this is amplified and the quantization step is increased to a value larger than the quantization unit value. In addition, if the range of change is sufficiently large, a larger quantization step is advantageous in terms of noise, but this also has problems such as being unable to be adjusted. Therefore, an object of the present invention is to solve these problems and provide an A/D conversion circuit that can be easily implemented at low cost.

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

本発明は上記の課題を解決するためになされたものであ
り、温度検出手段よりのアナログ信号電圧をデジタル信
号電圧に変換するA/D変換回路において、前記A/D
変換回路を、周期的に入力される制御信号に基づき充電
および放電を繰り返す充放電手段と、この充放電手段よ
りの出力電圧と前記温度検出手段よりのアナログ信号電
圧とを比較する比較器とにより構成した。
The present invention has been made to solve the above problems, and includes an A/D conversion circuit that converts an analog signal voltage from a temperature detection means into a digital signal voltage.
The conversion circuit is configured by a charging/discharging means that repeats charging and discharging based on a control signal that is periodically input, and a comparator that compares the output voltage from the charging/discharging means with the analog signal voltage from the temperature detecting means. Configured.

〔作用〕[Effect]

以上の構成であれば、前記充放電手段よりの出力電圧が
同充放電手段の充電開始時または放電開始時より、前記
温度検出手段よりのアナログ信号電圧と等しくなるまで
の時間をデジタル出力することができる。
With the above configuration, the time from when the output voltage from the charging/discharging means starts charging or from when the charging/discharging means starts to become equal to the analog signal voltage from the temperature detecting means can be digitally output. I can do it.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図〜第2図に基づいて説
明する。
Hereinafter, one embodiment of the present invention will be described based on FIGS. 1 and 2.

図において、■は温度検出手段、2は前記温度検出手段
1よりのアナログ信号電圧をデジタル信号電圧に変換す
るA/D変換回路、3は前記A/D変換回路2を制御す
ると共に、同A/D変換回路よりの入力信号を処理する
マイコンである。
In the figure, ■ is a temperature detection means, 2 is an A/D conversion circuit that converts the analog signal voltage from the temperature detection means 1 into a digital signal voltage, and 3 is a control circuit for controlling the A/D conversion circuit 2; This is a microcomputer that processes input signals from the /D conversion circuit.

前記温度検出手段1は電源Vddとアース間に直列接続
されたサーミスタ4と抵抗R1とから成り、a点はアナ
ログ信号電圧の出力端である.A/D変換回路2は前記
マイコン3により制御される充放電手段5と比較器6と
から成り、前記充放電手段5はマイコン3からの制御信
号がLのとき導通するトランジスタ7と、同トランジス
タ7の導通時に充電されるコンデンサC1と、前記トラ
ンジスタ7がオフしたとき前記コンデンサC1に充電さ
れている電荷を放電させる抵抗R2とで構成され、コン
デンサC1、抵抗R2の一例は比較器6の非反転入力端
(+)に接続し、同比較器6の反転入力端(一)は前記
温度検出手段1の出力端aと結び、同比較器6の出力側
Cは前記マイコン3の入力端T2に接続されている. マイコン3側には発振回路部8、分周回路部9、NAN
D回路10、AND回路11、カウンタ12等があり、
発振回路部8よりの出力信号をAND回路11および分
周回路部9に出力し、分周された二通りの信号をNAN
D回路10に出力し、同NAND回路10の出力端を前
記AND回路11と、カウンタ12のクリア信号入力端
と、前記A/D変換回路2に制御信号を出力する出力端
T1とに接続し、前記AND回路l1の入力端は前記A
/D変換回路の出力信号を取り込む入力端T2に接続す
ると共に、同AND回路l1の出力端は前記カウンタ1
2の入力端に接続している。
The temperature detection means 1 consists of a thermistor 4 and a resistor R1 connected in series between a power supply Vdd and ground, and point a is the output terminal of an analog signal voltage. The A/D conversion circuit 2 consists of a charging/discharging means 5 controlled by the microcomputer 3 and a comparator 6, and the charging/discharging means 5 includes a transistor 7 which becomes conductive when the control signal from the microcomputer 3 is L; The capacitor C1 is charged when the transistor 7 is turned on, and the resistor R2 is configured to discharge the charge stored in the capacitor C1 when the transistor 7 is turned off. The inverting input terminal (1) of the comparator 6 is connected to the output terminal a of the temperature detecting means 1, and the output side C of the comparator 6 is connected to the input terminal T2 of the microcomputer 3. It is connected to the. On the microcomputer 3 side, there is an oscillation circuit section 8, a frequency division circuit section 9, and a NAN
There is a D circuit 10, an AND circuit 11, a counter 12, etc.
The output signal from the oscillation circuit section 8 is output to the AND circuit 11 and the frequency dividing circuit section 9, and the two frequency-divided signals are output to the NAN.
D circuit 10, and the output terminal of the NAND circuit 10 is connected to the AND circuit 11, the clear signal input terminal of the counter 12, and the output terminal T1 that outputs the control signal to the A/D conversion circuit 2. , the input terminal of the AND circuit l1 is connected to the A
The output terminal of the AND circuit l1 is connected to the input terminal T2 which takes in the output signal of the /D conversion circuit, and the output terminal of the AND circuit l1 is connected to the counter 1.
It is connected to the input terminal of 2.

以上、温度検出手段I  A/D変換回路2、マイコン
3の要部構成を説明したが、以下、これらの動作を第1
図および第2図を用いて説明する。
The main parts of the temperature detection means I A/D conversion circuit 2 and microcomputer 3 have been explained above.
This will be explained using the diagram and FIG.

発振回路部8からは第2図Aに示すようなl,0の信号
が出力され、この信号はAND回路11に入力されると
共に、分周回路部9に入力される。
The oscillation circuit section 8 outputs l, 0 signals as shown in FIG.

分周回路部9では第2図のBおよびCに示すような二通
りの信号に分周出力し、NAND回路10にて第2図D
に示すような信号に変換して、AND回路1l、カウン
タl2およびA/D変換回路2に入力する。
The frequency dividing circuit section 9 divides and outputs the frequency into two signals as shown in B and C in FIG. 2, and the NAND circuit 10 outputs the frequency as shown in
The signal is converted into a signal as shown in FIG.

第1図に示すD点の出力レベルがHであれば、AND回
路11およびカウンタ12は動作可能な状態に維持され
るが、A/D変換回路2側のトランジスタ7はPNP型
であるため動作せず、第1図のb点およびC点のレベル
は第2図の左端に示す如《、Lの状態である. 前記D点の出力レベルがHからLに反転するとAND回
路11は動作停止状態になり、カウンタ12はクリアさ
れ、トランジスタ7はオンする。
If the output level at point D shown in FIG. 1 is H, the AND circuit 11 and the counter 12 are maintained in an operable state, but the transistor 7 on the A/D conversion circuit 2 side is of PNP type, so it is not operable. Therefore, the levels at point b and point C in FIG. 1 are in the L state as shown at the left end of FIG. When the output level at the point D is reversed from H to L, the AND circuit 11 stops operating, the counter 12 is cleared, and the transistor 7 is turned on.

このトランジスタ7の導通により、コンデンサC1は充
電され、b点の電位は第2図に示すbのレベルまで上昇
し、このとき、温度検出手段1の出力端aから第2図a
に破線で示すようなアナログ信号電圧が出力されている
と比較器6の出力は第2図Cに示すようなレベルHの状
態が続く。
Due to the conduction of the transistor 7, the capacitor C1 is charged, and the potential at point b rises to the level b shown in FIG.
When the analog signal voltage shown by the broken line is outputted, the output of the comparator 6 continues to be at level H as shown in FIG. 2C.

次に、トランジスタ7への入力レベルが第2図Dに示す
ようにLからHに反転すると、前述のとおり、トランジ
スタ7はオフ状態となるため、コンデンサC1への充電
もなくなり、同コンデンサC1の電荷は抵抗R2により
放電され、b点の電位は時間の経過と共に第2図bのレ
ベルからほぼ0の状態に低下する. また、前述のとおり、D点のレベルがLからHに反転す
ると、AND回路l1も動作可能な状態になるため、A
ND回路11の出力レベルはHになり、カウンタl2は
第2図dに示すようにカウントを開始し、先に説明した
b点の電位がa点の電位よりも低くなると比較器6の出
力レベルは第2図Cに示すようにHからLに反転し、A
ND回路l1の出力レベルはLになり、カウンタ12は
カウント動作を停止する. もし、温度検出手段1の出力端aから出力される電圧レ
ベルが第2図に示すaのレベルよりも高ければ、第2図
Cに示すレベルHの状態がレベルLの状態に反転するま
での時間が短くなるためカウンタ値も少なくなり、出力
端aの電圧レベルが図示の位置よりも低ければ前述のH
からLに反転する末での時間が長くなりカウンタ値も増
加する.したがって、このカウンタ値から温度検出手段
1により検出される温度の高低を知ることができ、マイ
コンを駆動制御するのに必要なデジタル信号として取り
出すことができる。
Next, when the input level to transistor 7 is reversed from L to H as shown in FIG. The charge is discharged by the resistor R2, and the potential at point b decreases from the level shown in FIG. 2b to approximately 0 with the passage of time. Furthermore, as mentioned above, when the level at point D is inverted from L to H, AND circuit l1 also becomes operational, so A
The output level of the ND circuit 11 becomes H, and the counter l2 starts counting as shown in FIG. is reversed from H to L as shown in Figure 2C, and A
The output level of the ND circuit l1 becomes L, and the counter 12 stops counting. If the voltage level output from the output terminal a of the temperature detection means 1 is higher than the level a shown in FIG. Since the time becomes shorter, the counter value also decreases, and if the voltage level at the output terminal a is lower than the position shown in the figure, the above-mentioned H
The time at the end of the reversal from L to L increases, and the counter value also increases. Therefore, the level of the temperature detected by the temperature detection means 1 can be known from this counter value, and can be extracted as a digital signal necessary for driving and controlling the microcomputer.

なお、本発明のA/D変換回路では、前記充放電手段5
のCR定数を調整することにより量子化ステップを変え
ることができ、また、マイコン3側の動作はソフトウエ
アで対応することもできる.〔発明の効果〕 以上、説明したようなA/D変換回路であるならば、従
来のものに比して、より少ない部品点数で構成できるた
め制作も容易かつ安価であり、CR定数を調整すること
により量子化ステップを容易に調整することができるの
で雑音対策にも有効である。
In addition, in the A/D conversion circuit of the present invention, the charging/discharging means 5
The quantization step can be changed by adjusting the CR constant of , and the operation on the microcomputer 3 side can also be handled by software. [Effects of the Invention] As described above, the A/D conversion circuit as described above can be constructed with a smaller number of parts than the conventional one, so it is easy and inexpensive to manufacture, and the CR constant can be adjusted. This allows the quantization step to be easily adjusted, which is also effective as a noise countermeasure.

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

第1図は本発明の一実施例を示すA/D変換回路図、第
2図は同実施例の動作波形図、第3図は従来例を示すA
/D変換回路図である。 図中、1−・1度検出手段、2−A / D変換回路、
3−マイコン、4−−−−−サーミスタ、5 −一一一
一充放電手段、6 一比較器、7−・一トランジスタ、
8一発振回路舐9・一・分周回路部、10−N A N
 D回路、11−A N D回路、12 − カウンタ
、R1〜R 3−抵抗、c i−−−−−コンデンサ、
Vdd−−−−一電源、T I−出力端、T 2−−−
−一人力端。
Fig. 1 is an A/D conversion circuit diagram showing an embodiment of the present invention, Fig. 2 is an operation waveform diagram of the same embodiment, and Fig. 3 is an A/D conversion circuit diagram showing a conventional example.
/D conversion circuit diagram. In the figure, 1-.1 degree detection means, 2- A/D conversion circuit,
3-microcomputer, 4--thermistor, 5-1111 charging/discharging means, 6-1 comparator, 7--1 transistor,
81 oscillation circuit 9.1 frequency division circuit section, 10-N A N
D circuit, 11-A N D circuit, 12-counter, R1 to R3-resistance, c i------- capacitor,
Vdd----1 power supply, T I-output end, T2----
- Only one person can do it.

Claims (1)

【特許請求の範囲】[Claims] 温度検出手段よりのアナログ信号電圧をデジタル信号電
圧に変換するA/D変換回路において、前記A/D変換
回路を、周期的に入力される制御信号に基づき充電およ
び放電を繰り返す充放電手段と、この充放電手段よりの
出力電圧と前記温度検出手段よりのアナログ信号電圧と
を比較する比較器とにより構成したことを特徴とするA
/D変換回路。
In an A/D conversion circuit that converts an analog signal voltage from a temperature detection means into a digital signal voltage, a charging/discharging means repeats charging and discharging the A/D conversion circuit based on a control signal that is periodically input; A characterized in that it is constituted by a comparator that compares the output voltage from the charging/discharging means and the analog signal voltage from the temperature detecting means.
/D conversion circuit.
JP1444190A 1990-01-23 1990-01-23 A/D conversion circuit Pending JPH03218123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1444190A JPH03218123A (en) 1990-01-23 1990-01-23 A/D conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1444190A JPH03218123A (en) 1990-01-23 1990-01-23 A/D conversion circuit

Publications (1)

Publication Number Publication Date
JPH03218123A true JPH03218123A (en) 1991-09-25

Family

ID=11861118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1444190A Pending JPH03218123A (en) 1990-01-23 1990-01-23 A/D conversion circuit

Country Status (1)

Country Link
JP (1) JPH03218123A (en)

Similar Documents

Publication Publication Date Title
JP2999887B2 (en) IGBT overcurrent protection circuit and semiconductor integrated circuit device
EP0582289B1 (en) Transistor circuit for holding peak/bottom level of signal
JPH06510852A (en) Voltage detection circuit array
JPS584848B2 (en) A/D conversion circuit
JPH07141087A (en) Driving device for input device of resistance film system
JP2004304334A (en) Semiconductor device and reset signal sending method
JPH0599756A (en) Detector for temperature
JPH0241954Y2 (en)
US6147675A (en) Input device for transmitting an input signal to a computer game port
JP3148443B2 (en) DC stabilized power supply
JPS5812140Y2 (en) level display device
JP3303932B2 (en) DC / DC converter
JP2681478B2 (en) Semiconductor heat detector
JPH05283994A (en) Reset circuit
JPH07202701A (en) Integration circuit and battery charger using it
JPS62614B2 (en)
JP2532454Y2 (en) Timer circuit
JPS5910821Y2 (en) electronic timer
JPS5834620A (en) Time constant circuit
JPS6016017A (en) Pulse width voltage converter
CN100353651C (en) DC/DC converter and DC power supply system
JPH06174756A (en) Peak hold circuit
JPH0534026Y2 (en)
JPS62243414A (en) Oscillation circuit
JPS5922418A (en) Muting circuit