Closed wadoadi closed 3 years ago
There are two modes of operation for the chip. There is a base mode where single values are stored in the pressure and temperature registers. Then there is a FIFO operation mode. If oversampling is increased over 8x the chip switches to the FIFO mode. I only implemented the first mode. My last batch of motivation I focused on moving the code to a library format. I think you are looking at getting high sample rate data you probably want data at a lower oversampling rate. You have to refer to the data sheet to figure out which settings give data at the fastest rates. My code should work for temp and pressure of 8x or less. For greater rate I would have to implement FIFO operation mode.
thanks, I will look into it if I find I need the higher rate... and if I can understand it!
Hi, sorry if this is me but hopefully you can help? ` void SPL_init() { i2c_eeprom_write_uint8_t(SPL_CHIP_ADDRESS, 0X06, 0x04); // Pressure 16x oversampling *ONLY change to the code 0x03 to 0x04 for 16x.
} `
this gives a wrong pressure reading, is their something. else I need to change also?