To specify the divide-down value, initialize the IPSC field of the prescaler register, I2CPSC. The resulting
frequency is:
(8)
The prescaler must be initialized only while the I2C module is in the reset state (IRS = 0 in I2CMDR). The
prescaled frequency takes effect only when IRS is changed to 1. Changing the IPSC value while IRS = 1 has no
effect.
The master clock appears on the SCL pin when the I2C module is configured to be a master on the I2C bus.
This clock controls the timing of communication between the I2C module and a slave. As shown in
,
a second clock divider in the I2C module divides down the module clock to produce the master clock. The clock
divider uses the ICCL value of I2CCLKL to divide down the low portion of the module clock signal and uses the
ICCH value of I2CCLKH to divide down the high portion of the module clock signal. See
for the
master clock frequency equation.
14.1.6 I2C Clock Divider Registers (I2CCLKL and I2CCLKH)
As explained in
, when the I2C module is a master, the I2C module clock is divided down further
to use as the master clock on the SCL pin. As shown in
, the shape of the master clock depends on
two divide-down values:
• ICCL in I2CCLKL. For each master clock cycle, ICCL determines the amount of time the signal is low.
• ICCH in I2CCKLH. For each master clock cycle, ICCH determines the amount of time the signal is high.
SCL
High-time duration:
Tmod × (ICCH + d)
High-time duration:
Tmod × (ICCH + d)
Low-time duration:
Tmod × (ICCL + d)
Low-time duration:
Tmod × (ICCL + d)
Figure 14-4. Roles of the Clock Divide-Down Values (ICCL and ICCH)
14.1.6.1 Formula for the Master Clock Period
The master clock period (Tmst) is a multiple of the period of the I2C Module Clock (Tmod):
Master Clock period (Tmst)
=
I2C Module Clock (Fmod)
[ (ICCH + d) + (ICCL + d) ]
(9)
where d depends on the divide-down value IPSC, as shown in
. IPSC is described in the I2CPSC
register.
Table 14-1. Dependency of Delay d on the Divide-Down Value IPSC
IPSC
d
0
7
1
6
Greater than 1
5
Inter-Integrated Circuit Module (I2C)
838
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......