2018-05-21 03:15 AM
Hi, ST
We met some problem when used LSM303C. We operated LSM303C go to power-down mode after the module power on .
Generally , the LSM303C current consumption is about 6 uA which is
consistent
with the datasheet e
lectrical characteristics
table. But sometimes thecurrent consumption would increase to 48 uA after the module power on. And it seems that the acceleration module didn't work well for reading a
ccelerometer Who_AM_I register to get 0x00 but not
0x41. What may cause this phenomenon. Please give us some guide advice.Our operating codes are as follow:
void LSM303C_Init(void)
{
I2C_WriteOneByte(lsm303_acc,LSM303C_CTRL_REG5_A, 0x40);//Soft reset
user_delay_ms(10); I2C_WriteOneByte(lsm303_acc,LSM303C_CTRL_REG6_A, 0x80);//Force reboot user_delay_ms(5);I2C_WriteOneByte(lsm303_mag,LSM303C_CTRL_REG2_M, 0x0c);//Reboot memory content, And register reset
user_delay_ms(10);I2C_WriteOneByte
(lsm303_acc,LSM303C_CTRL_REG1_A, 0x00);//power downI2C_WriteOneByte
(lsm303_mag,LSM303C_CTRL_REG3_M, 0x03);//power down}
#power-consumption #lsm303c2018-05-22 12:01 PM
Can you share your schematic?
2018-05-22 08:57 PM
hi, Microslav B
this is our schematic.
2018-05-23 09:32 AM
The CS_XL and CS_MAG cannot be let floating, for I2C communication they must be connected to VDD_IO.