bugAVR C Runtime Library - Bugs: bug #47734, WDTO_4S and WDTO_8S are incorrect

 
 

bug #47734: WDTO_4S and WDTO_8S are incorrect

Submitted by:  None
Submitted on:  Tue 19 Apr 2016 12:53:02 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: InvalidPercent Complete: 0%
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 2.0.0
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 20 Apr 2016 05:44:30 AM UTC, comment #4:

I added a remark in the comment of these constants, telling
that their values does not match the control register's bit
pattern.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Wed 20 Apr 2016 04:55:28 AM UTC, comment #3:

The WDTO_xxx constants are meant to be used together with
wdt_enable(), which also takes of everything else which is
required, not just the timeout value itself.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Wed 20 Apr 2016 12:01:05 AM UTC, comment #2:

Atmel-8271 is the spec for teh 168/328/P
Atmel-2586 for the ATTiny's

Okay I was using the define's to set the bits directly to enable only the watchdog interrupt. Which is why I saw the problem then.

WDTCR = _BV(WDIE) | _BV(WDP3) | _BV(WDP0) | WDTO_8S;

If wdt_enable() splits the bits that is fine.

Anonymous
Tue 19 Apr 2016 05:57:37 AM UTC, comment #1:

What do you mean by "atmel-8271 and atmel-2586"?

In general, your remark is incorrect. Splitting off bit 3
is correctly handled in wdt_enable() itself.atmel-8271 and atmel-2586

Joerg Wunsch <joerg_wunsch>
Project Administrator
Tue 19 Apr 2016 12:53:02 AM UTC, original submission:

In the watchdog control register WDP3 is split by two bits from WDP2.

Values should be:
WDTO_4S 0x20
WDTO_8S 0x21

This is for atmel-8271 and atmel-2586.

Thanks

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 20 Apr 2016 04:55:28 AM UTCjoerg_wunschStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Tue 19 Apr 2016 05:57:37 AM UTCjoerg_wunschStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1