Re: [avr-gcc-list] Problem with handling interrupts

2014-01-14 Thread jan
You read the port. On Tue, 14 Jan 2014 14:48:40 +0100 dfx 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

Re: [avr-gcc-list] Problem with handling interrupts

2014-01-14 Thread Francois Lorrain
Hello, In the interrupt routine, just read the PIND register and look at which one changed ... Regards Francois On Tue, Jan 14, 2014 at 2:48 PM, dfx 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 (