智能车制作

标题: 【求助啊!】K60 RTC时钟初始化BUG [打印本页]

作者: OMG!!    时间: 2015-6-1 08:55
标题: 【求助啊!】K60 RTC时钟初始化BUG
  SIM_SCGC6 |= SIM_SCGC6_RTC_MASK;

  /*Only VBAT_POR has an effect on the SRTC, RESET to the part does not, so you must manually reset the SRTC to make sure everything is in a known state*/
  /*clear the software reset bit*/
  RTC_CR  = RTC_CR_SWR_MASK;
  RTC_CR  &= ~RTC_CR_SWR_MASK;  
程序一运行到这就跑飞,求助啊






欢迎光临 智能车制作 (http://dns.znczz.com/) Powered by Discuz! X3.2