SAMD21 RTC, CLOCK_RTC_APB and CLOCK_EIC_APB in sleep mode

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does CLOCK_RTC_APB and CLOCK_EIC_APB required to be run for interrupt to work while in sleep mode?

 

The APB bus is run by Cortex M0+ module so it needs 8MHz clock to provide APB?

 

When I set EXTINT for rising edge with filter which fire callback to do some task and RTC in count which fire callback every 1 second. Both worked fine.

 

When I set EXTINT for level detect (no longer need GCLK_EIC) but did not fire callback on RTC and EXTINT event. 

 

I wondered if this related to shutdown on Clock APB while in sleep mode that might explain this behaviour.

 

I understood both CLOCK_RTC_APB and CLOCK_EIC_APB need to be active and synced before accessing register, but datasheet is not clear if interrupt need both clock to operate