Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | AVRclub | [AVR club] INTERRUPTS


Advertise Here

Atmel AVR Microcontroller discussion group.

[AVR club] INTERRUPTS - Kurian Polachan - Mar 10 23:18:44 2008

hi am programming ngw in embedded linux environment ....
could any one tell me how to enable a gpio pin as an interrupt and then how
to detect the change in the signal in this pin in the program....

regards,
[Non-text portions of this message have been removed]

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: [AVR club] INTERRUPTS - Zack Widup - Mar 11 0:04:43 2008


First, download the data sheet for the AVR you plan on using. Find the
section(s) that deal with interrupts. Everything you need to know is
there ...

Zack

On Tue, 11 Mar 2008, Kurian Polachan wrote:

> hi am programming ngw in embedded linux environment ....
> could any one tell me how to enable a gpio pin as an interrupt and then how
> to detect the change in the signal in this pin in the program....
>
> regards,
>



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] INTERRUPTS - Kurian Polachan - Mar 11 10:42:52 2008

hi,
the reason iam asking this question is because....iam doing on embedded
linux platform and writing a c code ....after reading the datasheets iam in
a position to set the interrupts for a pin but the problem is once an
interrupt occurs how will i know it in c?? could anyone post with a single
example i searched a lot but failed to get one in c...

regards

On 11/03/2008, Zack Widup wrote:
> First, download the data sheet for the AVR you plan on using. Find the
> section(s) that deal with interrupts. Everything you need to know is
> there ...
>
> Zack
> On Tue, 11 Mar 2008, Kurian Polachan wrote:
>
> > hi am programming ngw in embedded linux environment ....
> > could any one tell me how to enable a gpio pin as an interrupt and then
> how
> > to detect the change in the signal in this pin in the program....
> >
> > regards,
> >
>
[Non-text portions of this message have been removed]



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] INTERRUPTS - Zack Widup - Mar 11 10:43:44 2008


How much experience have you had with AVR's? I always tell people to start
out simple - get a programmer like the STK500 or Ponyprog, write some
little programs in assembler to get the feel of it all, and see if you can
do something like make LED's light up with pushbuttons, etc. Even a
simple USART routine might be too much for someone with little or no
microcontroller experience.

I'd need more info on what your setup is. I'm assuming your AVR is going
to be connected to your computer somehow. Which AVR do you plan on using
and what kind of interface are you using? How is the interrupt going to be
triggered? A GPIO pin set up as an interrupt is an INPUT. You'd have to
write code in your interrupt service routine to get the data to the
computer, and that's why we'd need to know how you plan on making that
happen.

Zack

On Tue, 11 Mar 2008, Kurian Polachan wrote:

> hi,
> the reason iam asking this question is because....iam doing on embedded
> linux platform and writing a c code ....after reading the datasheets iam in
> a position to set the interrupts for a pin but the problem is once an
> interrupt occurs how will i know it in c?? could anyone post with a single
> example i searched a lot but failed to get one in c...
>
> regards
>
> On 11/03/2008, Zack Widup wrote:
>> First, download the data sheet for the AVR you plan on using. Find the
>> section(s) that deal with interrupts. Everything you need to know is
>> there ...
>>
>> Zack
>> On Tue, 11 Mar 2008, Kurian Polachan wrote:
>>
>>> hi am programming ngw in embedded linux environment ....
>>> could any one tell me how to enable a gpio pin as an interrupt and then
>> how
>>> to detect the change in the signal in this pin in the program....
>>>
>>> regards,
>>>



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] INTERRUPTS - Kurian Polachan - Mar 11 10:51:19 2008

iam not at all familiar with avr i have used pics for long...anyway right
now i use ngw100 with avr32microcontroller

