Re: Problem with handling interrupts

<[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <20140114151502.27a016d1@igor>
You read the port.

On Tue, 14 Jan 2014 14:48:40 +0100
dfx <[email protected]> wrote:

> Hello,
> 
> my problem is the following:
> 
> suppose we have 8 keys all connected to the same port (for. eg. D) of
> an AVR processor (eg. ATmega324) and that all pins have the interrupt
> enabled.
> 
> If I understand correctly, when I press any key is called the same
> ISR (PCINT3_vect) and a single flag is set (PCIE3).
> 
> Question: How do I know which button was actually pressed?
> 
> thank you very much
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.