Configuring I2Cx_F to 100khz on MKE06Z128

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring I2Cx_F to 100khz on MKE06Z128

32 Views
Contributor I

Hi, please, how to configure I2C0_F register with processor expert (or C code exemple) to getting 100khz BUS SCL clock/frequency?

MKE06Z128 @ 48Mhz
BUS @ 24Mhz

Thanks.

pe_i2c.png

Ref. Manual: https://www.nxp.com/webapp/Download?colCode=MKE06P80M48SF0RM

Chapter 31 - Inter-Integrated Circuit (I2C) - Page 561 onwards

31.3.2 I2C Frequency Divider register (I2Cx_F) - Page 565 and 566

31.4.1.10 I2C divider and hold values - Page 581

0 Kudos
1 Reply

22 Views
Specialist V

Hi

SCL = 24'000'000 / 100'000 = 240

mjbcswitzerland_0-1610645928575.png

Therefore I2C0_F = 0x23;

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements

For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/kinetis/FRDM-KE06Z.html

0 Kudos