Hi Niki,
Referring to the K10 RM, in the Section 44.3.2 I2C Frequency Divider register (I2Cx_F), the I2Cx_F register has two fields:
- MULT --> This one configures the divider factor of the bus clock. Leaving this MULT = 0b00, the internal frequency = bus clock.
- ICR --> This value indicates the value of the SCL divider. You can check the SCL values corresponding to the ICR value in the Section 44.4.1.10 I2C Divider and Hold Values.
The equation to determinate the I2C baud rate is:
I2C baud rate = bus speed (Hz) / (mul × SCL divider)
Here is an example to set the SCL frequency to e.g. 100 kHz:
bus speed (Hz) = 48 MHz = 48 000 000 Hz
mul = 1
SCL divider = 480 (ICR = 0x27, check the table 44.41)
Applying the values in the equation:
48 000 000 / (1 * 480) = 100 000 Hz = 100 kHz
I hope this information can help you. If not, please ask our Kinetis experts.
Regards,
Tomas