RTC and the 32K ULP osc

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

How do you set the RTC to run from the 32K ULP osc? I want to use this to wake the CPU up after delays of 150mS to several seconds, I think.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

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

On RTC there is application note "AVR1314: Using the XMEGA Real Time Counter" (with example code)

For using the RTC for wake up you should look at "AVR1010: Minimizing the power consumption of Atmel AVR XMEGA devices". In the example code it has a "xmega_rtc32_sleep_example.c"

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

But the stinking app notes don't give you register names.

 

Here it is, RTCCTRL under "System Clocks." I was looking under "Oscillators" and "Real Time Counter."

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

Last Edited: Mon. Apr 20, 2015 - 12:14 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Actually, it's CLK.RTCCTRL.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut.