Application of ADS1286 in temperature detection

Publisher:sedsedqLatest update time:2011-08-03 Keywords:ADS1286 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Temperature detection is common in the field of industrial measurement and control. Using high-precision A/D conversion chips and single-chip microcomputers, a temperature detection system with high measurement accuracy and stable performance can be easily constructed. This paper uses the 12-bit serial controlled A/D conversion chip ADS1286 and cooperates with the AT89C2051 single-chip microcomputer to design the temperature acquisition part of the temperature detection system.

1 Chip Introduction

ADS1286 is a 12-bit micro-power A/D conversion chip produced by BURR-BROWN, USA. Its power supply current is only 250μA, the sampling rate is 20 kHz, and it provides a serial interface for two-wire or three-wire interface communication and is compatible with SPI or SSI. The characteristics of micro-power consumption and serial interface make ADS1286 very suitable for applications where data acquisition is required over long distances and shielding is required. ADS1286 adopts an 8-pin small DIP package. VREF is the reference voltage input terminal; +In is the in-phase input terminal; -In is the inverting input terminal; GND is the ground terminal; is the chip select terminal/low power mode selection. When this pin is low, the chip select is valid, and when this pin is high, it is in low power mode; DOUT is the serial data output terminal; DCLOCK is the clock input terminal; +Vcc is the positive power supply terminal (+6 V MAX). The internal structure of the ADS1286 chip is shown in Figure 1, which consists of a sample/hold differential amplifier, a capacitor digital/analog converter CDAC, a comparator, a successive approximation register, a control circuit and a serial interface circuit. The serial interface consists of two digital inputs (DCLOCK and /SHDN) and one three-state output port DOUT, forming a three-wire interface for serial communication with the microprocessor.

ADS1286 internal structure diagram

The working sequence of ADS1286 is shown in Figure 2. After power-on, the terminal is set to a high level. At this time, the chip select is invalid, the clock signal input of the DCLOCK terminal is prohibited, and the DOUT terminal is in a high-impedance state. After the terminal level changes from high to low, the chip select is valid, and the A/D sampling sequence begins. After the delay time tCSD, the clock signal is allowed to access the DCLOCK terminal. After the chip select is valid, the A/D conversion sequence begins from the second clock signal. The DOUT terminal is out of the high-impedance state and outputs a synchronous digital sequence at the falling edge of each clock signal. After outputting an invalid bit (NULL BIT) first, the DOUT terminal outputs the 12-bit A/D conversion result from the high bit (MSB) at the falling edge of each signal of the next 12 clock signals, and latches the 12-bit A/D conversion result at the rising edge of each clock signal. After the conversion time of 12 clock signal cycles ends until the next change from high to low at the /SHDN terminal level, the ADS1286 works in low power mode.

ADS1286 working timing diagram

The difference between Figure 2(a) and Figure 2(b) is that after the DOUT terminal outputs the 12-bit A/D conversion result from high to low, if the DCLOCK terminal still maintains the clock signal, the DOUT terminal will output the A/D conversion result again from the second lowest bit (LSB+1 bit) from low to high until the /SHDN terminal level changes from low to high. If the DCLOCK terminal clock signal is still valid after the A/D conversion result is fully output, the DOUT terminal outputs a low-level signal. This process is shown in Figure 2(b).

2. Hardware Design of Temperature Collection

In the temperature detection system, in order to collect the current temperature of the target object, a platinum resistor with a wide temperature measurement range and good stability is used as the temperature measuring element. The Wheatstone bridge composed of platinum resistors converts the temperature signal into a small voltage signal, which is then amplified by the instrument amplifier to obtain the amplified analog temperature signal. In order to process the collected temperature signal, it is necessary to first convert the collected and amplified analog temperature signal into a digital signal, and then send it to the microcontroller for processing. This paper uses the 12-bit resolution analog/digital conversion chip ADS1286 to perform A/D conversion on the collected analog temperature signal to reduce the quantization error of the A/D conversion. ADS1286 is under the control of the clock signal sent by the AT89C2051 microcontroller, and when the chip select is valid, it provides 12-bit serial temperature data to the microcontroller through the serial data output terminal. The principle block diagram of the temperature acquisition part is shown in Figure 3.

