Hello Alessandro10,
You probably need to increase threshold because if the BMA400 is on the table, Z value shall be 1G.
So, if you said threshold value as 0 and duration is 10ms, the interrupt pin always high in case interrupt is active high.
Did you check the result using scope?
And here is the answer for your questions.
1) is it right that OR logic generates an interrupt if the acceleration detected by the sensor from at least one of its axis is over a threshold and for AND logic detects an interrupt if the acceleration is detected from all the axis at the same time?
- Yes,
2) if i want to reduce the number of interrupt (now i receive a lot of interrupts) i have to modify threshold and duration register?
- Simply, increase threshold and duration as I guide.
BMA_WriteRegister(0x41, 0x96); --> set threshold //1200mg BMA_WriteRegister(0x42, 0x00); --> set duration time BMA_WriteRegister(0x43, 0x14); --> set duration time // 200ms
Thanks,
... View more