/---------------------------------------------------------------------------------------------------------/ /* / / SPDX-License-Identifier: Apache-2.0 / / Copyright(c) 2020 Nuvoton Technology Corp. All rights reserved. / / / /---------------------------------------------------------------------------------------------------------*/

// / File Function: MS51 pin interrupt wakeup power down mode / // #include "MS51_16K.H"

void PinInterrupt_ISR (void) interrupt 7 { push(SFRS);

 if (PIF&=SET_BIT0)
 {
   P12 ^= 1;
   CLEAR_PIN_INTERRUPT_PIT0_FLAG;
   if(PIF&=SET_BIT0)//P00位于0通道
   {
       fan1_count[0] += 1; //fan1的FG信号计数器
   }
 }

}

MS51 微控制器引脚中断唤醒低功耗模式

原文地址: https://www.cveoy.top/t/topic/m89A 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录