This circuit shows how to use the ADuC7122 precision analog microcontroller in a precision thermistor temperature monitoring application . The ADuC7122 integrates a multi-channel 12-bit SAR ADC, 12 12-bit DACs, 1.2 V internal reference, ARM7 core, 126 kB Flash, 8 kB SRAM, and various digital peripherals such as UART, timers, SPI, and two I 2 C interface, etc. It is connected to a 4.7 kΩ thermistor.
The ADuC7122 is packaged in a small 7 mm × 7 mm, 108-pin BGA package, so the entire circuit can be placed on a very small PCB, further reducing cost.
Thermistors are temperature-sensitive, low-cost resistors that function similarly to RTDs and are constructed of solid semiconductor materials with either a positive or negative temperature coefficient. Thermistors are inexpensive, highly sensitive, and can detect subtle temperature changes that cannot be observed with RTDs or thermocouples. However, the thermistor has highly nonlinear characteristics; therefore, it can only be applied over a very narrow temperature range without linearization techniques. Circuit linearization techniques can be implemented in software, but this is beyond the scope of this article.
Despite its powerful ARM7 core and high-speed SAR ADC, the ADuC7122 is a low-power solution. When the ARM7 core is operating at 326.4 kHz, the main ADC is active, and the external temperature sensor is measured, the typical power consumption of the entire circuit is 7 mA. The ADC and/or microcontroller can be shut down between temperature measurements, further reducing power consumption.
The circuit shown in Figure 1 is powered entirely through the USB interface. Using the ADP3333 3.3 V low dropout linear regulator , the 5 V power supply provided by the USB interface can be adjusted to 3.3 V, thereby providing the DVDD voltage to the ADuC7122. The ADuC7122's AVDD supply is additionally filtered as shown. A filter is also placed at the input of the linear regulator to filter the USB power supply.
The following features of the ADuC7122 are used in this application:
The thermistor used in this circuit is a 4.7 kΩ resistor, model NCP18XM472 . It comes in a 0603 surface mount package. At 25°C, the thermistor used in the circuit of Figure 2 has the following characteristics: β = 3500 (the β parameter describes the relationship between resistance and temperature), resistance (R 25 ) = 4.7 kΩ.
The USB interface of ADuC7122 is implemented through FT232R UART to USB, which directly converts USB signals into UART protocol.
In addition to the decoupling shown in Figure 1, the USB cable itself should use ferrite beads for enhanced EMI/RFI protection. The ferrite beads used in this circuit are Taiyo Yuden BK2125HS102-T , which has an impedance of 1000 Ω at 100 MHz.
This circuit must be built on a multilayer circuit board with a large area ground plane. For optimal performance, proper layout, grounding, and decoupling techniques must be used (refer to Tutorial MT-031 , Tutorial MT-101 , and ADuC7122 Evaluation Board Layout ).
The input thermistor circuit in Figure 2 is designed to produce accurate temperature measurements from 0°C to 90°C. Please note that this system does not include temperature correction. This circuit contains a simple thermistor circuit that does not provide circuit linearization. If linearization is used, it can operate over a wider temperature range, although this reduces the sensor's resolution.
The circuit shown in Figure 2 uses a voltage divider configuration, so the ADC result D can be converted into the resistance measurement result of RTH (thermistor). The calculation formula is as follows:
Once the resistance of the thermistor is calculated, the Steinhart-Hart equation can be used to determine the current temperature of the sensor.
The ADuC7122 determines the sensor temperature using the following formula:
in:
T 2 = unknown temperature
T 1 = 298K
β = beta parameter of the thermistor at 298K or 25°C, β = 3500
R 25 = resistance value of the thermistor at 298K or 25°C, R 25 = 4.7 kΩ
R TH = The resistance value of the thermistor at an unknown temperature calculated by the above formula
Figure 3 shows the response of the ADuC7122 as a function of temperature to the thermistor sensor shown in Figure 2.
Code description
The source code and HyperTerminal configuration files used to test this circuit can be downloaded (zip file) from: www.analog.com/CN0153_Source_Code .
The UART is configured for baud rate 9600, 8 data bits, no polarity, and no flow control. If this circuit is directly connected to the PC, you can use a communication port viewing program such as "HyperTerminal" to view the results sent by the program to the UART (please refer to Figure 4). The source code is accompanied by comments for easy understanding and use. Code can be compiled and tested using the Keil μVision 3 application.
Blockdiagram
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet