bugAVR C Runtime Library - Bugs: bug #11242, iomx8.h ATmega48 eeprom EEAR EEARH

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11242: iomx8.h ATmega48 eeprom EEAR EEARH

Submitter:  None
Submitted:  Tue 07 Dec 2004 07:21:49 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  arcanum
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Tue 07 Dec 2004 07:21:49 PM UTC, original submission:  

The header "iomx8.h" don't work for the eeprom of the ATmega48 because of:
 
#if defined (_AVR_ATmega88_) || defined (_AVR_ATmega168_)
#  define EEAR  _SFR_IO16 (0x21)
#  define EEARH _SFR_IO8 (0x22)
#endif

The ATmega48 has only 256 byte eeprom, but despite of this for programming or reading, one has to write a zero to EEARH or a uint16_t to EEAR...
 
Maybe this will be correctet in a newer version...

Anonymous

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-21 arcanum StatusNone Fixed
    Assigned toNone arcanum
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code