C / C++ example for decoding FXPQ3115BV Pressure/Altimeter data

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

C / C++ example for decoding FXPQ3115BV Pressure/Altimeter data

1,288 次查看
ChameeraSubasinghe
Contributor II

In one of our designs we use FXPQ3115BV Pressure sensor.

We were able to get the Chip correctly communicating with the host micro-controller. We verified this by reading the WHO AM I register of the chip as mentioned in the datasheet sensor responded with 0xC5

 

After that we followed the flow chart for getting data using polling mode (Figure 7 page 14).

In the datasheet it says the Raw data is Q8.4 fixed point format for pressure.

My question is how we can convert thie Q8.4 fixed point data to usable values in our algorithms.

Do you have any C code showing us how to convert this Q8.4 Raw values to actual pressure values. (floating point number)

0 项奖励
回复
3 回复数

1,281 次查看
diazmarin09
NXP TechSupport
NXP TechSupport

Hello,

I hope all is great with you.

In this case, I would like to recommend the following community post. I do recommend to review such example project and use it as a reference for your design.

MPL3115A2 - Bare metal example project

I hope this information will be useful for you.

Regards,

David

0 项奖励
回复

1,278 次查看
ChameeraSubasinghe
Contributor II

Yes.. that is the implementation i was looking for thanks.

 

Just a quick question regarding this sensor. When i start looking into stocks of this sensor for our pre-production run i saw that digikey saying that this component is now obsolete.

 

Is that actually correct? when is the end of life for FXPQ3115BV sensor? do you have an alternative for the sensor if it is indeed obsolete.

0 项奖励
回复

1,275 次查看
diazmarin09
NXP TechSupport
NXP TechSupport

Hello,

Thank you for using the NXP communities. I am pleased to know that the material provided was useful for you.

You are correct, the FXPQ3115BV device is obsolete. In this case, the direct replacement will be the FXPQ3115BVST1 device. Unfortunately, such device is under development.

I hope this information helps.

Regards,

David

0 项奖励
回复