MMA8452 use I2C connect to QN9080

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

MMA8452 use I2C connect to QN9080

1,426 次查看
anniehung05911
Contributor II

Hi,

I have a board that MMA8452 accelerometer use I2C connect to QN9080.

I want to use the sample code that provided in the QN908xcdx_driver_examples_i2c_read_accel_value_transfer to transfer x,y,z value on MMA8452 to QN9080.

In this sample code, I found that there is a who_am_i_reg that can get the slave Address and decide which accelerormeter can connect.

I'm not sure whether I'm correct.

And I want to ask that

1. Is that OK to use this sample for it?

1. How can I get the slave address ( MMA8452 )?

2. How can I add MMA8452Q to this sample code and get the accelerometer value from QN9080?

0 项奖励
回复
1 回复

1,306 次查看
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

Do you have problems when running the code you are mentioning?

If you check the code and the address of the accelerometer, you will find that it is correctly set in g_accel_address as 0x1DU, after reviewing the specs and the code I believe you should not have any issue when running it, if you do, please let me know 

Regards, 
Estephania 

0 项奖励
回复