I2C Interface with the Accelerometer K60

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C Interface with the Accelerometer K60

692 次查看
mdrasool_yadwad
Contributor II

Hello,

   I was interfacing the K60 microcontroller with the accelerometer MMA78451Q which is available on the tower board using I2C . I am configuring Microcontroller as master and MMA78451Q accelerometer as slave. I couldnt able to find the slave address in the datasheet and also nothingabout the MMA78451Q accelerometer.

Please help me out how to interface this using I2C.

Thank You

标签 (1)
0 项奖励
回复
2 回复数

585 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Mohammedrasool Yadwad

The schematics of the tower and the product page indicates that the accelerometer part number is the MMA8451Q.

pastedImage_3.png

 

I didn´t find the part number MMA78451Q in my system.

 

Regarding the device address, I found that the slave address for writing is 0x1C and 0x1D for reading. You can find more detailed information under chapter 5.11.1 I2C Operation in the datasheet https://www.nxp.com/docs/en/data-sheet/MMA8451Q.pdf

 

You can find examples for interfacing the accelerometer at the SDK. The example name is "i2c_read_accel_value_transfer" https://mcuxpresso.nxp.com/en/welcome.

 

Let me know if this is helpful

Best regards,

Omar

0 项奖励
回复

585 次查看
mdrasool_yadwad
Contributor II

Hello Omar,

   I will look into datasheet again . I think you are right about the accelerometer.

Thank You

Mohammedrasool

0 项奖励
回复