C8051F39x/37x
SFR Definition 8.1. TS0CN: Temperature Sensor Control
Bit
7
6
5
4
3
2
1
0
TS0STRT
TS0DN
TS0CNVL
Name
Type
Reset
R/W
0
R
0
R/W
0
R/W
0
R/W
0
R/W
0
0
0
SFR Address = 0xD2; SFR Page = F
Bit
Name
Function
7
TS0STRT
Temperature Sensor Start.
Firmware must set this bit to 1, then clear this bit to 0 to start a temperature sensor
measurement.
6
TS0DN
Temperature Sensor Finished Flag.
Hardware will set TS0DN to 1 when a temperature sensor measurement is com-
plete. If enabled, a temperature sensor interrupt will be generated. This bit must
be cleared to 0 by firmware.
5:3
2:0
Reserved Must Write 000b.
TS0CNVL
Temperature Sensor Conversion Length.
This field sets the conversion length of time over which the temperature is calcu-
lated. A longer conversion length results in a more accurate measurement. The
conversion length in microseconds is derived from the following equation, where
TS0CNVL is the 3-bit value held in TS0CNVL[2:0] and F
perature sensor clock frequency given in Table 7.12.
is the precision tem-
TS0
Conversion Length in s =
10 2TS0CNVL + 1 + 1 + 32
6
256
FTS0
-----------
46
Preliminary Rev. 0.71