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.

MSP430FR2633触摸实现程序

Other Parts Discussed in Thread: TIDM-CAPTIVATE-E-LOCK

请问程序是怎么实现原理图里矩阵按键及矩阵灯的功能的?就是说程序是怎么识别人手触摸的是哪一个按键以及对应灯亮的?用CDC软件生成代码没有LED灯的功能实现,求教大家

New Output  http://www.ti.com.cn/cn/lit/df/tidro65/tidro65.pdf

  • 楼主你好。你看的这个demo板,里面的led是另外控制的,当检测到哪个触摸按键被按下,就点亮哪个led

    官网有提供程序代码和设计说明

    http://www.ti.com.cn/tool/cn/TIDM-CAPTIVATE-E-LOCK

  • 官方好像是用CCS写的代码,我用的是CDC自动生成的代码,没有LED灯实现模块,且用的是IAR编程软件

  • CDC只能设置触摸管脚定义,LED灯On/Off通过代码实现,函数实现在updateLED(),通过回调函数实现

    回调函数

    //! \brief Registering the application's callback function
    //! \param[in] N/A
    //!
    void USER_registerCallback(void)
    {

    MAP_CAPT_registerCallback(&BTN0000, &USER_callbackButtons);
    MAP_CAPT_registerCallback(&PRX0000, &USER_callbackProx);

    }//end of USER_registerCallback(void)