Author Topic: Is it possible to sleep the M0 SAMD MCU for less than one second?  (Read 166 times)

Ryan

  • NewMember
  • *
  • Posts: 5
Is it possible to sleep the M0 SAMD MCU for less than one second?
« on: September 17, 2021, 12:40:38 AM »
I'm trying to see how to put the M0 into RX mode, then sleep the MCU for some period of milliseconds to save power while waiting to receive a transmission. Anyone know if this is possible, e.g. LowPower.idle(SLEEP_15MS, ADC_OFF, BOD_OFF);

It looks like the LowPower library only supports sleep with time-based wakeups for AVR boards, not SAMD boards. It also appears as though the RTCZero library only supports sleep periods of at least one second (i.e. without millisecond support).

ulli

  • Jr. Member
  • **
  • Posts: 87
Re: Is it possible to sleep the M0 SAMD MCU for less than one second?
« Reply #1 on: October 04, 2021, 12:55:49 PM »
Set the M0 to sleep forever (RTC with Alarm 0) and wake up by external interrupt which is wired to the rfm dio0 pin. ;) -> wake up by incomming radio message

Or use the watchdog