SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
Standard, fast, and fast plus modes are selected using a value in the I2C Master Timer Period (I2CMTPR) register that results in an SCL frequency of 100 kbps for standard mode, 400 kbps for fast mode, or 1 Mbps for fast mode plus.
The I2C clock rate is determined by the parameters CLK_PRD, TIMER_PRD, SCL_LP, and SCL_HP, where:
TIMER_PRD is the programmed value in the I2CMTPR register. This value is determined by replacing the known variables in Equation 37 and solving for TIMER_PRD. The I2C clock period is calculated as:
For example:
Yields an SCL frequency of: 1/SCL_PERIOD = 338 KHz
Table 46-1 lists examples of the timer periods that must be used to generate standard, fast mode, and fast mode plus SCL frequencies based on various system clock frequencies.
System Clock | Standard Mode | Fast Mode | Fast Mode Plus | |||
---|---|---|---|---|---|---|
Timer Period | Data Rate | Timer Period | Data Rate | Timer Period | Data Rate | |
200 MHz | 99 | 100 kbps | 24 | 400 kbps | 9 | 1 Mbps |