2 Replies Latest reply on Sep 24, 2017 5:36 PM by 835614343_2592986

    why the psoc5866 seems running slowly?

    835614343_2592986

      hello everyone:

            I developed a touch panel system with psoc5866, with 16 buttones, two sliders and one dedicated proximity sensor.

           The system is set as autotune with other parameters difault.

            But i find it scans sensors very slow, with about 3 seconds per loop.

           The program is as below:

       

          for(;;)

          {

              /* Place your application code here. */

             

              if(0u == CapSense_IsBusy())

              {

                  CapSense_UpdateEnabledBaselines();

                  CapSense_ScanEnabledWidgets();

              }

              else

              {

                 ........

                 //several such operations as below:

                 if (CapSense_CheckIsSensorActive(CapSense_SENSOR_PROXIMITYSENSOR0_0__PROX))

                      LED_Write(0xFD);

                 ..........

              }

          }

          what could be  the problem?

          do I neet to call CapSense_UpdateEnabledBaselines() each scan when smartsense is set?