Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

msp430f5529RTC库函数驱动问题

$
0
0

 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模块呢?


Viewing all articles
Browse latest Browse all 3634

Trending Articles