RWKCNT
tm->tm_wday = bcd2bin(readb(rtc->regbase + RWKCNT));
writeb(bin2bcd(tm->tm_wday), rtc->regbase + RWKCNT);