ISC

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

Hi,

 

What is Input/Sense Configuration? 

Can you explain the differences and give an example?

 

Thanks

 

-GEUNSHIN2195

Last Edited: Tue. Jun 27, 2017 - 09:05 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When I Google "Input Sense Configuration" the top hit is this PDF on the Atmel site:

 

http://www.atmel.com/images/doc8...

 

See section 2.3.2

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

Hi,

 

I actually do not understand it deeply. How to use it in porgramming.

 

Thanks

-GEUNSHIN2195

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

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]

Last Edited: Tue. Jun 27, 2017 - 08:57 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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?

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

rmilante21 wrote:
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

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?

 

 

 

 

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

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

 

School work?

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]

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

rmilante21 wrote:
explain the differences

differences from what ?

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

Methinks "the difference between the alternative settings"...

Yes, I still suspect school work.

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]

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

Hi,

 

Need to use it for  toggling an LED using interrupt

 

-GEUNSHIN2195

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

Which sounds the same as the previous homework assignment - but now on XMega ?

 

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

Hi Clawson,

 

Yes, its about reading the button

-GEUNSHIN2195

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

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

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

rmilante21 wrote:
Yes, its about reading the button
Then just to warn you that using external interrupts to read buttons is just about the worst possible way to do it.

 

You need to read:

 

http://www.ganssle.com/debouncin...

http://www.ganssle.com/debouncin...

 

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.