bugAVR C Runtime Library - Bugs: bug #38516, Missing TWI and UCSR1D definitions...


bug #38516: Missing TWI and UCSR1D definitions for ATmega16/32 U4

Submitted by:  None
Submitted on:  Thu Mar 14 14:00:40 2013  
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: libc code
Status: FixedPercent Complete: 0%
Assigned to: Pitchumani <pitchumani>Originator Email: -unavailable-
Open/Closed: OpenRelease: 1.8.0
Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Thu Mar 20 09:01:01 2014, comment #2:

Below TWI register definitions also missing in iom16u4.h

UCSR1D register definition also missing in iom16u4.h

Patch attached by Morten fixes this.

Pitchumani <pitchumani>
Project MemberIn charge of this item.
Thu Mar 14 19:49:26 2013, comment #1:

Comparing to datasheet the definitions are incomplete.
I will send a patch.

Pasi Heinonen <pasihe>
Thu Mar 14 14:00:40 2013, original submission:

avr/iom16u4.h does not contain TWI Control register addresses and bits definitions.

#define TWCR _SFR_IO8(0x36)
#define TWIE 0
#define TWEN 2
#define TWWC 3
#define TWSTO 4
#define TWSTA 5
#define TWEA 6
#define TWINT 7



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

Attach File(s):

Attached Files
file #30860:  DEVXML-176_iom16u4-twi.patch added by None (1kB - application/octet-stream - Patch from Atmel)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by pitchumani (Updated the item)
  • -unavailable- added by pasihe (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Mar 20 09:18:09 2014pitchumaniStatusIn Progress=>Fixed
      SummaryMissing TWI and UCSR1D definitions for ATmega16U4 in avr/iom16u4.h=>Missing TWI and UCSR1D definitions for ATmega16/32 U4
    Thu Mar 20 09:01:01 2014pitchumaniSummaryMissing TWI definitions for ATmega16U4 in avr/iom16u4.h=>Missing TWI and UCSR1D definitions for ATmega16U4 in avr/iom16u4.h
    Thu Mar 20 08:20:44 2014pitchumaniStatusNone=>In Progress
      Assigned toNone=>pitchumani
    Tue Mar 11 18:38:14 2014NoneAttached File-=>Added DEVXML-176_iom16u4-twi.patch, #30860

    Back to the top

    Powered by Savane 3.1-cleanup1