i2c accelerometer on sabresd

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

i2c accelerometer on sabresd

1,737 次查看
bottleneck
Contributor II

Hi All,

Currently using SABRESD with an RTOS. Trying to test MMA8451Q accelerometer with i2c driver, but I don't get acknowledge from the device. Could anyone share the frequency divider and sample driver to check it.

标签 (4)
标记 (2)
0 项奖励
回复
7 回复数

1,521 次查看
igorpadykov
NXP Employee
NXP Employee

HiUmamahesh

suggest to look at accelerometer_test.c in SDK :

i.MX 6Series Platform SDK : Bare-metal SDK

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,521 次查看
bottleneck
Contributor II

There is a list of documents, please share it specifically or guide with the exact values in which accelerometer on freescale SABRESD responds. I just send address of the slave but I never receive acknowledge and the frequency divider set to 0xd.

0 项奖励
回复

1,521 次查看
igorpadykov
NXP Employee
NXP Employee

please check attached files.

0 项奖励
回复

1,521 次查看
bottleneck
Contributor II

Thanks for the code, but ultimately looking for frequency value set from i.mx6, few part of  code like i2c_read/_write where library in the code. These details are missing. I need exact value of IFDR value set for mma8451q slave to be responded.

0 项奖励
回复

1,521 次查看
igorpadykov
NXP Employee
NXP Employee

had you looked in full sources

i.MX 6Series Platform SDK : Bare-metal SDK

Best regards

igor

0 项奖励
回复

1,521 次查看
bottleneck
Contributor II

Any possibility to share the i2c configuration for getting acknowledge from mag3110

0 项奖励
回复

1,521 次查看
bottleneck
Contributor II

It would be helpful if exact values of I2C frequency divider value if possible to be shared for all the i2c devices on SABRESD. Please do needful

0 项奖励
回复