MMA8452 use I2C connect to QN9080

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MMA8452 use I2C connect to QN9080

1,411件の閲覧回数
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,291件の閲覧回数
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 件の賞賛
返信