Thomas Keller 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 Tom, I don't have time right now to go thru your code, but what I recall seeing you posted a few days ago I noticed you initialized timer 0 but later in program referenced timer 1. Are you using both timers? Don
Message
Re: [AVR-Chat] hrm...
2007-01-17 by Don AE5K
Attachments
- No local attachments were found for this message.