Implemented sleep and wakeup by watchdog or RB0