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.

MSP430FE427A电表批量生产时无法退出LPM3模式的问题

Other Parts Discussed in Thread: MSP430FE427A

使用MSP430FE427A芯片设计的一款电表,在交流电断开后用电池供电,程序工作流程如下:

1.检测到掉电后(外部有一个检测电路,掉电后端口输入为高电平),先停止看门狗,停止不需要的外设,设置端口状态避免漏电流,切换时钟从8M到1M,置内存标志为电池供电标志,然后进入LPM3模式;

...

g_PowerMode = POWER_BATTERY;
__bis_SR_register(LPM3_bits+GIE);

...

2.定时中断100ms到,进入中断程序,检测掉电检测端口状态,如果交流电恢复,掉电检测端口为低电平,且连续15次为低电平后,退出LPM3模式。

#pragma vector = BASICTIMER_VECTOR
__interrupt void Timer1_ISR( void )
{
static uint8_t ac_restore_cnt = 0;
BTCNT2 = 243;
if(g_PowerMode == POWER_AC) //交流电供电时
{
    _systick++;
    __bic_SR_register_on_exit(LPM0_bits);
}
else
{
    if(!LVI_READ()) //该脚电平为低,则为唤醒
   {
       ac_restore_cnt++;
       if(ac_restore_cnt >= 15)
      {
           __bic_SR_register_on_exit(LPM3_bits);
          ac_restore_cnt = 0;
      }
   }
  else
  {
      ac_restore_cnt = 0;
  }
 }
}

当前的问题,批量生产后,某些电表无法退出LPM3模式,无法正常工作,请问是什么原因?谢谢