This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-CC1312R1: HOW TO EXIT SLEEP(100) when DIO20 INTERRUPT OCCRRS?

Part Number: LAUNCHXL-CC1312R1

Tool/software: Code Composer Studio

Hell,

my program is like below:

sleep(100);

wakeup_here:

xxxx

xxxx

//-----------------------------------------

DIO20 is set as input port and interrupt enabled. When the DIO20 interrupt occurs, how to exit the sleep(100) immediately and goto "wakeup_here",

Thanks!

WangHL

  • What is the purpose of what you are doing? Why do you want to SLEEP for a specifies time if you are going to use pin interrupt to wake up?

    The pinShutdown example show you how to enter Shutdown and wait for a pin interrupt to wake up the device.

    BR

    Siri