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.

The largest known prime number: 282589933-1

In my humble opinion, I'm always right. 

  • 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."

The largest known prime number: 282589933-1

In my humble opinion, I'm always right. 

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

Actually, it's CLK.RTCCTRL.

The largest known prime number: 282589933-1

In my humble opinion, I'm always right.