10-02-2020 04:09 AM
Hi,
I was wondering if someone had the information if the BME280 is MSB_FIRST or LSB_FIRST. I haven't found the information in the datasheet
Also, in the datasheet, it is said that, for the SPI interface, the clock polarity (CPOL) and clock phase (CPHA) are automatically selected (SPI mode 00 or SPI mode 11) on the CS falling edge. But, in my case, I'm using STM32CubeMX and I must specify exactly the SPI mode. I've put mode 00 but it may be mode 11 according to the datasheet. Is it anyway to know exactly which mode will be used by the sensor so that I can put it in my CubeMX configuration?
Best regards
Solved! Go to Solution.
10-02-2020 04:58 AM
ussually devices are MSB first, like most of bosh sensors
10-02-2020 08:31 PM - edited 10-02-2020 08:32 PM
Regarding SPI, BME280 SPI will be selected depends on which SPI mode you sends to BME280 automatically either '00' or '11'.
You can check 6.3 SPI interface in datasheet as well 🙂
Thanks,