We have already designed, build, assembled and program a board with an FXPS7115D4 using the I2C link, and it works well. Now we have designed, build and assembled a new board with an FXPS7115D4 using the SPI link. The main problem is that I do not manage to read the sensor data. Previously, using I2C, reading registers 62h and 63h was ok. Now, using SPI, I got 16 bit values very close to 0000h or to FFFFh (e.g. 64FFFE1Eh, 64FFFF31h, 640000CBh, ...). On the other side I can read the temperature register (address 0Eh), and the returned value looks correct.
Thank you
Solved! Go to Solution.
You will need to initialise with:
For filtered pressure 0x804240AF
For fast pressure 0x8042203A
And then collect the 16bit pressure data.
Works fine with 2 * 16bit SPI transferes.
Hello Thierry,
Let me add few other comments...
3. I have asked my colleagues from the PL Pressure Sensors to add the AN12731 to the Documentation tab of FXPS7 Family/FXPS7115D4 websites.
4. You are right. They are currently working on an update of the FXPS7xxx code where it will be implemented (in sensor_common.c for SPI example) as follows:
The updated FXPS7xxx driver including an example code should be available at the beginning of next week on this website. The AN12731 will be updated as well.
5. Yes, as it is a 32-bit SPI.
Best regards,
Tomas
Thank you Tomas.
Strangely on FXPS7 Family only 3 components appear in the datasheet tab. And from FXPS7115D4 I could not find any link to the family, even in "Similar Products"...
Moreover, how could I find the link to Sensor Drivers for NXP Sensors?
Thank you @Fast
It is working now. Reading register 0x62, I get e.g. 0x6486F262. I forgot to write to register 0x42.
What do you mean with "Works fine with 2 * 16bit SPI transfers" ?
You will need to initialise with:
For filtered pressure 0x804240AF
For fast pressure 0x8042203A
And then collect the 16bit pressure data.
Works fine with 2 * 16bit SPI transferes.