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.

MSP430FR2532: How to check if the touch key is assembled successfully

Part Number: MSP430FR2532

Hi, 

My customer is using MSP430FR2532 and they have several touch key in this design.

They want to know which register can be used to check if  the touch key is assembled successfully.

Thanks.

  • Hi Mike,

    I need some info for clarification.

    What do you mean by assembled successfully?

    Whether it is connected physically or at which key a touch is detected?

    Thanks

    Regards

    Kostas

  • Hi,

    Sorry for not providing the information clearly.

    My customer have a project which has captivate touch key.

    And they want to know not only if the key is touched but also the value of the key while the key is touched.

    Is there any API or register can be used for this purpose ?

  • Hallo,

    thanks for the additional info.

    There are different ways to implement the recognition on which key has been touched.

    - Use the CAPT_getElementStateBitField to get the touch status of all keys.

     Please check the Technology guide LINK

     e.g.  multiTouchState = (uint8_t)CAPT_getElementStateBitField(&BTN00, eTouchStatus);
            if (multiTouchState == 0x00)
            {
                no key detected.....
            }

            if (multiTouchState == 0x01)
                    {
                        key #1 detected ;
                    }
    etc.

    - or check every key individually for touch as described in LINK

    e.g.

    void updateLED(void)
    {
        if(keypad.pCycle[0]->pElements[0]->bTouch == true)
        {
            // ILLUMINATE LED
        }
        else
        {
            // TURN LED OFF
        }
    }

    I hope that is was you are looking for and can help to answer your question.

    Just as an additional info. The technology guide is a good source for information,

    especially the HOW-TO chapter in your case.

    Regards

    Kostas

     

**Attention** This is a public forum