> Hello Guys, > > I'm working with ATMEGA328P (Arduino Board) in C, in AVR Studio and AVR > Dragon. When I download and run, every time I press the reset button the > board freezes. > Could anyone suggest a reset interrupt handler I can use in my project? > I am more familiar with Assembly and in this case it would be > straightforward, but in C I don't know how the compiler handles this. > > Thank you in advance. Reset takes you to "location 0", the same as a power up. If you are using an Arduino that restart location is the bootloader. Some of the Arduino bootloaders that I've seen hang out there for several seconds before jumping to user code. How long do you wait before you decide that you've "frozen"? DLC -- Dennis Clark TTT Enterprises
Message
Re: [AVR-Chat] Reset interrupt handler
2009-08-14 by Dennis Clark
Attachments
- No local attachments were found for this message.