English
Language : 

C8051F336_08 Datasheet, PDF (51/227 Pages) Silicon Laboratories – Mixed-Signal Byte-Programmable EPROM MCU
C8051F336/7/8/9
8. Temperature Sensor (C8051F336/8 only)
An on-chip temperature sensor is included on the C8051F336/8 which can be directly accessed via the
ADC multiplexer in single-ended configuration. To use the ADC to measure the temperature sensor, the
positive ADC mux channel should be configured to connect to the temperature sensor and the negative
ADC mux channel should be configured to connect to GND. The temperature sensor transfer function is
shown in Figure 8.1. The output voltage (VTEMP) is the positive ADC input when the ADC multiplexer is set
correctly. The TEMPE bit in register REF0CN enables/disables the temperature sensor, as described in
SFR Definition 10.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 Section
“6. Electrical Characteristics” on page 27 for the slope and offset parameters of the temperature sen-
sor.
VTEMP = (Slope x TempC) + Offset
TempC = (VTEMP - Offset) / Slope
Slope (V / deg C)
Offset (V at 0 Celsius)
Temperature
Figure 8.1. Temperature Sensor Transfer Function
Rev.1.0
51