2 Replies Latest reply on Jan 12, 2017 7:14 AM by e.pratt_1639216

    Interrupt Routines Best Practices

    e.pratt_1639216

      After fumbling around with the routines for setting up the Interrupt routines for various components (BLESS,ADC_SAR,Pins,TCPWM), I'm curious if there is a general approach to handling turning ISR's on and off during various parts of the application code?

         

       

         

      So far, I've been calling the _Disable(); _Stop(); to turn off the ISR, but then I have to call _StartEx(); and _Enable(); when I turn it back on; What I want to know is if I should be merely enabling/disabling the ISR and that is good enough for turning off all of the hardware (as far as reducing power consumption during sleep/deepsleep/hibernate)?

         

      Or should I be calling _Stop(); to ensure the component is drawing no current while not in use?