C8051F39x/37x
SFR Definition 8.1. TS0CN: Temperature Sensor Control
Bit
7
6
5
4
3
2
1
0
Name TS0STRT TS0DN
TS0CNVL
Type
R/W
R
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
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 Reserved Must Write 000b.
2:0 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 FTS0 is the precision tem-
perature sensor clock frequency given in Table 7.12.
Conversion Length in s
=
--2---5---6---
FTS0
106
2TS0CNVL + 1 + 1 + 32
46
Preliminary Rev. 0.71