20 Temperature Detection Circuit (TEM)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
20-5
(Rev. 1.0)
Interrupt
20.4
TEM has a function to generate the interrupt shown in Table 20.4.1.
4.1 TEM Interrupt Function
Table 20.
Interrupt
Interrupt flag
Set condition
Clear condition
Conversion completion
TEMINTF.TEMIF When the temperature conversion
operation has completed
TEMRSLT register read
The TEM provides an interrupt enable bit corresponding to the interrupt flag. An interrupt request is sent to the
interrupt controller only when the interrupt flag, of which interrupt has been enabled by the interrupt enable bit, is
set. For more information on interrupt control, refer to the “Interrupt Controller” chapter.
Control Registers
20.5
TeM Clock Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
TEMCLK
15–9 –
0x00
–
R
–
8
DBRUN
0
H0
R/W
7–6 –
0x0
–
R
5–4 CLKDIV[1:0]
0x0
H0
R/W
3–2 –
0x0
–
R
1–0 CLKSRC[1:0]
0x0
H0
R/W
Bits 15–9 Reserved
Bit 8
DBRun
This bit sets whether the TEM operating clock is supplied in DEBUG mode or not.
1 (R/W): Clock supplied in DEBUG mode
0 (R/W): No clock supplied in DEBUG mode
Bits 7–6
Reserved
Bits 5–4
ClKDiV[1:0]
These bits select the division ratio of the TEM operating clock.
Bits 3–2
Reserved
Bits 1–0
ClKSRC[1:0]
These bits select the clock source of TEM.
5.1 Clock Source and Division Ratio Settings
Table 20.
TEMCLK.
CLKDIV[1:0] bits
TEMCLK.CLKSRC[1:0] bits
0x0
0x1
0x2
0x3
OSC3B
OSC1
OSC3A
EXOSC
0x3
1/8
1/1
1/8
1/1
0x2
1/4
1/4
0x1
1/2
1/2
0x0
1/1
1/1
(Note) The oscillation circuits/external input that are not supported in this IC cannot be
selected as the clock source.
Note: The TEMCLK register settings can be altered only when the TEMCTL.MODEN bit = 0.
TeM Timing Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
TEMTMG
15–8 –
0x00
–
R
–
7–0 CVTM[7:0]
0x00
H0
R/W
Bits 15–8 Reserved