AIS2120S dual axis sensor questions
Hi,
I have three questions about AIS2120 dual axis sensor, below is the power up sequence of the code implementation.
Soft reset -> Keep reading status 0 until value 0x82 is read (representing test phase and end of power up sequence, which takes around 335ms) -> Read register REG_CONFIG to verify the filter setting is 0x00 -> X positive selftest -> 0g selftest -> X negative selftest -> 0g selftest -> Y positive selftest -> 0g selftest -> Y negative selftest -> 0g selftest -> set EOI bit and then read status register from 0 to 2 (verify that there is no error and it’s in Normal mode. However, the END_OF_PWRUP is on) -> Looping read commands of X, Y and REG_STATUS
Question:
1. END_OF_PWRUP bit in the REG_STATUS_0 is 1 constantly throughout selftest mode and normal mode. Is it normal? On the page 55 of the datasheet, it says it would reply error frame if the flag is on. However, I don’t see any error frame during the flag (END_OF_PWRUP) is on.
2. I want to disable offset cancellation on both X and Y channels so I write 0x03 to register REG_CONFIG right before setting EOI bit, and then keep reading X Y acceleration values and REG_STATUS. The offset cancellation is disabled successfully but X acceleration value is about 94 (0x5E) when the sensor is placed horizontally, which is over 1G already. Typically, it should be something close to 0 and under 1G. Is it normal? Do I set the filter setting at the wrong time? (Y acceleration value is sitting around 15 (0xF) when sensor is horizontal.)
3. On the page of 37, the sensitivity value is 68 LSb/g. To be more precise, is it 68.238 LSb/g? (0x3FFF - 0x1) / 240g since it’s +/- 120g range.
Regards,
