[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Reset function?
From: |
Simon Eatough |
Subject: |
Re: [avr-chat] Reset function? |
Date: |
Wed, 5 Apr 2006 12:00:30 +1200 |
User-agent: |
KMail/1.9.1 |
Hi
If you are using the mega128's internal watchdog the easiest way is to disable
interrupts and then do a while(1);
Simon
On Wednesday 05 April 2006 11:48, address@hidden wrote:
> Hi all:
>
> I have on my Mega128 a kernel running with a command processor. A
> command I'd like to add is a reset command, to return the processor to
> the initial state. I thought I could do this with setjmp/longjmp, but it
> just seems to hang the processor.
>
> Is there an easy way to do it without toggling a hardware line?
>
> Cheers,
> Matthew van de Werken - Electronics Engineer
> CSIRO E&M - Rock Mass Characterisation - 1 Technology Court - Pullenvale
> - 4069
> p: (07) 3327 4142 * f: (07) 3327 4455 * e: address@hidden
> "We do not inherit the earth from our ancestors, we borrow it from our
> children."
> -- Native American Proverb
>
>
> _______________________________________________
> AVR-chat mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-chat
--
Simon Eatough
Development Engineer
Pertronic Industries
Wellington
NZ