Wake up from Event

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

Is it possible to let the XMEGA Event system wake up the controller from sleep? I can not find if that is possible. I can probably use an interrupt in parallell to the event to wake it up but is there another way?
It is the RTC compare match that will invoke the event.

/edit. No I will use either RTC or Timer 0. It depends on if I need a fast clock or if I need to put the CPU in power save mode during counting.

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

Can't the RTC compare match generate an interrupt?

I guess you can generate an interrupt with an event. The Xmega AU has Port Configuration registers. They seem to be a place they tossed in some odds and ends. I haven't tried to output an event, but I have used these registers to output the RTC on PORT C, pin 6, and that works.

It looks like you can output an event channel to a pin with these registers. If you can wiggle a pin, you can also read that pin and you can have it generate an interrupt on edges, etc.

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

Thanks for the tip with pin registers, at least it is a work around even if you loose a pin.

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

Use the event_generation_from_system_clk and it can be used to wakeup from 3(?) sleep modes. Save the pin, if the system clk prescaler values fits your app. wakeup time.

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1

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

That sounds exactly what I need but I can't find how to do it in the data sheet. Can you guide me to the right page please?

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.

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

bengtr wrote:
That sounds exactly what I need but I can't find how to do it in the data sheet. Can you guide me to the right page please?
I made a mistake, the CLKsys is in the "oscillator source" column, not the "wakeup source" column.

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1