20 Temperature Detection Circuit (TEM)
20-6
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
Bits 7–0
CVTM[7:0]
These bits set the time for comparing the sensor output with the comparison voltage using the com-
parator (see Eq. 20.1).
TeM Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
TEMCTL
15–8 –
0x00
–
R
–
7–2 –
0x00
–
R
1
TEMTRG
0
H0
W
Always read as 0.
0
MODEN
0
H0
R/W –
Bits 15–2 Reserved
Bit 1
TeMTRG
This bit starts temperature conversion.
1 (W):
Start conversion
0 (W):
Stop conversion
0 (R):
Always 0 when being read
Bit 0
MODen
This bit enables the TEM operations.
1 (R/W): Enable TEM operations (The operating clock is supplied.)
0 (R/W): Disable TEM operations (The operating clock is stopped.)
TeM Conversion Result Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
TEMRSLT
15–8 –
0x00
–
R
–
7–0 TEMP[7:0]
0x00
H0
R
Bits 15–8 Reserved
Bits 7–0
TeMP[7:0]
The temperature conversion results are stored in these bits.
Invalid data is read before the conversion has completed.
For correspondence between the read value and temperature, see Table 20.4.3.1.
TeM interrupt Flag and Status Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
TEMINTF
15–8 –
0x00
–
R
–
7–5 –
0x0
–
R
4
TEMST
0
H0
R
3–1 –
0x0
–
R
0
TEMIF
0
H0
R/W Cleared by reading the TEMRSLT
register.
Bits 15–5 Reserved
Bit 4
TeMST
This bit indicates the temperature conversion operating status.
1 (R):
Converting
0 (R):
Idle
Bits 3–1
Reserved
Bit 0
TeMiF
This bit indicates the TEM interrupt cause occurrence status.
1 (R):
Cause of interrupt occurred
0 (R):
No cause of interrupt occurred
1 (W):
Clear flag
0 (W):
Ineffective