English
Language : 

C8051F52X_12 Datasheet, PDF (53/221 Pages) Silicon Laboratories – 8/4/2 kB ISP Flash MCU Family
C8051F52x/F53x
4.2. Temperature Sensor
An on-chip temperature sensor is included on the C8051F52x/F52xA/F53x/F53xA devices which can be
directly accessed via the ADC0 multiplexer. To use ADC0 to measure the temperature sensor, the ADC
multiplexer channel should be configured to connect to the temperature sensor. The temperature sensor
transfer function is shown in Figure 5.2. The output voltage (VTEMP) is the positive ADC input selected by
bits AD0MX[4:0] in register ADC0MX. The TEMPE bit in register REF0CN enables/disables the tempera-
ture sensor, as described in SFR Definition 5.1. While disabled, the temperature sensor defaults to a high
impedance state and any ADC measurements performed on the sensor will result in meaningless data.
Refer to Table 5.1 for the slope and offset parameters of the temperature sensor.
VTEMP = ( Slope x TempC) + Offset
TempC = (VTEMP - Offset) / Slope
Slope( V / deg C)
Offset( V at 0 Celsius)
Temperature
Figure 4.2. Typical Temperature Sensor Transfer Function
Rev. 1.4
53