4 Replies Latest reply on Sep 13, 2018 1:57 PM by jhu_3414236

    Change capsense polling period

    jhu_3414236

      I am using SmartSense full auto-tune and I would like to change the polling rate to save power if there is no activity for a long time.  Is there an example code for this?  I tried calling CapSense_1_ScanAllWidgets() after a delay after I called CapSense_1_ProcessAllWidgets() but the processor seems to wake up immediately after I enter sleep.  Do I need to disable/clear capsense interrupts?  I tried this but it didn't have any effect:

       

      CY_SET_REG32(CapSense_1_CSD_INTR_PTR, CapSense_1_CSD_INTR_ALL_MSK);

      (void)CY_GET_REG32(CapSense_1_CSD_INTR_PTR);

      NVIC_DisableIRQ(CapSense_1_ISR_cfg.intrSrc);