AN1755 APPLICATION NOTE

Similar documents
Obsolete Product(s) - Obsolete Product(s)

74VHCT138ATTR 3 TO 8 LINE DECODER (INVERTING)

HCF4532B 8-BIT PRIORITY ENCODER

AN922 Application note


KD A LOW DROP POSITIVE VOLTAGE REGULATOR ADJUSTABLE AND FIXED

Obsolete Product(s) - Obsolete Product(s)

HCF4555B DUAL BINARY TO 1 OF 4 DECODER/DEMULTIPLEXER OUTPUT HIGH ON SELECT

AN2970 Application note

M74HCT138TTR 3 TO 8 LINE DECODER (INVERTING)

LD1117A SERIES LOW DROP FIXED AND ADJUSTABLE POSITIVE VOLTAGE REGULATORS


7.5A LOW DROP POSITIVE VOLTAGE REGULATOR ADJUSTABLE AND FIXED. October 2002

Obsolete Product(s) - Obsolete Product(s)

NE556 SA556 - SE556 GENERAL PURPOSE DUAL BIPOLAR TIMERS. LOW TURN OFF TIME MAXIMUM OPERATING FREQUENCY GREATER THAN 500kHz

STTH6004W. Ultrafast high voltage rectifier. Table 1: Main product characteristics I F(AV) 60 A V RRM. 400 V T j (max) 175 C V F (typ)

M74HCT688TTR 8 BIT EQUALITY COMPARATOR

Obsolete Product(s) - Obsolete Product(s)

M74HC20TTR DUAL 4-INPUT NAND GATE

Obsolete Product(s) - Obsolete Product(s)

ST3L01 TRIPLE VOLTAGE REGULATOR

Obsolete Product(s) - Obsolete Product(s)

LD1117A SERIES LOW DROP FIXED AND ADJUSTABLE POSITIVE VOLTAGE REGULATORS

Obsolete Product(s) - Obsolete Product(s)

Table 3: Absolute Ratings (limiting values) Symbol Parameter Value Unit I T(RMS)

M74HC147TTR 10 TO 4 LINE PRIORITY ENCODER

HCF4543B BCD-TO-7-SEGMENT LATCH/DECODER/LCD DRIVER

AN2044 APPLICATION NOTE

L7800 SERIES POSITIVE VOLTAGE REGULATORS

HCF4035B 4 STAGE PARALLEL IN/PARALLEL OUT SHIFT REGISTER

HCF4089B BINARY RATE MULTIPLIER


BAR42FILM BAR43FILM SMALL SIGNAL SCHOTTKY DIODE. Table 1: Main Product Characteristics I F(AV) 0.1 A V RRM. 30 V T j 150 C 0.33 and 0.

Obsolete Product(s) - Obsolete Product(s)

Obsolete Product(s) - Obsolete Product(s)

STM1831. Voltage detector with sense input and external delay capacitor. Features. Applications

STD5N20L N-CHANNEL 200V Ω - 5A DPAK STripFET MOSFET

L7800AB/AC SERIES PRECISION 1A REGULATORS

Obsolete Product(s) - Obsolete Product(s)

2N3904 SMALL SIGNAL NPN TRANSISTOR

Order codes Part numbers DPAK (tape and reel) PPAK (tape and reel)

L7800 SERIES POSITIVE VOLTAGE REGULATORS

STPS1L40M LOW DROP POWER SCHOTTKY RECTIFIER. Table 1: Main Product Characteristics I F(AV) V RRM. 1 A 40 V T j (max) 150 C V F (max) 0.

LD29300xx. 3 A, very low drop voltage regulators. Features. Description

TURBO 2 ULTRAFAST HIGH VOLTAGE RECTIFIER

ULTRAFAST RECTIFIER PDP ENERGY RECOVERY

ULTRAFAST RECTIFIER PDP ENERGY RECOVERY

STTH212RL. High voltage ultrafast diode. Main product characteristics. Features and benefits. Order codes. Description DO-201AD STTH212

M74HC4543TTR BCD TO 7 SEGMENT LATCH/DECODER/LCD DRIVER

L79L00 SERIES NEGATIVE VOLTAGE REGULATORS

STTH61R04TV. Ultrafast recovery diode. Main product characteristics. Features and benefits. Order codes. Description A1 K2 ISOTOP ISOTOP STTH61R04TV1

STTH60R04. Ultrafast recovery diode. Main product characteristics. Features and benefits. Description. Order codes

STTH6110TV. Ultrafast recovery - high voltage diode. Main product characteristics. Features and benefits. Order codes. Description ISOTOP ISOTOP

AN1542 APPLICATION NOTE

