I2C with MCUexpresso and FRDMK28

cancel
Showing results for 
Search instead for 
Did you mean: 

I2C with MCUexpresso and FRDMK28

376 Views
philippadolph
Contributor II

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 .

Labels (1)
0 Kudos
3 Replies

244 Views
philippadolph
Contributor II

I found my problem, ty for your help

0 Kudos

244 Views
philippadolph
Contributor II

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?

 
0 Kudos

244 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Would you please check the I2C Timing Diagram in datasheet of your slave?
I can only see the deviceaddress on PTB2\PTB3.

0x48 write NAK.png

 

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------