Problems trying to wake up ATMEGA328p from sleep with ADXL345

jremington:
Does the revised version work?

Nope. I go to sleep and it wakes up after 8 sec even if in that interval I move the sensor no interrupt its generated.

jremington:
Why are you using the watchdog timer?

In my final application, I need to sleep for a longer period of time(1 hour at least), wake up after an hour, check if smth happened and take the appropiate actions and then go back to sleep. So I have to cycle the sleep part(8 sec sleep, 2 or less sec awake, then back to sleep)...and I discovered this is the best way to cycle between sleep and awake - using WTD timer. Also if an event occurs I need to wake up the processor and look what happend...this is why I need both the interrupt and the WTD timer to get "me" out of sleep.