[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Problem with handling interrupts
From: |
dfx |
Subject: |
[avr-gcc-list] Problem with handling interrupts |
Date: |
Tue, 14 Jan 2014 14:48:40 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
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
--
Domenico Formenton
Tel. 06 92731757
Fax. 178 2250847
Cell. 333 7075929
---
Questa e-mail è priva di virus e malware perché è attiva la protezione avast!
Antivirus.
http://www.avast.com
dfx.vcf
Description: Vcard
- [avr-gcc-list] Problem with handling interrupts,
dfx <=