Hello Mark and thanks for your answer, but it doesn't work...

It happens the same thing, enter the first time, and after that, never enter in sleep again.

I include the "On interrupt goto..." . In this case, the first time it works as expected, but after wakeup the first time, enter in loop in subprogram "Wakeup".

If anyone coul help, i'm lost...

Thanks,
Nuno