Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] hrm...

2007-01-17 by np np

It is sometimes sensible to go back to basics.
Start with a simple program that simply toggles a pin on interupt.

If that is not happening then check global interupts are enabled.
Your timer interupt must be enabled too.

Make sure that you reenable the timer int after the interupt so it happens more than once.

http://www.ckp-railways.talktalk.net/pcbcad28.htm




Thomas Keller <tjkeller1@alltel.net> wrote:                                  
 
 Someone (John Samperi?) asked how long I had waited to see if interrupts 
 were happening.  The answer is a very long time. I even went so far as 
 to set the program to running, and going off to do other things for 
 almost an hour.  I returned to find the program still cycling rapidly 
 between rjmp MAIN and sleep, and nothing having happened in any of the 
 interrupt routines (I am certain because I had the interrupt routines 
 set up to set a flag in a register, and none of the flags were set).
 
 I am totally frustrated and discouraged at this point.   I realize that 
 it is something *I* am doing wrong, but for the life of me, I am damned 
 if I can determine what or where.  As I said earlier, I set up a very 
 simple interrupt ina standalone program, and it worked fine.  the 
 details of this one differ, of course, but the form is the same, and it 
 does not work, at least net in simulation.
 
 I am planning to obtain some physical processors in about 2 weeks,and 
 will be able to check things on a real processor, though I am not very 
 hopeful that the problem, will disappear, frankly.
 
 tom
 
 
     
                       

 		
---------------------------------
 New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes.

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

Attachments

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.