I have not tried "sleep" on the simulator but I would bet that sleep is not simulated. Jim On Mon, 08 Jan 2007 18:44:06 -0600 Thomas Keller <tjkeller1@alltel.net> wrote: > > > OK. Here is my main loop: > > MAIN: > > sleep > rjmp MAIN ; go back to > sleep until next > interrupt > ; in > other words, > loop forever > > .exit > > > now, when i am simulating this, the instruction > pointer simply > oscillates rapidly between the line with "sleep" and the > line with "rjmp > MAIN" on it. This doesn't seem quite right to me. If > there is no > interrupt happening, should it just go to sleep and sit > there? Maybe > the suggestion about a debugging code to tell me which > interrupt is > actually happening isn't such a bad idea after all. > SOMETHING must be > interrupting, or the pointer woudl just sit at the sleep > instruction > once executed, unless I misunderstand how "sleep" is > supposed to work? > > tom --------------------------------------------------------------- The Think Different Store http://www.thinkdifferentstore.com/ For All Your Mac Gear ---------------------------------------------------------------
Message
Re: [AVR-Chat] still no working interrupt )-:
2007-01-09 by Jim Wagner
Attachments
- No local attachments were found for this message.