This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2676: CapTIvate software library questions

Part Number: MSP430FR2676

Hi,

I got below questions from customer.
Could you answer them?

Q1) CAPT_calibartionSensor() is used to calibrate the sensors.
It seems the API calibrate Gain and Offset.
Customer wants to calibrate LTA value only.
Do we have such API?

Q2) LTA calculation is done automatically.
Is it possible to modify LTA value directly by user code?

Q3) Is it possible to control LTA updating by user code?
For example, to stop LTA update during some period of time.

Q4) CAPT_updateUI() is called by timer interrupt (CapTIvate conversion timer interrupt).
Suppose calling CAPT_updateUI() is delayed by some reasons, what happens?
For example, if CAPT_updateUI() is called 1 sec after the interrupt;
a) sensor scan is stopped during this 1sec period. CAPT_updateUI() handles sensor values when the interrupt happens(1sec old values).
or
b) sensor scan is continued during this 1sec period. CAPT_updateUI() handles the latest sensor values. (old values in the 1sec period are discarded.)
or
else

Thanks and regards,
Koichiro Tashiro

  • Hi Koichiro,

    For Q1:

    This API is calibrate internal parameter (like Gain and Offset) to let LTA is maintained at the value set by the customer.

    Why customer would like to calibrate TLA only?

    For Q2:

    I think no.

    For Q3:

    You means stop LTA update function? I think maybe available, I need to check, and why customer would like to stop update LTA?

    For Q4:

    I don't understand the question, could you describe more details?

    Thanks!

    Best Regards

    Johnson

  • Hi Johnson,

    I will ask customer the background of questions.
    Do you have any update for Q3?

    Thanks and regards,
    Koichiro Tashiro

  • Hi Johnson,

    Please see below feedback from the customer.

    Q1:

    Why customer would like to calibrate TLA only?

    According to customer, CAPT_calibrationSensor() takes some time like ~2sec.
    Customer wants to calibrate only LTA quickly. This is the background of this question.
    Customer found below parameter can be directly modified and the change is valid after that. 
    uint16_t ui16Natural
    Is this acceptable? If you have other recommended method, please let me know.

    Q3:

    why customer would like to stop update LTA?

    Customer wants to enable / disable LTA update based on external conditions.
    They understood some mechanism is already implemented in CapTIvate library. For example, LTA update is stopped if certain threshold is exceeded.
    They also make sure what kinds of control are possible by user software.

    Q4:

    I don't understand the question, could you describe more details?

    In normal condition, CAPT_updateUI is called just after "CapTIvate conversion timer interrupt".
    But customer has concerns that other tasks may prevent CAPT_updateUI call for a while.(probably 1 sec is too much)
    If this is the case, customer wants to make sure any actions need to be taken in user code.
    For example, if case a) is true (old values are used), these old values should be discarded by user code.

    Thanks and regards,
    Koichiro Tashiro

  • Hi Koichiro,

    For Q1: Our Lib don't support only calibrate LTA. By the way, you can disable EMC to decrease the calibrate time.

    For Q2: Yes, you can disable LTA filter via this option:

    Q4: Other tasks will not affect this CAPT_updateUI function. Other interrupts will be shielded during the update.

    Thanks!

    Best Regards

    Johnson

**Attention** This is a public forum