What is Input/Sense Configuration?
Can you explain the differences and give an example?
When I Google "Input Sense Configuration" the top hit is this PDF on the Atmel site:
See section 2.3.2
I actually do not understand it deeply. How to use it in porgramming.
What do you need it for?
Can you show us some code where you need it but "don't know how to use it in programming"?
Have you read section 2.3.2 of the document clawson linked to?
Happy 75th anniversary to one of the best movies ever made! Rick Blane [Bogart]: "Of all the gin joints, in all the towns, in all the world, she walks into mine."
"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]
Surely it's all explained here:
It's basically giving you the ability to detect activity on a pin - you can get notification when the pin falls from high to low, when it rises from low to high and the various other combinations shown there.
What input signal are you trying to monitor and specifically what kind of edge or level activity are you trying to detect?
Is this about reading buttons by any chance?
I actually do not understand it deeply.
What don't you understand?
It's hard to clarify when we don't know what clarification is required!
Here is the relevant section of that document:
How to use it in porgramming
How to use it in porgramming
To do what, exactly?
Have you looked at the Getting Started example at the end of the document?
Have you visited the Product Page to look for other examples?
Last week he was using the ATtiny817 needing alterations (he "was asked" to do them) to a trivial snippet of assembler.
This week its an XMEGA and is asking for us to "explain [...] and give an example".
explain the differences
differences from what ?
Methinks "the difference between the alternative settings"...
Yes, I still suspect school work.
Need to use it for toggling an LED using interrupt
Which sounds the same as the previous homework assignment - but now on XMega ?
Yes, its about reading the button
So, again, what part of this don't you understand?
The posted extracts from the document seem pretty clear - so, again, you're going to have to tell us what part(s) of it are unclear to you.
The fact that your teacher has given you these assignments means that you should be able to do this - if you can't, you really should be talking to your teacher about that ...
You need to read:
and understand about contact bounce. If you use an edge interrupt to detect button activity expect to get 10..100 interrupts for each make or break of the switch.
The "better" way to read switches is to set up a timer interrupt to poll the state of the inputs each time it occurs. Only consider a switch to be in a stable state when it has been seen in the same state for multiple interrupt periods.
©2015 Atmel Corporation