The temperature acquisition circuit is shown in Figure 4. The Wheatstone bridge composed of platinum resistor Rt, resistors R1, R2, R3 and variable resistor W1 is used to measure the temperature of the target. The resistance of the platinum resistor changes accordingly with the temperature, and the Wheatstone bridge also outputs a changing voltage. The output voltage is small, and it needs to be connected to the AD620 instrument amplifier shown in Figure 4 for amplification to meet the input voltage range required for A/D conversion. The AD620 instrument amplifier has the characteristics of low power consumption and high gain. The amplification factor is changed by adjusting the resistance of the external variable resistor Rg, and its amplification gain G=1+49.4 k/Rg. According to the range of the detected temperature, the variable resistors W1 and Rg are adjusted in turn, so that at the lowest and highest detection temperatures, the amplifier outputs 0 and 5 V respectively. Therefore, when the temperature changes within the detection range, the amplifier can output an input voltage range (0~5 V) that meets the needs of A/D conversion.

After the analog temperature signal is collected and amplified, its output signal is connected to the ADS1286 chip through the +In pin for A/D conversion. The +VCC pin of the ADS1286 chip is connected to the positive power supply Vcc, the VREF pin is connected to the reference power supply VREF, and the -In and GND pins are grounded. The DCLOCK, DOUT and pins of the ADS1286 chip are respectively connected to the three pin outputs of the AT89C2051 microcontroller P1.5~P1.3. The microcontroller outputs the clock signal required for the ADS1286 to work from the P1.5 pin through the program. The microcontroller can select the ADS1286 chip and the low power mode through the P1.3 pin. When the pin outputs a low level, the ADS1286 chip select is valid. When the pin is high, the ADS1286 is in a low power state. AT89C2051 strictly follows the operation timing of the ADS1286 chip, controls the ADS1286 chip to perform A/D conversion on the analog temperature signal, and outputs the converted 12-bit digital temperature data from the DOUT pin and inputs it serially to the microcontroller through the P1.4 pin.

In the temperature acquisition circuit, the ±15 V voltage generated by the switching power supply is used as the positive and negative power supplies of the AD620 instrument amplifier. The +15 V voltage is connected to the shunt regulator composed of the TL431ALCP precision reference regulator and resistors R4~R6. Its output provides precise voltage to the outside and is used as the power supply of the Wheatstone bridge and the reference power supply of the ADS1286 chip.

The timing control of the ADS1286 chip by the AT89C2051 microcontroller adopts the operation timing shown in Figure 2(b). First, a low level is provided to the terminal through the P1.3 pin to make the ADS1286 chip select valid. The ADS1286 starts to sample the analog input voltage. After the delay time tCSD, the AT89C2051 provides a clock signal to the DCLOCK terminal through the P1.5 pin. After the ADS1286 chip select is valid, the A/D conversion timing starts from the second clock signal. At this time, the DOUT terminal first outputs an invalid bit. At the falling edge of each signal of the next 11 clock signals, the DOUT terminal starts to output the A/D conversion result from the high bit (MSB). At the falling edge of each signal of the next 12 clock signals, the DOUT terminal starts to output the 12-bit A/D conversion result again from the LSB bit. The AT89C2051 microcontroller receives the conversion result from the low bit to the high bit through the P1.4 pin at the falling edge of each clock signal. After receiving the 12-bit digital temperature data, the microcontroller sets the P1.3 pin to a high level and prepares to receive the A/D converted temperature data from ADS1286 next time.

3. Software Design of Temperature Acquisition

The AT89C2051 microcontroller needs to read the 12-bit A/D conversion result of the ADS1286 chip twice. The lower 8-bit conversion result is stored in the on-chip RAM31H unit, and the higher 4-bit conversion result is stored in the on-chip RAM32H unit. The temperature acquisition A/D conversion subroutine is as follows:



4 Conclusion

The ADS1286 chip is used in the design of the micro heater of the airflow liquid phase microextraction instrument. The detection temperature range is 0-350℃, and the micro heater temperature detection accuracy reaches ±0.1℃. It is precisely because the ADS1286 can simplify the circuit design and ensure the high accuracy of the measurement system that it has high practical value in the field of intelligent instrumentation and industrial measurement and control.

Keywords:ADS1286 Reference address:Application of ADS1286 in temperature detection

Previous article:Design of high-speed SPI interface based on AT25T1024 FLASH
Next article:Determination of Baud Rate in Serial Communication between Single Chip Microcomputer and PC

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号