taking a register bit as a source for XCL module instead of a pin

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

Hi,
I am trying to implement XOR functionality through an XCL (LUT option) module. I did it by using two pins as input in ATXMEGA32E5. But is there a way to do it through a register/internal signal without using external pin? 
In short,  is there a workaround that XCL will read a bit from a general register as an input (instead of an external pin) for performing XOR functionality?
Thanks

This topic has a solution.

maar

Last Edited: Wed. Apr 12, 2017 - 08:34 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Per the XMEGA E family manual: Input sources: From external pins or the event system

 

So, if your "bit from a general register" can trigger an event, then this can be done.

Greg Muth

Portland, OR, US

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah I figured this out. Used Strobe and data register to manually trigger and write event through CH7. But thanks for the reply.
But what do you mean by bit from a general register? can I trigger event by writing to a general purpose register address space and making it event source?

maar

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

But what do you mean by bit from a general register?

I was quoting you from your original post, so, what do you mean by bit from a general register? 

Greg Muth

Portland, OR, US

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

I was thinking of writing to a general location or general purpose register and using that as an input for XCL. But I guess it has to be done by writing in STROBE and DATA register only.

maar