STTH3R06RL TURBO 2 ULTRAFAST HIGH VOLTAGE RECTIFIER. Table 1: Main Product Characteristics I F(AV) V RRM

TEA6422 BUS-CONTROLLED AUDIO MATRIX

T4 Series 4A TRIACS. Table 1: Main Features Symbol Value Unit I T(RMS) 4 A. V DRM /V RRM 600 to 800 V. I GT (Q1 ) 5 to 35 ma

TURBO 2 ULTRAFAST HIGH VOLTAGE RECTIFIER

SD2902. RF POWER TRANSISTORS HF/VHF/UHF N-CHANNEL MOSFETs

BTA12, BTB12 and T12 Series

STTH6006W. Turbo 2 ultrafast - high voltage rectifier. Features and benefits. Description. Main product characteristics

DO-15 DO-201AD STTH3R04Q STTH3R04

T810H. High temperature 8 A sensitive TRIACs. Features. Applications. Description. Medium current TRIAC

STTH312B. Ultrafast recovery V diode. Main product characteristics. Features and benefits. Description. Order codes

STTH16R04CT. Ultrafast recovery diode. Main product characteristics. Features and benefits. Description. Order codes TO-220AB TO-220FPAB

TURBO 2 ULTRAFAST HIGH VOLTAGE RECTIFIER

HCC/HCF4093B QUAD 2-INPUT NAND SCHMIDT TRIGGERS

7.5 NS TRIPLE HIGH VOLTAGE VIDEO AMPLIFIER. March /9

L78L00 SERIES POSITIVE VOLTAGE REGULATORS

L78LxxAB L78LxxAC - L78LxxC

LD1117 SERIES LOW DROP FIXED AND ADJUSTABLE POSITIVE VOLTAGE REGULATORS

2N2904A-2N2905A 2N2906A-2N2907A

AN420 Application note

TONE CONTROL AND SURROUND DIGITALLY CONTROLLED AUDIO PROCESSOR WITH AGC PS1 AGC LP L-IN1 R-IN1 L-IN2 R-IN2 L-IN3 R-IN3 L-IN4 R-IN4 L-IN5 R-IN5 L-MUX

TURBO 2 ULTRAFAST HIGH VOLTAGE RECTIFIER

BAT60J SMALL SIGNAL SCHOTTKY DIODE FEATURES AND BENEFITS VERY SMALL CONDUCTION LOSSES NEGLIGIBLE SWITCHING LOSSES LOW FORWARD VOLTAGE DROP

AN1184 APPLICATION NOTE

.EXPANDABLE WITH MULTIPLE PACKAGES

STPS2030CT/CG/CR LOW DROP POWER SCHOTTKY RECTIFIER MAJOR PRODUCTS CHARACTERISTICS. 2x10A 30 V Tj (max) 150 C

STTH15L06. Turbo 2 ultrafast high voltage rectifier. Description. Features

HCC/HCF40181B 4-BIT ARITHMETIC LOGIC UNIT

MC MC35172 LOW POWER DUAL BIPOLAR OPERATIONAL AMPLIFIERS.. GOOD CONSUMPTION/SPEED RATIO : ONLY 200µA/Amp FOR 2.1MHz, 2V/µs

STTH1506DPI. Tandem 600V HYPERFAST BOOST DIODE MAJOR PRODUCTS CHARACTERISTICS I F(AV) 15 A 600 V Tj (max) 150 C

HCC/HCF4042B QUAD CLOCKED D LATCH

. DIRECTLY CALIBRATED IN o K. . 1 o C INITIAL ACCURACY. . OPERATES FROM 450µA TO 5mA .LESS THAN 1Ω DYNAMIC IMPEDANCE LM135 LM235-LM335,A

BTA/BTB16 and T16 Series

BTA/BTB24, BTA25, BTA26 and T25 Series

STTH3002. Ultrafast recovery diode. Main product characteristics. Features and benefits. Description. Order codes K DOP3I STTH3002PI DO-247 STTH3002W

TN8, TS8 and TYNx08 Series

STPS3L60/Q/U POWER SCHOTTKY RECTIFIER MAIN PRODUCT CHARACTERISTICS. 60 V Tj (max) 150 C DO-15 STPS3L60Q DO-201AD STPS3L60

STTH8R03G/D 300V HYPERFAST RECTIFIER MAJOR PRODUCT CHARACTERISTICS. 8A 300 V I RM (typ.) Tj (max) 175 C TO-220AC STTH8R03D

ESDAULC5-1BF4. Low clamping and ultra low capacitance single line bidirectional ESD protection. Applications. Description.

