[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #35971] attiny4313 (2313a) pin-change interrupts PCI

From: Robert Spitzenpfeil
Subject: [avr-libc-dev] [bug #35971] attiny4313 (2313a) pin-change interrupts PCINT[0...2]_vect etc.
Date: Fri, 23 Mar 2012 23:50:41 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2


                 Summary: attiny4313 (2313a) pin-change interrupts
PCINT[0...2]_vect etc.
                 Project: AVR C Runtime Library
            Submitted by: madworm
            Submitted on: Fri 23 Mar 2012 11:50:40 PM GMT
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
           Fixed Release: None



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.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]