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

 
 
Show feedback again

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: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: 1.8.0Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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):
   
   
Comment:
   

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 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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 16 Nov 2012 06:43:00 PM UTCarcanumPriority5 - Normal=>9 - Immediate
    Fri 23 Mar 2012 11:50:40 PM UTCmadwormCarbon-Copy-=>Added madworm
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup