![background image](http://html.mh-extra.com/html/epson/s1c31d50/s1c31d50_technical-instructions_107789241.webp)
16-3
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
16.3.
Clock Settings
16.3.1.
I2C Operating Clock
Master mode operating clock
When using the I2C Ch.
n
in master mode, the I2C Ch.
n
operating clock CLK_I2C
n
must be supplied
to the I2C Ch.
n
from the clock generator. The CLK_I2C
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
“P
ower Supply
, Reset, and Clocks” chapter).
2.
Set the following I2C_
n
CLK register bits:
-
I2C_
n
CLK.CLKSRC[1:0] bits (Clock source selection)
-
I2C_
n
CLK.CLKDIV[1:0] bits (Clock division ratio selection = Clock frequency setting)
When using the I2C in master mode during SLEEP mode, the I2C Ch.
n
operating clock CLK_I2C
n
must be configured so that it will keep supplying by writing 0 to the CLGOSC.
xxxx
SLPC bit for the
CLK_I2C
n
clock source.
The I2C operating clock should be selected so that the baud rate generator will be configured easily.
Slave mode operating clock
The I2C set to slave mode uses the SCL supplied from the I
2
C master as its operating clock. The
clock setting by the I2C_
n
CLK register is ineffective.
The I2C keeps operating using the clock supplied from the external I
2
C master even if all the
internal clocks halt during SLEEP mode, so the I2C can receive data and can generate receive buffer
full interrupts.
16.3.2.
Clock Supply During Debugging
In master mode, the CLK_I2C
n
supply during debugging should be controlled using the I2C_
n
CLK.DBRUN
bit. The CLK_I2C
n
supply to the I2C Ch.
n
is suspended when the CPU enters debug state if the
I2C_
n
CLK.DBRUN bit = 0. After the CPU returns to normal operation, the CLK_I2C
n
supply resumes.
Although the I2C Ch.
n
stops operating when the CLK_I2C
n
supply is suspended, the output pin and
registers retain the status before debug state was entered. If the I2C_
n
CLK.DBRUN bit = 1, the CLK_I2C
n
supply is not suspended and the I2C Ch.
n
will keep operating in debug state.
In slave mode, the I2C Ch.
n
operates with the external I
2
C master clock input from the SCL
n
pin
regardless of whether the CPU is placed into debug state or normal operation state.
Содержание 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 ...