2 Replies Latest reply on Mar 17, 2020 1:03 AM by XiaoweiZ_71

    LIN低电压5V无法唤醒的问题

    user_4594851

      开启深度休眠后,把电压从低慢慢升高,发现单片机无法从休眠状态恢复。正常电压  9-12V 都能唤醒

       

      以下是代码唤醒后直接复位

       

      LIN_EN_Write(0);

              LIN_1_SCB_rx_Sleep();

              LIN_1_SCB_tx_Sleep();

              LIN_1_SCB_rx_SetDriveMode(LIN_1_SCB_rx_DM_RES_UP);//LIN_1_SCB_rx_DM_RES_UP

              CyIntEnable(0);

              CyIntSetVector(0, &LINRx);

              LIN_1_SCB_rx_SetInterruptMode(LIN_1_SCB_rx_0_INTR, LIN_1_SCB_rx_INTR_BOTH);

              LIN_1_SCB_rx_ClearInterrupt();

             

              CySysPmDeepSleep();

               CySoftwareReset();