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:  Header Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Header files
Status:  Fixed Percent Complete:  0%
Assigned to:  Pitchumani <pitchumani> Open/Closed:  Open
Release:  1.8.0 Fixed 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 Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by pitchumani (Posted a comment)
  • -email is unavailable- added by arcanum (Updated the item)
  • -email is unavailable- added by madworm (Submitted the item)
  • -email is unavailable- added by madworm



    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-20 pitchumani StatusIn Progress => Fixed
    2014-03-20 pitchumani StatusNone => In Progress
        Assigned toNone => pitchumani
    2012-11-16 arcanum Priority5 - Normal => 9 - Immediate
    2012-03-23 madworm Carbon-Copy- => Added madworm

    Back to the top

    Powered by Savane 3.3