6 Replies Latest reply on Aug 1, 2018 11:48 PM by nsha

    PSoC4 CapSense Touchpad Gesture Click work unsure

    matthias.meier_3179676

      Hello everyone!

      I have a proplem with the Touchpad detection.

      My design works with a CY8C4147AZI-S475. A 11x11 Touchpad Matrix was sensed in CSD mode. The position detection works fine but the gesture with click und double click works unsure.

      With the Tuner, I can see that most of time the double touch is not detected in the raw data.

      All the following touches are double, but only 3 are detected as double!

      This is the code:

         CyGlobalIntEnable; /* Enable global interrupts. */

              /* Place your initialization/startup code here (e.g. MyInst_Start()) */

              /* Start the components */

               #ifdef TUNER

          EZI2C_Start();

         

          /*

          * Set up communication and initialize data buffer to CapSense data structure

          * to use Tuner application

          */

          EZI2C_EzI2CSetBuffer1(sizeof(CapSense_dsRam),

                                sizeof(CapSense_dsRam),

                          (uint8_t *)&(CapSense_dsRam));

         

          /* Start CapSense Component */

          CapSense_Start();

          /* Start initial scan */

          CapSense_ScanAllWidgets();

          for(;;)

          {

              /* Do this only when a scan is done */

              if(CapSense_NOT_BUSY == CapSense_IsBusy())

              {

                  /* Process all widgets */

                  CapSense_ProcessAllWidgets();

                 

                  /* To sync with Tuner application */

                  CapSense_RunTuner();

                 

                  /* Start next scan */

                  CapSense_ScanAllWidgets();

              }

              CySysWdtClearInterrupt();

          }

          #else

       

      Is there anyone with an idea what the mistake is?

      Many thanks and best regards

      Matthias