Measuring Temperature with the

[11-20 17:33:01]   来源:http://www.88dzw.com  模拟电子技术   阅读:8176

文章摘要: 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. Re

Measuring Temperature with the,标签:模拟电子技术基础,模拟电子电路,http://www.88dzw.com
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.

上一页  [1] [2] [3] [4] [5] [6] [7] [8]  下一页


Tag:模拟电子技术模拟电子技术基础,模拟电子电路模拟电子技术

《Measuring Temperature with the》相关文章