XMEGA Interrupts & Events

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

Hello all

 

I've just started to use the XMEGA series, jumping from the megas, and I'd like to know if it's possible to use a port pin to trigger an event even if there are 2 other pins on the same port that are triggering external interrupts? I understand that the interrupt system and the event system are two separate modules of the controller, but I couldn't find anything in the datasheets that stated

if this could be done or not and did not want to assume that meant that it could!

 

To put this into perspective of what I'm actually trying to do: I'd like to use 1 pin for an event for quadrature decoding, and use 2 other pins on the same port to trigger two separate interrupts from two separate ICs elsewhere in my design.

 

Apologies if this is all stated somewhere in a datasheet or an app note but I have not been able to find anything!

 

Thanks in advance! :D

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

There are a couple of Atmel application notes that should at least help you to get started with: AVR1600 Using the XMEGA Quadrature decoder (http://www.atmel.com/Images/doc8...) with the associated code (http://www.atmel.com/Images/AVR1...), AVR1001: Getting started with Xmega event system (http://www.atmel.com/Images/doc8...) with code(http://www.atmel.com/Images/avr1...) and AVR1313 Using the XMEGA IO pins and External interrupts (http://www.atmel.com/Images/doc8...) and code (http://www.atmel.com/Images/AVR1...).

 

Hope that it helps to get started.

 

Ilya

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

You didn't mention which Xmega you are using, but looking through the AU manual it appears the Event Channel Mux setting operates at the pin level, so you probably can do what you are trying to do.  That being said, manuals aren't always correct, and I can't check errata without knowing the chip in question.

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!