Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] Interrupts

Re: [AVR-Chat] Interrupts

2005-01-29 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: Eric
To: AVR-Chat@yahoogroups.com
Sent: Saturday, January 29, 2005 6:37 PM
Subject: [AVR-Chat] Interrupts


I first learnt about microprocessors on the  Motorola  6800 family back in 
the mid 70's

They are great, the timers/counters have hardware interrupts, when they are 
activated (like a
timers/counters flag been set) , it sends the Micro off to FFFx and FFFx+1 
(I can not remember the
correct address) to get the 16 bit address, of were the start of the program 
is to service whatever
activated the interrupt, Just like when you start the Micro from a reset, 
the address of the start of the
program would be in address FFFE & FFFF.

However the Atmel products don't seem to have this feature, the software 
have to continually look to see
if the timers/counters flag have been set, with a software loop.

Is this always true on the Atmel products, or is it I have not got to know 
all the Atmel family yet?

The timer/counters can generate interrupts on overflows, you don't need to 
poll a flag. It's covered in the data sheets.

Leon
--
Leon Heller, G1HSM
http://www.geocities.com/leon_heller 



-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005

Interrupts

2005-01-29 by Eric

I first learnt about microprocessors on the  Motorola  6800 family back in the mid 70's

They are great, the timers/counters have hardware interrupts, when they are activated (like a
timers/counters flag been set) , it sends the Micro off to FFFx and FFFx+1 (I can not remember the
correct address) to get the 16 bit address, of were the start of the program is to service whatever
activated the interrupt, Just like when you start the Micro from a reset, the address of the start of the
program would be in address FFFE & FFFF.

However the Atmel products don't seem to have this feature, the software have to continually look to see
if the timers/counters flag have been set, with a software loop.

Is this always true on the Atmel products, or is it I have not got to know all the Atmel family yet?

From Eric

RE: [AVR-Chat] Interrupts

2005-01-29 by stevech

The Atmel chips' timers, like most all micro's, have interrupts (as you
describe) for timers, UART and many other I/O events.
Show quoted textHide quoted text
-----Original Message-----
From: Leon Heller [mailto:leon.heller@dsl.pipex.com]
Sent: Saturday, January 29, 2005 10:49 AM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Interrupts



----- Original Message -----
From: Eric
To: AVR-Chat@yahoogroups.com
Sent: Saturday, January 29, 2005 6:37 PM
Subject: [AVR-Chat] Interrupts


I first learnt about microprocessors on the  Motorola  6800 family back in
the mid 70's

They are great, the timers/counters have hardware interrupts, when they are
activated (like a
timers/counters flag been set) , it sends the Micro off to FFFx and FFFx+1
(I can not remember the
correct address) to get the 16 bit address, of were the start of the program
is to service whatever
activated the interrupt, Just like when you start the Micro from a reset,
the address of the start of the
program would be in address FFFE & FFFF.

However the Atmel products don't seem to have this feature, the software
have to continually look to see
if the timers/counters flag have been set, with a software loop.

Is this always true on the Atmel products, or is it I have not got to know
all the Atmel family yet?

The timer/counters can generate interrupts on overflows, you don't need to
poll a flag. It's covered in the data sheets.

Leon
--
Leon Heller, G1HSM
http://www.geocities.com/leon_heller



--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005




Yahoo! Groups Links

Re: [AVR-Chat] Interrupts

2005-01-29 by Eric

Hi Leon

I have been all over that, "polling" is the word I should of used in the posting that stated this thread.

My point was have software loops that just spend all day polling the flags to see if they are set seems
to be such a waste of resources, I think the Motorola  concept seems to be such a tiny way of doing the
same job,

I was really asking is there a Atmel series where you dont need to poll?





The timer/counters can generate interrupts on overflows, you don't need to
poll a flag. It's covered in the data sheets.

Leon
--
Leon Heller, G1HSM
http://www.geocities.com/leon_heller



--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005




Yahoo! Groups Links

Re: [AVR-Chat] Interrupts

2005-01-29 by Eric

ignore the one sent a minute ago


Hi Leon and all else

I have been all over that, "polling" is the word I should of used in the posting that stated this thread.

My point was having software loops that just spend all day polling the flags to see if they are set seems
to be such a waste of resources, I think the Motorola  concept seems to be such a tidy way of doing the
same job,

I was really asking is there a Atmel series where you dont need to poll?





The timer/counters can generate interrupts on overflows, you don't need to
poll a flag. It's covered in the data sheets.

Leon
--
Leon Heller, G1HSM
http://www.geocities.com/leon_heller



--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005




Yahoo! Groups Links










Yahoo! Groups Links

Re: [AVR-Chat] Interrupts

2005-01-29 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: "Eric" <erichards@clear.net.nz>
To: <AVR-Chat@yahoogroups.com>
Sent: Saturday, January 29, 2005 7:19 PM
Subject: Re: [AVR-Chat] Interrupts


>
> Hi Leon
>
> I have been all over that, "polling" is the word I should of used in the 
> posting that stated this thread.
>
> My point was have software loops that just spend all day polling the flags 
> to see if they are set seems
> to be such a waste of resources, I think the Motorola  concept seems to be 
> such a tiny way of doing the
> same job,
>
> I was really asking is there a Atmel series where you dont need to poll?

Yes, all the AVRs!

Leon 



-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005

Re: [AVR-Chat] Interrupts

2005-01-29 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: "Eric" <erichards@clear.net.nz>
To: <AVR-Chat@yahoogroups.com>
Sent: Saturday, January 29, 2005 7:23 PM
Subject: Re: [AVR-Chat] Interrupts


