Hello,
recently i switched to mcuexpresso with a new FDRM-K28F board.
i tried to figure out the basic function i want to use in the future.
But i can't figure out how to build send and receivefunctions for i2c.
i tried to reconstruct the accel example ,but it didn't work
I hope someone did it before and can help .
I found my problem, ty for your help
Yeah that's my problem. The datasheet of the slave device is in the attachment. I realized that communication with the K60 without problem after each conversation i have to wait 1,3µs. The deviceaddress is 0x48 after that i have to send the subaddress 0x01 for the Configurationregister and the data 0b01111001 for the device. But you already mentioned it, the k28 only send the deviceaddress without subaddress and data . Do you know what i did wrong?
Would you please check the I2C Timing Diagram in datasheet of your slave?
I can only see the deviceaddress on PTB2\PTB3.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------