6 Replies Latest reply on Oct 14, 2020 10:13 PM by GaneshD_41

    GPIO EXIT DEEP SLEEP

    LUBA_1714456

      Hello every one!

      It's some days I'm trying to exit Psoc4 (CYBLE-022001-00 module) DEEP SLEEP using a GPIO logic signal (I've tried setting  rising edge, falling, derivate): no way to trigger "CY_ISR(GPIO_ISR) Irq function" !

      By the use of a scope I see the device enters DEEP SLEEP, exits at Advertising period, but no way to see it exiting (isr_1) when P3.7 GPIO moves.

      Some releases ago I also saw Psoc4 current rising from DEEP SLEEP (to about 10mA) whenever GPIO pin was moving. Now (I really don't know what I've done) even current does not rise when GPIO moves!

      Could it be this pin does make CPU exiting DEEP SLEEP?  Sincerily I was not able to see a document explaining what module pins can do this...

      Here attached "TopDesign.cysch" graphics, and two GPIO settings

       

      I enable GPIO pin by:

      Pin_1_SetInterruptMode(Pin_1_INTR_ALL, Pin_1_INTR_BOTH);  // redundant

      isr_1_StartEx(GPIO_ISR);

      isr_1_Enable(); // perhaps redundant

       

      Isr function (never triggered):

      CY_ISR(GPIO_ISR)

      {

          Pin_1_ClearInterrupt();          

      }

       

      Thanks for any help!

      Luigi