[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #35368] Incorrect PCIE/PCIF bit definitions for the
From: |
Dean Camera |
Subject: |
[avr-libc-dev] [bug #35368] Incorrect PCIE/PCIF bit definitions for the ATMEGA169P |
Date: |
Wed, 25 Jan 2012 14:37:38 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 |
URL:
<http://savannah.nongnu.org/bugs/?35368>
Summary: Incorrect PCIE/PCIF bit definitions for the
ATMEGA169P
Project: AVR C Runtime Library
Submitted by: abcminiuser
Submitted on: Wed 25 Jan 2012 02:37:37 PM GMT
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.8.0
Fixed Release: None
_______________________________________________________
Details:
The header file for the ATMEGA169P contains several errors relating to the
EIFR and EIMSK registers. According to the datasheet, PCIF0/PCIE0 to
PCIF3/PCIE3 are located in bits 4-7 of the EIFR and EIMSK registers. In the
latest AVR Toolchain 3.3.1 version, these definitions are listed as:
/* External Interrupt Flag Register */
#define EIFR _SFR_IO8(0x1C)
#define PCIF1 7
#define PCIF0 6
/* External Interrupt Mask Register */
#define EIMSK _SFR_IO8(0x1D)
#define PCIE1 7
#define PCIE0 6
I.e. PCIE2/PCIF2 and PCIE3/PCIF3 are missing, and the existing bits are in the
incorrect register locations (bits 6/7 instead of 4/5). These values are
correct in the non-P version of the ATMEGA169 device headers.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?35368>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #35368] Incorrect PCIE/PCIF bit definitions for the ATMEGA169P,
Dean Camera <=