Standby with the timer and PWM running on SAMD21

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How can this be done without ASF (or even with it)? I have set RUNSTDBY flags in many places and it draws more current than in pure standby (700 uA now compared to 2.5 uA all disabled), but PWM stops. Which registers must have the RUNSTDBY flag? I have it now in the following: SYSCTRL->OSC8M.reg, SYSCTRL->DFLLCTRL.reg , GCLK->GENCTRL.reg and TC4->COUNT16.CTRLA.reg

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

    SYSCTRL->VREG.bit.RUNSTDBY = 1;

if you have a revision A or B (check the Errata section).

/Lars