Inclusion of internal RTC handling and sleep mode