贴程序
RTC初始化
RTCCTL01 |= RTCBCD+RTCHOLD+RTCMODE +RTCRDYIE; // RTC enable, BCD mode,
RTCSEC = 0X00;
RTCMIN =0X00;
RTCHOUR = 0X00;
RTCDOW =0X01;
RTCDAY = 0X02;
RTCMON = 0X02;
RTCYEARL =0X00;
RTCYEARH = 0X00;
后开启总中断,
调试过程中发下,RTCRDYIE已经开启,但RTCRDYIFG就是不置位,求解释 |