This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430f5529RTC库函数驱动问题



 Calendar readTime={0x00,0x00,0x12,0x2,0x01,0x01,0x2016};
  RTC_A_initCalendar(RTC_A_BASE,&readTime,RTC_A_FORMAT_BCD);

readTime = RTC_A_getCalendarTime(RTC_A_BASE);

我想简单配置RTC,然后读出值来显示,用了上面几句,然后程序卡在    while(!(HWREG16(baseAddress + OFS_RTCCTL01) & RTCRDY))

我需要怎样配置才能成功使用RTC模块呢?