Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Reset interrupt handler

2009-08-14 by Dennis Clark

> 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

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.