BME280 SPI CPOL/CPHA and MSB_FIRST

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

Best reply by Minhwan

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,ย 

ย 

View original
2 replies
Resolved