Kuan Hung Lin

FRDM-K22F KSDK+PEx I2C example

Discussion created by Kuan Hung Lin Employee on Apr 22, 2015
Latest reply on May 13, 2015 by dave408

When using KDS2.0 + KSDK1.1.0 + PEx, fond something wrong when using the fsl_i2c component. The I2C master cannot get the ACK from slave.


The PE initial code don’t set the SCL,SDA pins to become open-drain. That is why the slave cannot pull the SDA low as a ACK.

have to add followings to set SCL,SDA as open-drain.





Attached is an I2C example which read the “who am I register(0x0D)” of the on-board sensor FXOS8700.




Original Attachment has been moved to: k22_i2c_test.7z.zip