On 11/03/2008, Zack Widup wrote:
> How much experience have you had with AVR's? I always tell people to start
>
> out simple - get a programmer like the STK500 or Ponyprog, write some
> little programs in assembler to get the feel of it all, and see if you can
>
> do something like make LED's light up with pushbuttons, etc. Even a
> simple USART routine might be too much for someone with little or no
> microcontroller experience.
>
> I'd need more info on what your setup is. I'm assuming your AVR is going
> to be connected to your computer somehow. Which AVR do you plan on using
> and what kind of interface are you using? How is the interrupt going to be
>
> triggered? A GPIO pin set up as an interrupt is an INPUT. You'd have to
> write code in your interrupt service routine to get the data to the
> computer, and that's why we'd need to know how you plan on making that
> happen.
>
> Zack
>
> On Tue, 11 Mar 2008, Kurian Polachan wrote:
>
> > hi,
> > the reason iam asking this question is because....iam doing on embedded
> > linux platform and writing a c code ....after reading the datasheets iam
> in
> > a position to set the interrupts for a pin but the problem is once an
> > interrupt occurs how will i know it in c?? could anyone post with a
> single
> > example i searched a lot but failed to get one in c...
> >
> > regards
> >
> > On 11/03/2008, Zack Widup >
> wrote:
> >>
> >>
> >> First, download the data sheet for the AVR you plan on using. Find the
> >> section(s) that deal with interrupts. Everything you need to know is
> >> there ...
> >>
> >> Zack
> >>
> >>
> >> On Tue, 11 Mar 2008, Kurian Polachan wrote:
> >>
> >>> hi am programming ngw in embedded linux environment ....
> >>> could any one tell me how to enable a gpio pin as an interrupt and
> then
> >> how
> >>> to detect the change in the signal in this pin in the program....
> >>>
> >>> regards,
> >>>
>
>

--
Kurian Polachan
Electronics and Communication Engineering (E8B)
Govt. Model Engineering College
Cochin
mob: +919447045943
[Non-text portions of this message have been removed]



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] INTERRUPTS - Zack Widup - Mar 11 11:51:30 2008


OK. Well, as I said, you need to write some sort of code in your
interrupt service routine to communicate to the computer that the
interrupt has been triggered.

It appears one of the documents at the Atmel site under ATNGW100 would
answer your question.

Zack

On Tue, 11 Mar 2008, Kurian Polachan wrote:

> iam not at all familiar with avr i have used pics for long...anyway right
> now i use ngw100 with avr32microcontroller
>
> On 11/03/2008, Zack Widup wrote:
>> How much experience have you had with AVR's? I always tell people to start
>>
>> out simple - get a programmer like the STK500 or Ponyprog, write some
>> little programs in assembler to get the feel of it all, and see if you can
>>
>> do something like make LED's light up with pushbuttons, etc. Even a
>> simple USART routine might be too much for someone with little or no
>> microcontroller experience.
>>
>> I'd need more info on what your setup is. I'm assuming your AVR is going
>> to be connected to your computer somehow. Which AVR do you plan on using
>> and what kind of interface are you using? How is the interrupt going to be
>>
>> triggered? A GPIO pin set up as an interrupt is an INPUT. You'd have to
>> write code in your interrupt service routine to get the data to the
>> computer, and that's why we'd need to know how you plan on making that
>> happen.
>>
>> Zack
>>
>> On Tue, 11 Mar 2008, Kurian Polachan wrote:
>>
>>> hi,
>>> the reason iam asking this question is because....iam doing on embedded
>>> linux platform and writing a c code ....after reading the datasheets iam
>> in
>>> a position to set the interrupts for a pin but the problem is once an
>>> interrupt occurs how will i know it in c?? could anyone post with a
>> single
>>> example i searched a lot but failed to get one in c...
>>>
>>> regards
>>>
>>> On 11/03/2008, Zack Widup >
>> wrote:
>>>>
>>>>
>>>> First, download the data sheet for the AVR you plan on using. Find the
>>>> section(s) that deal with interrupts. Everything you need to know is
>>>> there ...
>>>>
>>>> Zack
>>>>
>>>>
>>>> On Tue, 11 Mar 2008, Kurian Polachan wrote:
>>>>
>>>>> hi am programming ngw in embedded linux environment ....
>>>>> could any one tell me how to enable a gpio pin as an interrupt and
>> then
>>>> how
>>>>> to detect the change in the signal in this pin in the program....
>>>>>
>>>>> regards,
>>>>>

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )