svegliarsi dal sonno

http://gammon.com.au/power sotto Detecting key presses on a keypad whilst asleep il codice dal link sopra compila per arduino uno .. ma come voglio caricarlo su atmega8 allora ho un errore 'PCMSK1' was not declared in this scope

http://www.gammon.com.au/forum/?id=11488&reply=9#reply9 sotto Example of waking from sleep with a Pin Change Interrupt... il codice dal link sopra compila per arduino uno .. ma come voglio caricarlo su atmega8 allora ho un errore 'PCICR' was not declared in this scope

cosa fare per essere in grado di svegliarsi su atmega8 e attiny13a ???

per favore scrivimi al correo allahh@o2.pl

That code uses PCINTs. The atmega8 does not have PCINT functionality.

All you get for external interrupts based on the state of the pin are what Atmel calls "external interrupts", INT0 and INT1.

And you can only wake from sleep with a low level interrupt on those pins, not rising/falling/change (see datasheet).

The attiny13, however, does have PCINTs - the register names are slgihtly different since there's only one port, so no need for the number after them. These work the same as on other chips. Again, see the datasheet.