bugAVR C Runtime Library - Bugs: bug #35971, attiny4313 (2313a) pin-change...


bug #35971: attiny4313 (2313a) pin-change interrupts PCINT[0...2]_vect etc.

Submitted by:  Robert Spitzenpfeil <madworm>
Submitted on:  Fri 23 Mar 2012 11:50:40 PM UTC  
Category: HeaderSeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: Header files
Status: FixedPercent Complete: 0%
Assigned to: Pitchumani <pitchumani>Open/Closed: Open
Release: 1.8.0Fixed Release: None

Add a New Comment(Rich Markup)

You are not logged in

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


Thu 20 Mar 2014 11:23:56 AM UTC, comment #2:


Pitchumani <pitchumani>
Project MemberIn charge of this item.
Thu 20 Mar 2014 11:20:13 AM UTC, comment #1:

interrupt number starts from 0 in avr-libc.
UCPHA, UDORD bit definitions missing for UCSRC
0x03A: should be GIFR, not EIFR

Pitchumani <pitchumani>
Project MemberIn charge of this item.
Fri 23 Mar 2012 11:50:40 PM UTC, original submission:

According to the datasheet these mcus support pin-change interrupts in 3 groups and hence also 3 pin-change interrupts:

PCINT0_vect ( vector #12 - avr-libc counting: 11 )
PCINT1_vect ( vector #20 - 19 )
PCINT2_vect ( vector #21 - 20 )

Strangely I can only find the enable bit 'PCIE' for group 0 in the latest 'iotn4313.h' I got from this site. It should have PCIE0, PCIE1 and PCIE2. However PCMSK2 for example is defined, but useless without the ISR enabled.

Also what is unfortunate is the naming convention of the interrupts.

PCINT0_vect is called PCINT_B_vect
PCINT1_vect is called PCINT_A_vect
PCINT2_vect is caleld PCINT_D_vect

Where's PCINT_C_vect btw?

Sticking to the names of the datasheet would be best.

Robert Spitzenpfeil <madworm>


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

Attach File(s):

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 pitchumani (Posted a comment)
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by madworm (Submitted the item)
  • -unavailable- added by madworm

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



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 20 Mar 2014 11:23:56 AM UTCpitchumaniStatusIn Progress=>Fixed
    Thu 20 Mar 2014 11:20:13 AM UTCpitchumaniStatusNone=>In Progress
      Assigned toNone=>pitchumani
    Fri 16 Nov 2012 06:43:00 PM UTCarcanumPriority5 - Normal=>9 - Immediate
    Fri 23 Mar 2012 11:50:40 PM UTCmadwormCarbon-Copy-=>Added madworm

    Back to the top

    Powered by Savane 3.1-cleanup1