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.

======FR2633电容检测出现-卡顿-情况! 怎么解决!??======

Other Parts Discussed in Thread: MSP430FR2633

硬件: 官方MSP430FR2633开发板,两个电容检测端口,CAP0.0 和 CAP1.0

软件:生成的工程文件,修改tSensor参数如下:

--------------------------------------------------------------

.ui16ConversionCount = 4000, //转换量程
.ui16ConversionGain = 150, //增益
.ui8FreqDiv = 0, //分频比

.ui16ProxThreshold = 300

.ui16NegativeTouchThreshold = 100,

.ui16TimeoutThreshold = 100,

--------------------------------------------------------------

问题现象操作(100%出现): 运行系统后,手紧贴两个电容端口不放,大概3秒后快速松手。然后MCU就卡住了!

在我们自己做的PCB板,或者 官方开发板都一样会出现!

请大神速度指导解决!

  • 你好,两点:

    1. 你的count 设得有点高,请问是什么应用,一般应用不会超过1000

    2. 在回调函数里面加入以下语句:

        if ((sensor->bMaxCountError == true) || (sensor->bSensorNegativeTouch == true))
        {
            CAPT_initSensor(sensor);
            CAPT_calibrateSensor(sensor);
        }