. HIGH SPEED .LOW POWER DISSIPATION .HIGH NOISE IMMUNITY M54HC354 M74HC354 8 CHANNEL MULTIPLEXER/REGISTER (3 STATE) tpd = 24 ns (TYP.

TN12, TS12 and TYNx12 Series

.SET-RESET CAPABILITY

HCC4543B HCF4543B BCD-TO-7 SEGMENT LATCH/DECODER/LCD DRIVER HCC/HCF4543B

STPS20M60S. Power Schottky rectifier. Features. Description. High current capability Avalanche rated Low forward voltage drop High frequency operation

. HIGH SPEED .LOW POWER DISSIPATION .OUTPUT DRIVE CAPABILITY M54HCT138 M74HCT138 3 TO 8 LINE DECODER (INVERTING) t PD = 16 ns (TYP.

HCC40147B HCF40147B 10 TO 4 LINE BCD PRIORITY ENCODER

. HIGH SPEED .LOW POWER DISSIPATION .HIGH NOISE IMMUNITY M54HC85 M74HC85 4-BIT MAGNITUDE COMPARATOR. tpd = 22 ns (TYP.) at VCC =5V

Transcription:

AN1755 APPLICATION NOTE A HIGH RESOLUTION / PRECISION THERMOMETER USING ST7 AND NE555 INTRODUCTION The goal of this application note is to present a realistic example of a thermometer using an ST7 and an NE555. The NE555 is operating in the a-stable mode. Its frequency is controlled by the resistance changes of a NTC-thermistor. The frequency, as well as the duty cycle, are measured by the ST7 timer. The NE555 output is connected to the timer input capture pin. Rev. 1.0 AN1755/0304 1/7 1

1 DESCRIPTION OF NE555 The NE555 monolithic timing circuit is a highly stable controller capable of producing accurate time delays or oscillation. In the time delay mode of operation, the time is precisely controlled by one external resistor and capacitor. For a stable operation as an oscillator, the free running frequency and the duty cycle are both accurately controlled with two external resistors and one capacitor. For more details see NE555 datasheet. 2 ASTABLE OPERATION The circuit is shown in Figure 1. (pin 2 and 6 connected). It triggers itself and operates as a free running multi vibrator. The external capacitor charges through R 1 and R 2 and discharges through R 2. Thus the duty cycle is precisely set by the ratio of these two resistors. In the a- stable mode of operation, C 1 charges and discharges between 1/3 V CC and 2/3 V CC. Due to the self-triggered mode, the charge and discharge times and therefore frequency are independent of the supply voltage. Figure 1. Circuit Diagram of NE555 in a-stable mode V CC + = 5V 4 8 R 1 Output 3 7 0.01µF Control Voltage 5 NE555 1 2 6 R 2 C 1 The charge time (output HIGH) is given by (1) t 1 = 0.693 (R 1 + R 2 ) C 1 and the discharge time (output LOW) by (2) t 2 = 0.693 (R 2 ) C 1 Thus the total period T is given by (3) T = t 1 + t 2 = 0.693 (R 1 + 2R 2 ) C 1 2/7 2

Figure 2. NE555 Timing Diagram output t 1 t 2 voltage on C 1 3 THEORY OF OPERATION - NE555 In general we can use the R ntc in place of R 1 as well as in place of R 2. We assume R ntc in place of R 1. The times needed to charge (1) and to discharge (2) the capacitor will be (4) t 1 = 0.693 (R ntc + R 2 ) C 1 (5) t 2 = 0.693 (R 2 ) C 1 The result of the measurement should be dependent on the value of R ntc only. For that R 2 and C 1 should not vary with temperature or age. That is why the capacitor C 1 is to be eliminated from the equations.the periods t 1 and t 2 are measured with the ST7 timer. From formula (4) and (5) we can calculate two variables. Expressing C 1 from (5) and putting it in (4) we obtain (6) R ntc = R 2 (t 1 -t 2 ) / t 2 The result depends on the precision of the time measuring (t 1, t 2 ) and tolerance of R 2 only. It depends neither on C 1 nor the supply voltage. 4 THEORY OF OPERATION - ST7 The rising and falling edges of the input signal are captured by the micro and periods t 1, t 2 are measured with the built-in timer. The timer resolution (125 ns @ 8MHz) is sufficient to capture these edges. Note: To calculate equation (6) we can use multiples of 125ns for simplicity. 3/7

5 DESIGN To design our circuit, we need to choose the right values of R 2 and C 1. These two values determine the frequency of the output signal (3). For the given temperature range (0-40 C) and a 10KΩ NTC resistor, the chosen values are 40kΩ for R 2 and 100nF for C 1. Table 1. Table of theoretical values of designed thermometer Temperature ( C) 0 27279 4,662 2,772 37299 22176 635 1 26134 4,583 2,772 36665 22176 605 2 25043 4,507 2,772 36060 22176 577 3 24003 4,435 2,772 35483 22176 549 4 23012 4,367 2,772 34934 22176 524 5 22067 4,301 2,772 34410 22176 500 6 21166 4,239 2,772 33910 22176 477 7 20306 4,179 2,772 33434 22176 455 8 19486 4,122 2,772 32979 22176 434 9 18703 4,068 2,772 32545 22176 414 10 17956 4,016 2,772 32131 22176 395 11 17243 3,967 2,772 31736 22176 378 12 16561 3,920 2,772 31357 22176 361 13 15910 3,875 2,772 30997 22176 345 14 15288 3,831 2,772 30652 22176 329 15 14694 3,790 2,772 30322 22176 315 16 14126 3,751 2,772 30007 22176 302 17 13582 3,713 2,772 29706 22176 288 18 13063 3,677 2,772 29418 22176 276 19 12565 3,643 2,772 29142 22176 263 20 12090 3,610 2,772 28879 22176 252 21 11635 3,578 2,772 28626 22176 242 22 11199 3,548 2,772 28385 22176 231 23 10782 3,519 2,772 28154 22176 222 24 10382 3,491 2,772 27932 22176 212 25 10000 3,465 2,772 27720 22176 203 26 9633 3,440 2,772 27517 22176 195 27 9282 3,415 2,772 27322 22176 187 28 8945 3,392 2,772 27135 22176 179 29 8622 3,370 2,772 26956 22176 172 30 8312 3,348 2,772 26784 22176 164 31 8016 3,328 2,772 26620 22176 158 32 7731 3,308 2,772 26462 22176 151 33 7458 3,289 2,772 26311 22176 146 34 7195 3,271 2,772 26165 22176 139 R ntc (Ω) t 1 (ms) t 2 (ms) t 1 (tics) t 2 (tics) t 1 (tics) 4/7

Temperature ( C) 35 6944 3,253 2,772 26026 22176 134 36 6702 3,236 2,772 25892 22176 129 37 6470 3,220 2,772 25763 22176 124 38 6247 3,205 2,772 25639 22176 119 39 6033 3,190 2,772 25521 22176 114 40 5827 3,176 2,772 25406 22176 Table 2. Parameters and their meanings R ntc (Ω) t 1, t 2 (ms) Parameter t 1, t 2 (tics) t 1 (tics) 6 PRACTICAL ISSUES R ntc (Ω) t 1 (ms) t 2 (ms) t 1 (tics) t 2 (tics) t 1 (tics) Comments Value of 10KΩ NTC-Resistor at particular temperature Example: R ntc (25 C) = 10KΩ Values of the time corresponding to measured temperature, please refer to equations (4), (5). Example: t 1 (25 C) = 0.693 * (10 kω + 40 kω) * 100nF = 3.465 ms t 2 (25 C) = 0.693 * 40 kω * 100nF = 2.772 ms Values of the time in 125ns timer tics (@8 MHz) Example: t 1 (25 C) = 3.465 ms / 125 ns = 27720 tics t 2 (25 C) = 2.772 ms / 125 ns = 22176 tics 1 tic = Time period of timer Represents achieved resolution. It's the difference of the values per one degree Celsius t 1 = t 1 (n) - t 1 (n+1). Example: t 1 (25 C) = t 1 (25 C) - t 1 (26 C) = 27720-27517 = 203 tics It is possible to implement this algorithm with any ST7 family micro (2K of program memory is required). In general you can choose: 12-bit autoreload timer allowing configuration to f cpu (~125ns), for ex. ST7LITE @8MHz 16-bit timer allowing configuration to f cpu/2 (~250ns), for ex. ST72264 @8MHz In the second case we are able to do the time measuring in one timer cycle. Averaging of measured results is recommended but not needed. The frequency is quite stable. You can use bipolar SA555, SE555 instead of NE555 (the difference is in the operating temperature range only). Recommended values are 40k for R 2 and 100nF for C 1. If you use CMOS TS555 you should redesign the resistor and capacitor values to match its electrical characteristics. 5/7

7 CONCLUSION With this method we are able to achieve high resolution temperature measurement. The main advantages are the independence from variations in capacitor C 1 and the supply voltage. Only the precision of the used resistor and the NTC affects the final result. 6/7

THE PRESENT NOTE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH A NOTE AND/OR THE USE MADE BY CUSTOMERS OF THE INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners 2004 STMicroelectronics - All rights reserved STMicroelectronics GROUP OF COMPANIES Australia Belgium - Brazil - Canada - China Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States www.st.com 7/7