2016-03-25 06:51 AM
I am working with the LPS22HB pressure sensor and I cannot get a response from it. I have ctrl_reg1 set as 01000000, ctrl reg 2 set as 00011000, and everything else as default.
I am using a 1MHz SPI clock and a CS pin (low - active). I then write to the pressure_XL register and retrieve the first byte then consecutively retrieve the L and H bytes using the iterative data collecting (ctrl_reg2 enabled).i am operating at 2.5V and am correctly sending the right bytes (measured the outputs of my microcontroller)Why am I getting no response?2016-04-05 06:14 AM
2016-05-11 12:38 PM
I have seen similar issues here as well using I2C.
At this time, my two registers are set as:Control Register 1: 0x20Control Register 2: 0x00I'm going for 10 Hz operation in this case, continuous (BDU) updates, and no low pass data configurations.For control register 2, I'm using I2C then single byte reads from 0x28, 0x29, and 0x2A for the pressure and don't want the device to automatically increment the address and so that is disabled. I also have the FIFO disabled.It is my expectation that I should then be able to read the data directly out of 0x28, 0x29, and 0x2A and convert to pressure, at a rate of up to 10 Hz.At this time, I'm only able to read [0x00, 0x00, 0x2D] from the device on those registers. That is clearly not correct. I am able to read and write all other registers on the device, including the WHO_AM_I register and that comes back correct, as well as the setting/reading of the configuration registers.Any thoughts on what may be happening here?2016-05-12 12:47 AM