QN9080 SDK

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

QN9080 SDK

1,158 次查看
mandhaamarr
Contributor I

Hi everyone,

I am amar, now working with QN9080 Eval board. My aim is to read dps310 pressure sensor data by using

I2C Protocol, for doing this i used SDK2.2.2 from NXP, but i am confusing for deciding i2c0 or i2c1 for

connecting to sensor even though i know pin outs(PA08(flexcomm 1:I2C SCL) and PA09(flexcomm 1: I2C

SDA)) for i2c.

 

1) How can we decide whether i2c0 or i2c1?

2) What is the use of flexcomm1,2,3?

Thank you in advance,

amarr

 

0 项奖励
3 回复数

1,125 次查看
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Amar, I hope you're doing well!

 

The choice of using I2C0 or I2C1 will depend mainly on which pins you are going to use in your design, as not every pin can be used for I2C0 or I2C1 functionality.

 

More information about this parts Pin Configuration can be found in chapter 7 of the QN908x's datasheet.

 

About Flexcomm, this is a peripheral which can be configured to work in some different modes, like USART, I2C, and SPI. Only Flexcomm 1 and 2 can be configured as I2C interfaces.

 

Please let me know if you need any more information.

 

Best regards,

Sebastián

0 项奖励

1,106 次查看
mandhaamarr
Contributor I
Hi sebastianDelRio,
 
Thank you for your reply. Base on your answer i list out below I2C pins from QN9080 Datasheet from Chapter no:7
 
flexcomm1:-
PA06 I2C_SCL and PA07 I2C_SDA
PA08 I2C_SCL and PA09 I2C_SDA
PA12 I2C_SCL and PA13 I2C_SDA
PA20 I2C_SCL and PA21 I2C_SDA

flexcomm 2:
PA02 I2C_SCL and PA03 I2C_SDA
PA23 I2C_SCL and PA22 I2C_SDA
PA27 I2C_SCL and PA26 I2C_SDA
PA05 I2C_SCL and PA04 I2C_SDA
 
1) If i want use PA12 and PA13 from flexcomm 1, can init I2C as I2C0 or I2C1?why?
 
Thank you
 
0 项奖励

1,078 次查看
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Amar,

 

Just as a quick correction, In the case of this device, the I2C interface is not numbered, as it instead depends on which Flexcomm interface is used for the I2C.

 

The choice is between either using Flexcomm 1 or Flexcomm 2, and the decision to use one or the other will depend on the pins which you wish to use.

 

To use pins PA12 and PA13, you would have to use the Flexcomm 1 interface configured in I2C mode, and the mux for pins PA12 and PA13 would need to be configured for the Flexcomm interface (in this case, Function 4 should be configured for this pin).

 

For more information, could you please take a look at table 95 of the QN908x User Manual, which can be found here?

 

Please let me know if you need any more information.

 

Best regards,

Sebastian

0 项奖励