Added tim1 for rtc check