avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Possibly incorrect wdt implementation for xmega


From: Erik Walthinsen
Subject: Re: [avr-libc-dev] Possibly incorrect wdt implementation for xmega
Date: Fri, 06 Apr 2012 08:46:56 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20

On 04/06/2012 06:03 AM, Omar Choudary wrote:
That is strange, since the XMEGA supports 11 different timeouts, from 8ms to 8s.

Even worst perhaps, the values are incorrect and most probably the
registers used as well.
That is, for the xmega (from the datasheet) the encodings are
different than for the previous AVRs.
For example 2S is encoded as "1000" (i.e. 8) while for an AT90USB1287
the value is "0111" (i.e. 7).

I can confirm that the xmega WDT stuff is very broken, I've resorted to not only figuring the register values myself but ditching the entire wdt_enable/disable code and just doing it myself with the CCP register and all. I'd fix it if I had time, but.... ;-(



reply via email to

[Prev in Thread] Current Thread [Next in Thread]