12-2
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
12.3.
Clock Settings
12.3.1.
T16 Operating Clock
When using T16 Ch.
n
, the T16 Ch.
n
operating clock CLK_T16_
n
must be supplied to T16 Ch.
n
from
the clock generator. The CLK_T16_
n
supply should be controlled as in the procedure shown below.
1.
Enable the clock source in the clock generator if it is stopped (refer to “Clock Generator” in the
“Power Supply, Reset, and Clocks” chapter).
2.
Set the following T16_nCLK register bits:
-
T16_
n
CLK.CLKSRC[1:0] bits (Clock source selection)
-
T16_
n
CLK.CLKDIV[3:0] bits (Clock division ratio selection = Clock frequency setting)
12.3.2.
Clock Supply in SLEEP Mode
When using T16 during SLEEP mode, the T16 operating clock CLK_T16_
n
must be configured so that it
will keep supplying by writing 0 to the CLGOSC.
xxxx
SLPC bit for the CLK_T16_
n
clock source.
If the CLGOSC.
xxxx
SLPC bit for the CLK_T16_
n
clock source is 1, the CLK_T16_
n
clock source is
deactivated during SLEEP mode and T16 stops with the register settings and counter value maintained
at those before entering SLEEP mode. After the CPU returns to normal mode, CLK_T16_
n
is supplied and
the T16 operation resumes.
12.3.3.
Clock Supply During Debugging
The CLK_T16_
n
supply during debugging should be controlled using the T16_
n
CLK.DBRUN bit.
The CLK_T16_
n
supply to T16 Ch.
n
is suspended when the CPU enters debug state if the
T16_
n
CLK.DBRUN bit
= 0. After the CPU returns to normal operation, the CLK_T16_
n
supply resumes. Although T16 Ch.
n
stops
operating when the CLK_T16_
n
supply is suspended, the counter and registers retain the status before
the debug state was entered. If the T16_
n
CLK.DBRUN bit = 1, the CLK_T16_
n
supply is not suspended
and T16 Ch.
n
will keep operating in a debug state.
12.3.4.
Event Counter Clock
The channel that supports the event counter function counts down at the rising edge of the EXCL
m
pin
input signal when the T16_
n
CLK.CLKSRC[1:0] bits are set to 0x3.
Figure 12.3.4.1 Count Down Timing
Note that the EXOSC clock is selected for the channel that does not support the event counter function.
x
x
- 1
x
- 2
x
- 3
EXCLm pin input
Counter
Содержание S1C31D50
Страница 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Страница 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Страница 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Страница 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...