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.

Basic CPU core sleep

Hello,

I am trying to keep all peripherals running, but just put the CPU core in "sleep" mode to save power.  I have tried the following:

    /* Disable clock domains */
    systemREG1->CSDDISSET= 1; // Just Disable GCLK

// I tried this command also:

    systemREG1->CSDDIS = 1; // Just Disable GCLK

    /* Idle CPU */
    asm(" WFI");

But the CPU just keeps running.  I am expecting it to halt until an interrupt occurs.