>
> ignore the one sent a minute ago
>
>
> Hi Leon and all else
>
> I have been all over that, "polling" is the word I should of used in the 
> posting that stated this thread.
>
> My point was having software loops that just spend all day polling the 
> flags to see if they are set seems
> to be such a waste of resources, I think the Motorola  concept seems to be 
> such a tidy way of doing the
> same job,
>
> I was really asking is there a Atmel series where you dont need to poll?

Yes, read my answer below!


> The timer/counters can generate interrupts on overflows, you don't need to
> poll a flag. It's covered in the data sheets.

Leon




-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005

Re: [AVR-Chat] Interrupts

2005-01-29 by Dave VanHorn

>
>However the Atmel products don't seem to have this feature, the software 
>have to continually look to see
>if the timers/counters flag have been set, with a software loop.

Oh my god, all my applications just stopped working!

Re: [AVR-Chat] Interrupts

2005-01-29 by Zack Widup

Whenever I take on a new device of any kind to use, the first thing I do 
is get the data sheet and study it as much as necesary in order to really 
understand how the device works.  I went over some of the first AVR data 
sheets I had probably 20 times or so before I wrote my first program. That 
program ran flawlessly as a result.

(Not that I don't have bugs sometimes, but they're relatively easy to 
find and fix.)

These data sheets give all the info you need to understand the interrupt 
system of the AVR's.  Study them well.

Zack
Show quoted textHide quoted text
On Sat, 29 Jan 2005, Leon Heller wrote:

> 
> > I was really asking is there a Atmel series where you dont need to poll?
> 
> Yes, all the AVRs!
> 
> Leon 
>

RE: [AVR-Chat] Interrupts

2005-01-30 by stevech

My oh my, Eric -
I was really asking is there a Atmel series where you dont need to poll?

What part of "Yes, ALL the AVRs do" don't you get?????

A program may use interrupts or polling for I/O events.

Re: [AVR-Chat] Interrupts

2005-01-30 by Bernd Felsche

On Sunday 30 January 2005 02:37, Eric wrote:
> I first learnt about microprocessors on the  Motorola  6800 family
> back in the mid 70's
>
> They are great, the timers/counters have hardware interrupts, when
> they are activated (like a timers/counters flag been set) , it
> sends the Micro off to FFFx and FFFx+1 (I can not remember the
> correct address) to get the 16 bit address, of were the start of
> the program is to service whatever activated the interrupt, Just
> like when you start the Micro from a reset, the address of the
> start of the program would be in address FFFE & FFFF.

> However the Atmel products don't seem to have this feature, the
> software have to continually look to see if the timers/counters
> flag have been set, with a software loop.

Atmel's AVR does have interrupts of various types. The counters
don't hardware interrupt on every count, but they can hardware
interrupt on counter comparison match(es) and overflow. Look at the
interrupt vector table documentation for the device you're using and
it'll show what interrupts are available. The documentation also
describes how the appropriate interrupts can be enabled.

> Is this always true on the Atmel products, or is it I have not got
> to know all the Atmel family yet?

Atmel makes lots of different microcontrollers. This is an AVR list.

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!

Re: [AVR-Chat] Interrupts

2005-01-30 by Eric

Come on you ............................ people

sorry I half described the problem, I have downloaded some data sheets, I will try and make another
effort so we don't get a lot of ................... people making jokes

But for me the thread has gone off, and think I might be wasting my time
Show quoted textHide quoted text
----- Original Message -----
From: "Dave VanHorn" <dvanhorn@dvanhorn.org>
To: <AVR-Chat@yahoogroups.com>; <AVR-Chat@yahoogroups.com>
Sent: Sunday, January 30, 2005 9:20 AM
Subject: Re: [AVR-Chat] Interrupts




>
>However the Atmel products don't seem to have this feature, the software
>have to continually look to see
>if the timers/counters flag have been set, with a software loop.

Oh my god, all my applications just stopped working!







Yahoo! Groups Links

RE: [AVR-Chat] Interrupts

2005-01-30 by stevech

"I was really asking is there a Atmel series where you dont need to poll?"

YES - all series
Show quoted textHide quoted text
-----Original Message-----
From: Eric [mailto:erichards@clear.net.nz]
Sent: Saturday, January 29, 2005 11:24 AM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Interrupts



ignore the one sent a minute ago


Hi Leon and all else

I have been all over that, "polling" is the word I should of used in the
posting that stated this thread.

My point was having software loops that just spend all day polling the flags
to see if they are set seems
to be such a waste of resources, I think the Motorola  concept seems to be
such a tidy way of doing the
same job,

I was really asking is there a Atmel series where you dont need to poll?





The timer/counters can generate interrupts on overflows, you don't need to
poll a flag. It's covered in the data sheets.

Leon
--
Leon Heller, G1HSM
http://www.geocities.com/leon_heller



--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005




Yahoo! Groups Links










Yahoo! Groups Links










Yahoo! Groups Links

Re: [AVR-Chat] Interrupts

2005-01-30 by Dave VanHorn

At 08:48 PM 1/29/2005, Eric wrote:

>Come on you ............................ people
>
>sorry I half described the problem, I have downloaded some data sheets, I 
>will try and make another
>effort so we don't get a lot of ................... people making jokes
>
>But for me the thread has gone off, and think I might be wasting my time

Well... we were just all taken aback at the question.
I write apps that are very heavy on interrupts, so... :)

You'll like the AVRs, they are very powerful, don't be afraid to ask 
questions.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.