07-02-2024 08:57 AM
Hi,
Good day. I am newbie to BME688 sensor. I have gone through datasheet of version 1.3.
SPI memory map page selection 0x73 register after reset - page 0 (0x00 to 0x7f) will be active .
Setting spi_mem_page bit (bit 4) in this register enables page 1 (0x7f to 0xff). setting means 00010000 in 0x73 to enable/active page 1? Kindly confirm this statement.
Also Gone through BME688+SPI+ spi_mem_page -problem (bosch-sensortec.com) .
I have referred https://github.com/boschsensortec/BME68x_SensorAPI/blob/80ea120a8b8ac987d7d79eb68a9ed796736be845/bme...
where
if (reg_addr > 0x7f)
{
mem_page = BME68X_MEM_PAGE1;
}
else
{
mem_page = BME68X_MEM_PAGE0;
}
so macro values are below
https://github.com/boschsensortec/BME68x_SensorAPI/blob/80ea120a8b8ac987d7d79eb68a9ed796736be845/bme...
macro value of PAGE1 is 0x00.
As per my understanding, we have set/write spi_mem_page bit as 1. ie. 0x10 to make page 1 as active. But PAGE2 macro value is 0x10.
Above logic implementation looks contradictory.
Could you please help me by clarifying?
07-03-2024 08:11 AM
Hi vigneshravi997,
Thanks for your inquiry.
Do you want to use BME688 to obtain sensor data? If so, then you can refer to the BME688 sensor API and examples on GitHub, which demonstrate how to obtain BME688 sensor data, and you can use them directly.
https://github.com/boschsensortec/BME68x_SensorAPI/tree/master/examples