Mega329 Register Names differ between AvrStudio & DataSh

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

To Atmel Representative,

The latest available (Revision B) datasheet for ATmega329 etc
http://www.atmel.com/dyn/resources/prod_documents/doc2552.pdf
shows different register and bit names for the UART to AvrStudio.

DataSheet. UCSR0A [RXC0 TXC0 UDRE0 FE0 DOR0 UPE0 U2X0 MPCM0]
AvrStudio. UCSRA  [RXC  TXC  UDRE  FE  DOR  UPE  U2X  MPCM]

What I would like is consistent nameing across all devices with the same hardware regardless of the number of UARTS. Then a piece of code for ATmega128 (with 2 UARTS) will very easily port to ATmega169 or ATmega329 (only 1 UART) without register name changing.

Q1 What is Atmel's view on this please ?
Q2 Which is correct; AvrStudio or ATmega329 Datasheet ?

Regards

Nigel Winterbottom

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As a short term fix you could always edit \program files\atmel\avr tools\Partdescriptionfiles\atmega329.xml I guess

Cliff

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

N.Winterbottom wrote:

DataSheet. UCSR0A [RXC0 TXC0 UDRE0 FE0 DOR0 UPE0 U2X0 MPCM0]
AvrStudio. UCSRA  [RXC  TXC  UDRE  FE  DOR  UPE  U2X  MPCM]

What I would like is consistent nameing across all devices with the same hardware regardless of the number of UARTS. Then a piece of code for ATmega128 (with 2 UARTS) will very easily port to ATmega169 or ATmega329 (only 1 UART) without register name changing.

Q1 What is Atmel's view on this please ?


There is ongoing work in that direction (mostly for new devices), but it takes time to get everything updated (as this bug is an example of) and there is always backwards compatibility to consider. Breaking existing projects is highly unpopular. :?
N.Winterbottom wrote:
Q2 Which is correct; AvrStudio or ATmega329 Datasheet ?

The data sheet is correct. Thank you for reporting this bug, we will fix it in AVR Studio as soon as possible.

Best regards,
Roland