hi C,
The Pressure resolution is set in Reg 0x74 [SPI] Sect 3.2 of the d/s,
You can skip the Pressure.
E
Hi E,
Here's the choices for 0x74 REG that I've tried in the program.
SPICSOn
SPISend 0x74 'WRITE 0xF4 Control reg addr
SPISend 0xe3 '%11100011 T/ON P/OFF 'Normal Mode
'SPISend 0xe1 '%11100001 T/ON P/OFF 'Forced Mode
'SPISend 0xe0 '%11100000 T/ON P/OFF 'Sleep Mode
'SPISend 0x1f '%00011111 T/OFF P/ON 'Normal mode
'SPISend 0x1d '%00011101 T/OFF P/ON 'Forced Mode
'SPISend 0x1c '%00011100 T/OFF P/ON 'Sleep Mode
'SPISend 0x00 'ALL OFF
WaitMs 100 'without this, occasional 524295?? %1000 0000 0000 0111 reading
SPISend r_t_xlsb 'READ ADDR PRESSURE xlsb from BMP280
SPIReceive t_xlsb 'Least sig Byte
SPISend r_t_lsb 'READ ADDR PRESSURE lsb from BMP280 MID
SPIReceive t_lsb 'mid sig Byte
SPISend r_t_msb 'READ ADDR PRESSURE msb from BMP280 MOST
SPIReceive t_msb 'Most sig BYTE
SPISend r_p_xlsb 'READ ADDR PRESSURE xlsb from BMP280
SPIReceive p_xlsb 'Least sig Byte
SPISend r_p_lsb 'READ ADDR PRESSURE lsb from BMP280 MID
SPIReceive p_lsb 'mid sig Byte
SPISend r_p_msb 'READ ADDR PRESSURE msb from BMP280 MOST
SPIReceive p_msb 'Most sig BYTE
SPICSOff
Are we using the same D/S
Here's mine:
C.