电子文章 | 电子资料下载 | 家电维修 | 维修资料下载 | 加入收藏 | 全站地图
您现在所在位置:电子爱好者电子文章模拟电子技术Measuring Temperature with the

Measuring Temperature with the

11-20 17:33:01 | http://www.5idzw.com | 模拟电子技术 | 人气:176
标签:模拟电子技术基础,模拟电子电路,http://www.5idzw.com Measuring Temperature with the,http://www.5idzw.com

Step 16. Measure VBE3 using the ADC

The VBE3 voltage is measured from the AIN1 to the AIN2 inputs to the ADC. The ADC is already configured and only needs to convert to get the resulting VBE3 voltage. To start the ADC conversion, set the STRT bit in the ADC register. The ADC will do a conversion and the result will be in the DATA register. Read the DATA register value and save as a 16-bit integer named VBE3 for later calculation.

Step 17. Set the ADC Input for VR3

Set the ADC positive input multiplexer for AGND by setting MUXP[3:0] to 0x09 the MUX register. Set the ADC negative multiplexer for AIN2 by setting MUXN[3:0] to 0x07 the MUX register. To measure the AIN2 input relative to AGND, the polarity flipper bit is used. Set the POL bit in the ADC register. The ADC is now setup with AIN2 as its positive input and AGND as its negative input.

Step 18. Measure VR3 using the ADC

To start the ADC conversion, set the STRT bit in the ADC register. The ADC will do a conversion and the result will be in the DATA register. Read the DATA register value and save as a 16-bit integer named VR3 for later calculation.

Step 19. Set the Current Source for I4 (120µA)

Set the current source for I4 by setting the IVAL[1:0] bits to 0x11 in the TEMP_CTRL register.

Step 20. Set the ADC Input for TEMP+ to TEMP-

Set the polarity flipper back to normal by clearing the POL bit in the ADC register. Set the ADC positive input multiplexer for AIN1 by setting MUXP[3:0] to 0x00 the MUX register. Set the ADC negative multiplexer for AIN2 by setting MUXN[3:0] to 0x07 the MUX register.

Step 21. Measure VBE4 Using the ADC

The VBE4 voltage is measured from the AIN1 to the AIN2 inputs to the ADC. The ADC is already configured and only needs to convert to get the resulting VBE4 voltage. To start the ADC conversion, set the STRT bit in the ADC register. The ADC will do a conversion and the result will be in the DATA register. Read the DATA register value and save as a 16-bit integer named VBE4 for later calculation.

Step 22. Set the ADC Input for VR4

Set the ADC positive input multiplexer for AGND by setting MUXP[3:0] to 0x09 the MUX register. Set the ADC negative multiplexer for AIN2 by setting MUXN[3:0] to 0x07 the MUX register. To measure the AIN2 input relative to AGND, the polarity flipper bit is used. Set the POL bit in the ADC register. The ADC is now setup with AIN2 as its positive input and AGND as its negative input.

Step 23. Measure VR4 Using the ADC

To start the ADC conversion, set the STRT bit in the ADC register. The ADC will do a conversion and the result will be in the DATA register. Read the DATA register value and save as a 16-bit integer named VR4 for later calculation.

Step 24. Calculate the Temperature

The temperature calculation is identical to the four-current internal method. Use that method with the eight saved measurements to calculate the external temperature.

Gain and Offset Correction

The TEMP_CAL register is provided to correct for gain and offset errors in the temperature-measurement circuit. To correct for the gain and offset errors, the following formula is used.

TACTUAL = g(TMEAS) + TOFFSET
Equation 3. Gain and offset correction equation.

Procedure for Gain and Offset Correction

The procedure for adding the gain and offset correction is detailed below. The procedure reads the values from the gain and offset correction registers. The gain and offset amounts are then computed using two formulas. The resulting correction values are applied to Equation 3 above.

Step 1. Measure and Calculate the Temperature

Use the procedure for the internal or the external transistor and save the result as TMEAS for use in the correction formula above.

Step 2. Read the TGAIN Register

Read the TEMP_CAL register and save the upper byte TGAIN[7:0] for use in the formula below. It should be saved as a type-signed integer.

Step 3. Calculate the Gain Correction Factor

Using the value saved above, apply this value to the gain formula below.

Gain = 0.9025 + TGAIN × 0.000576
Equation 4. Gain formula equation.

Step 4. Read the TOFFS Register

Read the TEMP_CAL register and save the lower byte TOFFS[5:0] for use in the formula below. The data should be saved as a type-signed integer. Do not right-shift the data.

Step 5. Calculate the Offset Correction Factor

Using the offset value saved above, apply this value to the gain formula below.

Offset = -14.0 + TOFFS × 0.3125
Equation 5. Offset correction equation.

Step 6. Calculate the corrected Temperature

Use the gain and offset values calculated above in the temperature equation below.

TACTUAL = GAIN × TMEAS + OFFSET

Conclusion

The MAX1358 features internal circuitry to measure the internal die temperature. The internal circuitry can also be used with an external transistor for a low-cost remote temperature sensor. The four-current temperature measurement method described in this application note can be used to achieve the ±0.5 and ±1.0 typical accuracy specified in the MAX1358 data sheet.

Panasonic is a registered trademark of Matsushita Electric Industrial Co., Ltd.

上一页  [1] [2] [3] [4] 

,Measuring Temperature with the
关于《Measuring Temperature with the》的更多文章