09-27-2021 11:44 PM - edited 09-28-2021 02:34 AM
While testing the BMA400, the reference values do not update correctly.
I'm using Development Desktop 2.0 with the BMA400 shuttle board to test the Generic Interupt functions.
Both GEN1 and GEN2 are enabled.
They are configured the same, except for the "activity reference update":
- GEN1 is set for "every time by data source"
- GEN2 is set for "one time".
I constantly move the board around, while pressing "Read".
- The reference values for GEN1 update as expected.
- The reference values for GEN2 do not update at all. It behaves the same as "manual" mode.
I have confirmed that GEN2INT_CONFIG0.act_refu=01.
Updating the reference values "every time" means that slow changes are not detected. For this, we need "one time".
"Manual" updates would work, but this increases the MCU comms traffic. Is there another solution?
Edit:
I have new insight, but it does not solve the problem.
I am now playing with the "manual update" mode. I can write to the reference registers (0x53, 0x54).
However, once written, the registers cannot be changed while the interrupt is enabled.
In the datasheet, section 4.7:
"Any change of an interrupt configuration must be executed when the corresponding interrupt is disabled."
So, to change the reference values in "manual update" mode:
1. disable the interrupt
2. change the register value
3. enable the interrupt. (Oddly, we need to enable the interrupt to make the change appear in the register.)
Using this information, I tried the "one time" update mode again.
The "one time" update mode works, but only by toggling the interrupt "enable" bit, off and on, each time the interrupt fires.
Is this how it was designed? This seems bizarre.
Additionally, toggling the "enable" bit causes the reference registers to update, even if the interrupt has not fired.
This is not expected behaviour.
Solved! Go to Solution.
12-23-2021 07:01 PM - edited 12-23-2021 07:06 PM
Hello dsherman,
Sorry for not clarifying it to you.
I just checked your question and I want to clarify the your question.
One more thing, yes, every time by data sourse is reference value is updated in normal mode.
Please let me know if you have any questions.
Thank you.
12-23-2021 10:01 PM
Hi Minhwan,
What you say is correct. This is how the product works.
What I say is also correct. The documentation is wrong. The documentation says the one-time mode should update the reference values after each interrupt. Instead, it updates after each wake-up event. This is not the same thing.
12-24-2021 02:00 AM
Hello dsherman,
I got your point. I could reproduce your issue and reported it to HQ.
Sorry for delay your issue for a long time.
Please let me know if you have further question.
I will keep tracking this issue.
Thanks,
01-04-2022 02:33 AM
Hello dsherman,
We confirm that reference value of x,y,z aren't be updated every time after triggering the generic interrupt if we select one time mode in acc normal mode.
Reference is updated after entering normal mode.
We will update datasheet later.
Please let me know if you have any questions.
Thank you.
01-10-2022 11:14 PM
I checked this issue with HQ and HQ will update this one in new datasheet (Not decided when).
So I closed this issue.
Thank you for finding it and sorry for late feedback.